Serverless and Lambda Architecture 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 and Lambda Architecture flashcards as text
An event-driven application uses EventBridge to route events from multiple AWS services to different Lambda functions. A new compliance requirement mandates that all events must be archived for 7 years. What is the simplest solution?
Answer: Enable EventBridge event archiving on the event bus with a 7-year retention period
EventBridge natively supports event archiving directly on the event bus with a configurable retention period, making it the simplest compliance solution.
What is the maximum size of the /tmp ephemeral storage available to a Lambda function by default, and what is the configurable maximum?
Answer: 512 MB default, 10 GB maximum
Lambda provides 512 MB of /tmp storage by default, configurable up to 10,240 MB (10 GB) for functions that need to process large files.
A company runs a Lambda function that calls a third-party API with a fixed rate limit of 10 requests per second. The function is invoked thousands of times per minute. How should concurrency be controlled to avoid hitting the rate limit?
Answer: Use an SQS queue as an event source with Lambda reserved concurrency set to match the desired request rate
Placing requests in SQS and setting Lambda reserved concurrency to a low value (e.g., 1) controls the processing rate and protects the third-party API from being overwhelmed.
Which Lambda feature enables you to deploy a new version gradually, sending 10% of traffic to the new version while monitoring for errors before shifting the remaining 90%?
Answer: CodeDeploy with Lambda canary deployment configuration
AWS CodeDeploy integrates with Lambda to support canary, linear, and all-at-once traffic shifting strategies with automatic rollback on CloudWatch alarm breach.
A serverless API built on API Gateway and Lambda is experiencing cold start latency issues for Java functions. Which combination of settings best mitigates this without significant cost increase?
Answer: Enable provisioned concurrency on the Lambda alias used by API Gateway with SnapStart enabled
Lambda SnapStart (for Java) takes a snapshot of the initialized execution environment, dramatically reducing cold start times, and provisioned concurrency ensures warm instances are always available.
An architect needs to fan out a single event to 5 downstream Lambda functions simultaneously. Which approach is most scalable and loosely coupled?
Answer: Publish the event to an SNS topic with 5 Lambda subscriptions
SNS natively supports fan-out to multiple Lambda subscribers, delivering the message to all 5 functions simultaneously without tight coupling between them.
A Lambda function must process S3 object creation events but the architect needs to filter events so only objects with the prefix 'invoices/' and suffix '.pdf' trigger the function. Where is this filter configured?
Answer: In the S3 event notification configuration using prefix and suffix filters
S3 event notifications support prefix and suffix filters natively, so only matching objects trigger the notification—preventing unnecessary Lambda invocations.