AWS Certified Solutions Architect – Professional (SAP-C02) — Question 398
A company is preparing to deploy an Amazon Elastic Kubernetes Service (Amazon EKS) cluster for a workload. The company expects the cluster to support an unpredictable number of stateless pods. Many of the pods will be created during a short time period as the workload automatically scales the number of replicas that the workload uses.
Which solution will MAXIMIZE node resilience?
Answer options
- A. Use a separate launch template to deploy the EKS control plane into a second cluster that is separate from the workload node groups.
- B. Update the workload node groups. Use a smaller number of node groups and larger instances in the node groups.
- C. Configure the Kubernetes Cluster Autoscaler to ensure that the compute capacity of the workload node groups stays underprovisioned.
- D. Configure the workload to use topology spread constraints that are based on Availability Zone.
Correct answer: D
Explanation
Using topology spread constraints based on Availability Zones ensures that Kubernetes distributes stateless pods evenly across multiple failure domains, which prevents a single zone or node failure from disrupting the entire application. Conversely, using larger instances increases the blast radius of a single node failure, while keeping the cluster underprovisioned would lead to scheduling failures during rapid scaling events.