KCSA Platform Security Practice Question
You are troubleshooting a container image vulnerability scan report that flagged a high-severity CVE in a base image layer. The development team wants to ensure that vulnerable container images are automatically prevented from being deployed to any namespace in the cluster. Which Kubernetes mechanism should you implement?
Answer choices
Why each option matters
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
✓
Configure a validating admission webhook to inspect image metadata and reject deployments with known CVEs
An admission controller, specifically a validating webhook or a policy engine like OPA Gatekeeper or Kyverno, can intercept image creation requests and block images that fail vulnerability checks.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
Enable resource quotas on the default namespace
Why it's wrong here
Resource quotas limit CPU, memory, and object counts, not image vulnerabilities.
- ✗
Rotate the cluster certificate authority
Why it's wrong here
Certificate rotation affects cluster authentication, not runtime deployment of vulnerable images.
- ✗
Add network policies to restrict outbound CVE database queries
Why it's wrong here
Network policies control pod-to-pod and pod-to-external network traffic, not image security.
- ✓
Configure a validating admission webhook to inspect image metadata and reject deployments with known CVEs
Why this is correct
Validating admission webhooks can block pods that use images with unresolved vulnerabilities.
About these practice questions
This KCSA question is part of Courseiva's 320-question bank — original exam-style content with full explanations and wrong-answer analysis, never real exam questions or exam dumps. Learn why practice questions differ from exam dumps →
JA
Written and reviewed by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
Last reviewed August 2026 · checked against the official CNCF / Linux Foundation exam blueprint
This KCSA practice question is part of Courseiva's free CNCF / Linux Foundation certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the KCSA exam.