AWS Serverless Computing 1 — Questions and Answers
Question 1: What is the maximum execution timeout for an AWS Lambda function?
- 5 minutes
- 15 minutes (Correct answer)
- 30 minutes
- 1 hour
Correct answer: 15 minutes
AWS Lambda functions have a maximum execution timeout of 15 minutes (900 seconds); any function needing longer must be redesigned or use Step Functions.
Question 2: Which Lambda invocation type causes the function to execute synchronously and return the response to the caller?
- Event
- DryRun
- RequestResponse (Correct answer)
- Tail
Correct answer: RequestResponse
The RequestResponse invocation type executes Lambda synchronously and returns the function's response directly to the caller.
Question 3: What is the default memory allocation for a newly created AWS Lambda function?
- 128 MB (Correct answer)
- 256 MB
- 512 MB
- 1024 MB
Correct answer: 128 MB
The default memory allocation for a new Lambda function is 128 MB; it can be configured up to 10,240 MB.
Question 4: Which AWS service triggers Lambda functions on a defined cron or rate schedule?
- AWS CloudTrail
- Amazon EventBridge (Correct answer)
- AWS Config
- Amazon SQS
Correct answer: Amazon EventBridge
Amazon EventBridge (formerly CloudWatch Events) supports cron and rate expressions to invoke Lambda functions on a schedule.
Question 5: What is the maximum compressed deployment package size when uploading a Lambda function directly (not via S3)?
- 10 MB
- 50 MB (Correct answer)
- 250 MB
- 500 MB
Correct answer: 50 MB
The maximum compressed ZIP size for a direct Lambda upload is 50 MB; packages up to 250 MB unzipped can be deployed via S3.
Question 6: Which Lambda feature pre-initializes a specified number of execution environments to eliminate cold start latency?
- Lambda layers
- Reserved concurrency
- Provisioned concurrency (Correct answer)
- Lambda extensions
Correct answer: Provisioned concurrency
Provisioned concurrency initializes a set number of execution environments in advance so they respond immediately without cold start delays.
Question 7: What happens when a Lambda function exceeds its reserved concurrency limit?
- The function automatically scales beyond the limit
- Invocations are throttled with a 429 TooManyRequests error (Correct answer)
- The function is terminated immediately
- AWS increases the limit automatically
Correct answer: Invocations are throttled with a 429 TooManyRequests error
When a Lambda function hits its reserved concurrency cap, additional invocations are throttled and the caller receives a 429 TooManyRequests error.
What is the maximum execution timeout for an AWS Lambda function?