100% Latest & Updated CNCF CKA Practice Test Questions, Exam Dumps & Verified Answers!
30 Days Free Updates, Instant Download!
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.
Question 61
In namespace `finance`, a RoleBinding refers to the Role `review-95`, whose rule grants `get` on `pods/log` in the core API group (`apiGroups: [""]` in RBAC YAML); its subject is ServiceAccount `beta/report-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 same ServiceAccount has no authorization from this binding to perform `get` on `pods/log` in `alpha`.
- The binding grants `delete` on `pods/log` because the ServiceAccount can perform `get`.
- ServiceAccount `beta/report-agent` automatically gains `get` on `pods/log` in every namespace.
- The binding grants `get` on `events` because it shares the same namespace.
Explanation
Correct Answer
A: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 get on pods/log, the subject is beta/report-agent. RBAC evaluates the verb, resource, group, subject and binding scope together.
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 finance, the rule specifies verb get on pods/log, the subject is beta/report-agent. 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 get on pods/log, the subject is beta/report-agent. RBAC evaluates the verb, resource, group, subject and binding scope together.
D:The rule names `pods/log`, not `events`; matching namespace alone does not add RBAC resources. For this authorization request, the target grant namespace is finance, the rule specifies verb get on pods/log, the subject is beta/report-agent. RBAC evaluates the verb, resource, group, subject and binding scope together.
Question 62
In namespace `alpha`, a RoleBinding refers to the Role `review-96`, whose rule grants `create` on `deployments` in API group `apps`; its subject is ServiceAccount `observability/ops-console`. 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 `update` on `deployments` because the ServiceAccount can perform `create`.
- This binding alone does not grant `update` on `deployments` in `alpha`.
- The binding grants `create` on `jobs` because it shares the same namespace.
- ServiceAccount `observability/ops-console` automatically gains `create` on `deployments` in every namespace.
Explanation
Correct Answer
B:RBAC rules are additive and verb-specific; `update` is absent while `create` is the only listed verb for `deployments`. For this authorization request, the target grant namespace is alpha, the rule specifies verb create on deployments, the subject is observability/ops-console. 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 alpha, the rule specifies verb create on deployments, the subject is observability/ops-console. RBAC evaluates the verb, resource, group, subject and binding scope together.
C:The rule names `deployments`, not `jobs`; matching namespace alone does not add RBAC resources. For this authorization request, the target grant namespace is alpha, the rule specifies verb create on deployments, the subject is observability/ops-console. RBAC evaluates the verb, resource, group, subject and binding scope together.
D: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 create on deployments, the subject is observability/ops-console. RBAC evaluates the verb, resource, group, subject and binding scope together.
Question 63
In namespace `sandbox`, a RoleBinding refers to the ClusterRole `review-97`, 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 `sandbox`, and no other RBAC grants exist. Determine the effective access and the boundaries of this grant. Choose ONE statement.
- ServiceAccount `delta/build-bot` automatically gains `get` on `pods` in every namespace.
- ServiceAccount `delta/build-bot` can perform `get` on `pods` in `sandbox`.
- The binding grants `get` on `services` because it shares the same namespace.
- The binding grants `create` on `pods` because the ServiceAccount can perform `get`.
Explanation
Correct Answer
B:The RoleBinding in `sandbox` selects exactly that ServiceAccount identity and the rule grants `get` on `pods` within this namespace.
Incorrect Answers
A: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 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 sandbox, 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: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 pods, the subject is delta/build-bot. RBAC evaluates the verb, resource, group, subject and binding scope together.
Question 64
In namespace `platform`, a RoleBinding refers to the Role `review-98`, whose rule grants `create` on `pods/exec` in the core API group (`apiGroups: [""]` in RBAC YAML); its subject is ServiceAccount `alpha/audit-reader`. 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 same ServiceAccount has no authorization from this binding to perform `create` on `pods/exec` in `gamma`.
- The binding grants `create` on `statefulsets` because it shares the same namespace.
- ServiceAccount `alpha/audit-reader` automatically gains `create` on `pods/exec` in every namespace.
- The binding grants `watch` on `pods/exec` because the ServiceAccount can perform `create`.
Explanation
Correct Answer
A:A RoleBinding grants permissions only in its own namespace `platform`, even if it refers to a ClusterRole. For this authorization request, the target grant namespace is platform, the rule specifies verb create on pods/exec, the subject is alpha/audit-reader. RBAC evaluates the verb, resource, group, subject and binding scope together.
Incorrect Answers
B:The rule names `pods/exec`, not `statefulsets`; matching namespace alone does not add RBAC resources. For this authorization request, the target grant namespace is platform, the rule specifies verb create on pods/exec, the subject is alpha/audit-reader. RBAC evaluates the verb, resource, group, subject and binding scope together.
C: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 create on pods/exec, the subject is alpha/audit-reader. RBAC evaluates the verb, resource, group, subject and binding scope together.
D:Kubernetes does not infer `watch` from `create`; each verb must be granted explicitly. For this authorization request, the target grant namespace is platform, the rule specifies verb create on pods/exec, the subject is alpha/audit-reader. RBAC evaluates the verb, resource, group, subject and binding scope together.
Question 65
In namespace `finance`, a RoleBinding refers to the Role `review-100`, 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 `finance`, and no other RBAC grants exist. Determine the effective access and the boundaries of this grant. Choose THREE statements.
- The binding grants `update` on `secrets` because it shares the same namespace.
- ServiceAccount `gamma/nightly-job` can perform `update` on `services` in `finance`.
- This binding alone does not grant `get` on `services` in `finance`.
- ServiceAccount `gamma/nightly-job` automatically gains `update` on `services` in every namespace.
- The binding grants `get` on `services` because the ServiceAccount can perform `update`.
- The same ServiceAccount has no authorization from this binding to perform `update` on `services` in `alpha`.
Explanation
Correct Answers
B:The RoleBinding in `finance` selects exactly that ServiceAccount identity and the rule grants `update` on `services` within this namespace.
C:RBAC rules are additive and verb-specific; `get` is absent while `update` is the only listed verb for `services`.
F: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 update on services, the subject is gamma/nightly-job. RBAC evaluates the verb, resource, group, subject and binding scope together.
Incorrect Answers
A:The rule names `services`, not `secrets`; matching namespace alone does not add RBAC resources. For this authorization request, the target grant namespace is finance, 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 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 services, the subject is gamma/nightly-job. RBAC evaluates the verb, resource, group, subject and binding scope together.
E: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 services, the subject is gamma/nightly-job. RBAC evaluates the verb, resource, group, subject and binding scope together.
Question 66
In namespace `observability`, a RoleBinding refers to the Role `review-103`, whose rule grants `get` on `deployments` in API group `apps`; its subject is ServiceAccount `beta/report-agent`. The binding is in `observability`, and no other RBAC grants exist. Determine the effective access and the boundaries of this grant. Choose ONE statement.
- ServiceAccount `beta/report-agent` can perform `get` on `deployments` in `observability`.
- The binding grants `get` on `jobs` because it shares the same namespace.
- ServiceAccount `beta/report-agent` automatically gains `get` on `deployments` in every namespace.
- The binding grants `create` on `deployments` because the ServiceAccount can perform `get`.
Explanation
Correct Answer
A:The RoleBinding in `observability` selects exactly that ServiceAccount identity and the rule grants `get` on `deployments` within this namespace.
Incorrect Answers
B:The rule names `deployments`, not `jobs`; matching namespace alone does not add RBAC resources. For this authorization request, the target grant namespace is observability, the rule specifies verb get on deployments, the subject is beta/report-agent. 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 get on deployments, the subject is beta/report-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 observability, 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 67
In namespace `finance`, a RoleBinding refers to the ClusterRole `review-105`, 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 `finance`, and no other RBAC grants exist. Determine the effective access and the boundaries of this grant. Choose ONE statement.
- ServiceAccount `delta/build-bot` automatically gains `create` on `pods/exec` in every namespace.
- The binding grants `patch` on `pods/exec` because the ServiceAccount can perform `create`.
- The binding grants `create` on `statefulsets` because it shares the same namespace.
- This binding alone does not grant `patch` on `pods/exec` in `finance`.
Explanation
Correct Answer
D: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 finance, 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 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 create on pods/exec, the subject is delta/build-bot. RBAC evaluates the verb, resource, group, subject and binding scope together.
B:Kubernetes does not infer `patch` from `create`; each verb must be granted explicitly. For this authorization request, the target grant namespace is finance, 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.
C:The rule names `pods/exec`, not `statefulsets`; matching namespace alone does not add RBAC resources. For this authorization request, the target grant namespace is finance, 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 68
In namespace `observability`, a RoleBinding refers to the Role `review-108`, 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 `observability`, 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 it shares the same namespace.
- This binding alone does not grant `update` on `events` in `observability`.
- ServiceAccount `gamma/nightly-job` automatically gains `create` on `events` in every namespace.
- The binding grants `update` on `events` because the ServiceAccount can perform `create`.
Explanation
Correct Answer
B: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 observability, 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
A:The rule names `events`, not `pods`; matching namespace alone does not add RBAC resources. For this authorization request, the target grant namespace is observability, 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 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 events, the subject is gamma/nightly-job. RBAC evaluates the verb, resource, group, subject and binding scope together.
D: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 events, the subject is gamma/nightly-job. RBAC evaluates the verb, resource, group, subject and binding scope together.
Question 69
In namespace `beta`, a RoleBinding refers to the ClusterRole `review-109`, whose rule grants `get` on `jobs` in API group `batch`; its subject is ServiceAccount `platform/metrics-client`. The binding is in `beta`, and no other RBAC grants exist. Determine the effective access and the boundaries of this grant. Choose TWO statements.
- The binding grants `get` on `pods/exec` because it shares the same namespace.
- ServiceAccount `platform/metrics-client` can perform `get` on `jobs` in `beta`.
- The binding grants `create` on `jobs` because the ServiceAccount can perform `get`.
- ServiceAccount `platform/metrics-client` automatically gains `get` on `jobs` in every namespace.
- The same ServiceAccount has no authorization from this binding to perform `get` on `jobs` in `gamma`.
Explanation
Correct Answers
B:The RoleBinding in `beta` selects exactly that ServiceAccount identity and the rule grants `get` on `jobs` within this namespace.
E:A RoleBinding grants permissions only in its own namespace `beta`, even if it refers to a ClusterRole. For this authorization request, the target grant namespace is beta, the rule specifies verb get on jobs, the subject is platform/metrics-client. RBAC evaluates the verb, resource, group, subject and binding scope together.
Incorrect Answers
A:The rule names `jobs`, not `pods/exec`; matching namespace alone does not add RBAC resources. For this authorization request, the target grant namespace is beta, the rule specifies verb get on jobs, the subject is platform/metrics-client. RBAC evaluates the verb, resource, group, subject and binding scope together.
C:Kubernetes does not infer `create` from `get`; each verb must be granted explicitly. For this authorization request, the target grant namespace is beta, the rule specifies verb get on jobs, the subject is platform/metrics-client. RBAC evaluates the verb, resource, group, subject and binding scope together.
D: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 get on jobs, the subject is platform/metrics-client. RBAC evaluates the verb, resource, group, subject and binding scope together.
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.
Certified Kubernetes Administrator (CKA) Practice Tests