AWS Certified DevOps Engineer – Professional (DOP-C02) — Question 277
A DevOps engineer deploys an application to a fleet of Amazon Linux EC2 instances. The DevOps engineer needs to monitor system metrics across the fleet. The DevOps engineer wants to monitor the relationship between network traffic and memory utilization for the application code. The DevOps engineer wants to track the data on a 60 second interval.
Which solution will meet these requirements?
Answer options
- A. Use Amazon CloudWatch basic monitoring to collect the NetworkIn metric and the MemoryBytesUsed metric. Graph the metrics in CloudWatch.
- B. Use Amazon CloudWatch detailed monitoring to collect the NetworkIn metric and the MemoryBytesUsed metric. Graph the metrics in CloudWatch.
- C. Use Amazon CloudWatch detailed monitoring to collect the NetworkIn metric. Install the CloudWatch agent on the EC2 instances to collect the mem_used metric. Graph the metrics in CloudWatch.
- D. Use Amazon CloudWatch basic monitoring to collect the built-in NetworkIn metric. Install the CloudWatch agent on the EC2 instances to collect the mem_used metric. Graph the metrics in CloudWatch.
Correct answer: C
Explanation
Standard EC2 metrics such as NetworkIn require detailed monitoring to be collected at a 60-second frequency, as basic monitoring only provides data at 5-minute intervals. Furthermore, memory utilization is an operating system-level metric that is not natively captured by EC2, meaning the CloudWatch agent must be installed to collect the mem_used metric. Thus, combining detailed monitoring with the CloudWatch agent is the only solution that fulfills both the 1-minute interval and the memory tracking requirements.