SQS Flashcards

1
Q

____ is a web service that gives you access to message queues that can be used to store messages while waiting for a computer to process them.

A

SQS

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

____ is a distributed queue system that enables web service apps to quickly and reliably queue messages that one component in the app generates to be consumed by another component.

A

SQS

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

A _____ is a temp repo for messages that are awaiting processing.

A

queue

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

Using _____, you can decouple the components of an app so they run independently, easing message management between components.

A

SQS

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

Any component of a _____ app can store messages in the queue.

A

distributed

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

Messages can contain up to ____kb of text in any format.

A

256kb

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

Any component can later retrieve the messages programatically using the ___ ___.

A

SQS API

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

The _____ acts as a buffer between the component producing and saving data, and the component resolving the data for processing.

A

queue

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

The queue resolves issues that arise if the producer is producing work faster than the consumer can procesws it, or if the producer or consumer are only intermittently conencted to the network.

T or F

A

True

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

SQS offers _____ as the default queue type.

A

standard.

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

a ___ queue lets you have a nearly-unlimited number of transactions per second.

A

standard

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

____ queues guarantee that a message is delivered at least once.

A

standard

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

occasionally, (because of the highly distributed architecture that allows high throughput), more than one copy of a message might be delieverd out of order.

T or F

A

True

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

___ queues provide best effort ordering which ensures that messages are generally delivered in the same order they are sent.

A

standard

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

The ____ queue complements the standard queue.

A

FIFIO

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

The most important features of this queue type are ____ delivery and exactly once processing: The order in which messages are sent and received is strictly preserved and a message is delivered once and remains available until a consumer processes and deletes it; duplicates are not introduced into the queue.

A

FIFO (first in first out)

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

FIFO queues also support message groups that alloow ____ transactions per second (TPS), but have all the capabilities of standard queues.

18
Q

___ is pull based, not pushed based.

19
Q

SQS messagesa re ____kb in size

20
Q

sqs messages can be kept in the queue from ___ min to ___ days

21
Q

SQS default retention period is ____ days

22
Q

____ guarantees your messages will be processed at least once.

23
Q

The ______ timeout is the amount of time that the message is invisible in the SQS queue after a reader picks up that message.

A

visibility

24
Q

Provided the job is processed before the visibility timeout expires, the message will then be ___ from the queue.

25
If the job is not processed within that time, the message will become visible again and another \_\_\_\_\_will process it. This could result in the same message being delievered twice.
reader
26
default visibility timeout is ____ seconds
30
27
increase the visibility timeout if your task takes longer than ____ seconds
30
28
max visibility timeout is ____ hours
12
29
SQS ____ polling is a way to retrieve messages from your SQS queues
long
30
While the regular ____ polling returns immediately (even if the message queue being polled is empty), long polling doesn't return a response until a message arrives in the message queue, or the long poll times out. as such, long polling can save you money.
short
31
\_\_\_\_ allows you to decouple the components of an app, so that they are independent
SQS
32
SQS ____ queues - postpone delivery of new messages
delay
33
messages sent to the _____ queue remain invissible to consumers for the duration of the delay period
delay
34
default delay is \_\_\_seconds, max is \_\_\_\_
0, 900
35
T or F for standard SQS queues, changing the settings to postpone the dellivery of new messages doesn't affect the delay of the messages already in the queue, only new messages
T
36
for FIFO queues, changing the setting to postpone the delivery of new messages affects the delay of messages already in teh queue
yes
37
what should you use delay queue?
- large distributed apps which may need to introduce a delay in processing - you need to apply a delay to an entire queue of messages - adding a delay of a few seconds, to allow for updates to your sales and stock control databases before sending a notification to a customer confirming an online transaction
38
Best practices for managing large SQS messages using S3 - for large SQ messages - \_\_\_kb - \_\_\_GB in size - uses ___ to store the messages - use amazon SQ ___ \_\_\_ ____ \_\_\_ ___ to manage them - you'll also need the aws ___ for java - provides an API for S3 bucket and object operations
256kb-2gb s3 extended client library for java sdk
39
SQS extended client library for java allows you to: - specify that messages are always stored in s3 or only messages \> 256kb - send a message which references a message object stored in s3 - get a message object from s3 - delete a message object from s3
yes
40
sqs delay queues and managing large messages cannot use: aws cli, aws management console, sqs console, sqs api
yes
41