100% Latest & Updated CNCF CKA Practice Test Questions, Exam Dumps & Verified Answers!
30 Days Free Updates, Instant Download!
Question 70
In namespace `sandbox`, a RoleBinding refers to the Role `review-110`, whose rule grants `list` on `services` in the core API group (`apiGroups: [""]` in RBAC YAML); its subject is ServiceAccount `sandbox/ci-runner`. The binding is in `sandbox`, and no other RBAC grants exist. Determine the effective access and the boundaries of this grant. Choose THREE statements.
- The same ServiceAccount has no authorization from this binding to perform `list` on `services` in `finance`.
- The binding grants `list` on `secrets` because it shares the same namespace.
- ServiceAccount `sandbox/ci-runner` can perform `list` on `services` in `sandbox`.
- This binding alone does not grant `watch` on `services` in `sandbox`.
- The binding grants `watch` on `services` because the ServiceAccount can perform `list`.
- ServiceAccount `sandbox/ci-runner` automatically gains `list` on `services` in every namespace.
Explanation
Correct Answers
A:A RoleBinding grants permissions only in its own namespace `sandbox`, even if it refers to a ClusterRole. For this authorization request, the target grant namespace is sandbox, the rule specifies verb list on services, the subject is sandbox/ci-runner. RBAC evaluates the verb, resource, group, subject and binding scope together.
C:The RoleBinding in `sandbox` selects exactly that ServiceAccount identity and the rule grants `list` on `services` within this namespace.
D:RBAC rules are additive and verb-specific; `watch` is absent while `list` is the only listed verb for `services`.
Incorrect Answers
B:The rule names `services`, not `secrets`; matching namespace alone does not add RBAC resources. For this authorization request, the target grant namespace is sandbox, the rule specifies verb list on services, the subject is sandbox/ci-runner. RBAC evaluates the verb, resource, group, subject and binding scope together.
E:Kubernetes does not infer `watch` from `list`; each verb must be granted explicitly. For this authorization request, the target grant namespace is sandbox, the rule specifies verb list on services, the subject is sandbox/ci-runner. RBAC evaluates the verb, resource, group, subject and binding scope together.
F:The shown RoleBinding is scoped to `sandbox`; a cluster-wide permission on namespaced resources would require a ClusterRoleBinding to an appropriate ClusterRole. For this authorization request, the target grant namespace is sandbox, the rule specifies verb list on services, the subject is sandbox/ci-runner. RBAC evaluates the verb, resource, group, subject and binding scope together.
Question 71
An identity may update Roles in namespace staging, but tries to add `*` verbs it does not already hold. Kubernetes denies the attempted privilege escalation. Which authorization would be relevant to delegating broader Roles safely? Choose ONE answer.
- A larger CPU limit on the operator Pod.
- Get access to Pods in staging.
- A specifically reviewed `escalate` permission on Roles.
- List access to Secrets in another namespace.
Explanation
Correct Answer
C:The RBAC escalation safeguard normally prevents a principal granting permissions it does not possess unless escalation is expressly authorized.
Incorrect Answers
A:Resource limits do not confer API authorization to escalate Roles.
B:Reading Pods does not bypass role privilege escalation validation.
D:Unrelated resource discovery cannot authorize Role escalation.
Question 72
In namespace `observability`, a RoleBinding refers to the ClusterRole `review-113`, whose rule grants `patch` on `secrets` in the core API group (`apiGroups: [""]` in RBAC YAML); its subject is ServiceAccount `delta/build-bot`. The binding is in `observability`, and no other RBAC grants exist. Determine the effective access and the boundaries of this grant. Choose ONE statement.
- The binding grants `delete` on `secrets` because the ServiceAccount can perform `patch`.
- The binding grants `patch` on `pods/log` because it shares the same namespace.
- ServiceAccount `delta/build-bot` automatically gains `patch` on `secrets` in every namespace.
- The same ServiceAccount has no authorization from this binding to perform `patch` on `secrets` in `platform`.
Explanation
Correct Answer
D:A RoleBinding grants permissions only in its own namespace `observability`, even if it refers to a ClusterRole. For this authorization request, the target grant namespace is observability, the rule specifies verb patch on secrets, the subject is delta/build-bot. RBAC evaluates the verb, resource, group, subject and binding scope together.
Incorrect Answers
A:Kubernetes does not infer `delete` from `patch`; each verb must be granted explicitly. For this authorization request, the target grant namespace is observability, the rule specifies verb patch on secrets, the subject is delta/build-bot. RBAC evaluates the verb, resource, group, subject and binding scope together.
B:The rule names `secrets`, not `pods/log`; matching namespace alone does not add RBAC resources. For this authorization request, the target grant namespace is observability, the rule specifies verb patch on secrets, the subject is delta/build-bot. RBAC evaluates the verb, resource, group, subject and binding scope together.
C:The shown RoleBinding is scoped to `observability`; a cluster-wide permission on namespaced resources would require a ClusterRoleBinding to an appropriate ClusterRole. For this authorization request, the target grant namespace is observability, the rule specifies verb patch on secrets, the subject is delta/build-bot. RBAC evaluates the verb, resource, group, subject and binding scope together.
Question 73
In namespace `beta`, a RoleBinding refers to the Role `review-114`, whose rule grants `create` on `configmaps` in the core API group (`apiGroups: [""]` in RBAC YAML); its subject is ServiceAccount `alpha/audit-reader`. The binding is in `beta`, and no other RBAC grants exist. Determine the effective access and the boundaries of this grant. Choose ONE statement.
- The binding grants `update` on `configmaps` because the ServiceAccount can perform `create`.
- ServiceAccount `alpha/audit-reader` automatically gains `create` on `configmaps` in every namespace.
- This binding alone does not grant `update` on `configmaps` in `beta`.
- The binding grants `create` on `deployments` because it shares the same namespace.
Explanation
Correct Answer
C:RBAC rules are additive and verb-specific; `update` is absent while `create` is the only listed verb for `configmaps`. For this authorization request, the target grant namespace is beta, the rule specifies verb create on configmaps, the subject is alpha/audit-reader. RBAC evaluates the verb, resource, group, subject and binding scope together.
Incorrect Answers
A:Kubernetes does not infer `update` from `create`; each verb must be granted explicitly. For this authorization request, the target grant namespace is beta, the rule specifies verb create on configmaps, the subject is alpha/audit-reader. RBAC evaluates the verb, resource, group, subject and binding scope together.
B:The shown RoleBinding is scoped to `beta`; a cluster-wide permission on namespaced resources would require a ClusterRoleBinding to an appropriate ClusterRole. For this authorization request, the target grant namespace is beta, the rule specifies verb create on configmaps, the subject is alpha/audit-reader. RBAC evaluates the verb, resource, group, subject and binding scope together.
D:The rule names `configmaps`, not `deployments`; matching namespace alone does not add RBAC resources. For this authorization request, the target grant namespace is beta, the rule specifies verb create on configmaps, the subject is alpha/audit-reader. RBAC evaluates the verb, resource, group, subject and binding scope together.
Question 74
In namespace `sandbox`, a RoleBinding refers to the Role `review-115`, whose rule grants `get` on `events` in the core API group (`apiGroups: [""]` in RBAC YAML); its subject is ServiceAccount `finance/deploy-agent`. The binding is in `sandbox`, and no other RBAC grants exist. Determine the effective access and the boundaries of this grant. Choose ONE statement.
- The binding grants `get` on `pods` because it shares the same namespace.
- ServiceAccount `finance/deploy-agent` automatically gains `get` on `events` in every namespace.
- ServiceAccount `finance/deploy-agent` can perform `get` on `events` in `sandbox`.
- The binding grants `create` on `events` because the ServiceAccount can perform `get`.
Explanation
Correct Answer
C:The RoleBinding in `sandbox` selects exactly that ServiceAccount identity and the rule grants `get` on `events` within this namespace.
Incorrect Answers
A:The rule names `events`, not `pods`; matching namespace alone does not add RBAC resources. For this authorization request, the target grant namespace is sandbox, the rule specifies verb get on events, the subject is finance/deploy-agent. RBAC evaluates the verb, resource, group, subject and binding scope together.
B:The shown RoleBinding is scoped to `sandbox`; a cluster-wide permission on namespaced resources would require a ClusterRoleBinding to an appropriate ClusterRole. For this authorization request, the target grant namespace is sandbox, the rule specifies verb get on events, the subject is finance/deploy-agent. RBAC evaluates the verb, resource, group, subject and binding scope together.
D:Kubernetes does not infer `create` from `get`; each verb must be granted explicitly. For this authorization request, the target grant namespace is sandbox, the rule specifies verb get on events, the subject is finance/deploy-agent. RBAC evaluates the verb, resource, group, subject and binding scope together.
Question 75
In namespace `gamma`, a RoleBinding refers to the ClusterRole `review-117`, whose rule grants `watch` on `services` in the core API group (`apiGroups: [""]` in RBAC YAML); its subject is ServiceAccount `platform/metrics-client`. The binding is in `gamma`, and no other RBAC grants exist. Determine the effective access and the boundaries of this grant. Choose ONE statement.
- ServiceAccount `platform/metrics-client` automatically gains `watch` on `services` in every namespace.
- This binding alone does not grant `patch` on `services` in `gamma`.
- The binding grants `watch` on `secrets` because it shares the same namespace.
- The binding grants `patch` on `services` because the ServiceAccount can perform `watch`.
Explanation
Correct Answer
B:RBAC rules are additive and verb-specific; `patch` is absent while `watch` is the only listed verb for `services`. For this authorization request, the target grant namespace is gamma, the rule specifies verb watch on services, the subject is platform/metrics-client. RBAC evaluates the verb, resource, group, subject and binding scope together.
Incorrect Answers
A:The shown RoleBinding is scoped to `gamma`; a cluster-wide permission on namespaced resources would require a ClusterRoleBinding to an appropriate ClusterRole. For this authorization request, the target grant namespace is gamma, the rule specifies verb watch on services, the subject is platform/metrics-client. RBAC evaluates the verb, resource, group, subject and binding scope together.
C:The rule names `services`, not `secrets`; matching namespace alone does not add RBAC resources. For this authorization request, the target grant namespace is gamma, the rule specifies verb watch on services, the subject is platform/metrics-client. RBAC evaluates the verb, resource, group, subject and binding scope together.
D:Kubernetes does not infer `patch` from `watch`; each verb must be granted explicitly. For this authorization request, the target grant namespace is gamma, the rule specifies verb watch on services, the subject is platform/metrics-client. RBAC evaluates the verb, resource, group, subject and binding scope together.
Question 76
In namespace `finance`, a RoleBinding refers to the Role `review-118`, whose rule grants `update` on `statefulsets` in API group `apps`; its subject is ServiceAccount `sandbox/ci-runner`. The binding is in `finance`, and no other RBAC grants exist. Determine the effective access and the boundaries of this grant. Choose ONE statement.
- ServiceAccount `sandbox/ci-runner` automatically gains `update` on `statefulsets` in every namespace.
- ServiceAccount `sandbox/ci-runner` can perform `update` on `statefulsets` in `finance`.
- The binding grants `update` on `configmaps` because it shares the same namespace.
- The binding grants `get` on `statefulsets` because the ServiceAccount can perform `update`.
Explanation
Correct Answer
B:The RoleBinding in `finance` selects exactly that ServiceAccount identity and the rule grants `update` on `statefulsets` within this namespace.
Incorrect Answers
A:The shown RoleBinding is scoped to `finance`; a cluster-wide permission on namespaced resources would require a ClusterRoleBinding to an appropriate ClusterRole. For this authorization request, the target grant namespace is finance, the rule specifies verb update on statefulsets, the subject is sandbox/ci-runner. RBAC evaluates the verb, resource, group, subject and binding scope together.
C:The rule names `statefulsets`, not `configmaps`; matching namespace alone does not add RBAC resources. For this authorization request, the target grant namespace is finance, the rule specifies verb update on statefulsets, the subject is sandbox/ci-runner. RBAC evaluates the verb, resource, group, subject and binding scope together.
D:Kubernetes does not infer `get` from `update`; each verb must be granted explicitly. For this authorization request, the target grant namespace is finance, the rule specifies verb update on statefulsets, the subject is sandbox/ci-runner. RBAC evaluates the verb, resource, group, subject and binding scope together.
Question 77
A RoleBinding in audit attaches a Role granting get on Secret `checksum` via `resourceNames`. The subject is user Noor. Choose THREE accurate statements about this grant. Choose THREE answers.
- Noor may change the RoleBinding roleRef by using get permission.
- Noor may delete checksum.
- Noor may list every Secret in audit.
- Noor cannot use this rule to GET finance/checksum.
- Noor cannot use this rule to GET audit/other-secret.
- Noor may GET audit/checksum.
Explanation
Correct Answers
D:A RoleBinding gives no rights in an unrelated namespace.
E:resourceNames restricts the allowed object name.
F:The named Secret, verb and RoleBinding namespace match.
Incorrect Answers
A:Secret read permission has no bearing on RoleBinding immutability.
B:Delete is a separate verb not conferred by get.
C:A get grant is not an unrestricted list grant.
Question 78
In namespace `platform`, a RoleBinding refers to the ClusterRole `review-121`, whose rule grants `get` on `pods` in the core API group (`apiGroups: [""]` in RBAC YAML); its subject is ServiceAccount `delta/build-bot`. The binding is in `platform`, and no other RBAC grants exist. Determine the effective access and the boundaries of this grant. Choose ONE statement.
- The binding grants `create` on `pods` because the ServiceAccount can perform `get`.
- ServiceAccount `delta/build-bot` can perform `get` on `pods` in `platform`.
- The binding grants `get` on `services` because it shares the same namespace.
- ServiceAccount `delta/build-bot` automatically gains `get` on `pods` in every namespace.
Explanation
Correct Answer
B:The RoleBinding in `platform` selects exactly that ServiceAccount identity and the rule grants `get` on `pods` within this namespace.
Incorrect Answers
A:Kubernetes does not infer `create` from `get`; each verb must be granted explicitly. For this authorization request, the target grant namespace is platform, the rule specifies verb get on pods, the subject is delta/build-bot. RBAC evaluates the verb, resource, group, subject and binding scope together.
C:The rule names `pods`, not `services`; matching namespace alone does not add RBAC resources. For this authorization request, the target grant namespace is platform, the rule specifies verb get on pods, the subject is delta/build-bot. RBAC evaluates the verb, resource, group, subject and binding scope together.
D:The shown RoleBinding is scoped to `platform`; a cluster-wide permission on namespaced resources would require a ClusterRoleBinding to an appropriate ClusterRole. For this authorization request, the target grant namespace is platform, the rule specifies verb get on pods, the subject is delta/build-bot. RBAC evaluates the verb, resource, group, subject and binding scope together.
Question 79
In namespace `finance`, a RoleBinding refers to the Role `review-123`, whose rule grants `watch` on `jobs` in API group `batch`; its subject is ServiceAccount `finance/deploy-agent`. The binding is in `finance`, and no other RBAC grants exist. Determine the effective access and the boundaries of this grant. Choose ONE statement.
- The binding grants `patch` on `jobs` because the ServiceAccount can perform `watch`.
- This binding alone does not grant `patch` on `jobs` in `finance`.
- The binding grants `watch` on `pods/exec` because it shares the same namespace.
- ServiceAccount `finance/deploy-agent` automatically gains `watch` on `jobs` in every namespace.
Explanation
Correct Answer
B:RBAC rules are additive and verb-specific; `patch` is absent while `watch` is the only listed verb for `jobs`.
Incorrect Answers
A:Kubernetes does not infer `patch` from `watch`; each verb must be granted explicitly. For this authorization request, the target grant namespace is finance, the rule specifies verb watch on jobs, the subject is finance/deploy-agent. RBAC evaluates the verb, resource, group, subject and binding scope together.
C:The rule names `jobs`, not `pods/exec`; matching namespace alone does not add RBAC resources. For this authorization request, the target grant namespace is finance, the rule specifies verb watch on jobs, the subject is finance/deploy-agent. RBAC evaluates the verb, resource, group, subject and binding scope together.
D:The shown RoleBinding is scoped to `finance`; a cluster-wide permission on namespaced resources would require a ClusterRoleBinding to an appropriate ClusterRole. For this authorization request, the target grant namespace is finance, the rule specifies verb watch on jobs, the subject is finance/deploy-agent. RBAC evaluates the verb, resource, group, subject and binding scope together.
Question 80
In namespace `alpha`, a RoleBinding refers to the Role `review-124`, whose rule grants `update` on `services` in the core API group (`apiGroups: [""]` in RBAC YAML); its subject is ServiceAccount `gamma/nightly-job`. The binding is in `alpha`, and no other RBAC grants exist. Determine the effective access and the boundaries of this grant. Choose ONE statement.
- The binding grants `get` on `services` because the ServiceAccount can perform `update`.
- ServiceAccount `gamma/nightly-job` can perform `update` on `services` in `alpha`.
- ServiceAccount `gamma/nightly-job` automatically gains `update` on `services` in every namespace.
- The binding grants `update` on `secrets` because it shares the same namespace.
Explanation
Correct Answer
B:The RoleBinding in `alpha` selects exactly that ServiceAccount identity and the rule grants `update` on `services` within this namespace.
Incorrect Answers
A:Kubernetes does not infer `get` from `update`; each verb must be granted explicitly. For this authorization request, the target grant namespace is alpha, the rule specifies verb update on services, the subject is gamma/nightly-job. RBAC evaluates the verb, resource, group, subject and binding scope together.
C:The shown RoleBinding is scoped to `alpha`; a cluster-wide permission on namespaced resources would require a ClusterRoleBinding to an appropriate ClusterRole. For this authorization request, the target grant namespace is alpha, the rule specifies verb update on services, the subject is gamma/nightly-job. RBAC evaluates the verb, resource, group, subject and binding scope together.
D:The rule names `services`, not `secrets`; matching namespace alone does not add RBAC resources. For this authorization request, the target grant namespace is alpha, the rule specifies verb update on services, the subject is gamma/nightly-job. RBAC evaluates the verb, resource, group, subject and binding scope together.
Certified Kubernetes Administrator (CKA) Practice Tests