Bird
0
0

Which of the following is the correct YAML key to specify the API group in a Role definition?

easy📝 Syntax Q3 of 15
Kubernetes - RBAC and Security
Which of the following is the correct YAML key to specify the API group in a Role definition?
Aapi-group
BapiGroup
Capi_group
Dapigroup
Step-by-Step Solution
Solution:
  1. Step 1: Recall correct YAML key for API group in RBAC

    The correct key is camelCase 'apiGroup' as per Kubernetes RBAC specs.
  2. Step 2: Verify other options

    Underscores or hyphens are invalid keys in this context.
  3. Final Answer:

    apiGroup -> Option B
  4. Quick Check:

    API group key = apiGroup [OK]
Quick Trick: Use camelCase 'apiGroup' in Role YAML [OK]
Common Mistakes:
  • Using underscores or hyphens in key
  • Misspelling the key
  • Omitting the key entirely

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kubernetes Quizzes