Bird
0
0

Given this namespace label:

medium📝 Command Output Q4 of 15
Kubernetes - RBAC and Security
Given this namespace label:
pod-security.kubernetes.io/enforce: baseline

What will happen if a pod tries to run with privileged containers in this namespace?
AThe pod will be allowed to run without restrictions
BThe pod will be denied due to violating the baseline policy
CThe pod will run but with warnings
DThe pod will be automatically converted to restricted mode
Step-by-Step Solution
Solution:
  1. Step 1: Understand baseline enforcement

    The baseline policy restricts privileged containers to prevent elevated permissions.
  2. Step 2: Evaluate pod with privileged container

    Privileged containers violate baseline rules, so the pod will be denied.
  3. Final Answer:

    The pod will be denied due to violating the baseline policy -> Option B
  4. Quick Check:

    Privileged pod in baseline namespace = Denied [OK]
Quick Trick: Baseline blocks privileged containers, denying pod creation [OK]
Common Mistakes:
  • Assuming privileged pods run unrestricted
  • Thinking pod runs with warnings
  • Believing automatic conversion happens

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kubernetes Quizzes