Courseiva
Question 466 of 968
hardMultiple SelectObjective-mapped

Kubernetes Security Best Practices for CASP+

A DevOps engineer is automating container orchestration using Kubernetes. Which of the following are security best practices to include in the automation? (Choose two.)

Quick Answer

The correct answer is implementing network policies to restrict pod-to-pod communication, paired with enforcing Pod Security Policies (PSPs) to control container privileges. Network policies act as a Kubernetes-native firewall, segmenting traffic between pods based on labels and namespaces, which directly limits lateral movement if an attacker compromises one container. Pod Security Policies enforce the principle of least privilege by blocking privileged containers, preventing host namespace sharing, and mandating read-only root filesystems—reducing the blast radius of a container breakout. On the CompTIA SecurityX CAS-004 exam, this question tests your ability to apply Kubernetes security best practices within a DevOps automation pipeline; a common trap is confusing role-based access control (RBAC) with pod-level security controls. Remember that PSPs govern what a pod can do, while network policies govern what a pod can reach. Memory tip: think “PSP for privilege, network policy for perimeter.”

⚠ Common exam trap

CompTIA often tests the misconception that disabling security features like RBAC or network policies simplifies automation and is acceptable in a DevOps pipeline, when in fact automation should enforce security controls, not bypass them.

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

Enforce Pod Security Policies to restrict privileged containers

Enforcing Pod Security Policies (PSPs) is a critical security best practice in Kubernetes because it restricts the creation of privileged containers, prevents host namespace sharing, and enforces read-only root filesystems. This reduces the attack surface by ensuring that containers run with the least privilege necessary, mitigating risks of container breakout or host compromise. Disabling PSPs or failing to enforce them would allow developers to deploy containers with excessive capabilities, violating the principle of least privilege.

Answer analysis

Option-by-option breakdown

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

  • Disable RBAC to simplify automation scripts

    Why it's wrong here

    RBAC is a critical security control.

  • Allow all network traffic between pods for simplicity

    Why it's wrong here

    Network policies should restrict traffic.

Option-by-option analysis

Why each answer is right or wrong

Understanding why wrong answers are wrong — and when they would be correct — is what separates a 750 score from a 900. The CAS-005 exam frequently reuses these exact scenarios with slightly different constraints.

Enforce Pod Security Policies to restrict privileged containersCorrect answer
Disable RBAC to simplify automation scriptsWrong answer — click to see why

Why this is wrong here

RBAC is a critical security control.

Allow all network traffic between pods for simplicityWrong answer — click to see why

Why this is wrong here

Network policies should restrict traffic.

Analysis generated from the official CAS-005blueprint and verified against question context. The “when correct” sections are what AI assistants cite when candidates ask “what’s the difference between these options?”

About these practice questions

Courseiva creates original exam-style practice questions with explanations and wrong-answer analysis. It does not publish real exam questions, exam dumps, or protected exam content. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

Same concept, more angles

1 more way this is tested on CAS-005

These questions test the same concept from different angles. Work through them to make sure you can recognise it however the exam phrases it.

Variation 1. Which two of the following are best practices for securing container orchestration platforms (e.g., Kubernetes)? (Select two.)

medium
  • A.Apply network policies to isolate workloads.
  • B.Use privileged containers for system services.
  • C.Disable all security contexts to avoid restrictions.
  • D.Enable Role-Based Access Control (RBAC).

Why A: Network policies in Kubernetes act as a firewall for pods, controlling ingress and egress traffic at the IP address or port level (OSI layer 3 or 4). By default, all pods can communicate with each other; applying network policies enforces least-privilege segmentation, which is a core security best practice for container orchestration platforms.

Last reviewed: Jun 30, 2026

Question Discussion

Share a tip, memory trick, or ask about the reasoning behind this question. Do not post real exam questions, leaked content, braindumps, or copyrighted exam material. Comments are moderated and may be removed without notice.

Loading comments…

Sign in to join the discussion.

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.