KCSA Overview OF Cloud Native Security Practice Question
A security team discovers that a vulnerability in a third-party open-source npm library has been exploited inside a running container in a production Kubernetes cluster. Based on the 4Cs of Cloud Native Security, which layer should be modified first to fix the root cause of this vulnerability?
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
✓
Code layer
The root cause of a vulnerability in a third-party library bundled inside the application is located at the Code layer. Fixing it requires updating the source code or dependency manifest and rebuilding the container image.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
Container layer
Why it's wrong here
While base image hardening is part of the Container layer, application-level library vulnerabilities originate in the Code layer and must be fixed upstream.
- ✓
Code layer
Why this is correct
Vulnerabilities in third-party libraries originate in the Code layer and must be patched in the source code or dependencies.
- ✗
Cluster layer
Why it's wrong here
The Cluster layer involves Kubernetes components and configurations, not individual application code vulnerabilities.
- ✗
Cloud layer
Why it's wrong here
The Cloud layer deals with underlying VM security and IAM, not application dependencies.
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.