0
0
AWScloud~20 mins

Sending and receiving messages in AWS - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Messaging Mastery
Get all challenges correct to earn this badge!
Test your skills under time pressure!
service_behavior
intermediate
2:00remaining
How does AWS SQS handle message visibility after receiving a message?

When a message is received from an AWS SQS queue, what happens to that message's visibility to other consumers?

AThe message remains visible and can be received by multiple consumers simultaneously.
BThe message is immediately deleted from the queue and cannot be received again.
CThe message becomes invisible for a set visibility timeout period, preventing other consumers from receiving it during that time.
DThe message is moved to a dead-letter queue automatically after being received.
Attempts:
2 left
💡 Hint

Think about how SQS prevents multiple consumers from processing the same message at the same time.

Architecture
intermediate
2:00remaining
Choosing the right AWS messaging service for decoupling microservices

You want to decouple two microservices where one sends events and the other processes them asynchronously. Which AWS service is best suited for this?

AAmazon EC2, because it can run the microservices on virtual servers.
BAmazon SQS, because it provides a reliable queue to store and deliver messages asynchronously.
CAmazon RDS, because it stores messages in a relational database.
DAmazon CloudFront, because it caches messages globally.
Attempts:
2 left
💡 Hint

Think about a service designed specifically for message queuing and asynchronous communication.

security
advanced
2:00remaining
Securing messages in AWS SNS topics

Which method ensures that only authorized AWS accounts can publish messages to your SNS topic?

AAttach a resource-based policy to the SNS topic that allows only specific AWS account IDs to publish.
BEnable server-side encryption on the SNS topic to restrict publishers.
CUse IAM roles on the subscriber side to control publishing permissions.
DConfigure the SNS topic to use VPC endpoints to restrict publishing.
Attempts:
2 left
💡 Hint

Consider how SNS controls who can send messages to a topic.

Configuration
advanced
2:00remaining
Configuring AWS SQS dead-letter queue (DLQ) behavior

You want messages that fail processing multiple times to be moved automatically to a dead-letter queue. Which configuration setting controls this behavior?

ASet the <code>Maximum Receives</code> threshold on the source queue's redrive policy to the desired retry count.
BEnable server-side encryption on the dead-letter queue.
CConfigure the visibility timeout on the dead-letter queue to zero seconds.
DAttach an IAM policy to the dead-letter queue allowing message deletion.
Attempts:
2 left
💡 Hint

Think about how SQS knows when to move a message to the DLQ after retries.

Best Practice
expert
3:00remaining
Optimizing AWS SNS and SQS integration for high throughput and reliability

You have an architecture where an SNS topic publishes messages to multiple SQS queues subscribed to it. To optimize for high throughput and ensure no message loss, which combination of settings is best?

AEnable SNS message filtering policies and disable SQS queue encryption for faster processing.
BUse standard SNS topics and standard SQS queues without any deduplication or ordering settings.
CConfigure SNS to send messages via HTTP endpoints instead of SQS for better throughput.
DEnable SNS FIFO topics with content-based deduplication and configure SQS FIFO queues subscribed to it.
Attempts:
2 left
💡 Hint

Consider how FIFO topics and queues help with ordering and exactly-once delivery.