AWS - Architectures Flashcards

1
Q

How much memory can you allocate to a Lambda function?

A

128MB to 10,240MB
AWS uses this to calculate how much CPU to allocate

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

How much disk space do Lambda’s get and where do you access it?

A

Start out with 512MB of storage which you can scale up to 10,240MB. Accessible at /tmp

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

What 5 runtime environments are supported by Lambdas?

A

Python, Ruby, Go, C#, Node.js

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

How are permissions typically granted to Lambda functions?

A

Via IAM Execution Roles

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

How could you use Lambdas for serverless file processing?

A

Via S3 + S3 Events. For example the Upload Completed S3 event could trigger a Lambda function to apply watermarks to an image.

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

How could you use Lambda Functions in database triggers?

A

In DynamoDB, your DB triggers can invoke Lamdba functions assuming you enable DynamoDB Streams.

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

How could you use Lambda Functions to implement serverless CRON?

A

EventBridge or CWEvents can trigger Lamda functions on a scheduled interval.

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

What are 3 architectural methods for invoking Lambdas?

A
  • Synchronous Invocation
  • Asynchronous Invocation
  • Event Source Mapping
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What 4 destinations can asynchronous Lambda functions send successes/failures to?

A
  • SQS
  • SNS
  • Other Lambdas
  • EventBridge
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

How do asynchronous Lambdas handle failures? What design considerations should you use?

A
  • Failures past the retry threshold get sent to a DLQ (dead-letter queue) - either an SQS queue or an SNS topic.
  • Lambdas let you configure 0, 1, or 2 automatic retries
  • Your functions have to be idempotent
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What properties do Lambda Function Versions have?

A
  • Each version contains both the code to run and the configurations for that function.
  • Published versions of a Lambda Function are IMMUTABLE and have their own ARN.
  • $Latest points at the latest version of a Lambda.
  • Aliases, such as DEV, STAGE, or PROD can point at a specific version of a Lambda, and can be changed
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

When would you use the Lambda Provisioned Concurrency configuration?

A

When you need to keep X Execution Contexts warm and ready to use, to avoid latency associated with cold starts.

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