A hospital software team finds that two builds using the same mutable base image tag produced different pre-runtime vulnerability counts over the same week. Pinning a digest fixes that base artifact, not the vulnerability-intelligence database or later unpinned build inputs. CVE counts can change for an identical image as intelligence updates; full build reproducibility needs all inputs controlled. How can the team keep the base-image bytes fixed across builds?
Select an answer to reveal the explanation.
Short Explanation
You can stop the moving-target tag by pinning to an immutable digest to keep your base-image bytes fixed. Pinning a digest fixes that base artifact, not the vulnerability-intelligence database or later unpinned build inputs. CVE counts can change for an identical image as intelligence updates; full build reproducibility needs all inputs controlled.
Full Explanation
Pinning the base image to an immutable digest instead of a mutable tag keeps the base-image bytes fixed across builds, so every build pulls the exact same underlying layers and avoids unexpected shifts in base package versions when a tag is overwritten upstream. Pinning a digest fixes that base artifact, not the vulnerability-intelligence database or later unpinned build inputs. CVE counts can change for an identical image as intelligence updates; full build reproducibility needs all inputs controlled. Choosing to skip pre-runtime image scanning when the base image tag name stays identical creates blind spots because the tag can be repointed to different content and new advisories still require re-evaluation. Choosing to disable registry integration so only local developer builds are evaluated removes visibility and continuous re-assessment as new vulnerability advisories emerge. Choosing to apply a runtime container drift rule to overwrite modified base image layers confuses runtime protection with build inputs, since drift detection alerts on or blocks unexpected runtime modifications rather than pinning source layers. As a caveat, pinning digests means teams must intentionally update digest references when adopting security patches. For an operational check, inspect build definitions to verify base references use cryptographic digests.
Prefer to study offline? Printable PDF study book + test engine ($7.50, unofficial). These questions stay free here.