100% Latest & Updated CNCF CKA Practice Test Questions, Exam Dumps & Verified Answers!
30 Days Free Updates, Instant Download!
Question 50
In namespace `finance`, a RoleBinding refers to the ClusterRole `review-77`, whose rule grants `patch` on `events` in the core API group (`apiGroups: [""]` in RBAC YAML); its subject is ServiceAccount `platform/metrics-client`. 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 `pods` because it shares the same namespace.
- The binding grants `delete` on `events` because the ServiceAccount can perform `patch`.
- ServiceAccount `platform/metrics-client` automatically gains `patch` on `events` in every namespace.
- The same ServiceAccount has no authorization from this binding to perform `patch` on `events` in `platform`.
Explanation
Correct Answer
D:A RoleBinding grants permissions only in its own namespace `finance`, even if it refers to a ClusterRole. For this authorization request, the target grant namespace is finance, the rule specifies verb patch on events, the subject is platform/metrics-client. RBAC evaluates the verb, resource, group, subject and binding scope together.
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 finance, the rule specifies verb patch on events, the subject is platform/metrics-client. RBAC evaluates the verb, resource, group, subject and binding scope together.
B:Kubernetes does not infer `delete` from `patch`; each verb must be granted explicitly. For this authorization request, the target grant namespace is finance, the rule specifies verb patch on events, the subject is platform/metrics-client. RBAC evaluates the verb, resource, group, subject and binding scope together.
C: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 patch on events, the subject is platform/metrics-client. RBAC evaluates the verb, resource, group, subject and binding scope together.
Question 51
In namespace `alpha`, a RoleBinding refers to the Role `review-78`, whose rule grants `get` on `pods/log` in the core API group (`apiGroups: [""]` in RBAC YAML); its subject is ServiceAccount `sandbox/ci-runner`. The binding is in `alpha`, 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 `get` on `pods/log` in every namespace.
- The binding grants `update` on `pods/log` because the ServiceAccount can perform `get`.
- The binding grants `get` on `events` because it shares the same namespace.
- This binding alone does not grant `update` on `pods/log` in `alpha`.
Explanation
Correct Answer
D:RBAC rules are additive and verb-specific; `update` is absent while `get` is the only listed verb for `pods/log`.
Incorrect Answers
A: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 get on pods/log, the subject is sandbox/ci-runner. RBAC evaluates the verb, resource, group, subject and binding scope together.
B:Kubernetes does not infer `update` from `get`; each verb must be granted explicitly.
C:The rule names `pods/log`, not `events`; matching namespace alone does not add RBAC resources. For this authorization request, the target grant namespace is alpha, the rule specifies verb get on pods/log, the subject is sandbox/ci-runner. RBAC evaluates the verb, resource, group, subject and binding scope together.
Question 52
In namespace `delta`, a RoleBinding refers to the Role `review-79`, whose rule grants `get` on `deployments` in API group `apps`; its subject is ServiceAccount `beta/report-agent`. The binding is in `delta`, and no other RBAC grants exist. Determine the effective access and the boundaries of this grant. Choose TWO statements.
- ServiceAccount `beta/report-agent` can perform `get` on `deployments` in `delta`.
- The same ServiceAccount has no authorization from this binding to perform `get` on `deployments` in `finance`.
- ServiceAccount `beta/report-agent` automatically gains `get` on `deployments` in every namespace.
- The binding grants `get` on `jobs` because it shares the same namespace.
- The binding grants `create` on `deployments` because the ServiceAccount can perform `get`.
Explanation
Correct Answers
A:The RoleBinding in `delta` selects exactly that ServiceAccount identity and the rule grants `get` on `deployments` within this namespace.
B:A RoleBinding grants permissions only in its own namespace `delta`, even if it refers to a ClusterRole. For this authorization request, the target grant namespace is delta, the rule specifies verb get on deployments, the subject is beta/report-agent. RBAC evaluates the verb, resource, group, subject and binding scope together.
Incorrect Answers
C:The shown RoleBinding is scoped to `delta`; a cluster-wide permission on namespaced resources would require a ClusterRoleBinding to an appropriate ClusterRole. For this authorization request, the target grant namespace is delta, the rule specifies verb get on deployments, the subject is beta/report-agent. RBAC evaluates the verb, resource, group, subject and binding scope together.
D:The rule names `deployments`, not `jobs`; matching namespace alone does not add RBAC resources. For this authorization request, the target grant namespace is delta, the rule specifies verb get on deployments, the subject is beta/report-agent. RBAC evaluates the verb, resource, group, subject and binding scope together.
E:Kubernetes does not infer `create` from `get`; each verb must be granted explicitly. For this authorization request, the target grant namespace is delta, the rule specifies verb get on deployments, the subject is beta/report-agent. RBAC evaluates the verb, resource, group, subject and binding scope together.
Question 53
In namespace `gamma`, a RoleBinding refers to the ClusterRole `review-81`, whose rule grants `create` on `pods/exec` in the core API group (`apiGroups: [""]` in RBAC YAML); its subject is ServiceAccount `delta/build-bot`. The binding is in `gamma`, and no other RBAC grants exist. Determine the effective access and the boundaries of this grant. Choose ONE statement.
- The binding grants `create` on `statefulsets` because it shares the same namespace.
- ServiceAccount `delta/build-bot` automatically gains `create` on `pods/exec` in every namespace.
- This binding alone does not grant `patch` on `pods/exec` in `gamma`.
- The binding grants `patch` on `pods/exec` because the ServiceAccount can perform `create`.
Explanation
Correct Answer
C:RBAC rules are additive and verb-specific; `patch` is absent while `create` is the only listed verb for `pods/exec`. For this authorization request, the target grant namespace is gamma, the rule specifies verb create on pods/exec, the subject is delta/build-bot. RBAC evaluates the verb, resource, group, subject and binding scope together.
Incorrect Answers
A:The rule names `pods/exec`, not `statefulsets`; matching namespace alone does not add RBAC resources. For this authorization request, the target grant namespace is gamma, the rule specifies verb create on pods/exec, the subject is delta/build-bot. RBAC evaluates the verb, resource, group, subject and binding scope together.
B: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 create on pods/exec, the subject is delta/build-bot. RBAC evaluates the verb, resource, group, subject and binding scope together.
D:Kubernetes does not infer `patch` from `create`; each verb must be granted explicitly. For this authorization request, the target grant namespace is gamma, the rule specifies verb create on pods/exec, the subject is delta/build-bot. RBAC evaluates the verb, resource, group, subject and binding scope together.
Question 54
A Role rule grants `create` on `deployments` but puts `apiGroups: [""]`, the core group. The intended resource is apps/v1 Deployment. What should be fixed? Choose ONE answer.
- Add the get verb but leave the wrong API group.
- Use the apps API group for the Deployment rule.
- Create the RoleBinding in kube-system.
- Change the resource to Pods and keep the core group.
Explanation
Correct Answer
B:Deployments are resources in API group apps, not the empty core API group.
Incorrect Answers
A:A verb change does not fix an API-group mismatch.
C:A namespace change cannot correct the incorrect API group for Deployments.
D:Pods and Deployments are different API resources with distinct permissions.
Question 55
In namespace `delta`, a RoleBinding refers to the Role `review-84`, whose rule grants `create` on `events` in the core API group (`apiGroups: [""]` in RBAC YAML); its subject is ServiceAccount `gamma/nightly-job`. The binding is in `delta`, and no other RBAC grants exist. Determine the effective access and the boundaries of this grant. Choose ONE statement.
- This binding alone does not grant `update` on `events` in `delta`.
- The binding grants `update` on `events` because the ServiceAccount can perform `create`.
- The binding grants `create` on `pods` because it shares the same namespace.
- ServiceAccount `gamma/nightly-job` automatically gains `create` on `events` in every namespace.
Explanation
Correct Answer
A:RBAC rules are additive and verb-specific; `update` is absent while `create` is the only listed verb for `events`. For this authorization request, the target grant namespace is delta, the rule specifies verb create on events, the subject is gamma/nightly-job. RBAC evaluates the verb, resource, group, subject and binding scope together.
Incorrect Answers
B:Kubernetes does not infer `update` from `create`; each verb must be granted explicitly. For this authorization request, the target grant namespace is delta, the rule specifies verb create on events, the subject is gamma/nightly-job. RBAC evaluates the verb, resource, group, subject and binding scope together.
C:The rule names `events`, not `pods`; matching namespace alone does not add RBAC resources. For this authorization request, the target grant namespace is delta, the rule specifies verb create on events, the subject is gamma/nightly-job. RBAC evaluates the verb, resource, group, subject and binding scope together.
D:The shown RoleBinding is scoped to `delta`; a cluster-wide permission on namespaced resources would require a ClusterRoleBinding to an appropriate ClusterRole. For this authorization request, the target grant namespace is delta, the rule specifies verb create on events, the subject is gamma/nightly-job. RBAC evaluates the verb, resource, group, subject and binding scope together.
Question 56
A release team wants RoleBinding frontend-view to use a new Role while keeping the same subjects. A patch to roleRef is rejected as immutable. What supported operation changes the target role? Choose ONE answer.
- Patch roleRef using --force and no recreation.
- Rename the existing Role and assume the binding follows it.
- Replace the binding by deleting and recreating it with the desired roleRef.
- Grant create on ConfigMaps to mutate roleRef.
Explanation
Correct Answer
C:RoleBinding roleRef is immutable, so the binding must be recreated to change the referenced role.
Incorrect Answers
A:--force does not make a logically immutable field editable in place.
B:A RoleBinding stores a name reference and does not automatically follow a rename.
D:A different API permission does not remove immutability.
Question 57
In namespace `platform`, a RoleBinding refers to the Role `review-88`, whose rule grants `get` on `pods/log` in the core API group (`apiGroups: [""]` in RBAC YAML); its subject is ServiceAccount `observability/ops-console`. The binding is in `platform`, and no other RBAC grants exist. Determine the effective access and the boundaries of this grant. Choose ONE statement.
- ServiceAccount `observability/ops-console` can perform `get` on `pods/log` in `platform`.
- The binding grants `delete` on `pods/log` because the ServiceAccount can perform `get`.
- The binding grants `get` on `events` because it shares the same namespace.
- ServiceAccount `observability/ops-console` automatically gains `get` on `pods/log` in every namespace.
Explanation
Correct Answer
A:The RoleBinding in `platform` selects exactly that ServiceAccount identity and the rule grants `get` on `pods/log` within this namespace.
Incorrect Answers
B:Kubernetes does not infer `delete` 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/log, the subject is observability/ops-console. RBAC evaluates the verb, resource, group, subject and binding scope together.
C:The rule names `pods/log`, not `events`; 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/log, the subject is observability/ops-console. 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/log, the subject is observability/ops-console. RBAC evaluates the verb, resource, group, subject and binding scope together.
Question 58
In namespace `delta`, a RoleBinding refers to the ClusterRole `review-89`, 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 `delta`, and no other RBAC grants exist. Determine the effective access and the boundaries of this grant. Choose TWO statements.
- ServiceAccount `delta/build-bot` automatically gains `patch` on `secrets` in every namespace.
- The binding grants `patch` on `pods/log` because it shares the same namespace.
- The binding grants `delete` on `secrets` because the ServiceAccount can perform `patch`.
- This binding alone does not grant `delete` on `secrets` in `delta`.
- The same ServiceAccount has no authorization from this binding to perform `patch` on `secrets` in `observability`.
Explanation
Correct Answers
D:RBAC rules are additive and verb-specific; `delete` is absent while `patch` is the only listed verb for `secrets`.
E:A RoleBinding grants permissions only in its own namespace `delta`, even if it refers to a ClusterRole. For this authorization request, the target grant namespace is delta, 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:The shown RoleBinding is scoped to `delta`; a cluster-wide permission on namespaced resources would require a ClusterRoleBinding to an appropriate ClusterRole. For this authorization request, the target grant namespace is delta, 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 delta, 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:Kubernetes does not infer `delete` from `patch`; each verb must be granted explicitly. For this authorization request, the target grant namespace is delta, 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 59
In namespace `observability`, a RoleBinding refers to the Role `review-90`, 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 `observability`, and no other RBAC grants exist. Determine the effective access and the boundaries of this grant. Choose THREE statements.
- This binding alone does not grant `update` on `configmaps` in `observability`.
- ServiceAccount `alpha/audit-reader` can perform `create` on `configmaps` in `observability`.
- The binding grants `update` on `configmaps` because the ServiceAccount can perform `create`.
- The same ServiceAccount has no authorization from this binding to perform `create` on `configmaps` in `beta`.
- ServiceAccount `alpha/audit-reader` automatically gains `create` on `configmaps` in every namespace.
- The binding grants `create` on `deployments` because it shares the same namespace.
Explanation
Correct Answers
A:RBAC rules are additive and verb-specific; `update` is absent while `create` is the only listed verb for `configmaps`.
B:The RoleBinding in `observability` selects exactly that ServiceAccount identity and the rule grants `create` on `configmaps` within this namespace.
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 create on configmaps, the subject is alpha/audit-reader. RBAC evaluates the verb, resource, group, subject and binding scope together.
Incorrect Answers
C:Kubernetes does not infer `update` from `create`; each verb must be granted explicitly. For this authorization request, the target grant namespace is observability, the rule specifies verb create on configmaps, the subject is alpha/audit-reader. RBAC evaluates the verb, resource, group, subject and binding scope together.
E: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 create on configmaps, the subject is alpha/audit-reader. RBAC evaluates the verb, resource, group, subject and binding scope together.
F:The rule names `configmaps`, not `deployments`; matching namespace alone does not add RBAC resources. For this authorization request, the target grant namespace is observability, 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 60
In namespace `sandbox`, a RoleBinding refers to the Role `review-92`, whose rule grants `list` on `jobs` in API group `batch`; its subject is ServiceAccount `gamma/nightly-job`. 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 `watch` on `jobs` because the ServiceAccount can perform `list`.
- ServiceAccount `gamma/nightly-job` automatically gains `list` on `jobs` in every namespace.
- The binding grants `list` on `pods/exec` because it shares the same namespace.
- The same ServiceAccount has no authorization from this binding to perform `list` on `jobs` in `platform`.
Explanation
Correct Answer
D: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 jobs, the subject is gamma/nightly-job. RBAC evaluates the verb, resource, group, subject and binding scope together.
Incorrect Answers
A: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 jobs, the subject is gamma/nightly-job. 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 list on jobs, the subject is gamma/nightly-job. 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 sandbox, the rule specifies verb list on jobs, the subject is gamma/nightly-job. RBAC evaluates the verb, resource, group, subject and binding scope together.
Certified Kubernetes Administrator (CKA) Practice Tests