Decoupling Workflows Flashcards

1
Q

Possible options for frequent SQS message duplication?

A
  • Check for a misconfigured visibility timeout

- Check if the developer is failing to make the delete API call

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

What’s the maximum persistence time for a message in SQS?

A

14 days

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

How to ensure ordering in SQS?

A

SQS FIFO

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

How to send proactive notifications?

A

SNS

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

How to get notifications from CloudWatch alarms?

A

SNS

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

API Gateway

A

Secure front door to external communication coming into your environment

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

What’s the maximum size of an SQS message?

A

256Kb

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

How much time does a message can be kept in a queue in SQS?

A

From 1 minute to 14 days (4 days by default)

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

What’s the visibility timeout in SQS?

A

Visibility timeout is the amount of time that the message is invisible in the SQS queue after a reader picks up that message. If the job is not processed within that time, the message will become visible again and another reader will process it. This could result in the same message being delivered twice.

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

What does the WaitTimeSeconds attribute mean in SQS?

A

WaitTimeSeconds = 0 => Short polling

When the consumer instance polls for new work, the SQS service will allow waiting a certain time for one or more messages to be available before closing the connection.

By default, Amazon SQS uses short polling. Short polling occurs when the WaitTimeSeconds parameter of a ReceiveMessage request is set to 0.

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

What is the maximum “VisibiltyTimeout” of an SQS message in a FIFO queue?

A

12 hours (do not confuse it with how the message can remain in the queue, which is 14 days)

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