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 19

Question 180

A Kubernetes administrator recommends: Use kubectl set image deployment/api api=registry.example/api:v2 and watch kubectl rollout status. Which situation most directly calls for that operation?

  1. A production API Deployment needs a patch version without dropping all replicas simultaneously.
  2. A process can deadlock without exiting, causing a Pod to stay Running while no requests complete.
  3. A new API image causes a readiness regression and the prior Deployment revision was functional.
  4. A Pod is waiting in CreateContainerConfigError because a referenced Secret does not contain the required db-password key.

Explanation

Correct Answer

A:

This is the original issue addressed by Deployment image rollout: The Deployment controller gradually replaces old replicas while checking the progress of the rollout.

Incorrect Answers

B:

That separate problem requires another operation: Configure a livenessProbe against a genuine local health signal and review restart thresholds. The kubelet can restart the unresponsive container rather than leaving a permanently hung process.

C:

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: Inspect the Secret keys and Pod env.valueFrom.secretKeyRef, then align the referenced key with the intended Secret entry. The container environment can be constructed once the referenced Secret key actually exists.

Question 181

A new API image causes a readiness regression and the prior Deployment revision was functional. Which Kubernetes administration step most directly addresses this problem?

  1. Use kubectl rollout undo deployment/api followed by rollout status to return to the previous revision.
  2. Use a startupProbe with sufficient failureThreshold and periodSeconds before normal liveness checks begin.
  3. Remove the subPath dependency for dynamic projected updates or intentionally restart the Pod when values change.
  4. Configure a rolling update strategy with maxUnavailable: 0 and an appropriate positive maxSurge.

Explanation

Correct Answer

A:

This action addresses Deployment undo after regression: The workload returns to the previous Pod template while the Deployment controller manages replacement replicas.

Incorrect Answers

B:

This instead addresses Startup probe slow boot: The application gets startup time without disabling ongoing liveness detection after initialization. It does not directly correct the original Deployment undo after regression issue.

C:

This instead addresses ConfigMap subPath update behavior: Configuration refresh follows documented volume projection behavior instead of assuming subPath files update automatically. It does not directly correct the original Deployment undo after regression 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 Deployment undo after regression issue.

Question 182

A Kubernetes administrator performs the following operation: Use kubectl rollout undo deployment/api followed by rollout status to return to the previous revision. Which outcome most directly follows?

  1. Configuration refresh follows documented volume projection behavior instead of assuming subPath files update automatically.
  2. The workload returns to the previous Pod template while the Deployment controller manages replacement replicas.
  3. The Deployment can temporarily add replacement replicas without intentionally reducing available capacity.
  4. The application gets startup time without disabling ongoing liveness detection after initialization.

Explanation

Correct Answer

B:

This is the intended effect of Deployment undo after regression: The workload returns to the previous Pod template while the Deployment controller manages replacement replicas.

Incorrect Answers

A:

This effect belongs to ConfigMap subPath update behavior, produced by a different operation: Remove the subPath dependency for dynamic projected updates or intentionally restart the Pod when values change. It is not the direct consequence of the stated action.

C:

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.

D:

This effect belongs to Startup probe slow boot, produced by a different operation: Use a startupProbe with sufficient failureThreshold and periodSeconds before normal liveness checks begin. It is not the direct consequence of the stated action.

Question 183

A new API image causes a readiness regression and the prior Deployment revision was functional. A colleague instead proposes: Configure a rolling update strategy with maxUnavailable: 0 and an appropriate positive maxSurge. Which step best corrects the approach to the original issue?

  1. Use a startupProbe with sufficient failureThreshold and periodSeconds before normal liveness checks begin.
  2. Configure a rolling update strategy with maxUnavailable: 0 and an appropriate positive maxSurge.
  3. Use kubectl rollout undo deployment/api followed by rollout status to return to the previous revision.
  4. Remove the subPath dependency for dynamic projected updates or intentionally restart the Pod when values change.

Explanation

Correct Answer

C:

This correction targets Deployment undo after regression: The workload returns to the previous Pod template while the Deployment controller manages replacement replicas.

Incorrect Answers

A:

This option concerns Startup probe slow boot instead. The application gets startup time without disabling ongoing liveness detection after initialization.

B:

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

D:

This option concerns ConfigMap subPath update behavior instead. Configuration refresh follows documented volume projection behavior instead of assuming subPath files update automatically.

Question 184

A Kubernetes administrator recommends: Use kubectl rollout undo deployment/api followed by rollout status to return to the previous revision. Which situation most directly calls for that operation?

  1. A customer-facing Deployment must keep all current replicas available during a cautious image rollout.
  2. A service mounts a single ConfigMap file with subPath and expects updates to propagate live without Pod recreation.
  3. A JVM container takes two minutes for initial startup and is killed repeatedly by an aggressive liveness probe.
  4. A new API image causes a readiness regression and the prior Deployment revision was functional.

Explanation

Correct Answer

D:

This is the original issue addressed by Deployment undo after regression: The workload returns to the previous Pod template while the Deployment controller manages replacement replicas.

Incorrect Answers

A:

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.

B:

That separate problem requires another operation: Remove the subPath dependency for dynamic projected updates or intentionally restart the Pod when values change. Configuration refresh follows documented volume projection behavior instead of assuming subPath files update automatically.

C:

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 185

A customer-facing Deployment must keep all current replicas available during a cautious image rollout. Which Kubernetes administration step most directly addresses this problem?

  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. Create the required Secret in payments and reference its namespaced name from the Pod specification.
  4. Run kubectl rollout pause, apply the intended Pod-template edits, then rollout resume after review.

Explanation

Correct Answer

A:

This action addresses Rollout surge unavailability control: The Deployment can temporarily add replacement replicas without intentionally reducing available capacity.

Incorrect Answers

B:

This instead addresses PodDisruptionBudget safety: Voluntary evictions respect the intended minimum available replica count during coordinated maintenance. It does not directly correct the original Rollout surge unavailability control issue.

C:

This instead addresses Namespace-specific Secret resolution: The Pod resolves a Secret in its own namespace rather than relying on another namespace's object. It does not directly correct the original Rollout surge unavailability control issue.

D:

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 Rollout surge unavailability control issue.

Question 186

A Kubernetes administrator performs the following operation: Configure a rolling update strategy with maxUnavailable: 0 and an appropriate positive maxSurge. Which outcome most directly follows?

  1. Voluntary evictions respect the intended minimum available replica count during coordinated maintenance.
  2. The Deployment can temporarily add replacement replicas without intentionally reducing available capacity.
  3. The related changes can be reviewed together instead of triggering intermediate rollout steps.
  4. The Pod resolves a Secret in its own namespace rather than relying on another namespace's object.

Explanation

Correct Answer

B:

This is the intended effect of Rollout surge unavailability control: The Deployment can temporarily add replacement replicas without intentionally reducing available capacity.

Incorrect Answers

A:

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.

C:

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.

D:

This effect belongs to Namespace-specific Secret resolution, produced by a different operation: Create the required Secret in payments and reference its namespaced name from the Pod specification. It is not the direct consequence of the stated action.

Question 187

A customer-facing Deployment must keep all current replicas available during a cautious image rollout. A colleague instead proposes: Run kubectl rollout pause, apply the intended Pod-template edits, then rollout resume after review. Which step best corrects the approach to the original issue?

  1. Run kubectl rollout pause, apply the intended Pod-template edits, then rollout resume after review.
  2. Create the required Secret in payments and reference its namespaced name from the Pod specification.
  3. Configure a rolling update strategy with maxUnavailable: 0 and an appropriate positive maxSurge.
  4. Create a PodDisruptionBudget with minAvailable: 2 for the correct labeled Pods.

Explanation

Correct Answer

C:

This correction targets Rollout surge unavailability control: The Deployment can temporarily add replacement replicas without intentionally reducing available capacity.

Incorrect Answers

A:

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

B:

This option concerns Namespace-specific Secret resolution instead. The Pod resolves a Secret in its own namespace rather than relying on another namespace's object.

D:

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

Question 188

A Kubernetes administrator recommends: Configure a rolling update strategy with maxUnavailable: 0 and an appropriate positive maxSurge. Which situation most directly calls for that operation?

  1. A maintenance drain must not simultaneously evict all three healthy replicas of a critical stateless controller.
  2. A Pod in payments references a Secret created only in default, so its container setup fails.
  3. A release team wants to stage multiple changes to a Deployment before allowing the rollout to proceed.
  4. A customer-facing Deployment must keep all current replicas available during a cautious image rollout.

Explanation

Correct Answer

D:

This is the original issue addressed by Rollout surge unavailability control: The Deployment can temporarily add replacement replicas without intentionally reducing available capacity.

Incorrect Answers

A:

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.

B:

That separate problem requires another operation: Create the required Secret in payments and reference its namespaced name from the Pod specification. The Pod resolves a Secret in its own namespace rather than relying on another namespace's object.

C:

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.

Question 189

A release team wants to stage multiple changes to a Deployment before allowing the rollout to proceed. Which Kubernetes administration step most directly addresses this problem?

  1. Inspect kubectl rollout history deployment/api and compare ReplicaSet template images and revisions.
  2. Manage the application under a Deployment with a suitable replica count instead of relying on a standalone Pod.
  3. Install or repair a compatible metrics-server and verify kubectl top pods before tuning the HPA.
  4. Run kubectl rollout pause, apply the intended Pod-template edits, then rollout resume after review.

Explanation

Correct Answer

D:

This action addresses Paused rollout edit: The related changes can be reviewed together instead of triggering intermediate rollout steps.

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 Paused rollout edit issue.

B:

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 Paused rollout edit issue.

C:

This instead addresses HPA metrics API missing: CPU utilization metrics become available for the HPA controller to compute replica recommendations. It does not directly correct the original Paused rollout edit issue.

Question 190

A Kubernetes administrator performs the following operation: Run kubectl rollout pause, apply the intended Pod-template edits, then rollout resume after review. Which outcome most directly follows?

  1. The related changes can be reviewed together instead of triggering intermediate rollout steps.
  2. The team selects the correct rollback revision rather than guessing which running Pods are older.
  3. The controller creates replacement Pod replicas to restore the declared workload state.
  4. CPU utilization metrics become available for the HPA controller to compute replica recommendations.

Explanation

Correct Answer

A:

This is the intended effect of Paused rollout edit: The related changes can be reviewed together instead of triggering intermediate rollout steps.

Incorrect Answers

B:

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.

C:

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.

D:

This effect belongs to HPA metrics API missing, produced by a different operation: Install or repair a compatible metrics-server and verify kubectl top pods before tuning the HPA. It is not the direct consequence of the stated action.