A data analytics process on an EC2 host needs the CloudWatch agent to send metrics that include custom dimensions. How can the SysOps administrator configure the CloudWatch agent to include those extra dimensions?
Choose an answer
Tap an option to check your answer.
Correct answer: Add an append_dimensions section to the CloudWatch agent configuration file to include the custom dimension keys and values..
Why this is the answer
The appenddimensions section in the CloudWatch agent configuration file is the direct and intended method for adding custom dimensions to metrics collected by the agent. This allows you to enrich your metric data with additional context, such as host ID, application name, or environment, which is crucial for detailed analytics and filtering. Writing a custom shell script to extract dimension values and having the agent collect from it is an indirect and less efficient approach; the agent is designed to handle this natively. Creating an EventBridge rule to evaluate custom dimensions and forward to SNS is for event-driven actions, not for directly adding dimensions to CloudWatch metrics. Authoring a Lambda function to read CloudTrail and push metrics to CloudWatch Logs is for processing CloudTrail events and logging, not for configuring the CloudWatch agent's metric dimensions.
Pass your exam — without the endless answer hunt
Get every verified question and explanation for this exam in one place, and save hours of prep. 1,000+ certifications · 20+ languages · free to start.
Pass your exam faster → No card needed