DOP-C02 Question 220
Select 3Your company is monitoring a fleet of EC2 instances using Amazon CloudWatch. A critical application running on these instances requires near real-time monitoring of CPU utilization. Additionally, the team needs to distinguish metrics between different environments (e.g., 'production' and 'staging'). Which combination of actions will meet these requirements?
- A
Enable high-resolution metrics for CPU utilization on the EC2 instances.
- B
Use the 'Environment' dimension when publishing custom metrics for the application.
- C
Enable CloudWatch Detailed Monitoring for the EC2 instances.
- D
Use a custom namespace to store the CPU utilization metrics for the application.
- E
Aggregate CPU utilization metrics across all instances by default and remove any dimensions.
Show answer and explanation
Correct answers: A, B, C
Explanation
To achieve near real-time monitoring of CPU utilization, you must enable both high-resolution metrics and Detailed Monitoring. High-resolution metrics allow for data collection at 1-second intervals, while Detailed Monitoring reduces the default interval to 1 minute for EC2 metrics. Moreover, adding the 'Environment' dimension helps distinguish metrics between environments, such as 'production' and 'staging', ensuring clarity in monitoring and troubleshooting.
- A. Correct.
Correct: Enabling high-resolution metrics allows you to collect data at a higher frequency (e.g., 1-second intervals), providing near real-time monitoring for CPU utilization.
- B. Correct.
Correct: Using the 'Environment' dimension allows you to differentiate between metrics for 'production' and 'staging' environments, which is critical for isolating performance issues.
- C. Correct.
Correct: CloudWatch Detailed Monitoring reduces the default metric collection interval for EC2 instances from 5 minutes to 1 minute, which is essential for faster insights.
- D. Incorrect.
Incorrect: While using a custom namespace can help organize metrics, it is not a requirement for monitoring CPU utilization or distinguishing environments. AWS provides CPU utilization metrics in the default EC2 namespace.
- E. Incorrect.
Incorrect: Removing dimensions would prevent the team from distinguishing metrics between different environments (e.g., 'production' vs. 'staging'), which is against the stated requirements.