Study. uk . com
  1. Home
  2. All questions
  3. Question 21

CKA study material · question 21 of 1000

A RoleBinding in the development namespace references a ClusterRole named secret-reader. Which two statements are correct? Choose two.

  1. The RoleBinding is rejected, because it must reference a Role
  2. The subject can read Secrets in every namespace
  3. The same ClusterRole can be reused by RoleBindings in other namespaces
  4. The subject can read Secrets only in the development namespace
Show the answer

Answer: D. The subject can read Secrets only in the development namespace
C. The same ClusterRole can be reused by RoleBindings in other namespaces

A RoleBinding referencing a ClusterRole grants access only in its own namespace, which is how one definition is reused.

Source: Using RBAC Authorization (Kubernetes) — RoleBinding examples

Challenge yourself on this topic → Study as cards