Decoupling Flashcards

1
Q

What is the advantage of loosely coupled system?

A

If any one instance fails, the application will still work or be able to recover

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

Should you tightly couple systems?

A

No you should never tightly couple systems e.g. instances should not talk directly to another

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

At what level of your app should it be loosely coupled?

A

At every level should be loosely coupled

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

What processing type does SQS allow?

A

Allows asynchrous processing

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

What is the SQS max message size?

A

256KB per message

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

What is encrypted by default for SQS? What is not?

A

Encrypted default for in transit but not default for at-rest

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

Between short polling and long polling, what should you focus on in the exam? Which is default?

A

Focus on long polling. Short polling is default

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

What is the min and max message retention period? Default?

A

Min Retention is 1 minute
Max Retention is 14 days
Default 4 days

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

What is Queue Depth and what is used for?

A

Queue Depth is the amount of messages backed up in the queue and used for kicking off auto scaling consumers

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

What is delivery delay? The default? The max?

A

The amount of time new messages remain invisible to consumers of the queue. Default is 0 minutes. Max is 15 minutes

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

What is visibility timeout? The default? The max/min?

A

Visibility timeout is the time period where a message is not visible to consumers for processing/consumption. A consumer has this amount of time to process the message before it goes back onto the queue.

Default is 30 seconds
Max is 12 hours
Min is 0 seconds

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

What should you setup along with Dead Letter Queues?

A

Cloud Watch Alarms on queue depth to let you know things are backed up

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

What 2 things should you consider if there is a question about problems with a SQS queue?

A
  1. Dead Letter Queue

2. Visibility Timeout

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

What other service can you use ideally with DLQ?

A

You can send failed SNS messages to a DLQ

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

What are Dead Letter Queues?

A

SQS Queues where failed/rejected messages go after a certain amount of retries in the main SQS queue

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

What are the ordering characteristics of a Standard SQS?

A

Ordering is best try and not guaranteed

17
Q

What are the ordering characteristics of a FIFO SQS?

A

Order is guranteed for FIFO

18
Q

What are the delivery duplication characteristics of a Standard SQS?

A

Delivery is at least once and could be duplicated

19
Q

What are the delivery duplication characteristics of a FIFO SQS?

A

Delivery will never be duplicated

20
Q

What 2 reasons would Standard SQS be better over FIFO?

A
  1. Less Costly

2. Has higher throughput, while FIFO has a cap 300 tx per second

21
Q

What are the subscribers possible for SNS?

A

SQS,HTTP/HTTPS, Lambda, email, SMS, Kinesis Firehose, SMS

22
Q

Does SNS have retries for pushing to subscribers?

A

Yes, only for HTTP/HTTPS

23
Q

What is the max message size for SNS?

A

256 KB

24
Q

What are the 2 types of SNS? What is the difference?

A
  1. FIFO
    2.Standard
    FIFO only supports SQS as subscribers
25
Q

What is the encryption for SNS? Defaults?

A
  1. Default encrypted in transit

2. At Rest needs to be turned on

26
Q

What is the best friend to SNS?

A

CloudWatch and CloudWatch Alarms to delivery alerts

27
Q

What should you select for marketing emails? What will the exam try to trick you with emails?

A

SES is only for marketing emails. Email notifications pick SNS from Cloudwatch

28
Q

What should you select for marketing emails? What will the exam try to trick you with emails?

A

SES is only for marketing emails. Email notifications pick SNS from Cloudwatch

29
Q

What is the policy situation with SNS?

A

Access Policy can be put on a Topic to control who can publish to the topic

30
Q

How would SQS, retries and SNS work?

A

Send failed notifications in SNS to DLQ as SNS doesnt retry except or HTTP(S)

31
Q

When should you use API Gateway?

A

When exam mentions API, a safe front door is needed to interact into AWS from external

32
Q

what are 4 whys to use API Gateway?

A
  1. It allows you to use WAF,
  2. rate limiting against DDOS,
  3. gets away from hard coded credentials,
  4. supports versioned apis by staging
33
Q

What should you think about when exam mentions syncrhouns? mentions async?

A
  1. sync use ELB

2. async use SQS

34
Q

What is SNS fan out?

A

ALlows you to send the same message ot multiple subcribes at the same time

35
Q

What is SQS Long polling? Why use this?

A

Where the consumer connects to SQS and waits for a certain amount of seconds for a message before closing the connection.
This will save money by reducing network traffic

36
Q

What is SQS short polling?

A

Where the consumer connects to SQS to check for messages and if there are none immediately closes the connection then tries again.

37
Q

What does a consumer need to do within the visibility timeout period?

A

If consumer processes a message successfully, it must delete the message within this time period to prevent duplication.

If it fails but has only once delivery, it needs to delete the message in the queue within this period.