Dev Containers Configuration Quiz

5 questions Pass: 70% +25 pts (50 with Pro)

Quiz covering Development Environments

What you'll be asked

  1. Which file is primarily used to define the configuration for a Dev Container in a project?
  2. When using the 'postCreateCommand' property in devcontainer.json, when is the specified command executed?
  3. What is the primary benefit of using a 'features' property in a devcontainer.json file?
  4. If you need to persist data (such as shell history or VS Code extensions) across container rebuilds, which configuration should you use?
  5. You are configuring a Dev Container that requires access to the host's Docker socket to build other images inside the container. Which configuration is required to achieve this securely?

Answers and explanations come after you submit.