wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

SQS and SNS Exercise

Total questions: 16

Worksheet time: 8mins

Name
Class
Date
1.

What is the maximum retention period for messages in an Amazon SQS queue?

a)

1 day

b)

7 days

c)

14 days

d)

30 days

2.

Which of the following best describes Amazon SQS?

a)

A managed database for message persistence

b)

A distributed message queuing service

c)

A serverless compute service for event-driven workloads

d)

A load balancer for distributing traffic

3.

Which of the following is NOT a valid Amazon SNS subscriber protocol?

a)

Email/Email-JSON

b)

SMS

c)

HTTP/HTTPS

d)

SFTP

4.

What is the primary purpose of Amazon SNS?

a)

To queue messages for batch processing

b)

To send notifications to multiple subscribers at once

c)

To monitor AWS resources for metrics

d)

To store structured data

5.

Which type of SQS queue guarantees that messages are processed exactly once and in order?

a)

Standard Queue

b)

FIFO Queue

c)

Dead-letter Queue

d)

Priority Queue

6.

In Amazon SQS, what does the "Visibility Timeout" refer to?

a)

The amount of time before a message is deleted from the queue

b)

The duration a message is hidden from other consumers after being read

c)

The maximum time a message can stay in the queue

d)

The delay before a message becomes visible in the queue

7.

What is the maximum message size allowed in Amazon SQS (without extended payloads)?

a)

64 KB

b)

128 KB

c)

256 KB

d)

1 MB

8.

Which feature should you use if you want to handle messages that cannot be processed successfully after multiple attempts?

a)

Dead-letter Queue

b)

Delay Queue

c)

FIFO Queue

d)

Message Group ID

9.

How does Amazon SQS Standard Queue handle message ordering?

a)

Always guarantees strict order

b)

Guarantees order only within a single consumer

c)

Provides best-effort ordering

d)

Provides random ordering

10.

What is a "topic" in Amazon SNS?

a)

A queue where messages are stored

b)

A logical access point for publishing and subscribing messages

c)

A filter for controlling message size

d)

A batch of delivered messages

11.

Which of the following is true about long polling in Amazon SQS?

a)

It reduces the cost by avoiding empty responses

b)

It increases the latency of message retrieval

c)

It forces messages to wait in the queue for 20 seconds

d)

It guarantees message ordering

12.

If you want to ensure that a group of related messages is processed in sequence, which SQS feature should you use?

a)

Delay Queue

b)

Visibility Timeout

c)

Message Group ID in FIFO queue

d)

Dead-letter Queue

13.

If you want to deliver messages to multiple queues for further processing, which integration is most commonly used with SNS?

a)

Amazon EC2

b)

Amazon RDS

c)

Amazon SQS

d)

AWS CloudTrail

14.

How does SNS handle message delivery retries for HTTP/HTTPS subscribers?

a)

Retries only once

b)

Retries with exponential backoff

c)

Retries indefinitely until success

d)

Discards after failure

15.

Which feature allows you to selectively deliver messages to specific subscribers based on attributes?

a)

Message filtering

b)

Dead-letter queue

c)

FIFO delivery

d)

Delivery policy

16.

Which AWS service is commonly used together with SNS for serverless workflows?

a)

AWS Lambda

b)

Amazon RDS

c)

Amazon Aurora

d)

AWS Direct Connect