McAfee-Secured Website

Exam 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 Video 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

    Video Course

    138 Video Lectures

    $39.99
  • Study Guide

    Study Guide

    268 PDF Pages

    $29.99

CNCF CKA Practice Test 23

Question 220

A Kubernetes administrator recommends: Create the required Secret in payments and reference its namespaced name from the Pod specification. Which situation most directly calls for that operation?

  1. An HPA remains at unknown current CPU utilization because no resource metrics are available.
  2. A new API image causes a readiness regression and the prior Deployment revision was functional.
  3. A Pod in payments references a Secret created only in default, so its container setup fails.
  4. A JVM container takes two minutes for initial startup and is killed repeatedly by an aggressive liveness probe.

Explanation

Correct Answer

C:

This is the original issue addressed by Namespace-specific Secret resolution: The Pod resolves a Secret in its own namespace rather than relying on another namespace's object.

Incorrect Answers

A:

That separate problem requires another operation: Install or repair a compatible metrics-server and verify kubectl top pods before tuning the HPA. CPU utilization metrics become available for the HPA controller to compute replica recommendations.

B:

That separate problem requires another operation: Use kubectl rollout undo deployment/api followed by rollout status to return to the previous revision. The workload returns to the previous Pod template while the Deployment controller manages replacement replicas.

D:

That separate problem requires another operation: Use a startupProbe with sufficient failureThreshold and periodSeconds before normal liveness checks begin. The application gets startup time without disabling ongoing liveness detection after initialization.

Question 221

An HPA remains at unknown current CPU utilization because no resource metrics are available. Which Kubernetes administration step most directly addresses this problem?

  1. Create a PodDisruptionBudget with minAvailable: 2 for the correct labeled Pods.
  2. Install or repair a compatible metrics-server and verify kubectl top pods before tuning the HPA.
  3. Specify meaningful per-container CPU requests and keep a supported HPA utilization metric target.
  4. Configure a rolling update strategy with maxUnavailable: 0 and an appropriate positive maxSurge.

Explanation

Correct Answer

B:

This action addresses HPA metrics API missing: CPU utilization metrics become available for the HPA controller to compute replica recommendations.

Incorrect Answers

A:

This instead addresses PodDisruptionBudget safety: Voluntary evictions respect the intended minimum available replica count during coordinated maintenance. It does not directly correct the original HPA metrics API missing issue.

C:

This instead addresses HPA CPU requests prerequisite: The autoscaler has the request baseline needed for percentage-based CPU utilization decisions. It does not directly correct the original HPA metrics API missing issue.

D:

This instead addresses Rollout surge unavailability control: The Deployment can temporarily add replacement replicas without intentionally reducing available capacity. It does not directly correct the original HPA metrics API missing issue.

Question 222

A Kubernetes administrator performs the following operation: Install or repair a compatible metrics-server and verify kubectl top pods before tuning the HPA. Which outcome most directly follows?

  1. The Deployment can temporarily add replacement replicas without intentionally reducing available capacity.
  2. The autoscaler has the request baseline needed for percentage-based CPU utilization decisions.
  3. CPU utilization metrics become available for the HPA controller to compute replica recommendations.
  4. Voluntary evictions respect the intended minimum available replica count during coordinated maintenance.

Explanation

Correct Answer

C:

This is the intended effect of HPA metrics API missing: CPU utilization metrics become available for the HPA controller to compute replica recommendations.

Incorrect Answers

A:

This effect belongs to Rollout surge unavailability control, produced by a different operation: Configure a rolling update strategy with maxUnavailable: 0 and an appropriate positive maxSurge. It is not the direct consequence of the stated action.

B:

This effect belongs to HPA CPU requests prerequisite, produced by a different operation: Specify meaningful per-container CPU requests and keep a supported HPA utilization metric target. It is not the direct consequence of the stated action.

D:

This effect belongs to PodDisruptionBudget safety, produced by a different operation: Create a PodDisruptionBudget with minAvailable: 2 for the correct labeled Pods. It is not the direct consequence of the stated action.

Question 223

An HPA remains at unknown current CPU utilization because no resource metrics are available. A colleague instead proposes: Specify meaningful per-container CPU requests and keep a supported HPA utilization metric target. Which step best corrects the approach to the original issue?

  1. Configure a rolling update strategy with maxUnavailable: 0 and an appropriate positive maxSurge.
  2. Create a PodDisruptionBudget with minAvailable: 2 for the correct labeled Pods.
  3. Specify meaningful per-container CPU requests and keep a supported HPA utilization metric target.
  4. Install or repair a compatible metrics-server and verify kubectl top pods before tuning the HPA.

Explanation

Correct Answer

D:

This correction targets HPA metrics API missing: CPU utilization metrics become available for the HPA controller to compute replica recommendations.

Incorrect Answers

A:

This option concerns Rollout surge unavailability control instead. The Deployment can temporarily add replacement replicas without intentionally reducing available capacity.

B:

This option concerns PodDisruptionBudget safety instead. Voluntary evictions respect the intended minimum available replica count during coordinated maintenance.

C:

This option concerns HPA CPU requests prerequisite instead. The autoscaler has the request baseline needed for percentage-based CPU utilization decisions.

Question 224

A Kubernetes administrator recommends: Install or repair a compatible metrics-server and verify kubectl top pods before tuning the HPA. Which situation most directly calls for that operation?

  1. An HPA remains at unknown current CPU utilization because no resource metrics are available.
  2. A customer-facing Deployment must keep all current replicas available during a cautious image rollout.
  3. A maintenance drain must not simultaneously evict all three healthy replicas of a critical stateless controller.
  4. A Deployment has no CPU requests and its utilization-based HPA cannot calculate a reliable target percentage.

Explanation

Correct Answer

A:

This is the original issue addressed by HPA metrics API missing: CPU utilization metrics become available for the HPA controller to compute replica recommendations.

Incorrect Answers

B:

That separate problem requires another operation: Configure a rolling update strategy with maxUnavailable: 0 and an appropriate positive maxSurge. The Deployment can temporarily add replacement replicas without intentionally reducing available capacity.

C:

That separate problem requires another operation: Create a PodDisruptionBudget with minAvailable: 2 for the correct labeled Pods. Voluntary evictions respect the intended minimum available replica count during coordinated maintenance.

D:

That separate problem requires another operation: Specify meaningful per-container CPU requests and keep a supported HPA utilization metric target. The autoscaler has the request baseline needed for percentage-based CPU utilization decisions.

Question 225

A Deployment has no CPU requests and its utilization-based HPA cannot calculate a reliable target percentage. Which Kubernetes administration step most directly addresses this problem?

  1. Manage the application under a Deployment with a suitable replica count instead of relying on a standalone Pod.
  2. Increase spec.maxReplicas after checking cluster capacity and desired risk limits.
  3. Run kubectl rollout pause, apply the intended Pod-template edits, then rollout resume after review.
  4. Specify meaningful per-container CPU requests and keep a supported HPA utilization metric target.

Explanation

Correct Answer

D:

This action addresses HPA CPU requests prerequisite: The autoscaler has the request baseline needed for percentage-based CPU utilization decisions.

Incorrect Answers

A:

This instead addresses Deployment self-healing controller: The controller creates replacement Pod replicas to restore the declared workload state. It does not directly correct the original HPA CPU requests prerequisite issue.

B:

This instead addresses HPA max replicas limit: The HPA may expand beyond the old replica cap when metrics justify more Pods. It does not directly correct the original HPA CPU requests prerequisite issue.

C:

This instead addresses Paused rollout edit: The related changes can be reviewed together instead of triggering intermediate rollout steps. It does not directly correct the original HPA CPU requests prerequisite issue.

Question 226

A Kubernetes administrator performs the following operation: Specify meaningful per-container CPU requests and keep a supported HPA utilization metric target. Which outcome most directly follows?

  1. The autoscaler has the request baseline needed for percentage-based CPU utilization decisions.
  2. The related changes can be reviewed together instead of triggering intermediate rollout steps.
  3. The HPA may expand beyond the old replica cap when metrics justify more Pods.
  4. The controller creates replacement Pod replicas to restore the declared workload state.

Explanation

Correct Answer

A:

This is the intended effect of HPA CPU requests prerequisite: The autoscaler has the request baseline needed for percentage-based CPU utilization decisions.

Incorrect Answers

B:

This effect belongs to Paused rollout edit, produced by a different operation: Run kubectl rollout pause, apply the intended Pod-template edits, then rollout resume after review. It is not the direct consequence of the stated action.

C:

This effect belongs to HPA max replicas limit, produced by a different operation: Increase spec.maxReplicas after checking cluster capacity and desired risk limits. It is not the direct consequence of the stated action.

D:

This effect belongs to Deployment self-healing controller, produced by a different operation: Manage the application under a Deployment with a suitable replica count instead of relying on a standalone Pod. It is not the direct consequence of the stated action.

Question 227

A Deployment has no CPU requests and its utilization-based HPA cannot calculate a reliable target percentage. A colleague instead proposes: Increase spec.maxReplicas after checking cluster capacity and desired risk limits. Which step best corrects the approach to the original issue?

  1. Manage the application under a Deployment with a suitable replica count instead of relying on a standalone Pod.
  2. Specify meaningful per-container CPU requests and keep a supported HPA utilization metric target.
  3. Run kubectl rollout pause, apply the intended Pod-template edits, then rollout resume after review.
  4. Increase spec.maxReplicas after checking cluster capacity and desired risk limits.

Explanation

Correct Answer

B:

This correction targets HPA CPU requests prerequisite: The autoscaler has the request baseline needed for percentage-based CPU utilization decisions.

Incorrect Answers

A:

This option concerns Deployment self-healing controller instead. The controller creates replacement Pod replicas to restore the declared workload state.

C:

This option concerns Paused rollout edit instead. The related changes can be reviewed together instead of triggering intermediate rollout steps.

D:

This option concerns HPA max replicas limit instead. The HPA may expand beyond the old replica cap when metrics justify more Pods.

Question 228

A Kubernetes administrator recommends: Specify meaningful per-container CPU requests and keep a supported HPA utilization metric target. Which situation most directly calls for that operation?

  1. A release team wants to stage multiple changes to a Deployment before allowing the rollout to proceed.
  2. A single bare Pod dies after a node disappears and never recreates automatically on another node.
  3. A Deployment has no CPU requests and its utilization-based HPA cannot calculate a reliable target percentage.
  4. A service scales only to four replicas under sustained load although the HPA requests additional capacity.

Explanation

Correct Answer

C:

This is the original issue addressed by HPA CPU requests prerequisite: The autoscaler has the request baseline needed for percentage-based CPU utilization decisions.

Incorrect Answers

A:

That separate problem requires another operation: Run kubectl rollout pause, apply the intended Pod-template edits, then rollout resume after review. The related changes can be reviewed together instead of triggering intermediate rollout steps.

B:

That separate problem requires another operation: Manage the application under a Deployment with a suitable replica count instead of relying on a standalone Pod. The controller creates replacement Pod replicas to restore the declared workload state.

D:

That separate problem requires another operation: Increase spec.maxReplicas after checking cluster capacity and desired risk limits. The HPA may expand beyond the old replica cap when metrics justify more Pods.

Question 229

A service scales only to four replicas under sustained load although the HPA requests additional capacity. Which Kubernetes administration step most directly addresses this problem?

  1. Inspect kubectl rollout history deployment/api and compare ReplicaSet template images and revisions.
  2. Set requiredDuringSchedulingIgnoredDuringExecution nodeAffinity selecting accelerator=nvidia.
  3. Increase spec.maxReplicas after checking cluster capacity and desired risk limits.
  4. Adjust HPA desired metric targets or bounds rather than repeatedly overwriting the Deployment scale field.

Explanation

Correct Answer

C:

This action addresses HPA max replicas limit: The HPA may expand beyond the old replica cap when metrics justify more Pods.

Incorrect Answers

A:

This instead addresses Deployment revision evidence: The team selects the correct rollback revision rather than guessing which running Pods are older. It does not directly correct the original HPA max replicas limit issue.

B:

This instead addresses Node affinity hard requirement: The scheduler restricts placement to nodes satisfying the mandatory label expression. It does not directly correct the original HPA max replicas limit issue.

D:

This instead addresses HPA target conflict manual scale: The autoscaling controller and intended desired capacity policies no longer compete with manual changes. It does not directly correct the original HPA max replicas limit issue.

Question 230

A Kubernetes administrator performs the following operation: Increase spec.maxReplicas after checking cluster capacity and desired risk limits. Which outcome most directly follows?

  1. The autoscaling controller and intended desired capacity policies no longer compete with manual changes.
  2. The scheduler restricts placement to nodes satisfying the mandatory label expression.
  3. The team selects the correct rollback revision rather than guessing which running Pods are older.
  4. The HPA may expand beyond the old replica cap when metrics justify more Pods.

Explanation

Correct Answer

D:

This is the intended effect of HPA max replicas limit: The HPA may expand beyond the old replica cap when metrics justify more Pods.

Incorrect Answers

A:

This effect belongs to HPA target conflict manual scale, produced by a different operation: Adjust HPA desired metric targets or bounds rather than repeatedly overwriting the Deployment scale field. It is not the direct consequence of the stated action.

B:

This effect belongs to Node affinity hard requirement, produced by a different operation: Set requiredDuringSchedulingIgnoredDuringExecution nodeAffinity selecting accelerator=nvidia. It is not the direct consequence of the stated action.

C:

This effect belongs to Deployment revision evidence, produced by a different operation: Inspect kubectl rollout history deployment/api and compare ReplicaSet template images and revisions. It is not the direct consequence of the stated action.