McAfee Secure

CNCF CKA Bundle

Exam Code: CKA

Exam Name Certified Kubernetes Administrator

Certification Provider: CNCF

Corresponding Certification: CKA

CNCF CKA Bundle $44.99

100% CNCF CKA Guaranteed Success With Testking Training Materials

Get Real CKA Exam Questions & Expert Verified Answers as Experienced on the Real Exam!

  • Questions & Answers

    CKA Questions & Answers

    58 Questions & Answers

    The ultimate exam preparation tool, Questions & Answers mirrors the actual CKA exam while allowing you to hone and measure every aspect of your test-taking ability.

  • CKA Video Course

    CKA Training Course

    138 Video Lectures

    CKA Video Course is developed by CNCF Professionals to help you pass the CKA exam.

    Description

    This course will improve your knowledge and skills required to pass Certified Kubernetes Administrator exam.
  • Study Guide

    CKA Study Guide

    268 PDF Pages

    Developed by industry experts, this 268-page guide spells out in painstaking detail all of the information you need to ace CKA exam.

Certified Kubernetes Administrator (CKA) Practice Tests

Satisfaction Guaranteed

Money Back Guarantee

Testking provides hassle-free money back guarantee with our products. That is because we have 100% trust in the abilities of our professional and experience product team, and our record is a proof of that.

99.6% PASS RATE
Total Cost: $194.97
Bundle Price: $149.98

Purchase Individually

  • Questions & Answers

    Questions & Answers

    58 Questions

    $124.99
  • CKA Video Course

    Training Course

    138 Video Lectures

    $39.99
  • Study Guide

    Study Guide

    268 PDF Pages

    $29.99

CNCF CKA Practice Test 4

Question 30

At Horizon observability, in a disposable simulated environment during a monitored release window: A namespaced workload metrics-api needs a dedicated service account audit-bot rather than the default identity. Work only within the stated target and verify before declaring success. Which Kubernetes behavior best explains the required change or diagnosis?

  1. ServiceAccounts provide workload identity; creating one does not automatically grant extra RBAC permissions.
  2. A NoSchedule taint repels Pods without a matching toleration but does not automatically evict already running Pods.
  3. A ResourceQuota caps combined admitted requests in a namespace; per-Pod limits alone do not enforce a namespace-wide budget.
  4. Custom resources are reconciled only when their schemas are registered and the operator controller is healthy.

Explanation

Correct Answer

A:

ServiceAccounts provide workload identity; creating one does not automatically grant extra RBAC permissions. This explains the stated condition. The corresponding action is: Run kubectl -n observability create serviceaccount audit-bot and set the workload to use that service account separately. The direct acceptance evidence is: Run kubectl -n observability get serviceaccount audit-bot and inspect the Deployment's serviceAccountName after binding it.

Incorrect Answers

B:

The offered statement is true for this other mechanism: A NoSchedule taint repels Pods without a matching toleration but does not automatically evict already running Pods. It does not explain the facts described here, which follow from: ServiceAccounts provide workload identity; creating one does not automatically grant extra RBAC permissions.

C:

This principle describes a separate cause: A ResourceQuota caps combined admitted requests in a namespace; per-Pod limits alone do not enforce a namespace-wide budget. The reported condition is governed by: ServiceAccounts provide workload identity; creating one does not automatically grant extra RBAC permissions. The two mechanisms should not be conflated.

D:

Custom resources are reconciled only when their schemas are registered and the operator controller is healthy. That explanation applies to a different technical failure. Here the controlling principle is: ServiceAccounts provide workload identity; creating one does not automatically grant extra RBAC permissions.

Question 31

At Horizon observability, in a disposable simulated environment during a monitored release window: A namespaced workload metrics-api needs a dedicated service account audit-bot rather than the default identity. Work only within the stated target and verify before declaring success. Which observation best verifies the requested outcome rather than an unrelated state?

  1. Run kubectl -n observability get deploy metrics-operator plus kubectl get crd metrics.example.test and inspect Ready and Established conditions.
  2. Run kubectl -n observability get serviceaccount audit-bot and inspect the Deployment's serviceAccountName after binding it.
  3. Run kubectl describe node worker-b and confirm the specific taint is absent.
  4. Run both kubectl auth can-i list pods and kubectl auth can-i delete deployments under the service-account impersonation and compare to the policy.

Explanation

Correct Answer

B:

Run kubectl -n observability get serviceaccount audit-bot and inspect the Deployment's serviceAccountName after binding it. This validates the affected object or control path, rather than only showing a command completed. The underlying reason is: ServiceAccounts provide workload identity; creating one does not automatically grant extra RBAC permissions. The intended action is: Run kubectl -n observability create serviceaccount audit-bot and set the workload to use that service account separately.

Incorrect Answers

A:

That test belongs to another control with this basis: Custom resources are reconciled only when their schemas are registered and the operator controller is healthy. In the current case, the governing reason is: ServiceAccounts provide workload identity; creating one does not automatically grant extra RBAC permissions. The direct verification is “Run kubectl -n observability get serviceaccount audit-bot and inspect the Deployment's serviceAccountName after binding it”.

C:

The alternative verifies a different condition: A trailing minus removes the matching taint; adding a new toleration on every Pod would leave unnecessary cluster constraints. The current case instead depends on: ServiceAccounts provide workload identity; creating one does not automatically grant extra RBAC permissions. Confirm that “Run kubectl -n observability get serviceaccount audit-bot and inspect the Deployment's serviceAccountName after binding it”.

D:

That test belongs to another control with this basis: RBAC authorization decisions depend on the subject, verb, resource and namespace; an admin's own access does not prove the workload identity's access. In the current case, the governing reason is: ServiceAccounts provide workload identity; creating one does not automatically grant extra RBAC permissions. The direct verification is “Run kubectl -n observability get serviceaccount audit-bot and inspect the Deployment's serviceAccountName after binding it”.

Question 32

At Horizon observability, in a disposable simulated environment during a monitored release window: A namespaced workload metrics-api needs a dedicated service account audit-bot rather than the default identity. Work only within the stated target and verify before declaring success. Which operational control most directly prevents this failure or configuration drift?

  1. Include schedulability restoration in maintenance completion checklists.
  2. Keep namespace-scoped read policies in version control and avoid wildcard verbs or resources.
  3. Review workload identity ownership and avoid unnecessary credentials on the default service account.
  4. Require approval and periodic recertification for ClusterRoleBindings and group membership.

Explanation

Correct Answer

C:

Review workload identity ownership and avoid unnecessary credentials on the default service account. This reduces recurrence of the specific operational failure. It reinforces the action: Run kubectl -n observability create serviceaccount audit-bot and set the workload to use that service account separately. The relevant mechanism is: ServiceAccounts provide workload identity; creating one does not automatically grant extra RBAC permissions.

Incorrect Answers

A:

This routine guards against another mechanism: Uncordon clears the Node's unschedulable status; it does not guarantee any particular Pod will be placed there. The recurring exposure in the current case is: ServiceAccounts provide workload identity; creating one does not automatically grant extra RBAC permissions. The matching preventive check is “Review workload identity ownership and avoid unnecessary credentials on the default service account”.

B:

The suggested review tracks a different technical risk: A namespaced Role expresses allowed resource verbs; it has no effect until a RoleBinding associates a subject. Here the sustained control must address: ServiceAccounts provide workload identity; creating one does not automatically grant extra RBAC permissions. Choose “Review workload identity ownership and avoid unnecessary credentials on the default service account”.

D:

This routine guards against another mechanism: A ClusterRoleBinding applies its referenced ClusterRole permission set at cluster scope to the named group. The recurring exposure in the current case is: ServiceAccounts provide workload identity; creating one does not automatically grant extra RBAC permissions. The matching preventive check is “Review workload identity ownership and avoid unnecessary credentials on the default service account”.

Question 33

At Pinecrest logistics, in a sandbox Kubernetes cluster during a recovery tabletop exercise: A namespaced workload dispatch-api needs a dedicated service account sync-bot rather than the default identity. Work only within the stated target and verify before declaring success. Which command or initial safe diagnostic step best addresses the stated lab task?

  1. Run kubectl -n fulfillment create serviceaccount sync-bot and set the workload to use that service account separately.
  2. Run kubectl -n observability create rolebinding metrics-api-reader-binding --role=metrics-api-pod-reader --serviceaccount=observability:audit-bot.
  3. Run kubectl auth can-i list pods -n observability --as=system:serviceaccount:observability:audit-bot and separately test delete deployments with the same impersonation.
  4. Run helm upgrade --install dispatch-api ./charts/dispatch-api --namespace fulfillment --create-namespace --set replicaCount=5 after inspecting values.

Explanation

Correct Answer

A:

Run kubectl -n fulfillment create serviceaccount sync-bot and set the workload to use that service account separately. This is the appropriate command-line action or first safe diagnostic. The technical reason is: ServiceAccounts provide workload identity; creating one does not automatically grant extra RBAC permissions. Validate the result with: Run kubectl -n fulfillment get serviceaccount sync-bot and inspect the Deployment's serviceAccountName after binding it. Execute changes only in an authorized disposable lab or after normal production change controls.

Incorrect Answers

B:

The offered action targets: A RoleBinding associates the service account subject with a Role inside the binding namespace. The case facts point instead to: ServiceAccounts provide workload identity; creating one does not automatically grant extra RBAC permissions. Implement “Run kubectl -n fulfillment create serviceaccount sync-bot and set the workload to use that service account separately” to address that specific condition.

C:

This alternative is a response to another technical cause: RBAC authorization decisions depend on the subject, verb, resource and namespace; an admin's own access does not prove the workload identity's access. The reported case instead depends on: ServiceAccounts provide workload identity; creating one does not automatically grant extra RBAC permissions. The action that directly addresses it is “Run kubectl -n fulfillment create serviceaccount sync-bot and set the workload to use that service account separately”.

D:

The proposed action belongs to the mechanism: Helm maintains release revisions and renders templates; an install-or-upgrade path avoids treating an existing release as a new deployment. Here the stated fault follows a different mechanism: ServiceAccounts provide workload identity; creating one does not automatically grant extra RBAC permissions. The corrective choice is “Run kubectl -n fulfillment create serviceaccount sync-bot and set the workload to use that service account separately”.

Question 34

At Pinecrest logistics, in a sandbox Kubernetes cluster during a recovery tabletop exercise: A namespaced workload dispatch-api needs a dedicated service account sync-bot rather than the default identity. Work only within the stated target and verify before declaring success. Which Kubernetes behavior best explains the required change or diagnosis?

  1. A ClusterRoleBinding applies its referenced ClusterRole permission set at cluster scope to the named group.
  2. ServiceAccounts provide workload identity; creating one does not automatically grant extra RBAC permissions.
  3. Custom resources are reconciled only when their schemas are registered and the operator controller is healthy.
  4. RBAC authorization decisions depend on the subject, verb, resource and namespace; an admin's own access does not prove the workload identity's access.

Explanation

Correct Answer

B:

ServiceAccounts provide workload identity; creating one does not automatically grant extra RBAC permissions. This explains the stated condition. The corresponding action is: Run kubectl -n fulfillment create serviceaccount sync-bot and set the workload to use that service account separately. The direct acceptance evidence is: Run kubectl -n fulfillment get serviceaccount sync-bot and inspect the Deployment's serviceAccountName after binding it.

Incorrect Answers

A:

The offered statement is true for this other mechanism: A ClusterRoleBinding applies its referenced ClusterRole permission set at cluster scope to the named group. It does not explain the facts described here, which follow from: ServiceAccounts provide workload identity; creating one does not automatically grant extra RBAC permissions.

C:

Custom resources are reconciled only when their schemas are registered and the operator controller is healthy. That explanation applies to a different technical failure. Here the controlling principle is: ServiceAccounts provide workload identity; creating one does not automatically grant extra RBAC permissions.

D:

The offered statement is true for this other mechanism: RBAC authorization decisions depend on the subject, verb, resource and namespace; an admin's own access does not prove the workload identity's access. It does not explain the facts described here, which follow from: ServiceAccounts provide workload identity; creating one does not automatically grant extra RBAC permissions.

Question 35

At Pinecrest logistics, in a sandbox Kubernetes cluster during a recovery tabletop exercise: A namespaced workload dispatch-api needs a dedicated service account sync-bot rather than the default identity. Work only within the stated target and verify before declaring success. Which observation best verifies the requested outcome rather than an unrelated state?

  1. Run kubectl -n fulfillment describe resourcequota dispatch-api-cpu and compare hard and used CPU requests.
  2. Run kubectl auth can-i list pods -n fulfillment --as=system:serviceaccount:fulfillment:sync-bot and expect yes.
  3. Run kubectl -n fulfillment get serviceaccount sync-bot and inspect the Deployment's serviceAccountName after binding it.
  4. Run helm status dispatch-api -n fulfillment and kubectl -n fulfillment get deployments to verify the intended chart workloads.

Explanation

Correct Answer

C:

Run kubectl -n fulfillment get serviceaccount sync-bot and inspect the Deployment's serviceAccountName after binding it. This validates the affected object or control path, rather than only showing a command completed. The underlying reason is: ServiceAccounts provide workload identity; creating one does not automatically grant extra RBAC permissions. The intended action is: Run kubectl -n fulfillment create serviceaccount sync-bot and set the workload to use that service account separately.

Incorrect Answers

A:

This observation would test a different technical dependency: A ResourceQuota caps combined admitted requests in a namespace; per-Pod limits alone do not enforce a namespace-wide budget. The current issue is governed by: ServiceAccounts provide workload identity; creating one does not automatically grant extra RBAC permissions. Its decisive check is “Run kubectl -n fulfillment get serviceaccount sync-bot and inspect the Deployment's serviceAccountName after binding it”.

B:

The alternative verifies a different condition: A RoleBinding associates the service account subject with a Role inside the binding namespace. The current case instead depends on: ServiceAccounts provide workload identity; creating one does not automatically grant extra RBAC permissions. Confirm that “Run kubectl -n fulfillment get serviceaccount sync-bot and inspect the Deployment's serviceAccountName after binding it”.

D:

This observation would test a different technical dependency: Helm maintains release revisions and renders templates; an install-or-upgrade path avoids treating an existing release as a new deployment. The current issue is governed by: ServiceAccounts provide workload identity; creating one does not automatically grant extra RBAC permissions. Its decisive check is “Run kubectl -n fulfillment get serviceaccount sync-bot and inspect the Deployment's serviceAccountName after binding it”.

Question 36

At Pinecrest logistics, in a sandbox Kubernetes cluster during a recovery tabletop exercise: A namespaced workload dispatch-api needs a dedicated service account sync-bot rather than the default identity. Work only within the stated target and verify before declaring success. Which operational control most directly prevents this failure or configuration drift?

  1. Monitor operator controller availability and CRD conversion compatibility across upgrades.
  2. Document versioned release checkpoints and test rollbacks before production updates.
  3. Include schedulability restoration in maintenance completion checklists.
  4. Review workload identity ownership and avoid unnecessary credentials on the default service account.

Explanation

Correct Answer

D:

Review workload identity ownership and avoid unnecessary credentials on the default service account. This reduces recurrence of the specific operational failure. It reinforces the action: Run kubectl -n fulfillment create serviceaccount sync-bot and set the workload to use that service account separately. The relevant mechanism is: ServiceAccounts provide workload identity; creating one does not automatically grant extra RBAC permissions.

Incorrect Answers

A:

The suggested review tracks a different technical risk: Custom resources are reconciled only when their schemas are registered and the operator controller is healthy. Here the sustained control must address: ServiceAccounts provide workload identity; creating one does not automatically grant extra RBAC permissions. Choose “Review workload identity ownership and avoid unnecessary credentials on the default service account”.

B:

That safeguard is relevant to: Helm rollback submits resources from a prior release revision but cannot automatically undo external side effects or storage migrations. The current failure instead follows from: ServiceAccounts provide workload identity; creating one does not automatically grant extra RBAC permissions. Its prevention measure is “Review workload identity ownership and avoid unnecessary credentials on the default service account”.

C:

This routine guards against another mechanism: Uncordon clears the Node's unschedulable status; it does not guarantee any particular Pod will be placed there. The recurring exposure in the current case is: ServiceAccounts provide workload identity; creating one does not automatically grant extra RBAC permissions. The matching preventive check is “Review workload identity ownership and avoid unnecessary credentials on the default service account”.

Question 37

At Northstar finance, in an isolated training cluster during a scheduled maintenance rehearsal: A controller identity in ledger needs only get, list, and watch access to Pods rather than namespace administrator privileges. Work only within the stated target and verify before declaring success. Which command or initial safe diagnostic step best addresses the stated lab task?

  1. Run kubectl -n ledger create serviceaccount release-bot and set the workload to use that service account separately.
  2. Run kubectl -n ledger create role invoice-api-pod-reader --verb=get,list,watch --resource=pods.
  3. Run kubectl apply --dry-run=server -f ./crds/invoice-api.yaml and review validation failures before any actual apply.
  4. Run kubectl -n ledger rollout status deployment/sample-operator and kubectl get crd samples.example.test.

Explanation

Correct Answer

B:

Run kubectl -n ledger create role invoice-api-pod-reader --verb=get,list,watch --resource=pods. This is the appropriate command-line action or first safe diagnostic. The technical reason is: A namespaced Role expresses allowed resource verbs; it has no effect until a RoleBinding associates a subject. Validate the result with: Run kubectl -n ledger get role invoice-api-pod-reader -o yaml and confirm only Pod read verbs are present. Execute changes only in an authorized disposable lab or after normal production change controls.

Incorrect Answers

A:

The offered action targets: ServiceAccounts provide workload identity; creating one does not automatically grant extra RBAC permissions. The case facts point instead to: A namespaced Role expresses allowed resource verbs; it has no effect until a RoleBinding associates a subject. Implement “Run kubectl -n ledger create role invoice-api-pod-reader --verb=get,list,watch --resource=pods” to address that specific condition.

C:

The proposed action belongs to the mechanism: Server-side dry-run evaluates admission and resource schema without persisting the CRD when supported by the relevant admission stack. Here the stated fault follows a different mechanism: A namespaced Role expresses allowed resource verbs; it has no effect until a RoleBinding associates a subject. The corrective choice is “Run kubectl -n ledger create role invoice-api-pod-reader --verb=get,list,watch --resource=pods”.

D:

The offered action targets: Custom resources are reconciled only when their schemas are registered and the operator controller is healthy. The case facts point instead to: A namespaced Role expresses allowed resource verbs; it has no effect until a RoleBinding associates a subject. Implement “Run kubectl -n ledger create role invoice-api-pod-reader --verb=get,list,watch --resource=pods” to address that specific condition.

Question 38

At Northstar finance, in an isolated training cluster during a scheduled maintenance rehearsal: A controller identity in ledger needs only get, list, and watch access to Pods rather than namespace administrator privileges. Work only within the stated target and verify before declaring success. Which Kubernetes behavior best explains the required change or diagnosis?

  1. A ClusterRoleBinding applies its referenced ClusterRole permission set at cluster scope to the named group.
  2. A RoleBinding associates the service account subject with a Role inside the binding namespace.
  3. A namespaced Role expresses allowed resource verbs; it has no effect until a RoleBinding associates a subject.
  4. Helm maintains release revisions and renders templates; an install-or-upgrade path avoids treating an existing release as a new deployment.

Explanation

Correct Answer

C:

A namespaced Role expresses allowed resource verbs; it has no effect until a RoleBinding associates a subject. This explains the stated condition. The corresponding action is: Run kubectl -n ledger create role invoice-api-pod-reader --verb=get,list,watch --resource=pods. The direct acceptance evidence is: Run kubectl -n ledger get role invoice-api-pod-reader -o yaml and confirm only Pod read verbs are present.

Incorrect Answers

A:

This principle describes a separate cause: A ClusterRoleBinding applies its referenced ClusterRole permission set at cluster scope to the named group. The reported condition is governed by: A namespaced Role expresses allowed resource verbs; it has no effect until a RoleBinding associates a subject. The two mechanisms should not be conflated.

B:

A RoleBinding associates the service account subject with a Role inside the binding namespace. That explanation applies to a different technical failure. Here the controlling principle is: A namespaced Role expresses allowed resource verbs; it has no effect until a RoleBinding associates a subject.

D:

This principle describes a separate cause: Helm maintains release revisions and renders templates; an install-or-upgrade path avoids treating an existing release as a new deployment. The reported condition is governed by: A namespaced Role expresses allowed resource verbs; it has no effect until a RoleBinding associates a subject. The two mechanisms should not be conflated.

Question 39

At Northstar finance, in an isolated training cluster during a scheduled maintenance rehearsal: A controller identity in ledger needs only get, list, and watch access to Pods rather than namespace administrator privileges. Work only within the stated target and verify before declaring success. Which observation best verifies the requested outcome rather than an unrelated state?

  1. Run kubectl get node worker-a and verify SchedulingDisabled is shown.
  2. Run kubectl auth can-i list nodes --as=auditor --as-group=ops-observers using an authorized impersonation-capable admin context.
  3. Run helm status invoice-api -n ledger and kubectl -n ledger get deployments to verify the intended chart workloads.
  4. Run kubectl -n ledger get role invoice-api-pod-reader -o yaml and confirm only Pod read verbs are present.

Explanation

Correct Answer

D:

Run kubectl -n ledger get role invoice-api-pod-reader -o yaml and confirm only Pod read verbs are present. This validates the affected object or control path, rather than only showing a command completed. The underlying reason is: A namespaced Role expresses allowed resource verbs; it has no effect until a RoleBinding associates a subject. The intended action is: Run kubectl -n ledger create role invoice-api-pod-reader --verb=get,list,watch --resource=pods.

Incorrect Answers

A:

The alternative verifies a different condition: Cordon marks a Node unschedulable to new Pods but does not drain running workloads. The current case instead depends on: A namespaced Role expresses allowed resource verbs; it has no effect until a RoleBinding associates a subject. Confirm that “Run kubectl -n ledger get role invoice-api-pod-reader -o yaml and confirm only Pod read verbs are present”.

B:

That test belongs to another control with this basis: A ClusterRoleBinding applies its referenced ClusterRole permission set at cluster scope to the named group. In the current case, the governing reason is: A namespaced Role expresses allowed resource verbs; it has no effect until a RoleBinding associates a subject. The direct verification is “Run kubectl -n ledger get role invoice-api-pod-reader -o yaml and confirm only Pod read verbs are present”.

C:

This observation would test a different technical dependency: Helm maintains release revisions and renders templates; an install-or-upgrade path avoids treating an existing release as a new deployment. The current issue is governed by: A namespaced Role expresses allowed resource verbs; it has no effect until a RoleBinding associates a subject. Its decisive check is “Run kubectl -n ledger get role invoice-api-pod-reader -o yaml and confirm only Pod read verbs are present”.

Question 40

At Northstar finance, in an isolated training cluster during a scheduled maintenance rehearsal: A controller identity in ledger needs only get, list, and watch access to Pods rather than namespace administrator privileges. Work only within the stated target and verify before declaring success. Which operational control most directly prevents this failure or configuration drift?

  1. Keep namespace-scoped read policies in version control and avoid wildcard verbs or resources.
  2. Use narrowly defined ClusterRoles and periodically audit cluster-wide grants.
  3. Add explicit allowed-and-denied authorization tests after RBAC changes.
  4. Review namespace quota headroom after material changes in workload size or tenancy.

Explanation

Correct Answer

A:

Keep namespace-scoped read policies in version control and avoid wildcard verbs or resources. This reduces recurrence of the specific operational failure. It reinforces the action: Run kubectl -n ledger create role invoice-api-pod-reader --verb=get,list,watch --resource=pods. The relevant mechanism is: A namespaced Role expresses allowed resource verbs; it has no effect until a RoleBinding associates a subject.

Incorrect Answers

B:

This routine guards against another mechanism: Nodes are cluster-scoped and their access rules belong in a ClusterRole rather than a namespaced Role. The recurring exposure in the current case is: A namespaced Role expresses allowed resource verbs; it has no effect until a RoleBinding associates a subject. The matching preventive check is “Keep namespace-scoped read policies in version control and avoid wildcard verbs or resources”.

C:

The suggested review tracks a different technical risk: RBAC authorization decisions depend on the subject, verb, resource and namespace; an admin's own access does not prove the workload identity's access. Here the sustained control must address: A namespaced Role expresses allowed resource verbs; it has no effect until a RoleBinding associates a subject. Choose “Keep namespace-scoped read policies in version control and avoid wildcard verbs or resources”.

D:

That safeguard is relevant to: A ResourceQuota caps combined admitted requests in a namespace; per-Pod limits alone do not enforce a namespace-wide budget. The current failure instead follows from: A namespaced Role expresses allowed resource verbs; it has no effect until a RoleBinding associates a subject. Its prevention measure is “Keep namespace-scoped read policies in version control and avoid wildcard verbs or resources”.