Interview › Security & DevSecOps
What are Kubernetes Pod Security Standards (privileged, baseline, restricted)? [Advanced]
Answer
Kubernetes Pod Security Standards define three policy levels: privileged, baseline, and restricted. Privileged is highly permissive, baseline prevents known privilege escalation patterns while allowing common workloads, and restricted applies stronger hardening suitable for security-sensitive workloads.
Technical explanation
Pod Security Admission can enforce these standards at namespace level using labels for enforce, audit, and warn modes.
Baseline is often a practical minimum for general workloads.
Restricted requires controls such as non-root execution, seccomp, dropped capabilities, and no privilege escalation.
Hands-on example
Hands-on:
kubectl label ns prod pod-security.kubernetes.io/enforce=restricted
kubectl label ns prod pod-security.kubernetes.io/audit=restricted
kubectl label ns prod pod-security.kubernetes.io/warn=restrictedThen test a privileged pod and confirm the API server rejects it.
Check how well your resume matches the role with our free resume checker— match score, ATS check, and the skills you're missing.
More Security & DevSecOps interview questions
- How do you prevent privilege escalation in a Kubernetes cluster? [Advanced]
- What are Linux capabilities, and why drop them in containers? [Advanced]
- What is the difference between authentication and authorization? [Advanced]
- What is certificate management, and how do tools like cert-manager help? [Advanced]
- What is the difference between encoding, encryption, and hashing? [Advanced]
- Why do you hash and salt passwords rather than encrypt them? [Advanced]
- What is the difference between symmetric and asymmetric encryption? [Advanced]
- What is encryption at rest versus in transit, and how do you ensure both? [Advanced]