100% Latest & Updated CNCF CKA Practice Test Questions, Exam Dumps & Verified Answers!
30 Days Free Updates, Instant Download!
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.
Question 81
In namespace `delta`, a RoleBinding refers to the ClusterRole `review-125`, whose rule grants `patch` on `statefulsets` in API group `apps`; its subject is ServiceAccount `platform/metrics-client`. The binding is in `delta`, 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 `patch` on `statefulsets` in every namespace.
- The same ServiceAccount has no authorization from this binding to perform `patch` on `statefulsets` in `finance`.
- The binding grants `patch` on `configmaps` because it shares the same namespace.
- The binding grants `delete` on `statefulsets` because the ServiceAccount can perform `patch`.
Explanation
Correct Answer
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 patch on statefulsets, 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 `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 statefulsets, the subject is platform/metrics-client. 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 delta, the rule specifies verb patch on statefulsets, the subject is platform/metrics-client. RBAC evaluates the verb, resource, group, subject and binding scope together.
D: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 statefulsets, the subject is platform/metrics-client. RBAC evaluates the verb, resource, group, subject and binding scope together.
Question 82
In namespace `observability`, a RoleBinding refers to the Role `review-126`, 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 `observability`, 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 `pods/log` in `observability`.
- The binding grants `get` on `events` because it shares the same namespace.
- 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`.
Explanation
Correct Answer
A:RBAC rules are additive and verb-specific; `update` is absent while `get` is the only listed verb for `pods/log`. For this authorization request, the target grant namespace is observability, 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.
Incorrect Answers
B:The rule names `pods/log`, not `events`; matching namespace alone does not add RBAC resources. For this authorization request, the target grant namespace is observability, 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.
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 pods/log, the subject is sandbox/ci-runner. RBAC evaluates the verb, resource, group, subject and binding scope together.
D:Kubernetes does not infer `update` from `get`; each verb must be granted explicitly. For this authorization request, the target grant namespace is observability, 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 83
In namespace `sandbox`, a RoleBinding refers to the Role `review-128`, whose rule grants `list` on `pods` in the core API group (`apiGroups: [""]` in RBAC YAML); its subject is ServiceAccount `observability/ops-console`. 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 `list` on `services` because it shares the same namespace.
- ServiceAccount `observability/ops-console` automatically gains `list` on `pods` in every namespace.
- The binding grants `watch` on `pods` because the ServiceAccount can perform `list`.
- The same ServiceAccount has no authorization from this binding to perform `list` on `pods` in `observability`.
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 pods, the subject is observability/ops-console. RBAC evaluates the verb, resource, group, subject and binding scope together.
Incorrect Answers
A: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 list on pods, the subject is observability/ops-console. 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 pods, the subject is observability/ops-console. RBAC evaluates the verb, resource, group, subject and binding scope together.
C: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 pods, the subject is observability/ops-console. RBAC evaluates the verb, resource, group, subject and binding scope together.
Question 84
In namespace `alpha`, a RoleBinding refers to the ClusterRole `review-129`, 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 `alpha`, and no other RBAC grants exist. Determine the effective access and the boundaries of this grant. Choose TWO statements.
- 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.
- The binding grants `patch` on `pods/exec` because the ServiceAccount can perform `create`.
- ServiceAccount `delta/build-bot` can perform `create` on `pods/exec` in `alpha`.
- This binding alone does not grant `patch` on `pods/exec` in `alpha`.
Explanation
Correct Answers
D:The RoleBinding in `alpha` selects exactly that ServiceAccount identity and the rule grants `create` on `pods/exec` within this namespace. For this authorization request, the target grant namespace is alpha, 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.
E: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 alpha, 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 alpha, 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 `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 pods/exec, the subject is delta/build-bot. RBAC evaluates the verb, resource, group, subject and binding scope together.
C:Kubernetes does not infer `patch` from `create`; each verb must be granted explicitly. For this authorization request, the target grant namespace is alpha, 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 85
In namespace `observability`, a RoleBinding refers to the Role `review-131`, whose rule grants `patch` on `configmaps` in the core API group (`apiGroups: [""]` in RBAC YAML); its subject is ServiceAccount `finance/deploy-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.
- The same ServiceAccount has no authorization from this binding to perform `patch` on `configmaps` in `alpha`.
- The binding grants `patch` on `deployments` because it shares the same namespace.
- The binding grants `delete` on `configmaps` because the ServiceAccount can perform `patch`.
- ServiceAccount `finance/deploy-agent` automatically gains `patch` on `configmaps` in every namespace.
Explanation
Correct Answer
A: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 configmaps, the subject is finance/deploy-agent. RBAC evaluates the verb, resource, group, subject and binding scope together.
Incorrect Answers
B: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 patch on configmaps, the subject is finance/deploy-agent. 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 observability, the rule specifies verb patch on configmaps, the subject is finance/deploy-agent. RBAC evaluates the verb, resource, group, subject and binding scope together.
D: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 configmaps, the subject is finance/deploy-agent. RBAC evaluates the verb, resource, group, subject and binding scope together.
Question 86
In namespace `sandbox`, a RoleBinding refers to the ClusterRole `review-133`, whose rule grants `get` on `pods/log` in the core API group (`apiGroups: [""]` in RBAC YAML); its subject is ServiceAccount `platform/metrics-client`. 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 `events` because it shares the same namespace.
- ServiceAccount `platform/metrics-client` automatically gains `get` on `pods/log` in every namespace.
- ServiceAccount `platform/metrics-client` can perform `get` on `pods/log` in `sandbox`.
- The binding grants `create` on `pods/log` 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 `pods/log` within this namespace.
Incorrect Answers
A:The rule names `pods/log`, not `events`; 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/log, the subject is platform/metrics-client. 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 pods/log, the subject is platform/metrics-client. 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/log, the subject is platform/metrics-client. RBAC evaluates the verb, resource, group, subject and binding scope together.
Question 87
In namespace `platform`, a RoleBinding refers to the Role `review-134`, whose rule grants `list` on `deployments` in API group `apps`; its subject is ServiceAccount `sandbox/ci-runner`. 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 `sandbox/ci-runner` automatically gains `list` on `deployments` in every namespace.
- The binding grants `watch` on `deployments` because the ServiceAccount can perform `list`.
- The binding grants `list` on `jobs` because it shares the same namespace.
- The same ServiceAccount has no authorization from this binding to perform `list` on `deployments` in `beta`.
Explanation
Correct Answer
D: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 list on deployments, the subject is sandbox/ci-runner. RBAC evaluates the verb, resource, group, subject and binding scope together.
Incorrect Answers
A: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 list on deployments, the subject is sandbox/ci-runner. RBAC evaluates the verb, resource, group, subject and binding scope together.
B:Kubernetes does not infer `watch` from `list`; each verb must be granted explicitly. For this authorization request, the target grant namespace is platform, the rule specifies verb list on deployments, the subject is sandbox/ci-runner. 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 platform, the rule specifies verb list on deployments, the subject is sandbox/ci-runner. RBAC evaluates the verb, resource, group, subject and binding scope together.
Question 88
In namespace `gamma`, a RoleBinding refers to the Role `review-135`, whose rule grants `watch` on `pods` in the core API group (`apiGroups: [""]` in RBAC YAML); its subject is ServiceAccount `beta/report-agent`. The binding is in `gamma`, 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 `patch` on `pods` in `gamma`.
- The binding grants `watch` on `services` because it shares the same namespace.
- ServiceAccount `beta/report-agent` automatically gains `watch` on `pods` in every namespace.
- The binding grants `patch` on `pods` because the ServiceAccount can perform `watch`.
Explanation
Correct Answer
A:RBAC rules are additive and verb-specific; `patch` is absent while `watch` is the only listed verb for `pods`. For this authorization request, the target grant namespace is gamma, the rule specifies verb watch on pods, the subject is beta/report-agent. RBAC evaluates the verb, resource, group, subject and binding scope together.
Incorrect Answers
B:The rule names `pods`, not `services`; matching namespace alone does not add RBAC resources. For this authorization request, the target grant namespace is gamma, the rule specifies verb watch on pods, the subject is beta/report-agent. RBAC evaluates the verb, resource, group, subject and binding scope together.
C: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 pods, the subject is beta/report-agent. 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 pods, the subject is beta/report-agent. RBAC evaluates the verb, resource, group, subject and binding scope together.
Question 89
In namespace `finance`, a RoleBinding refers to the Role `review-136`, whose rule grants `create` on `pods/exec` in the core API group (`apiGroups: [""]` in RBAC YAML); its subject is ServiceAccount `observability/ops-console`. 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 `observability/ops-console` can perform `create` on `pods/exec` in `finance`.
- The binding grants `get` on `pods/exec` because the ServiceAccount can perform `create`.
- The binding grants `create` on `statefulsets` because it shares the same namespace.
- ServiceAccount `observability/ops-console` automatically gains `create` on `pods/exec` in every namespace.
Explanation
Correct Answer
A:The RoleBinding in `finance` selects exactly that ServiceAccount identity and the rule grants `create` on `pods/exec` within this namespace.
Incorrect Answers
B:Kubernetes does not infer `get` 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 observability/ops-console. 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 observability/ops-console. 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 create on pods/exec, the subject is observability/ops-console. RBAC evaluates the verb, resource, group, subject and binding scope together.
Question 90
In namespace `gamma`, a RoleBinding refers to the Role `review-140`, whose rule grants `list` on `jobs` in API group `batch`; its subject is ServiceAccount `gamma/nightly-job`. The binding is in `gamma`, 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 `watch` on `jobs` in `gamma`.
- ServiceAccount `gamma/nightly-job` automatically gains `list` on `jobs` in every namespace.
- The binding grants `watch` on `jobs` because the ServiceAccount can perform `list`.
- ServiceAccount `gamma/nightly-job` can perform `list` on `jobs` in `gamma`.
- The same ServiceAccount has no authorization from this binding to perform `list` on `jobs` in `finance`.
- The binding grants `list` on `pods/exec` because it shares the same namespace.
Explanation
Correct Answers
A:RBAC rules are additive and verb-specific; `watch` is absent while `list` is the only listed verb for `jobs`.
D:The RoleBinding in `gamma` selects exactly that ServiceAccount identity and the rule grants `list` on `jobs` within this namespace.
E:A RoleBinding grants permissions only in its own namespace `gamma`, even if it refers to a ClusterRole. For this authorization request, the target grant namespace is gamma, 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
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 list on jobs, the subject is gamma/nightly-job. RBAC evaluates the verb, resource, group, subject and binding scope together.
C:Kubernetes does not infer `watch` from `list`; each verb must be granted explicitly. For this authorization request, the target grant namespace is gamma, the rule specifies verb list on jobs, the subject is gamma/nightly-job. RBAC evaluates the verb, resource, group, subject and binding scope together.
F:The rule names `jobs`, not `pods/exec`; matching namespace alone does not add RBAC resources. For this authorization request, the target grant namespace is gamma, 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