0
0
AWScloud~20 mins

Alarm actions (SNS, Auto Scaling) in AWS - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Alarm Actions Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
service_behavior
intermediate
2:00remaining
What happens when a CloudWatch alarm triggers an SNS notification?

You have a CloudWatch alarm configured to send a notification to an SNS topic when CPU usage exceeds 80%. What is the expected behavior when the alarm state changes to ALARM?

AThe SNS topic sends the notification message to all its subscribed endpoints immediately.
BThe SNS topic queues the message but does not send it until manually triggered.
CThe CloudWatch alarm automatically scales the EC2 instances without sending any notification.
DThe alarm state change is logged but no notification is sent unless a Lambda function is attached.
Attempts:
2 left
💡 Hint

Think about how SNS works with subscriptions and notifications.

Architecture
intermediate
2:00remaining
How does an Auto Scaling group respond to a CloudWatch alarm action?

An Auto Scaling group is configured with a CloudWatch alarm that triggers a scale-out policy when average CPU usage exceeds 70%. What is the expected result when the alarm triggers?

AThe Auto Scaling group waits for manual approval before scaling out.
BThe Auto Scaling group sends an SNS notification but does not change the number of instances.
CThe Auto Scaling group launches additional instances according to the scaling policy immediately.
DThe Auto Scaling group terminates instances to reduce CPU usage.
Attempts:
2 left
💡 Hint

Consider what a scale-out policy means for an Auto Scaling group.

security
advanced
2:00remaining
Which IAM permission is required for CloudWatch to trigger Auto Scaling actions?

To allow CloudWatch alarms to trigger Auto Scaling policies, which IAM permission must be granted to the CloudWatch service or role?

A"cloudwatch:PutMetricAlarm" permission on the alarm resource.
B"ec2:TerminateInstances" permission on the EC2 instances.
C"sns:Publish" permission on the SNS topic resource.
D"autoscaling:ExecutePolicy" permission on the Auto Scaling group resource.
Attempts:
2 left
💡 Hint

Think about what action CloudWatch needs to perform to scale instances.

Best Practice
advanced
2:00remaining
What is a best practice when configuring SNS topics for CloudWatch alarm notifications?

When setting up SNS topics to receive CloudWatch alarm notifications, which practice improves security and reliability?

ASend notifications only to email endpoints without using encryption or access control.
BUse least privilege by restricting SNS topic access to only necessary subscribers and encrypt messages with AWS KMS.
CAllow open public access to the SNS topic so anyone can subscribe and receive notifications.
DDisable delivery retries to avoid duplicate notifications.
Attempts:
2 left
💡 Hint

Consider how to protect sensitive alarm notifications and control access.

🧠 Conceptual
expert
3:00remaining
What is the sequence of events when a CloudWatch alarm triggers an Auto Scaling scale-in action and sends an SNS notification?

Order the following steps correctly when a CloudWatch alarm triggers a scale-in policy and sends a notification via SNS.

A1,4,2,3
B1,2,4,3
C4,1,2,3
D1,4,3,2
Attempts:
2 left
💡 Hint

Think about what happens first and how CloudWatch triggers multiple actions.