AWS Certified DevOps Engineer – Professional (DOP-C02) — Question 326

A DevOps team is deploying microservices for an application on an Amazon Elastic Kubernetes Service (Amazon EKS) cluster. The cluster uses managed node groups. The DevOps team wants to enable auto scaling for the microservice Pods based on a specific CPU utilization percentage. The DevOps team has already installed the Kubernetes Metrics Server on the cluster.

Which solution will meet these requirements in the MOST operationally efficient way?

Answer options

Correct answer: D

Explanation

To scale Pods based on CPU utilization, the Kubernetes Horizontal Pod Autoscaler (HPA) must be deployed to utilize metrics from the Metrics Server. However, scaling up Pods can lead to resource exhaustion on the existing nodes, which requires the Kubernetes Cluster Autoscaler to automatically adjust the size of the EKS managed node group. Other solutions either scale the underlying EC2 instances directly without scaling the Pods themselves (A and C) or fail to scale the cluster's physical capacity when Pod replicas exceed node limits (B).