AWS Certified SysOps Administrator – Associate — Question 410
A data analytics application is running on an Amazon EC2 instance. A SysOps administrator must add custom dimensions to the metrics collected by the Amazon
CloudWatch agent.
How can the SysOps administrator meet this requirement?
Answer options
- A. Create a custom shell script to extract the dimensions and collect the metrics using the Amazon CloudWatch agent.
- B. Create an Amazon EventBridge (Amazon CloudWatch Events) rule to evaluate the required custom dimensions and send the metrics to Amazon Simple Notification Service (Amazon SNS).
- C. Create an AWS Lambda function to collect the metrics from AWS CloudTrail and send the metrics to an Amazon CloudWatch Logs group.
- D. Create an append_dimensions field in the Amazon CloudWatch agent configuration file to collect the metrics.
Correct answer: D
Explanation
The Amazon CloudWatch agent configuration file natively supports the 'append_dimensions' field, which allows administrators to attach custom dimensions to the collected metrics. Other options involving custom shell scripts, AWS Lambda, or Amazon EventBridge are unnecessarily complex and do not leverage the built-in capabilities of the CloudWatch agent configuration.