A software security team notices that a microservice built on a full general-purpose Linux base image accumulates dozens of pre-runtime OS package vulnerabilities unrelated to the application. Which change to the base image selection best reduces these recurring pre-runtime package findings?
Select an answer to reveal the explanation.
Short Explanation
Packing only the tools you actually use for a trip means far less luggage to inspect at the gate. You can cut out irrelevant OS package vulnerabilities by switching to a minimal base image, avoiding the trap of hiding findings or changing tags.
Full Explanation
Choosing to Switch to a minimal base image containing only the dependencies the application needs eliminates unused operating system utilities and libraries from the container filesystem, directly reducing the number of vulnerable packages discovered during pre-runtime image assessment. Pre-runtime scanners Inventory supported package formats and detectable components; unsupported packaging, static bundling and scanner coverage can leave gaps. A smaller image reduces unnecessary contents but is not proof of complete detection or zero vulnerability. present in the image layers, so shrinking the base image removes both noise and potential attack surface. Choosing to Keep the full OS base image and disable all OS package checks in policy fails because it blinds your team to real OS-level vulnerabilities rather than removing them. Deciding to Rename the container image tag after every successful CI build only alters the label and leaves the exact same vulnerable packages inside the image layers. Selecting Run a runtime admission check instead of scanning images before deployment fails because admission control evaluates deployment compliance rather than reducing the packages bundled into the image. As a caveat, ensure the minimal base image still supports any troubleshooting or health-check binaries required by your runtime environment. Operationally, rebuild the microservice with the minimal base image and verify in pre-runtime scan results that unrelated OS package findings drop.
Prefer to study offline? Printable PDF study book + test engine ($7.50, unofficial). These questions stay free here.