Q12 Key Vault Domain 4 · 20–25% of exam Priority · Real Exam

How should secrets be supplied to a container image build that needs a private package feed token?

  1. A Copy the token into a layer with COPY
  2. B Use a build-time secret mount so the value never persists in an image layer (correct answer)
  3. C Set it as an ENV instruction
  4. D Commit it to the repository

Shortcut: Anything written into a layer, including ENV and COPY, is recoverable from the image. Secret mounts expose the value only during that build step.