Decoupling Services Flashcards

1
Q

What benefits does tightly coupled architecture have over loosely coupled architecture?

A

No meaningful benefits

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

What does SQS stand for?

A

Simple Queue Service?

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

What is SQS?

A

SQS is a messaging queue that allows asynchronous processing of work

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

What range of values can the delivery delay be set to?

A

0 seconds to 15 minutes

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

What is the maximum message size in SQS?

A

256 KB

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

What format must the message in SQS be?

A

text in any format

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

What type of encryption is default and what type of encryption must be specified for SQS?

A

Encryption in transit is default and encryption at rest can be added

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

What is the default message retention?

A

4 days

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

What type of polling is default for SQS?

A

short

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

What is the difference between long pulling and short pulling? Which is typically better?

A

Long pulling waits for a response while short polling disconnects and reconnects to check for responses. Long pulling is typically better

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

What is queue depth?

A

A trigger you can configure to autoscale

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

What is default length for visibility time out?

A

30 seconds

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

What is the purpose of a visibility timeout?

A

Holds a message to ensure the message is retained if the receiver fails to process a message

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

How long can messages last in SQS?

A

up to 14 days

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

what is a dead letter queue?

A

another SQS queue that you can sideline messages that aren’t working to

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

What is the max retention window in DLQ?

A

Same as SQS, 14 days

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

What is the standard SQS message ordering?

A

Best Effort ordering

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

Which SQS message ordering type prevents duplications?

19
Q

Which SQS ordering type has better performance

20
Q

Which SQS ordering type costs more?

21
Q

What does SNS stand for?

A

Simple notification service

22
Q

What does SNS do?

A

It is a push-based messaging service that proactively delivers messages to the endpoints subscribed to it

23
Q

What is the maximum message size for SNS?

24
Q

Can SNS messages that fail to be delivered be stored in an SQS DLQ?

25
What can be subscribed to a FIFO SNS?
Only SQS
26
What encryption needs to be added to SNS and what is default?
Encryption in transit is default and encryption at rest can be added
27
If a message fails to send in SNS, what happens?
It doesn't try to send again except for HTTP/HTTPS messages
28
What is API Gateway?
Amazon API Gateway is a fully managed service that allows you to easily publish, create, maintain, monitor, and secure your API
29
What is the biggest use for API gateway?
It puts a front door on your applications (that is added security)
30
What is batched workloads?
Allows you to run batch computing workloads within AWS
31
what is a job in regards AWS Batch?
one unit of work
32
What are job definitions in regards to AWS Batch?
The blueprint for the how the job should be run
33
What are job queues in regards to AWS Batch?
Where a job resides until it is run in a compute environment
34
What are job queues in regards to AWS Batch?
Where a job resides until it is run in a compute environment
35
What is the typical recommended way of launching batch jobs?
AWS Fargate
36
When should a batch workload be run on EC2?
When a custom AMI is needed, specific vCPU requirements are required, if you need a GPU or Graviton CPU, if you are using linux parameters, any memory requirements, or have a large number of jobs
37
Does AWS Batch or AWS Lambda have a 15 minute execution time limit?
AWS Lambda
38
Is AWS Batch or AWS Lambda fully serverless?
AWS Lambda
39
If you need differing runtimes, should you use AWS Batch or AWS Lambda?
AWS Batch, it has docker
40
What is AWS Step Functions?
Serverless orchestration service meant for event driven task executions
41
What are the two execution types and the advantages in AWS Step Functions?
Standard workflows: good for long running auditable executions Express workflows: good for high-event rate executions
42
What is AWS Appflow?
A fully managed integration service for exchanging data between SaaS apps and AWS services
43
Are flows bidirectional or unidirectional in AWS appflow?
bidirectional