SQS: Simple Queue Service Flashcards

1
Q

What does Simple Queue Service provide?

A

Public, fully managed, highly available queues - standard or FIFO. It provides a mechanism for discrete resources to communicate in a decouple manner.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Which Zone does Simple Queue Service run in?

A

SQS runs in the AWS Public Zone.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

How resilient is Simple Queue Service?

A

SQS is Region resilient.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is the difference between Standard and FIFO queues in Simple Queue Service?

A

FIFO is guaranteed first in first out. FIFO queues guarantee exactly-once delivery.

Standard is best effort ordering. Standard queues guarantee at-least-once delivery.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is the maximum message size in Simple Queue Service?

A

256KB. You can link to larger data in an S3 bucket (or some other data store).

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

How does Simple Queue Service implement fault tolerance?

A

By using a visibility timeout on messages. Messages are hidden for a period of time when a consumer receives them. The message will reappear unless that consumer finishes its processing and then explicitly deletes the message from the queue.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is a dead letter queue in Simple Queue Service?

A

If a message fails to be deleted over and over again, it can be put in a dead letter queue for troubleshooting. Using a redrive policy, you can specify a dead letter queue to send a message to when its receiveCount on a message is greater than the maxReceiveCount. You can configure Alarms when messages arrive on a dead line queue.

Queue retention period calculations are based on the enqueue time to the original queue, so dead letter queues should have longer retention periods than regular queues.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

How do Auto Scaling Groups integrate with Simple Queue Service?

A

By scaling in or out based on the length of a queue.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What is Simple Notification Service / Simple Queue Service fanout?

A

Subscribing multiple SQS queues to a single SNS Topic. When SNS sends a message to the topic, that message can then be added to each of the queues to allow for multiple tasks to be started based on a single event.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What is the maximum performance of a FIFO queue in Simple Queue Service?

A

3,000 messages per second with batching.
300 messages per second without batching.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

How are you billed for Simple Queue Service?

A

Based on requests. A request can read 1-10 messages up to 64KB total.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What is the difference between short polling and long polling in Simple Queue Service?

A

Short polling returns results immediately. Long polling waits up to 20 seconds (waitTimeSeconds) if there are no messages on the queue and then return the messages that arrive in that window. Long polling uses fewer requests.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Can Simple Queue Service messages be encrypted at rest?

A

Yes, using KMS. They are already encrypted in transit.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

How do you give cross-account access to a Simple Queue Service queue?

A

Using a Queue Policy (which is a type of Resource Policy).

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What naming convention must a queue follow to be a valid FIFO queue?

A

It must have a .fifo suffix.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

What is a Simple Queue Service delay queue?

A

Queues that are configured to have new messages put on in an invisible state for 0 seconds to 15 minutes. This allows you to delay the start of processing for a message for a period of time, if needed.

17
Q

What type of messaging does Simple Queue Service support?

A

Pub/Sub messaging.