AWS Certified SysOps Administrator – Associate (legacy) — Question 326
A user has setup a CloudWatch alarm on the EC2 instance for CPU utilization. The user has setup to receive a notification on email when the CPU utilization is higher than 60%. The user is running a virus scan on the same instance at a particular time. The user wants to avoid receiving an email at this time. What should the user do?
Answer options
- A. Remove the alarm
- B. Disable the alarm for a while using CLI
- C. Modify the CPU utilization by removing the email alert
- D. Disable the alarm for a while using the console
Correct answer: B
Explanation
The user can temporarily suspend notifications by disabling the alarm actions using the AWS CLI command 'aws cloudwatch disable-alarm-actions' and re-enabling them afterwards. Deleting the alarm or modifying its configuration requires unnecessary re-work to restore the original state. At the time of this question's design, disabling alarm actions temporarily was supported via the CLI/API but not as a simple toggle in the AWS Console.