SQS COPY Flashcards

1
Q

True or False: SQS messages cannot be delivered multiple times.

A

False.

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

A single SQS request can have from 1 to __________ messages, up to a maximum total payload of __________.

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

Define “visibility timeout.”

A

A period of time during which SQS prevents other consumers from receiving and processing a message.

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

True or False: In SQS, a message will remain visible for 24 hours by default.

A

False. Visibility times out after 12 hours by default.

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

True or False: SQS guarantees FIFO delivery of messages.

A

False.

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

A single SQS API call with a 256KB payload will be billed as __________ requests.

A

Four.

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

What is the purpose of long polling in SQS?

A

It helps reduce costs by reducing the number of empty responses and eliminating false empty responses.

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

What is the maximum retention period for an SQS message?

A

14 days.

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

How much do FIFO SQS queue requests cost (per million requests)?

A

$0.50

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

What is the maximum long poll timeout?

A

20 seconds.

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

Long polling doesn’t return a response until __________, or the long poll times out.

A

A message arrives in the queue.

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

A period of time during which SQS prevents other consumers from receiving and processing a message is called the __________.

A

Visibility timeout.

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

True or False: SQS can be configured for auto-scaling.

A

True.

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

What size chunks are SQS messages billed at?

A

64KB.

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

What is the minimum size of an SQS message?

A

1 byte.

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

True or False: Your first 1 million SQS requests per month are free.

A

True.

17
Q

What is the maximum size of an SQS message?

A

256KB.

18
Q

Long polling doesn’t return a response until a message arrives in the queue, or __________.

A

The long poll times out.

19
Q

With respect to message delivery, what should you do if your system requires that order be preserved?

A

Include sequencing info in the message so you can reorder the messages after the queue returns them.

20
Q

Your EC2 instances download jobs from an SQS queue. However, they’re taking too long to process the messages. What API call can you use to extend the length of time to process the jobs?

A

ChangeMessageVisibility.

21
Q

True or False: SQS messages can be delivered in any order.

A

True.

22
Q

In SQS, to give yourself more time to process a message, what action could you take?

A

Use the ChangeMessageVisibility action to extend the message’s visibility timeout.

23
Q

In SQS, what is the maximum amount of time that a message will remain visible?

A

12 hours.

24
Q

SQS provides __________ message delivery.

A

At least once.

25
Q

What is the maximum visibility of an SQS message in a queue?

A

12 hours.

26
Q

The default visibility timeout for an SQS message is __________.

A

30 seconds.

27
Q

In SQS, what is the default amount of time that a message will remain visible?

A

12 hours.

28
Q

True or False: SQS supports exactly-once message delivery.

A

False. SQS only guarantees at-least-once message delivery.

29
Q

SQS supports delivery of each message _______.

A

At least once.

30
Q

What SQS mechanism helps reduce costs by reducing the number of empty responses?

A

Long polling.

31
Q

What does the ChangeMessageVisibility SQS action do?

A

It restarts the timout period using the a new value.

32
Q

How much do Standard SQS queue requests cost (per million requests)?

A

$0.40

33
Q

Which Amazon service can you use in conjunction with SQS to “fan out” SQS messages to multiple queues?

A

SNS.

34
Q

True or False: Every SQS action counts as a request.

A

True.

35
Q

True or False: SQS does not guarantee first in, first out message delivery.

A

True.