A pod needs to run with root privileges to perform system-level diagnostics. To prevent this pod from running on other nodes with unrestricted capabilities, you want to enforce that all pods in a namespace do not run as root. Which resource should you implement?

Direct Answer (Verified)Reviewed by Sunny (Senior Cloud Engineer)

Correct Answer: Pod Security Standards (PSS) with 'restricted' or 'baseline' profile

Pod Security Standards (enforced via Pod Security Admission) allow namespaces to be configured to require the 'baseline' or 'restricted' profiles, which automatically block pods th...

Real Exam ScenarioKubernetes Security

A pod needs to run with root privileges to perform system-level diagnostics. To prevent this pod from running on other nodes with unrestricted capabilities, you want to enforce that all pods in a namespace do not run as root. Which resource should you implement?

✓ Correct Answer & ExplanationKubernetes Security

Correct Answer

Pod Security Standards (PSS) with 'restricted' or 'baseline' profile

Why This Answer Is Correct

Pod Security Standards (enforced via Pod Security Admission) allow namespaces to be configured to require the 'baseline' or 'restricted' profiles, which automatically block pods that run as root.

📚 What This Question Tests

This question evaluates your knowledge of Kubernetes Security — a core concept tested in cloud certification exams. Understanding Kubernetes Security is essential for designing scalable, secure, and cost-effective cloud architectures. Mastery of this topic will help you answer scenario-based questions confidently on exam day.