Chapter 8
- Correct answer: (A) False. RBAC is the preferred method for authorizing resources.
- Correct answer: (C) apiGroups, resources, verbs.
- Correct answer: (A) Kubernetes API reference. This is an invaluable tool that will list every URL for an API. This can be used to determine the resource.
- Correct answer: (B) Define a ClusterRole and reference it in each namespace as a RoleBinding. This way, changes to the ClusterRole are reflected whenever it is referenced.
- Correct answer: (D) Whenever possible, RoleBindings and ClusterRoleBindings should reference groups. Referencing users directly is an anti-pattern that is difficult to maintain, audit, and debug.
- Correct answer: (B) False. RBAC requires all rights to be enumerated.
- Correct answer: (B) False. Custom authorization webhooks are also available.