0
0
AWScloud~20 mins

SQS queue concept in AWS - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
SQS Mastery Badge
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate
2:00remaining
Understanding SQS Message Visibility Timeout

What happens to a message in an AWS SQS queue when a consumer receives it but does not delete it before the visibility timeout expires?

AThe message becomes visible again in the queue and can be received by other consumers.
BThe message is permanently deleted from the queue automatically.
CThe message is moved to a dead-letter queue immediately.
DThe message is duplicated and sent to all consumers.
Attempts:
2 left
💡 Hint

Think about what visibility timeout means for message processing.

service_behavior
intermediate
2:00remaining
SQS Message Retention Period Behavior

If an SQS message is not deleted, how long will it remain in the queue before it is automatically removed?

AMessages are retained for a default of 4 days, configurable up to 14 days.
BMessages remain indefinitely until deleted manually.
CMessages are deleted after 1 hour automatically.
DMessages are deleted immediately after being received.
Attempts:
2 left
💡 Hint

Check the default and maximum retention period for SQS messages.

Architecture
advanced
2:30remaining
Designing for High Throughput with SQS

You need to design an architecture using SQS to handle a very high volume of messages with minimal delay. Which approach best supports this requirement?

AUse a single standard queue with a single consumer to avoid message duplication.
BUse a single standard SQS queue with multiple consumers processing messages in parallel.
CUse multiple FIFO queues with one consumer each to distribute load.
DUse a single FIFO SQS queue with one consumer to maintain order.
Attempts:
2 left
💡 Hint

Consider the difference between standard and FIFO queues and how parallelism affects throughput.

security
advanced
2:30remaining
Securing Access to an SQS Queue

Which method is the most secure way to restrict access to an SQS queue so that only a specific AWS Lambda function can send and receive messages?

AUse a queue policy that allows access from any AWS service.
BMake the queue public and rely on Lambda's internal security.
CAttach an IAM policy to the Lambda function role allowing only that function to access the queue.
DUse a security group to restrict network access to the queue.
Attempts:
2 left
💡 Hint

Think about how AWS controls permissions for services and resources.

Best Practice
expert
3:00remaining
Handling Poison Messages in SQS

You have an SQS queue processing messages, but some messages cause processing failures repeatedly. What is the best practice to handle these 'poison messages' to avoid blocking the queue?

AIncrease the visibility timeout indefinitely for all messages.
BManually monitor and delete failed messages from the main queue.
CDelete messages immediately after receiving them, regardless of processing success.
DConfigure a dead-letter queue (DLQ) and set a maximum receive count to move failing messages to the DLQ.
Attempts:
2 left
💡 Hint

Consider how SQS supports handling messages that fail processing multiple times.