This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Check your understanding of CI verification, tested container builds, artifact identity, dependency credentials, and publication boundaries.
Choose the best answer for each scenario. Review the explanations before continuing to the module summary.
A generated CI job is green, but its test report shows that none of the required tests were discovered. How should the build be evaluated?
Accept it because a successful test command proves the required behavior was checked.
Treat verification as incomplete, correct test selection or discovery, and require applicable execution evidence.
Remove the test-report step so it does not disagree with the green job.
A Dockerfile defines a test stage, but the final runtime stage copies published output directly from the build stage. What change ensures tests cannot be skipped on the publication path?
Make the final stage depend on tested output, or enforce an equivalent blocking pipeline test dependency.
Move the test stage above the runtime stage without changing any dependencies.
Rename the test stage to required-tests.
An image passed validation under a friendly tag. Another build later moved that tag to different contents. Which identity should the publisher use?
The current tagged image, because the tag name matches the approved build.
A newly rebuilt image from the same commit, without collecting new evidence.
The exact tested image digest with evidence bound to that output.
A container build needs a private NuGet feed. How should its credential be supplied?
Copy a token-bearing configuration into the image and delete it in a later layer.
Use a supported build-secret mechanism and scoped access, keeping credentials out of ordinary build arguments and image layers.
Pass the token through an ordinary Docker ARG and print it while troubleshooting.
An untrusted pull request can modify build scripts. Which design best protects package publication?
Keep validation workers unprivileged and give a separate, controlled publisher only the permissions needed to publish accepted output.
Give every PR worker publication credentials so it can test the full release path.
Use the same privileged worker and ask Copilot not to run suspicious scripts.
You must answer all questions before checking your work.
Was this page helpful?
Need help with this topic?
Want to try using Ask Learn to clarify or guide you through this topic?