0
0
AWScloud~10 mins

Alarm actions (SNS, Auto Scaling) in AWS - Interactive Code Practice

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the code to specify the SNS topic ARN for the alarm action.

AWS
AlarmActions: ["[1]"]
Drag options to blanks, or click blank then click option'
A"arn:aws:lambda:us-east-1:123456789012:function:MyFunction"
B"arn:aws:sqs:us-east-1:123456789012:MyQueue"
C"arn:aws:ec2:us-east-1:123456789012:instance/i-1234567890abcdef0"
D"arn:aws:sns:us-east-1:123456789012:MyTopic"
Attempts:
3 left
💡 Hint
Common Mistakes
Using an ARN for SQS, Lambda, or EC2 instead of SNS topic ARN.
2fill in blank
medium

Complete the code to specify the Auto Scaling group name for the alarm action.

AWS
AutoScalingGroupName: "[1]"
Drag options to blanks, or click blank then click option'
AMyEC2Instance
BMyLambdaFunction
CMyAutoScalingGroup
DMySNSTopic
Attempts:
3 left
💡 Hint
Common Mistakes
Confusing instance names or SNS topics with Auto Scaling group names.
3fill in blank
hard

Fix the error in the alarm action configuration to correctly trigger scaling.

AWS
ScalingPolicyARN: "[1]"
Drag options to blanks, or click blank then click option'
A"arn:aws:autoscaling:us-east-1:123456789012:scalingPolicy:policy-id:autoScalingGroupName/MyAutoScalingGroup:policyName/MyPolicy"
B"arn:aws:sns:us-east-1:123456789012:MyTopic"
C"arn:aws:lambda:us-east-1:123456789012:function:MyFunction"
D"arn:aws:ec2:us-east-1:123456789012:instance/i-1234567890abcdef0"
Attempts:
3 left
💡 Hint
Common Mistakes
Using SNS topic ARN or Lambda ARN instead of Auto Scaling policy ARN.
4fill in blank
hard

Fill both blanks to configure an alarm that sends notification and triggers scaling.

AWS
AlarmActions: ["[1]", "[2]"]
Drag options to blanks, or click blank then click option'
A"arn:aws:sns:us-east-1:123456789012:NotifyTopic"
B"arn:aws:autoscaling:us-east-1:123456789012:scalingPolicy:policy-id:autoScalingGroupName/MyGroup:policyName/ScaleOut"
C"arn:aws:lambda:us-east-1:123456789012:function:MyFunction"
D"arn:aws:sqs:us-east-1:123456789012:MyQueue"
Attempts:
3 left
💡 Hint
Common Mistakes
Using Lambda or SQS ARNs instead of SNS or Auto Scaling policy ARNs.
5fill in blank
hard

Fill all three blanks to define an alarm with threshold, SNS notification, and scaling policy.

AWS
Threshold: [1], AlarmActions: ["[2]", "[3]"]
Drag options to blanks, or click blank then click option'
A70
Barn:aws:sns:us-east-1:123456789012:AlertTopic
Carn:aws:autoscaling:us-east-1:123456789012:scalingPolicy:policy-id:autoScalingGroupName/Group1:policyName/ScaleIn
D80
Attempts:
3 left
💡 Hint
Common Mistakes
Using wrong threshold values or incorrect ARNs for alarm actions.