A manufacturing software team discovers twenty critical vulnerabilities in diagnostic utilities bundled inside an application container image that the application never invokes. What is the most effective pre-runtime remediation?
Select an answer to reveal the explanation.
Short Explanation
Leaving unused vulnerable tools inside a container is like packing extra lockpicks in a suitcase you never open—if someone breaks in, they are right there to use. The trap is hiding the warnings with permanent exclusions instead of slimming down your image.
Full Explanation
The most effective pre-runtime fix is to Remove the unused diagnostic utilities from the build definition and rebuild the image. Eliminating unnecessary packages shrinks the container's attack surface and prevents attackers from abusing those binaries if the container is ever compromised. Removes those packages from the new artifact when verified by a clean rebuild and rescan; test dependencies/health checks before rollout, and reassess future images rather than promise permanent zero risk. Selecting Create permanent policy exclusions for all twenty vulnerabilities so builds pass immediately hides real risk in the artifact and leaves exploitable binaries sitting inside production containers. Choosing Disable container registry integration so the unused packages are no longer reported removes visibility across stored images without fixing any underlying vulnerabilities. Opting to Deploy the unchanged image and rely on cloud posture scans to patch the container later fails because cloud posture scanning audits cloud control planes and does not patch packages inside immutable container images. As a caveat, verify that no health-check scripts or troubleshooting sidecars depend on the removed utilities before finalizing the build. Operationally, rebuild the image cleanly and confirm that the new registry assessment shows zero findings for those removed packages.
Prefer to study offline? Printable PDF study book + test engine ($7.50, unofficial). These questions stay free here.