Quiz: VS Code¶
3 questions
L0 (1 questions)¶
1. What VS Code feature lets you edit files on a remote server as if they were local, and how do you connect?
Show answer
The Remote-SSH extension. Connect via Ctrl+Shift+P -> 'Remote-SSH: Connect to Host', enter user@hostname (it uses your ~/.ssh/config). Once connected, you can open folders, use the terminal, and debug — all running on the remote machine.L1 (1 questions)¶
1. How do Dev Containers solve the 'works on my machine' problem for a DevOps team?
Show answer
Dev Containers define the development environment as code in a .devcontainer/devcontainer.json file that specifies the base image, installed tools (docker, kubectl, helm, terraform), VS Code extensions, and post-create setup commands. Every contributor who opens the project gets an identical environment with the same tool versions and extensions, eliminating configuration drift between developer machines.L2 (1 questions)¶
1. How would you configure VS Code terminal profiles to visually distinguish staging from production Kubernetes contexts and prevent accidental production commands?