AWS Applications Flashcards

1
Q

What is SQS?

A

SQS is a web service that gives you access to a messaging queue that can be used to store messages while waiting for a computer to process them.

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

What does SQS enable?

A

SQS enables the ‘decoupling’ of the components of an application so that they can run independently and easing message management between components.

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

What are the two types of SQS queue?

A

The two types of SQS queue are:

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

How does SQS act as a buffer?

A

SQS provides a buffer between the component producing data and the component receiving the data.

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

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

What do SQS Standard Queues provide in terms of transactions per second and delivery guarantees?

A

A standard queue lets you have a nearly unlimited number of transactions per second and guarantee that a message is delivered at least once.

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

What is a potential downside to standard SQS queues?

A

A potential downside to standard SQS queues is that more than one copy of a message may be delivered out of order

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

What is a benefit of standard SQS queues?

A

Standard queues provide best-effort ordering which ensures messages are generally delivered in the same order as they are sent

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

What are FIFO queues?

A

FIFO ensures first in first out and exactly-once processing.

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

What type of queues support message groups?

A

FIFO queues support message groups that allow multiple ordered message groups within a single queue

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

What is the transaction per second limit for FIFO queues?

A

FIFO queues are limited to 300 transactions per second

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

Is SQS pull or push based?

A

SQS is pull based

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

What are the size of SQS messages?

A

SQS message size is 256kb

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

What are the retention periods for SQS messages?

A

Messages can be kept in the queue for 1 minute to 14 days, the default is 4 days

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

What is an SQS Visibility Timeout?

A

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

If the job is not processed within that time, the message will become visible again and another reader will process it which could result in the same message being delivered twice.

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

What is the visibility timeout maximum?

A

The visibility timeout maximum is 12 hours

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

What does SQS guarantee with regards message delivery?

A

Standard queues provide at-least-once delivery, which means that each message is delivered at least once.

FIFO queues provide exactly-once processing, which means that each message is delivered once and remains available until a consumer processes it and deletes it.

17
Q

Do Standard SQS message queues preserve either message order or guarantee that they are delivered only once?

A

The Standard SQS message queue does not preserve message order nor guarantee messages are delivered only once - these are features of a FIFO message queue

18
Q

When does duplicate messaging occur?

A

Duplicate messages occur when a consumer does not complete its message processing and the visibility timeout of the message expires, making it visible for another consumer to obtain.

Increasing the visibility timeout to enable the consumer processing to complete, will prevent duplicate messages.

19
Q

Can you convert a standard queue into a FIFO queue?

A

You can’t convert an existing standard queue into a FIFO queue. To make the move, you must either create a new FIFO queue for your application or delete your existing standard queue and recreate it as a FIFO queue.