DOP-C02 practice question 17 of 35
A company recently migrated its application to an Amazon Elastic Kubernetes Service (Amazon EKS) cluster that uses Amazon EC2 instances. The company…
Full set: 449 questionsA 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? (Select THREE.)
Correct Answer:
ACE
Step 1: Attaching the CloudWatchAgentServerPolicy to the IAM Role
The CloudWatch agent needs permissions to collect and send metrics, including memory metrics, to
Amazon CloudWatch. You can attach the CloudWatchAgentServerPolicy managed IAM policy to the
IAM instance profile or service account role to grant these permissions.
Action: Attach the CloudWatchAgentServerPolicy managed IAM policy to the IAM instance profile
that the EKS cluster uses.
Why: This ensures the CloudWatch agent has the necessary permissions to collect memory metrics.
Reference: AWS documentation on CloudWatch Agent Permissions.
This corresponds to Option A: Attach the CloudWatchAgentServerPolicy managed IAM policy to the
IAM instance profile that the cluster uses.
Step 2: Deploying the CloudWatch Agent to EC2 Instances
To collect memory metrics from the EC2 instances running in the EKS cluster, the CloudWatch agent
needs to be deployed on these instances. The agent collects system-level metrics, including memory
usage.
Action: Deploy the unified Amazon CloudWatch agent to the existing EC2 instances in the EKS cluster.
Update the Amazon Machine Image (AMI) for future instances to include the CloudWatch agent.
Why: The CloudWatch agent allows you to collect detailed memory metrics from the EC2 instances,
which is not enabled by default.
Reference: AWS documentation on Installing and Configuring the CloudWatch Agent.
This corresponds to Option 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.
Step 3: Analyzing Memory Metrics Using Container Insights
After collecting the memory metrics, you can analyze them using the pod_memory_utilization metric
in Amazon CloudWatch Container Insights. This metric provides visibility into the memory usage of
the containers (pods) in the EKS cluster.
Action: Analyze the pod_memory_utilization CloudWatch metric in the Container Insights
namespace by using the Service dimension.
Why: This provides detailed insights into memory usage at the container level, which helps diagnose
memory-related issues.
Reference: AWS documentation on CloudWatch Container Insights.
This corresponds to Option E: Analyze the pod_memory_utilization Amazon CloudWatch metric in
the Container Insights namespace by using the Service dimension.
Keep practicing
Take the free DOP-C02 practice test
Ten exam-style questions with answers and explanations, plus the exam facts and study guides.
More questions
Other DOP-C02 practice questions
- Question 1A company has enabled all features for its organization in AWS Organizations. The organiz…
- Question 2A company is developing a web application's infrastructure using AWS CloudFormation The d…
- Question 3A company uses Amazon Redshift as its data warehouse solution. The company wants to creat…
- Question 4A company recently deployed its web application on AWS. The company is preparing for a la…
- Question 5A company is migrating from its on-premises data center to AWS. The company currently use…
- Question 6A security team is concerned that a developer can unintentionally attach an Elastic IP ad…
