Bird
0
0

What will happen if a user without proper RBAC permissions tries to delete a pod?

medium📝 Predict Output Q5 of 15
Kubernetes - RBAC and Security
What will happen if a user without proper RBAC permissions tries to delete a pod?
AThe pod is restarted automatically
BThe pod is deleted anyway
CThe request is queued until permissions are granted
DThe API server denies the request with a forbidden error
Step-by-Step Solution
Solution:
  1. Step 1: Understand RBAC enforcement on API requests

    The API server checks permissions before allowing actions like pod deletion.
  2. Step 2: Identify outcome of unauthorized action

    If the user lacks permission, the API server returns a forbidden error and denies the request.
  3. Final Answer:

    The API server denies the request with a forbidden error -> Option D
  4. Quick Check:

    Unauthorized delete = forbidden error [OK]
Quick Trick: No permission means API server forbids action [OK]
Common Mistakes:
  • Thinking pod deletes anyway
  • Assuming request queues
  • Confusing with pod restart behavior

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kubernetes Quizzes