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.

A

300

18
Q

___ is pull based, not pushed based.

A

SQS

19
Q

SQS messagesa re ____kb in size

A

256

20
Q

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

A

1, 14

21
Q

SQS default retention period is ____ days

A

4

22
Q

____ guarantees your messages will be processed at least once.

A

SQS

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.

A

deleted

25
Q

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.

A

reader

26
Q

default visibility timeout is ____ seconds

A

30

27
Q

increase the visibility timeout if your task takes longer than ____ seconds

A

30

28
Q

max visibility timeout is ____ hours

A

12

29
Q

SQS ____ polling is a way to retrieve messages from your SQS queues

A

long

30
Q

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.

A

short

31
Q

____ allows you to decouple the components of an app, so that they are independent

A

SQS

32
Q

SQS ____ queues - postpone delivery of new messages

A

delay

33
Q

messages sent to the _____ queue remain invissible to consumers for the duration of the delay period

A

delay

34
Q

default delay is ___seconds, max is ____

A

0, 900

35
Q

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

A

T

36
Q

for FIFO queues, changing the setting to postpone the delivery of new messages affects the delay of messages already in teh queue

A

yes

37
Q

what should you use delay queue?

A
  • 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
Q

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
A

256kb-2gb

s3

extended client library for java

sdk

39
Q

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
A

yes

40
Q

sqs delay queues and managing large messages

cannot use:

aws cli, aws management console, sqs console, sqs api

A

yes

41
Q
A