Lambda Flashcards

1
Q

T or F

Lambda is a computer service where you can upload your code and create a Lambda function.

A

True

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

T or F

Lambda takes care of provisioning and managing servers that you use to run the code.

A

true

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

T or F

With Lambda, you don’t have to worry about operating systems, patching, scaling, etc. You cna use Lambda in the following ways.

A

True

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

T or F

As an event driven compute service where AWS Lambda runs your code in response to events. These events could be changes to data in an AWS bucket or an AZ dynamoDB table.

A

True

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

T or F

As a compute service to run your code in response to HTTP requests using API GW or API calls made using AWS SDKs.

A

True

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

What languages does Lambda use?

  1. nodejs
  2. java
  3. python
  4. C#
  5. Go
A

All of the above

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

Pricing

T or F

of requests

first 1 million requests are free.

$.20 per 1 million requests thereafter

Duration is calculated from the time your code begins executing until it returns or otherwise temrinates, rounded up to the nearest 100ms. The price depends on the amount of money you allocate to your function. You are charged .00001667 for every GB-second used.

A

True

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

Why Lambda?

  1. no servers
  2. continuous scaling
  3. super cheap
A

all of the above

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

T or F

Lambda scales up not out automatically.

A

False

Lambda scales out (not up) automatically

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

T or F

Lambda functions are independent, 1 event = 1 function

A

True

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

T or F

Lambda is serverless

A

True

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

T or F

Lambda functions cannot trigger other lambda functions

A

false.

Lambda functions can trigger other lambda functions, 1 event can = x functions if functions trigger other functions.

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

T or F

Lambda can do things globally. You can use it to back up S3 to other S3 buckets.

A

true

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

WHen you use _____ in Lambda, you can publish one or more versions of your Lambda function. AS a result, you can work with different variations of your Lambda function in your development workflow, such as development, beta, and prod. Each Lambda function version has a unique ARN. After you publish, it is immutable (can’t be changed)

A

versioning

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

AWS Lambda maintains your latest function code in the ______ version. When you update your function code, AWS Lambda replaces the code in teh ____ version of teh Lambda code.

A

$LATEST

$LATEST

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

You can refer to this function using its ______. There are 2 _____ associated with this internal version.

A

ARN and ARNs

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

This function ARN wiht the version suffix

arn:aws:lambda:aws-region:acct-id:function:helloworld:$LATEST

A

Qualified ARN

18
Q

The function ARN without the version suffix:

arn:aws:lambda:aws-region:acct-id:function:helloworld

A

Unqualified ARN

19
Q

After initially creating a Lambda function (the $LATEWT version), you can publish a version 1 of it. By creating an _____ named PROD that points to version 1, you can now use the PROD alias to invoke version 1 of the Lambda function.

A

ALIAS

20
Q

How do you update Lambda’s in production.

A

You can update the code (the $LATEST version) with all of your improvements and then publish another stable version (V2). You can promote V2 to prod by remapping the PROD alias so that it paints to V2. If you find something wrong, you can easily roll back the prod version to V1 by remapping the PROD alias so that it points to V1.

21
Q

T or F

You can have multiple versions of Lambda functions

A

True

22
Q

T or F

The latest version of your Lambda will use $LATEST

A

True

23
Q

T or F

Qualified version will not use $LATEST, but the unqualified will use it.

A

False

The qualified version will use $LATEST, unqualified will not use it.

24
Q

T or F

Versions are immutable (can’t be changed)

A

True

25
Q

T or F

You can split traffic using alias to diff version

A

True

26
Q

T or F

you can’t split traffic with $LATEST, instead crete an alias to $LATEST

A

true

27
Q

This allows you to visualize and test your serverless apps.

A

Steps Functions

28
Q

_____ provides a graphical console to arrange and visualize the components of your app as a series of steps. This makes it simple to build and run multistep apps.

A

Step Functions

29
Q

_____ auto triggers and tracks each step and retries when there are errors, so your app executes in order and as expected. They also log the state of each step, so when things do go wrong, you can diagnose and debug problems quickly.

A

Step functions.

30
Q

T or F

Step functions are a great way to visualize your serverless application

A

True

31
Q

T or F

Step functions automatically trigger and tracks each step

A

True

32
Q

T or F

Step functions log the state of each step, so if something goes wrong, you can track what went wrong and where.

A

True

33
Q

concurrent executions

  • not necessary to memorize lots of limits for the exam
  • be aware that tehre i a concurrent execution limit for lambda
  • safety faeture to limit the number of concurrent executions across all functions in a given region pre account.
A

yes

34
Q

concurrent executions

default is _____ per region

TooManyRequestException

HTTP Status Code: ____

Request throughput limit exceeded

A

1000

429

35
Q

concurrent executions

  • if you have many lambda functions running in teh same region and you suddenly start seeing new invocation requests being rejected, then you may have hit your limit.
  • at ACG, our daily usage is around 6.5m Lambda invocations per day in us-east-1
  • request an increase on this limit by submitting a request to the aws support center
  • ____ ____ guarantees that a set number of executions which wil always be available for our critical function, however this also acts as a limit.
A

reserved concurrency

36
Q

Lambda versions

  • when you create a lambdad functioin, there is only one version: $LATEST
  • when yoou upload a new version of the code to lambda, this version will become $LATEST
  • you can create multiple version of your function code and use aliases t referernce the version you want to ues as part of the ARN
  • IN develoopment you might want to maintain a few versionns of the same function as you develop and test your code
  • an alias is like a pointer to a specific veersion of the funciton code
A

yes

37
Q

if ou upload hte new code to lambda, the new code becomes the $LATEST version

A

T

38
Q

if your appuses an alias, remember to update the ARN that you are using if you want to use te new code

A

T

39
Q

enabling lambda to access VPC resources

  • to enable this, you need to allow the function to connect to the private subnet
  • lambda needs the following VPC configuration info so that it can connect to the VPC::

private subnet id

security group ID (with required access)

lambda uses this info to setup ENIs using an available IP address from your private subnet

A
40
Q
A