Bird
0
0

A user tries to create a service in namespace dev but receives a permission denied error. What is the most probable reason?

medium📝 Troubleshoot Q7 of 15
Kubernetes - Namespaces
A user tries to create a service in namespace dev but receives a permission denied error. What is the most probable reason?
AThe namespace dev does not exist
BServices cannot be created in namespaces
CThe service name is already used in another namespace
DThe user lacks RBAC permissions for the dev namespace
Step-by-Step Solution
Solution:
  1. Step 1: Understand RBAC and namespaces

    Namespaces isolate resources and access is controlled by RBAC policies per namespace.
  2. Step 2: Identify permission error cause

    Permission denied usually means the user is not authorized in that namespace.
  3. Final Answer:

    The user lacks RBAC permissions for the dev namespace -> Option D
  4. Quick Check:

    RBAC controls namespace access = C [OK]
Quick Trick: Check RBAC roles for namespace access issues [OK]
Common Mistakes:
  • Thinking services can't be created in namespaces
  • Assuming namespace does not exist without checking
  • Confusing service name conflicts across namespaces

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kubernetes Quizzes