How should the Administrator accomplish this?
Use the set-alarm-state command in AWS CloudTrail to invoke the Amazon SNS notification
Use CloudWatch custom metrics to set the alarm state in AWS CloudTrail and enable Amazon SNS notifications
Use EC2 instance metadata to manually set the CPU utilization to 75% and invoke the alarm state
Use the set-alarm-state command in the AWS CLI for CloudWatch
Explanations:
Theset-alarm-statecommand is not part of AWS CloudTrail. CloudTrail records API calls and does not manage alarm states directly.
CloudWatch custom metrics are not needed for this scenario, and CloudTrail does not set the alarm state. Custom metrics and CloudTrail are unrelated in this context.
Manually setting the CPU utilization through EC2 instance metadata is not a practical approach to test CloudWatch alarms and will not trigger an alarm directly.
Theset-alarm-statecommand in the AWS CLI can be used to simulate an alarm state for testing purposes. This is the correct method to test the CloudWatch alarm and SNS notification.