SQS Flashcards

1
Q

How do you handle duplicate messages that are already IN an SQS queue?

A

Use a unique message identifier to deduplicate messages in the queue

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

How do you prevent duplicate messages being sent to the queue?

A

Content deduplication

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

Most cost effective solution for 3 instances running 9 scripts that take less than 5 mins?

A
  1. Convert scripts to Lambda Functions
  2. Schedule them with Event Bridge
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is Event Bridge

A

Event Bridge was previously know as Cloudwatch Events

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

How do you decouple appe using using SQS

A
  • Send messages directly to SQS queue
  • Retrieve and process messages as they become available
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What 2 things does SQS do for apps?

A
  1. Decouples components
  2. Improves scalability
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What affe a layer of timeout-and-retry logic to your lambda functions to help with managing failures with zero code?

A

Step Functions

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

Where do all events land once they have been triggered in the Event Bridge

A

event bus

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

Name the 8 states your machine can be in at anytime?

A

The Task State …..

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

What should you use to synchronize user data across mobile devices and the web?

A

App Sync and Cognito Sync

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

What is long polling?

A

if message responds immediately, if no message waits for a specified duration time out before sending an empty response

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

What is short polling

A

if no messages in the queue, responds immediately with an empty response

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