SQS Flashcards

1
Q

What is SQS?

A

Simple Queue Service

Gives access to message queue that can be used to store messages while waiting to process them

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

Is SQS pull or push based?

A

Pull based

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

Default of Visibility Timeout

A

30 sec

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

Max increase of Visibility Timeout

A

12 hrs

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

Largest size of text you can store in SQS queue

A

256 KB

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

How long is stuff kept in SQS queue

A

1-14 days

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

Default retention of SQS queue

A

4 days

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

Standard Queue

A

Default

Nearly unlimited transactions per sec

No order (best effort)

Couple be delievered twice

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

FIFO Queue

A

Guaranteed order

No duplicate

Limit 300 transactions per sec

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

Long Polling

A

Retrieve from SQS queue not return response until message is in the queue

Saves money

Periodically polls

Returns response once message arrives in queue

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

Short polling

A

Keeps polling from queue even if nothing is in the queue

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

What should you do if SQS is taking over 30 sec to process messages?

A

Increase the message visibility timeout

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

What is the default seconds for a delay queue

A

0 sec - 900 sec (15 min)

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

If you have large messages (256KB - 2GB) for SQS where should you store them?

A

S3 then will need

Amazon SQS Extended Client Library for Java

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

How to include metatdata : timestamps, geospatial data, signatures, and identifiers in SQS message

A

Use message attributes

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

What is a Dead Letter Queue

A

Allows you to set aside messages that couldn’t be processed right. This allows you to determine why it didn’t succeed

17
Q

Attribute to set if want to change queue from short polling to long polling

A

ReceiveMessageWaitTimeSeconds

set to a value greater than 0

18
Q

What are Dead Letter Queues (DLQ) used for?

A

Direct unprocessed events to an SQS queue or SNS topic to analyze the failure

19
Q

How to get rid of duplicate data in SQS queue

A

Add MessageDeduplicationID parameter to SendMessage API request. And make sure messages are sent 5min apart