SQS Flashcards

1
Q

What is SQS?

A

SQS is a highly-distributed message queueing system on AWS.

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

What are the two types of queues on AWS?

A

Standard Queue, FIFO Queue

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

What are the advantages/disadvantages of Standard Queues?

A

Pros:
- Unlimited transactions per second

Cons:
- Order isn’t guaranteed and so can cause duplicate messages to occur

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

What are the advantages/disadvantages of FIFO Queues?

A

Pros:
- Order of messages is maintained
Cons:
- Can only have 300 transactions per second

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

What is polling?

A

Polling is the method that a consumer/reader uses to be notified/retrieve messages from the queue

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

What are the types of polling?

A

Short Polling (default), Long polling

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

Why use long polling?

A

Long polling will save costs as it will only return a message when a message has landed on the queue or the timeout completes

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

What is Visibility Timeout?

A

Visibility timeout is the timeout interval in which a message becomes invisible when picked out of a queue and then becomes visible again after it ends

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

What is the default Visibility Timeout?

A

The default visibility timeout is 30 seconds

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

If your visibility timeout is set incorrectly, can it cause a message to be read more than once?

A

Yes, if the job/process takes longer than the visibility timeout the message will appear in the queue again and may be picked up by another reader and so the message could be consumed twice

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

What does SQS guarantee regarding a message?

A

SQS guarantees that each message will be successfully delivered at least once

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

What is the max visibility timeout you can set?

A

12 hours

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

What is the default retention period for a message?

A

4 days

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

How long can a message be kept in a queue?

A

1minute - 14 days

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

What is the size of a message?

A

256KB

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

Is SQS pull or push based?

A

Pull based. A reader must “pull” messages from the queue.