D4: Codespaces & Dev Containers
GH-900 GitHub Foundations exam practice questions · 10 flashcards
Question
GitHub Codespaces?
1 / 10
Tip: Space flips the card, ← / → navigate.
Show all 10 Codespaces & Dev Containers practice questions and answers
- GitHub Codespaces?Cloud-hosted development environments running in containers, accessible via browser or VS Code.
- Dev container?Configuration (.devcontainer/devcontainer.json) defining the container image, tools, extensions and settings.
- Where is devcontainer.json stored?.devcontainer/devcontainer.json (or .devcontainer.json at root).
- Customizing codespaces?Base image/Dockerfile, features, VS Code extensions, postCreateCommand, forwarded ports.
- Prebuilds?Prepare codespaces ahead of time to speed startup.
- Machine types?Choose CPU/RAM sizes per codespace.
- Codespaces billing?Compute hours and storage; free monthly quota for personal accounts.
- Codespaces lifecycle?Stop after idle timeout; delete after retention period.
- Secrets in Codespaces?User, repo and org Codespaces secrets available as environment variables.
- Scenario: onboard new developers instantly with identical tooling. Feature?Codespaces with a dev container configuration.