A CCOA analyst is hardening a Kubernetes cluster and wants to prevent any container from running with root privileges or escalating to root inside the pod. Which Kubernetes security control directly enforces this at admission time?
Pod Security Admission restricted profile is an admission-time control that rejects pods violating runAsNonRoot, allowPrivilegeEscalation false, and capability restrictions. It directly prevents containers from running as root or escalating privileges, matching the hardening objective. Because it operates at admission, noncompliant workloads never start, providing deterministic enforcement rather than runtime detection.
Why this answer
Pod Security Admission with the restricted profile enforces security context requirements at admission time, including runAsNonRoot and allowPrivilegeEscalation false, which directly blocks root containers and privilege escalation. NetworkPolicy, audit logging, and resource quotas address network, detection, and resource concerns respectively, none of which prevent a container from running with elevated privileges.
Exam trap
The trap here is assuming that audit logging or network policy prevents privileged containers, when only an admission control such as Pod Security Admission actually rejects noncompliant pod specifications before they run.