100% Latest & Updated CNCF CKA Practice Test Questions, Exam Dumps & Verified Answers!
30 Days Free Updates, Instant Download!
Question 1
A Role in `finance` allows `get` on `configmaps` but restricts `resourceNames: [quarterly-rates]`. The Role is correctly bound to analyst Lee. Which GET request is authorized by this rule? Choose ONE answer.
- GET Secret `quarterly-rates` in finance.
- GET every ConfigMap in `finance`.
- GET ConfigMap `quarterly-rates` in `production`.
- GET ConfigMap `quarterly-rates` in `finance`.
Explanation
Correct Answer
D:The named object and namespace match the Role rule and RoleBinding scope.
Incorrect Answers
A:The Role grants configmaps, not secrets.
B:The resourceNames constraint permits only the named ConfigMap, not every object.
C:The RoleBinding applies only within finance.
Question 2
A namespace-scoped Role grants get on ConfigMaps to a service account in a different namespace via a RoleBinding. The binding is in reports and explicitly names ServiceAccount pipelines/publisher. Which conclusions follow? Choose ONE answer.
- The binding implicitly grants permissions in all namespaces.
- The binding grants create on ConfigMaps in reports.
- The subject becomes reports/publisher automatically.
- The permissions apply to ConfigMaps in reports.
Explanation
Correct Answer
D:A RoleBinding grants namespaced access only within its own namespace, reports.
Incorrect Answers
A:A RoleBinding never expands a Role into cluster-wide namespaced access.
B:Get and create are independent RBAC verbs.
C:The subject namespace remains pipelines, not the binding namespace.
Question 3
A security review finds a ClusterRole with get on pods/log bound through RoleBinding in the support namespace. The user can get Pod logs but cannot list Pods. Which statements correctly describe the authorization? Choose ONE answer.
- The user can inspect logs in every namespace because ClusterRole was referenced.
- get on pods/log automatically grants list on pods.
- The rule grants exec into Pods.
- pods/log is a separate RBAC subresource.
Explanation
Correct Answer
D:A rule for pods/log does not inherently include the parent pods resource.
Incorrect Answers
A:The binding kind controls the scope; RoleBinding remains namespaced.
B:Kubernetes does not infer another resource or verb from the log subresource.
C:pods/exec is a different subresource, commonly requiring create authorization.
Question 4
An administrator wants an existing RoleBinding `view-billing` to reference a different ClusterRole. A direct patch of `roleRef` is rejected. What is the supported change procedure? Choose ONE answer.
- Grant cluster-admin to bypass the immutable field restriction.
- Rename the referenced ClusterRole and expect automatic remapping.
- Delete and recreate the binding with the intended roleRef and reviewed subjects.
- Patch `roleRef.kind` only; all roleRef fields are mutable individually.
Explanation
Correct Answer
C:RoleBinding roleRef is immutable, so replacement is required rather than a direct roleRef edit.
Incorrect Answers
A:Elevated authorization does not make an immutable API field mutable.
B:Bindings refer to specific role names and do not follow arbitrary renames.
D:The roleRef field is immutable irrespective of which member is targeted.
Question 5
A Role in payroll has get on secrets with resourceNames: [tax-token]. A ServiceAccount is bound to the Role. An operator tries kubectl list secrets without any field selector. Which statements are defensible? Choose ONE answer.
- Get of the explicitly named Secret may be authorized.
- The rule grants reads of tax-token in every namespace.
- The rule lets the caller create arbitrary Secrets.
- resourceNames silently grants list across all Secrets.
Explanation
Correct Answer
A:The get request identifies a resource that appears in resourceNames.
Incorrect Answers
B:Role and RoleBinding scope remains payroll only.
C:Get permission does not authorize create.
D:Named-resource filtering does not imply the list verb or remove resource restrictions.
Question 6
A controller needs to create Deployments in the apps API group, but its new Role has apiGroups: [""], resources: ["deployments"], verbs: ["create"]. The RoleBinding is correct. Choose the true conclusions. Choose TWO statements.
- The API-group mismatch prevents that Role rule from matching apps/v1 Deployment requests.
- Deployments live in the core API group.
- The rule automatically covers all API groups when apiGroups is empty.
- Using get instead of create resolves the group mismatch.
- Changing apiGroups to apps corrects the group mismatch.
Explanation
Correct Answers
A:Deployments are in the apps group, not the core empty API group.
E:Deployment authorization compares request API group to rule apiGroups.
Incorrect Answers
B:Kubernetes apps/v1 Deployments use API group apps.
C:The empty string names the core API group, not a wildcard.
D:Changing the verb cannot fix incorrect apiGroups.
Question 7
A team member can create RoleBindings in namespace research but lacks the permissions contained in powerful ClusterRole admin and has no `bind` authorization. Choose THREE accurate statements. Choose THREE answers.
- A RoleBinding automatically grants access cluster-wide.
- RoleBinding scope remains the namespace where it is created.
- Create on RoleBindings automatically permits binding admin.
- Creating arbitrary bindings to admin is restricted.
- Granting bind on the relevant ClusterRole is a privileged authorization decision.
- Changing the subject name bypasses the bind safeguard.
Explanation
Correct Answers
B:Even when referencing a ClusterRole, a RoleBinding grants namespaced access in research.
D:The RBAC API checks that a creator already holds the role’s permissions or is explicitly allowed to bind it.
E:Bind permission can permit creating a RoleBinding to otherwise more-privileged role rules.
Incorrect Answers
A:Cluster-wide scope would require appropriately scoped binding, not a normal RoleBinding.
C:The bind escalation check is distinct from creating RoleBinding objects.
F:Authorization to bind is independent of subject aliasing.
Question 8
In namespace `platform`, a RoleBinding refers to the Role `review-11`, whose rule grants `patch` on `pods` in the core API group (`apiGroups: [""]` in RBAC YAML); its subject is ServiceAccount `finance/deploy-agent`. 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 `patch` on `services` because it shares the same namespace.
- The binding grants `delete` on `pods` because the ServiceAccount can perform `patch`.
- The same ServiceAccount has no authorization from this binding to perform `patch` on `pods` in `alpha`.
- ServiceAccount `finance/deploy-agent` automatically gains `patch` on `pods` in every namespace.
Explanation
Correct Answer
C:A RoleBinding grants permissions only in its own namespace `platform`, even if it refers to a ClusterRole.
Incorrect Answers
A:The rule names `pods`, not `services`; matching namespace alone does not add RBAC resources.
B:Kubernetes does not infer `delete` from `patch`; each verb must be granted explicitly.
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 patch on pods, the subject is finance/deploy-agent. RBAC evaluates the verb, resource, group, subject and binding scope together.
Question 9
An operator creates a Role in `ops` that contains `get` on `nodes` and binds it with a RoleBinding. A ServiceAccount still cannot read Nodes. Which RBAC design handles this cluster-scoped resource? Choose ONE answer.
- Add more namespace RoleBindings referencing the same Role.
- Use an appropriately scoped ClusterRole granting nodes/get with a ClusterRoleBinding to the ServiceAccount.
- Create a Service named nodes in ops.
- Use a Pod annotation to claim cluster-wide permission.
Explanation
Correct Answer
B:Node objects are cluster-scoped, so a namespace RoleBinding cannot grant access to them.
Incorrect Answers
A:Repeating namespace grants does not make Node objects namespaced.
C:A Service does not authorize API reads of Node resources.
D:Arbitrary Pod annotations do not grant Kubernetes RBAC privileges.
Question 10
A Role grants patch on deployments in namespace staging. An operator tries kubectl rollout restart, which updates the Deployment Pod template. What are the correct permission boundaries? Choose ONE answer.
- A patch request to a Deployment requires matching patch authorization.
- Patch on Deployment grants cluster-wide patch on all workload resources.
- Having patch implies authorization to delete Deployments.
- A RoleBinding can turn a Role into a cluster-scope resource grant.
Explanation
Correct Answer
A:rollout restart ordinarily patches the Deployment template.
Incorrect Answers
B:The rule is limited to deployments in staging.
C:RBAC permissions do not imply unrelated verbs.
D:Roles cannot confer cluster-scoped permissions.
Certified Kubernetes Administrator (CKA) Practice Tests