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?

A

FIFO

19
Q

Which SQS ordering type has better performance

A

Standard

20
Q

Which SQS ordering type costs more?

A

FIFO

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?

A

256KB

24
Q

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

A

Yes

25
Q

What can be subscribed to a FIFO SNS?

A

Only SQS

26
Q

What encryption needs to be added to SNS and what is default?

A

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

27
Q

If a message fails to send in SNS, what happens?

A

It doesn’t try to send again except for HTTP/HTTPS messages

28
Q

What is API Gateway?

A

Amazon API Gateway is a fully managed service that allows you to easily publish, create, maintain, monitor, and secure your API

29
Q

What is the biggest use for API gateway?

A

It puts a front door on your applications (that is added security)

30
Q

What is batched workloads?

A

Allows you to run batch computing workloads within AWS

31
Q

what is a job in regards AWS Batch?

A

one unit of work

32
Q

What are job definitions in regards to AWS Batch?

A

The blueprint for the how the job should be run

33
Q

What are job queues in regards to AWS Batch?

A

Where a job resides until it is run in a compute environment

34
Q

What are job queues in regards to AWS Batch?

A

Where a job resides until it is run in a compute environment

35
Q

What is the typical recommended way of launching batch jobs?

A

AWS Fargate

36
Q

When should a batch workload be run on EC2?

A

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
Q

Does AWS Batch or AWS Lambda have a 15 minute execution time limit?

A

AWS Lambda

38
Q

Is AWS Batch or AWS Lambda fully serverless?

A

AWS Lambda

39
Q

If you need differing runtimes, should you use AWS Batch or AWS Lambda?

A

AWS Batch, it has docker

40
Q

What is AWS Step Functions?

A

Serverless orchestration service meant for event driven task executions

41
Q

What are the two execution types and the advantages in AWS Step Functions?

A

Standard workflows: good for long running auditable executions
Express workflows: good for high-event rate executions

42
Q

What is AWS Appflow?

A

A fully managed integration service for exchanging data between SaaS apps and AWS services

43
Q

Are flows bidirectional or unidirectional in AWS appflow?

A

bidirectional