CNCF CKA Exam Dumps, Practice Test Questions

100% Latest & Updated CNCF CKA Practice Test Questions, Exam Dumps & Verified Answers!
30 Days Free Updates, Instant Download!

CNCF CKA Premium Bundle
$64.98
$54.98

CKA Premium Bundle

  • Premium File: 58 Questions & Answers. Last update: Nov 30, 2026
  • Training Course: 138 Video Lectures
  • Latest Questions
  • 100% Accurate Answers
  • Fast Exam Updates

CKA Premium Bundle

CNCF CKA Premium Bundle
  • Premium File: 58 Questions & Answers. Last update: Nov 30, 2026
  • Training Course: 138 Video Lectures
  • Latest Questions
  • 100% Accurate Answers
  • Fast Exam Updates
$64.98
$54.98

CNCF CKA Practice Test 3

Question 20

A reviewer wants to test whether ServiceAccount build/agent can delete Pods in namespace staging without deleting anything. Which RBAC validation conclusions are sound? Choose ONE answer.

  1. kubectl auth can-i grants the delete permission when it returns no.
  2. The check must delete a Pod to compute authorization.
  3. kubectl auth can-i delete pods -n staging --as=system:serviceaccount:build:agent is a targeted authorization check.
  4. Testing as system:serviceaccount:staging:agent checks build/agent.

Explanation

Correct Answer

C:

Impersonation uses the exact service-account username format.

Incorrect Answers

A:

The command evaluates effective authorization without changing grants.

B:

SelfSubjectAccessReview performs an authorization query, not a deletion.

D:

The service-account namespace is part of the identity string.

Question 21

A team binds the built-in ClusterRole `view` to a developer in a namespace. The developer can read most workloads but cannot read Secret objects. Why is that expected? Choose ONE answer.

  1. Every Secret is cluster-scoped and cannot be read through namespace bindings.
  2. A Service is required to proxy Secret API reads.
  3. The built-in view role intentionally excludes Secret reads to avoid leaking service-account credentials.
  4. The built-in view role has a deny rule for all Secrets that administrators cannot change.

Explanation

Correct Answer

C:

Kubernetes treats Secret data as sensitive and the default view role does not grant access to it.

Incorrect Answers

A:

Secrets are namespaced resources; scope is not the reason for the default role exclusion.

B:

Secrets are API objects and do not require an application Service to be listed.

D:

RBAC is additive and has no deny rules; the permission is simply absent.

Question 22

In namespace `gamma`, a RoleBinding refers to the Role `review-35`, 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 `gamma`, and no other RBAC grants exist. Determine the effective access and the boundaries of this grant. Choose ONE statement.

  1. The binding grants `patch` on `deployments` because it shares the same namespace.
  2. The same ServiceAccount has no authorization from this binding to perform `patch` on `configmaps` in `finance`.
  3. The binding grants `delete` on `configmaps` because the ServiceAccount can perform `patch`.
  4. ServiceAccount `finance/deploy-agent` automatically gains `patch` on `configmaps` in every namespace.

Explanation

Correct Answer

B:

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 patch on configmaps, the subject is finance/deploy-agent. RBAC evaluates the verb, resource, group, subject and binding scope together.

Incorrect Answers

A:

The rule names `configmaps`, not `deployments`; matching namespace alone does not add RBAC resources. For this authorization request, the target grant namespace is gamma, 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 gamma, 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 `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 patch on configmaps, the subject is finance/deploy-agent. RBAC evaluates the verb, resource, group, subject and binding scope together.

Question 23

A Role permits `list` on configmaps only with `resourceNames: [pricing]`. A client calls `kubectl get configmaps` with no field selector and receives Forbidden. What change to the request matches the restriction? Choose ONE answer.

  1. Add --all-namespaces to the list request.
  2. List with a metadata.name=pricing field selector.
  3. Use list without any selector as cluster-admin.
  4. Request the Secret pricing instead.

Explanation

Correct Answer

B:

For list/watch restricted by resourceNames, the name must be supplied through the matching metadata.name field selector.

Incorrect Answers

A:

Broader namespace scope does not satisfy the named-object restriction.

C:

The relevant Role does not authorize an unrestricted list of this resource.

D:

The rule applies to ConfigMaps and does not cover Secrets.

Question 24

A RoleBinding in namespace reports references ClusterRole view-read and names user marina. Where does that binding grant namespaced-resource permissions? Choose ONE answer.

  1. Only for non-resource URLs cluster-wide.
  2. In all namespaces because ClusterRole is global.
  3. Only in kube-system.
  4. Only in reports.

Explanation

Correct Answer

D:

A RoleBinding limits namespaced permissions to its namespace even when roleRef targets a ClusterRole.

Incorrect Answers

A:

Namespaced RoleBindings do not grant cluster-scoped non-resource URL access.

B:

The binding type, not just the referenced role kind, controls scope.

C:

Nothing about the binding grants access in kube-system.

Question 25

An administrator wants to verify whether ServiceAccount `jobs/runner` can create ConfigMaps in jobs before issuing a new grant. Which command offers a targeted authorization check when run by a user allowed to impersonate? Choose ONE answer.

  1. `kubectl label namespace jobs create=configmaps`.
  2. `kubectl auth can-i create configmaps -n jobs --as=system:serviceaccount:jobs:runner`.
  3. `kubectl get nodes` and infer namespace write permissions.
  4. `kubectl get serviceaccounts -n jobs` and assume every account is authorized.

Explanation

Correct Answer

B:

kubectl auth can-i submits a SubjectAccessReview for the specified verb/resource and impersonated identity.

Incorrect Answers

A:

Adding an arbitrary label is not an RBAC authorization test.

C:

Node visibility does not establish the ServiceAccount’s resource authorization.

D:

Listing ServiceAccounts reveals identities, not the effective rule set.

Question 26

A support account has get on pods/log but no other Pod subresource grants. Choose TWO valid conclusions. Choose TWO answers.

  1. Retrieving Pod logs may be authorized by this rule.
  2. Running `kubectl exec` is not granted by pods/log alone.
  3. It automatically gets every Secret in the namespace.
  4. It can delete Pods because get is a stronger verb.
  5. It can create Deployments by reading logs.

Explanation

Correct Answers

A:

pods/log is the designated log subresource for a GET request.

B:

Exec uses a different Pod subresource and an independent verb authorization.

Incorrect Answers

C:

Secrets are a separate core resource.

D:

RBAC verbs are independent and get does not imply delete.

E:

Log-read authorization does not confer app workload creation.

Question 27

In namespace `beta`, a RoleBinding refers to the Role `review-40`, 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 `beta`, and no other RBAC grants exist. Determine the effective access and the boundaries of this grant. Choose THREE statements.

  1. The same ServiceAccount has no authorization from this binding to perform `get` on `pods/log` in `sandbox`.
  2. ServiceAccount `observability/ops-console` can perform `get` on `pods/log` in `beta`.
  3. The binding grants `get` on `events` because it shares the same namespace.
  4. This binding alone does not grant `delete` on `pods/log` in `beta`.
  5. ServiceAccount `observability/ops-console` automatically gains `get` on `pods/log` in every namespace.
  6. The binding grants `delete` on `pods/log` because the ServiceAccount can perform `get`.

Explanation

Correct Answers

A:

A RoleBinding grants permissions only in its own namespace `beta`, even if it refers to a ClusterRole.

B:

The RoleBinding in `beta` selects exactly that ServiceAccount identity and the rule grants `get` on `pods/log` within this namespace.

D:

RBAC rules are additive and verb-specific; `delete` is absent while `get` is the only listed verb for `pods/log`.

Incorrect Answers

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 beta, 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.

E:

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 pods/log, the subject is observability/ops-console. RBAC evaluates the verb, resource, group, subject and binding scope together.

F:

Kubernetes does not infer `delete` from `get`; each verb must be granted explicitly. For this authorization request, the target grant namespace is beta, 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 28

A user has one RoleBinding allowing get on Pods and a second allowing delete on Pods, both in namespace testing. A new deny-style Role rule is proposed to remove delete. What is the correct RBAC assessment? Choose ONE answer.

  1. RBAC permissions are additive; remove the delete grant to revoke it.
  2. A deny Role overrides the delete permission.
  3. The second RoleBinding cancels the first.
  4. A RoleBinding only grants one verb at a time.

Explanation

Correct Answer

A:

Native Kubernetes RBAC does not contain a general deny rule that subtracts an existing allow.

Incorrect Answers

B:

The RBAC API is allow-only rather than an allow/deny precedence system.

C:

Independent grants are unioned, not overwritten chronologically.

D:

Multiple verbs can be granted through multiple rules or bindings.

Question 29

In namespace `delta`, a RoleBinding refers to the Role `review-43`, whose rule grants `create` on `pods/exec` in the core API group (`apiGroups: [""]` in RBAC YAML); its subject is ServiceAccount `finance/deploy-agent`. The binding is in `delta`, and no other RBAC grants exist. Determine the effective access and the boundaries of this grant. Choose ONE statement.

  1. ServiceAccount `finance/deploy-agent` can perform `create` on `pods/exec` in `delta`.
  2. The binding grants `create` on `statefulsets` because it shares the same namespace.
  3. ServiceAccount `finance/deploy-agent` automatically gains `create` on `pods/exec` in every namespace.
  4. The binding grants `delete` on `pods/exec` because the ServiceAccount can perform `create`.

Explanation

Correct Answer

A:

The RoleBinding in `delta` selects exactly that ServiceAccount identity and the rule grants `create` on `pods/exec` within this namespace.

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 delta, the rule specifies verb create on pods/exec, the subject is finance/deploy-agent. RBAC evaluates the verb, resource, group, subject and binding scope together.

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 create on pods/exec, the subject is finance/deploy-agent. RBAC evaluates the verb, resource, group, subject and binding scope together.

D:

Kubernetes does not infer `delete` from `create`; each verb must be granted explicitly. For this authorization request, the target grant namespace is delta, the rule specifies verb create on pods/exec, the subject is finance/deploy-agent. RBAC evaluates the verb, resource, group, subject and binding scope together.

Question 30

A ClusterRoleBinding points to ClusterRole read-nodes, which authorizes get on cluster-scoped nodes. A team replaces the binding with a RoleBinding in namespace ops. What are the implications? Choose ONE answer.

  1. The RoleBinding cannot grant access to cluster-scoped Node resources.
  2. ClusterRoleBinding automatically grants delete on Nodes.
  3. The binding grants get on Nodes only whose names start with ops.
  4. A RoleBinding makes Nodes namespaced in ops.

Explanation

Correct Answer

A:

A namespaced binding cannot grant cluster-scoped permissions.

Incorrect Answers

B:

Binding does not introduce verbs absent from the ClusterRole.

C:

Namespace names cannot scope Node identity.

D:

Node objects are always cluster-scoped.

Certified Kubernetes Administrator (CKA) Practice Tests

UP

SPECIAL OFFER: GET 10% OFF

This is ONE TIME OFFER

ExamSnap Discount Offer
Enter Your Email Address to Receive Your 10% Off Discount Code

A confirmation link will be sent to this email address to verify your login. *We value your privacy. We will not rent or sell your email address.

Download Free Demo of VCE Exam Simulator

Experience Avanset VCE Exam Simulator for yourself.

Simply submit your e-mail address below to get started with our interactive software demo of your free trial.

Free Demo Limits: In the demo version you will be able to access only first 5 questions from exam.