KCSA Kubernetes Security Fundamentals Practice Question
An administrator is hardening a Kubernetes cluster against container breakout vulnerabilities and node compromise. Which THREE security practices should be implemented?
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 readOnlyRootFilesystem: true to prevent malicious writes to the container's root file system.
Hardening involves dropping unnecessary Linux capabilities, enforcing read-only root filesystems where applicable, and avoiding sharing host namespaces like hostNetwork or hostPID.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
Run all containers as the root user (UID 0) to ensure smooth file permission handling.
Why it's wrong here
Running as root is discouraged because container breakouts then yield full root access on the underlying host namespace.
- ✓
Configure readOnlyRootFilesystem: true to prevent malicious writes to the container's root file system.
Why this is correct
A read-only root filesystem prevents attackers from dropping binaries or modifying system files inside the container.
- ✓
Drop all default Linux capabilities (ALL) and explicitly add back only those strictly required by the application.
Why this is correct
Dropping ALL capabilities removes powerful root-like permissions from container processes, greatly minimizing attack surfaces.
- ✗
Enable hostNetwork and hostPID on all production pods to improve debugging visibility.
Why it's wrong here
Enabling hostNetwork and hostPID compromises isolation, allowing container processes to inspect host traffic and other host processes.
- ✓
Enforce the Pod Security Standards "restricted" profile via namespace labeling.
Why this is correct
The restricted profile enforces security best practices like non-root execution, dropped capabilities, and read-only root filesystems.
About these practice questions
Courseiva writes every KCSA question from scratch — 320 in total, each with an explanation and a wrong-answer breakdown. None are copied from real exams or 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.