Which TWO practices are essential for securing container images against supply chain vulnerabilities? (Choose two)
Minimal base images such as Distroless or Alpine strip package managers, shells and unused libraries, directly shrinking the exploitable attack surface that supply chain vulnerabilities could target. Fewer installed components mean fewer known CVEs shipped inside the image, satisfying the stem's requirement to secure container images against supply chain vulnerabilities.
Why this answer
Option D is correct because using minimal base images such as Distroless or Alpine reduces the number of installed packages, libraries, and utilities, which directly shrinks the attack surface and lowers the chance that a vulnerable component is present in the image. Option E is correct because scanning container images for known CVEs during the CI/CD pipeline catches vulnerable dependencies and OS packages before deployment, enabling remediation or blocking of the build. Option A is wrong because running container processes as root by default violates least privilege and increases the impact of a container compromise.
Option B is wrong because disabling container registry authentication exposes images to unauthorized pulls and tampering. Option C is wrong because storing plain-text passwords in image environment variables leaks secrets to anyone who can inspect the image or container metadata.
Exam trap
KCSA often tests whether candidates confuse 'minimal base image' (reduces attack surface) with 'running as non-root' (reduces privilege) — both are important but answer different questions, and the exam expects you to pick the supply-chain-specific controls.