AWS Certified DevOps Engineer – Professional (DOP-C02) — Question 246
A company recently migrated its application to an Amazon Elastic Kubernetes Service (Amazon EKS) cluster that uses Amazon EC2 instances. The company configured the application to automatically scale based on CPU utilization.
The application produces memory errors when it experiences heavy loads. The application also does not scale out enough to handle the increased load. The company needs to collect and analyze memory metrics for the application over time.
Which combination of steps will meet these requirements? (Choose three.)
Answer options
- A. Attach the CloudWatchAgentServerPolicy managed IAM policy to the IAM instance profile that the cluster uses.
- B. Attach the CloudWatchAgentServerPolicy managed IAM policy to a service account role for the cluster.
- C. Collect performance metrics by deploying the unified Amazon CloudWatch agent to the existing EC2 instances in the cluster. Add the agent to the AMI for any new EC2 instances that are added to the cluster.
- D. Collect performance logs by deploying the AWS Distro for OpenTelemetry collector as a DaemonSet.
- E. Analyze the pod_memory_utilization Amazon CloudWatch metric in the ContainerInsights namespace by using the Service dimension.
- F. Analyze the node_memory_utilization Amazon CloudWatch metric in the ContainerInsights namespace by using the ClusterName dimension.
Correct answer: A, C, E
Explanation
The correct steps include attaching the CloudWatchAgentServerPolicy managed IAM policy to the IAM instance profile to grant the necessary permissions, deploying the Amazon CloudWatch agent to collect performance metrics, and analyzing the pod_memory_utilization metric to track memory usage. Options B and D do not directly address the collection of memory metrics as required, while F focuses on node-level metrics instead of pod-level metrics.