Serverless Deployment 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 Deployment flashcards as text
Which AWS SAM CLI command packages a serverless application and uploads artifacts to S3 before deployment?
Answer: sam package
sam package bundles the application code and uploads artifacts to an S3 bucket, producing a packaged CloudFormation template.
When deploying a Lambda function via CodeDeploy with a canary traffic-shifting strategy, which configuration routes 10% of traffic immediately and the rest after 5 minutes?
Answer: Canary10Percent5Minutes
Canary10Percent5Minutes shifts 10% of traffic to the new version immediately, then shifts the remaining 90% after 5 minutes.
In an AWS SAM template, which resource type is used to define a serverless REST API backed by Lambda?
Answer: AWS::Serverless::Api
AWS::Serverless::Api is the SAM transform shorthand for creating an API Gateway REST API integrated with Lambda.
A DevOps engineer needs Lambda to process S3 events only from a specific prefix. Where should this filter be configured?
Answer: Lambda event source mapping notification filter
S3 event notification filters on prefix/suffix are configured in the event source mapping or S3 bucket notification configuration, not in Lambda itself.
Which feature of Lambda allows a DevOps team to keep a function pre-initialized to eliminate cold start latency?
Answer: Provisioned concurrency
Provisioned concurrency initializes a specified number of execution environments so they are ready to respond immediately without cold starts.
During a blue/green Lambda deployment via AWS CodeDeploy, which hook runs automated tests BEFORE traffic is shifted to the new version?
Answer: BeforeAllowTraffic
The BeforeAllowTraffic hook executes a Lambda function to run validation tests before CodeDeploy shifts any production traffic to the new version.
A SAM template defines a DynamoDB table with the StreamSpecification enabled. Which SAM event type connects the stream to a Lambda function?
Answer: DynamoDB
The DynamoDB event type in a SAM template creates a Lambda event source mapping that reads records from a DynamoDB Streams stream.