Kcna Kubernetes And Cloud Native Associate · Free Practice Question Medium

Question 43

You have deployed an application on a Kubernetes cluster consisting of nodes across different availability zones (AZs). Your application must maintain high availability, but you observe that the Pods for your application are all scheduled in a single AZ. What would you do to ensure that the Pods are distributed across different AZs?

  • A

    Set up a Horizontal Pod Autoscaler to distribute the Pods across nodes.

  • B

    Use node taints specific to each AZ and add corresponding tolerations to the Pods.

  • C

    Use affinity and anti-affinity rules to influence the Pod scheduling across multiple AZs.

  • D

    Create a separate namespace for each AZ and deploy the Pods there.

Reveal correct answer

Correct answer: C

A.

A Horizontal Pod Autoscaler adjusts the number of Pods, but doesn't control distribution across AZs.

B.

Node taints and tolerations aren't typically used for spreading Pods across different AZs.

C.

Affinity and anti-affinity rules can be used to set conditions that help distribute Pods across different AZs.

D.

Creating a separate namespace for each AZ complicates management and doesn't inherently distribute Pods.

Discussion

Think the marked answer is wrong, or have a better explanation? Share it below — comments appear after review.

You must be logged in to post a comment.

Preparing For

Your Certification?

255+ certifications
Detailed explanations
Free PDF samples

Has All The Questions You Need