Courseiva
hardMultiple ChoiceObjective-mapped

CAS-004 Practice Question: An organization's containerized application is…

An organization's containerized application is deployed on Kubernetes. The security team wants to enforce that containers run with the least privilege and cannot access the host file system. Which Kubernetes security mechanism should be configured?

⚠ Common exam trap

Test-takers frequently confuse Kubernetes RBAC (which controls API access) with container-level security contexts (which control what the container process can do), leading them to select Option B instead of D.

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

Pod Security Policy (PSP) with readOnlyRootFilesystem and runAsNonRoot

Pod Security Policy (PSP) is a Kubernetes admission controller that enforces security constraints on pods, such as preventing access to the host file system (via `readOnlyRootFilesystem`) and requiring containers to run as a non-root user (`runAsNonRoot`). This directly aligns with the least privilege principle and the requirement to block host file system access.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • Secrets management with Vault

    Why it's wrong here

    Secrets management handles credentials, not container runtime security.

  • Role-based access control (RBAC) for service accounts

    Why it's wrong here

    RBAC governs Kubernetes API permissions, not container behavior.

  • Network policies to restrict egress traffic

    Why it's wrong here

    Network policies filter traffic but do not affect container file system access.

  • Pod Security Policy (PSP) with readOnlyRootFilesystem and runAsNonRoot

    Why this is correct

    PSP enforces security contexts; readOnlyRootFilesystem prevents writes to host file system.

About these practice questions

One of 968 original CAS-005 practice questions on Courseiva, each with a full explanation and wrong-answer analysis — not exam dumps or protected exam content. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

JA

Written by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

This CAS-005 practice question is part of Courseiva's free CompTIA 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 CAS-005 exam.