Serverless Architecture and AWS Lambda Flashcards
7 cards from real AWS practice questions. Tap to flip, then mark Knew It or Still Learning โ missed cards come back until you master them.
Read the first 7 Serverless Architecture and AWS Lambda flashcards as text
What is the AWS Serverless Application Model (AWS SAM)?
Answer: An open-source framework that extends CloudFormation with shorthand syntax for defining serverless resources
AWS SAM is an open-source framework that extends AWS CloudFormation with simplified syntax for defining Lambda functions, API Gateway APIs, DynamoDB tables, and other serverless resources.
What is the maximum total size allowed for all environment variables configured on a single Lambda function?
Answer: 4 KB
The combined size of all environment variable keys and values for a Lambda function cannot exceed 4 KB.
Which Lambda feature provides a dedicated HTTPS endpoint for invoking a function directly without needing Amazon API Gateway?
Answer: Lambda Function URLs
Lambda Function URLs give each function a unique HTTPS endpoint that can be invoked directly, supporting IAM or no-auth access control without API Gateway.
What is a Lambda Layer primarily used for?
Answer: Packaging shared libraries, custom runtimes, or dependencies that can be reused across multiple functions
Lambda Layers let you package reusable code and dependencies separately from function code, reducing deployment package sizes and promoting sharing across functions.
What is the default account-level concurrent execution limit for AWS Lambda per region?
Answer: 1,000
AWS accounts have a default soft limit of 1,000 concurrent Lambda executions per region, which can be increased by submitting a service limit increase request.
Which AWS service allows you to invoke a Lambda function on a recurring schedule using cron or rate expressions?
Answer: Amazon EventBridge Scheduler
Amazon EventBridge Scheduler (and EventBridge rules with schedule expressions) supports cron and rate expressions to trigger Lambda functions on a defined schedule.
When a Lambda function is invoked asynchronously and fails, how many times does Lambda automatically retry by default?
Answer: Lambda retries up to 2 times with increasing delays between attempts
For asynchronous invocations, Lambda automatically retries a failed function up to 2 additional times, waiting 1 minute before the first retry and 2 minutes before the second.