Decoupling Workflows Flashcards

1
Q

What can the SQS delivery delay be set to? What’s the default?

A
  • 0-15min
  • Default 0
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

How large can an SQS message be?

A

256kb

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

How is SQS encrypted?

A
  • Encrypted in transit by default
  • Must enable at-rest encryption.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

How long do SQS messages live by default? Whats the min and max?

A
  • 4 days default
  • Min 1 minute
  • Max 14 days
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is long and short polling? Which should you favor?

A
  • Short polling polls often for short periods.
  • Long polling remains connected longer.
  • Favor long polling generally.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is Queue Depth used for?

A
  • Queue depth can trigger autoscaling if there is a backup in messages.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is the visibility Timeout? What is it for?

A
  • Its the amount of time after a message is downloaded that a message is locked from being read by other consumers.
  • Ensures proper handling of messages
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What is the default SQS visibility Timeout?

A

30 Seconds

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

What’s more efficient? Long polling or short polling? What might this cause?

A
  • Long polling
  • Burning through API calls
  • Higher cost
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What are the restrictions on the contents of SQS messages?

A

None

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

What’s a dead-letter queue?

A
  • Its just an SQS Queue
  • Allows us to move messages to another queue temporarily after a number of retries
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What attributes make a Dead Letter Queue?

A
  • Enabling the DLQ to receive undeliverable messages
  • Entering the ARN of the queue to receive dead messages from
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What can you do with problematic SQS messages?

A

Send them to an SQS Desd-letter Queue

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

how can you know if a DLQ is filling up?

A

Use Cloudwatch to create an alarm and SNS to notify.

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

What can you do if an SNS message fails to deliver?

A

You can send it to a dead letter queue

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

What is the rate limit for FIFO queues?

A

300 per second

17
Q

Can messages arrive out of order?

A

Yes. It’s “best effort” ordering

18
Q

Whats the limit of message rate with SQS?

A

Nearly unlimited

19
Q

Can an SQS message be received more than once by a consumer?

A
  • Standard? Yes
  • Fifo? No
20
Q

Does FIFO cost more or the same as Standard SQS Queues?

A

It costs more.

21
Q

Exam says “ordering” and “SQS” you say…

A

FIFO

22
Q

What is a message “fan out”

A
  • Using SQS and SNS
  • you send an SNS to SQS which pushes it out
23
Q

How large can an SNS message be?

A

256kb

24
Q

Can an SNS topic be FIFO?

A

Yes, but only subscriber is SQS.

25
Q

How can you limit who publishes into SNS topics

A

Policies!

26
Q

What security can you apply to API Gateway?

A

You can assign a WAF to API Gateway

27
Q

Why use API Gateway?

A
  • Security
  • Stop potential abuse of your apps
  • Ease of use
28
Q

What is the difference between Amazon MQ and Amazon SQS

A
  • Amazon MQ uses industry-standard APIs and Protocols
  • It’s managed Apache MQ
29
Q

What’s the maximum number of standard SQS messages that can be in a queue? FIFO Messages?

A
  • 120,000 in-flight messages for standard
  • 20,000 in-flight messages for FIFO