AWS Certified SysOps Administrator – Associate (legacy) — Question 194
A company has deployed a fleet of Amazon EC2 web servers for the upcoming release of a new product. The SysOps Administrator needs to test the Amazon
CloudWatch notification settings for this deployment to ensure that a notification is sent using Amazon SNS if the CPU utilization of an EC2 instance exceeds 70%
.
How should the Administrator accomplish this?
Answer options
- A. Use the set-alarm-state command in AWS CloudTrail to invoke the Amazon SNS notification
- B. Use CloudWatch custom metrics to set the alarm state in AWS CloudTrail and enable Amazon SNS notifications
- C. Use EC2 instance metadata to manually set the CPU utilization to 75% and invoke the alarm state
- D. Use the set-alarm-state command in the AWS CLI for CloudWatch
Correct answer: D
Explanation
The correct answer is D because the set-alarm-state command in the AWS CLI for CloudWatch allows the Administrator to simulate alarm states for testing purposes. Options A and B incorrectly reference AWS CloudTrail, which is not used for setting alarm states. Option C involves manual alteration of CPU usage but does not utilize the correct method for testing notifications.