Lambda Flashcards
What unit is Lambda charged in
Per 100m/s
Explain Lambda functions
The code you want to run
Explain lambda event sources
Services and events that trigger your lambda function
In context of Lambda. What is a downstream resource?
Resources required in execution of your functions.
Explain Log Streaming
Output from your lambda functions.
Lambda function deployment packages, can be two file types. They are…
.zip or .jar
What kind of EC2 instances does Lambda use for running code?
General Purpose Family.
What’s the default runtime of a lambda function
3 seconds
To reduce the cost of lambda functions. Lower these two things…
Memory and Timeout
If you choose to run a Lambda function in your VPC. Can the function can connect to the internet?
Only if the subnet of is in has a network gateway.
Lambda functions not ran in a VPC. Can access the internet by default?
Yes
Should you assign lambda functions to a public subnet?
NO!
If you are running your Lambda function on your own VPC. Who’s responsibility is High availability?
Yours
True or false. When lambda fails. It writes to a DLQ?
True
A synchronous lambda event fails. Will it automatically retry?
No
An asynchronous lambda event fails. How many more times will it attempt to run by default?
2
In the context of Lambda. Explain Concurrency.
How many occurrences of a lambda function you can have running at once in a single region.
What’s default concurrency value for a Lambda event in a single region?
1000
How do you raise concurrency in Lambda?
Contact AWS
True or false. Concurrency can be based on a function by function basis?
True
When you throttle a lambda function. What happens?
It won’t run!
Lambda exports can output two file formats. They are…
YAML and Zip
Are lambda tests user specific?
Yes
What is event source mapping in Lambda?
The configuration that links event source and lambda function.
In Lambda. You need some functions to run sequentially. What kind of function should they be?
Synchronous
You have some lambda functions, and it doesn’t matter what order they run in. Consider using …… functions.
Asynchronous
Can Lambda access resources on dedicated tenancy?
No
A Lambda function in your VPC needs access to the internet. How to do this?
Attatch it to a private subnet with a Nat Gateway.
You need to run a Lambda event on a schedule. How do you do this?
Use a time based cloud watch event to trigger the function.