0
0
AWScloud~20 mins

SNS topics and subscriptions in AWS - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
SNS Mastery Badge
Get all challenges correct to earn this badge!
Test your skills under time pressure!
service_behavior
intermediate
2:00remaining
SNS Topic Message Delivery Behavior

You have an SNS topic with multiple email subscriptions. If a message is published to the topic, what happens to the message delivery?

AThe message is stored in the topic and must be pulled by each subscriber.
BThe message is sent to only one randomly selected email subscription.
CThe message is sent to the first subscription created and ignored for others.
DThe message is sent to all subscribed email endpoints simultaneously.
Attempts:
2 left
💡 Hint

Think about how SNS fan-out messaging works.

Configuration
intermediate
2:00remaining
SNS Subscription Protocols

Which of the following is NOT a valid protocol for an SNS subscription?

Aftp
Bsms
Cemail
Dhttps
Attempts:
2 left
💡 Hint

Consider common protocols supported by SNS for message delivery.

security
advanced
2:00remaining
Restricting SNS Topic Access

You want to restrict who can publish messages to your SNS topic. Which AWS feature should you use to enforce this?

ASNS Subscription Filter Policy
BVPC Security Group attached to the SNS topic
CSNS Topic Policy with specific IAM conditions
DAWS WAF attached to the SNS topic
Attempts:
2 left
💡 Hint

Think about how AWS controls permissions on SNS topics.

Architecture
advanced
2:00remaining
Designing Reliable SNS to SQS Integration

You have an SNS topic that sends messages to multiple SQS queues. How can you ensure that no messages are lost if one SQS queue is temporarily unavailable?

AEnable dead-letter queues (DLQ) on the SQS queues to capture undelivered messages.
BConfigure SNS to retry sending messages indefinitely until the SQS queue is available.
CUse SNS FIFO topics to guarantee message delivery to all SQS queues.
DSet the SQS queue visibility timeout to zero.
Attempts:
2 left
💡 Hint

Consider how to handle message failures in SQS subscriptions.

Best Practice
expert
2:00remaining
Optimizing SNS Topic for High Throughput

You expect a very high volume of messages published to an SNS topic. Which approach best optimizes throughput and scalability?

APublish messages synchronously to SNS to ensure delivery speed.
BUse multiple SNS topics partitioned by message type and aggregate downstream.
CUse SNS FIFO topics to maintain order and increase throughput.
DUse a single SNS topic with a large number of subscriptions to distribute load.
Attempts:
2 left
💡 Hint

Think about how to scale SNS topics horizontally.