Kcna Kubernetes And Cloud Native Associate · Free Practice Question Medium

Question 37

Your cloud-native application is experiencing fluctuating traffic, with sudden spikes during certain times of the day. You are using Kubernetes. What would be the most effective way to automatically handle the varying load?

  • A

    Use Kubernetes' Horizontal Pod Autoscaler (HPA) based on CPU and memory utilization.

  • B

    Manually scale up the number of pod replicas during peak times.

  • C

    Use Cluster Autoscaler to add more nodes to the cluster during high traffic.

  • D

    Use a CronJob to schedule scaling operations based on known peak times.

Reveal correct answer

Correct answer: A

A.

Kubernetes' Horizontal Pod Autoscaler (HPA) can automatically scale the number of pod replicas based on observed CPU and memory utilization, making it the most effective for handling varying loads.

B.

Manually scaling is not an effective or automated solution for fluctuating traffic.

C.

Cluster Autoscaler adds more nodes to the cluster, which might be an overkill for application-level traffic spikes and also incurs more cost.

D.

Using a CronJob might work for predictable traffic but won't be effective for sudden, unexpected spikes.

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