Lambda Flashcards

(19 cards)

1
Q

What does AWS X-Ray do?

A

it allows you to scan Lambda architecture and debug issues with AWS Lambda

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

Does AWS Lambda scale out automatically?

A

Yes

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

Does AWS Lambda scale up automatically?

A

No

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

Can an AWS Lambda function trigger another AWS Lambda Function?

A

Yes

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

What does SAM stand for?

A

Serverless Application Model

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

What is AWS SAM?

A

A superset of Cloudformation functionality that allows you to run serverless applications locally

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

At a high level, what is Fargate?

A

Fargate is a serverless container engine

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

What is the pricing structure for Fargate?

A

You specify and pay for resources per application

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

In what instances would you use EC2 instances instead of Fargate?

A
  • Strict compliance requirements
  • Your use case requires broader customization (since you can’t actually get in to the Fargate instance)
  • Your use case requires GPUs
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

How does ECS benefit from ELB?

A

with ELB, you can distribute traffic evenly across tasks in your service

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

What is the difference between EC2 Instance Roles and Task Roles?

A
  • An EC2 Instance Role applies a policy to all tasks running in that EC2 instance
  • A Task Role only applies to that task

So, Task Roles respect Least Priviledges better than EC2 instance Roles

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

When configuring SQS as event source for AWS Lambda function, what is the maximum batch size supported by AWS SQS RecieveMessage API call?

A

10

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

What Amazon CloudFront events can be used to trigger a Lambda Function?

A
  • Viewer Request
  • Viewer Response
  • Origin Request
  • Origin Response

(Source: https://github.cloud.capitalone.com/puggles/deposits-accounts-bankcard-pin/blob/develop/settings.xml#L9)

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

Suppose you change code and upload a new version of code to an AWS Lambda Function. What will happen to requests sent immediately after the code change?

A

For a brief period (usually less than one minute) requests might be served by either the old or new version

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

What poll-based services are supported by AWS Lambda?

A
  • Kinesis
  • DynamoDB
  • SQS

(Source: https://docs.aws.amazon.com/lambda/latest/dg/lambda-invocation.html?shortFooter=true%23streaming-event-source-mapping)

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

Are Lambda environment variables automatically encrypted?

A

They are encrypted when deployed, and decrypted when invoked (so your code can use them)

17
Q

What actions are required by Lambda Execution Role in order to write logs in CloudWatch?

A
  • CreateLogGroup
  • CreateLogStream
  • PutLogEvents
18
Q

When a lambda is synchronously invoked and errors, what is returned?

A

A 200 status code

A FunctionError field in the response

19
Q

What is the pricing model for AWS Lambda?

A
  • Requests (per million)
  • Total Duration and Hardware (per GB-s)