Security Engineering

A scanner flags a vulnerable library in the base image of 40 running containers that use immutable, read-only filesystems. Which remediation BEST fixes the flaw while keeping the deployment consistent?

Show the answer

Correct answerA. Rebuild the image from a patched base and redeploy replacement containers

AWhy this is right: Fixes the image once and replaces instances, preserving immutability and identical deployments.

BWhy not this: Containers carry their own libraries in the image; host patches do not change them.

CWhy not this: Startup hotfixes break immutability, vary between instances, and depend on writes the read-only filesystem blocks.

DWhy not this: Read-only filesystems block in-place changes, and any change would be lost on restart and cause drift.

Containers are meant to be replaced, not modified: rebuilding from a patched base and redeploying keeps every instance identical and immutable. Patching the host does not change libraries packaged in the image, which is the tempting but wrong choice.