nerdexam
Amazon

DOP-C02 · Question #283

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…

The correct answer is A. Attach the CloudWatchAgentServerPolicy managed IAM policy to the IAM instance profile that the C. Collect performance metrics by deploying the unified Amazon CloudWatch agent to the existing E. Analyze the pod_memory_utilization Amazon CloudWatch metric in the ContainerInsights. To collect and analyze EKS application memory metrics and address scaling issues, attach the CloudWatchAgentServerPolicy to the EKS node's instance profile, deploy the unified CloudWatch agent, and then analyze the pod_memory_utilization metric in Container Insights.

Submitted by viktor_hu· Mar 6, 2026Monitoring & Logging

Question

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.)

Options

  • AAttach the CloudWatchAgentServerPolicy managed IAM policy to the IAM instance profile that the
  • BAttach the CloudWatchAgentServerPolicy managed IAM policy to a service account role for the
  • CCollect performance metrics by deploying the unified Amazon CloudWatch agent to the existing
  • DCollect performance logs by deploying the AWS Distro for OpenTelemetry collector as a
  • EAnalyze the pod_memory_utilization Amazon CloudWatch metric in the ContainerInsights
  • FAnalyze the node_memory_utilization Amazon CloudWatch metric in the ContainerInsights

How the community answered

(64 responses)
  • A
    67% (43)
  • B
    17% (11)
  • D
    11% (7)
  • F
    5% (3)

Why each option

To collect and analyze EKS application memory metrics and address scaling issues, attach the CloudWatchAgentServerPolicy to the EKS node's instance profile, deploy the unified CloudWatch agent, and then analyze the `pod_memory_utilization` metric in Container Insights.

AAttach the CloudWatchAgentServerPolicy managed IAM policy to the IAM instance profile that theCorrect

Attaching the `CloudWatchAgentServerPolicy` to the IAM instance profile of the EKS EC2 nodes grants the necessary permissions for the unified CloudWatch agent to publish collected metrics and logs to CloudWatch.

BAttach the CloudWatchAgentServerPolicy managed IAM policy to a service account role for the

While service accounts are used for pods, the CloudWatch agent for Container Insights typically runs with permissions inherited from the underlying EC2 instance profile, making the instance profile the more direct and common place to attach the policy for node-level agents.

CCollect performance metrics by deploying the unified Amazon CloudWatch agent to the existingCorrect

Deploying the unified Amazon CloudWatch agent to the EKS cluster is the standard and recommended method for collecting detailed performance metrics, including memory usage, from Kubernetes components and application pods for Container Insights.

DCollect performance logs by deploying the AWS Distro for OpenTelemetry collector as a

While AWS Distro for OpenTelemetry (ADOT) can collect metrics, the unified Amazon CloudWatch agent (Option C) is the native solution for feeding metrics directly into CloudWatch Container Insights, which is the specified analysis platform.

EAnalyze the pod_memory_utilization Amazon CloudWatch metric in the ContainerInsightsCorrect

Analyzing the `pod_memory_utilization` metric within the CloudWatch Container Insights dashboard directly addresses the application's memory errors by providing insight into resource consumption at the individual pod level, which is critical for identifying bottlenecks and adjusting scaling.

FAnalyze the node_memory_utilization Amazon CloudWatch metric in the ContainerInsights

While `node_memory_utilization` is important for node health, `pod_memory_utilization` (Option E) is more directly relevant to diagnosing memory errors within a specific application running in pods and informing application-level scaling decisions.

Concept tested: EKS monitoring, CloudWatch Container Insights, CloudWatch agent, IAM permissions

Source: https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/ContainerInsights.html

Topics

#EKS#CloudWatch Agent#Container Insights#memory metrics

Community Discussion

No community discussion yet for this question.

Full DOP-C02 Practice