0
0
AWScloud~5 mins

Lambda execution model in AWS - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What is the AWS Lambda execution model?
AWS Lambda runs your code in response to events. It automatically manages the compute resources, running your code only when needed and scaling automatically.
Click to reveal answer
beginner
How does AWS Lambda handle scaling when multiple events occur?
Lambda creates multiple instances of your function to handle each event concurrently, scaling automatically without manual intervention.
Click to reveal answer
intermediate
What is a Lambda execution environment?
It is a temporary container where your Lambda function code runs. It includes the runtime, memory, and temporary storage, and it can be reused for multiple invocations.
Click to reveal answer
intermediate
Explain the cold start in Lambda execution.
A cold start happens when Lambda creates a new execution environment to run your function for the first time or after a period of inactivity, causing a slight delay.
Click to reveal answer
intermediate
What happens to the execution environment after a Lambda function finishes running?
The environment may be frozen and kept alive for some time to serve future requests quickly, or it may be discarded if not needed.
Click to reveal answer
What triggers AWS Lambda to run your code?
AAn event occurs
BYou manually start it
CIt runs continuously
DIt runs on a schedule only
What is a cold start in AWS Lambda?
ALambda function timing out
BLambda function running slowly due to code errors
CDelay when creating a new execution environment
DLambda function running out of memory
How does Lambda handle multiple simultaneous events?
ARuns only the first event
BQueues events and runs one at a time
CIgnores extra events
DCreates multiple execution environments to run functions concurrently
What happens to the Lambda execution environment after your function finishes?
AIt is always deleted immediately
BIt may be frozen and reused for future calls
CIt runs your code again automatically
DIt sends logs to the user
Which of these is NOT part of the Lambda execution environment?
APermanent database
BMemory
CTemporary storage
DRuntime
Describe how AWS Lambda executes your code from event to completion.
Think about what happens when an event occurs and how Lambda manages resources.
You got /4 concepts.
    Explain what a cold start is and why it matters in Lambda execution.
    Consider the impact on user experience when Lambda starts fresh.
    You got /4 concepts.