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
A Lambda function deployed in a VPC cannot reach an external AWS service endpoint. What is the most likely missing configuration?
Answer: VPC NAT Gateway or VPC endpoint for the target service is missing
Lambda functions in a VPC lose their default internet access; a NAT Gateway or VPC endpoint must be configured to reach AWS services or the internet.
Which AWS service can be used to manage and deploy serverless applications shared in the AWS Serverless Application Repository?
Answer: AWS Serverless Application Repository with sar deploy
The AWS Serverless Application Repository allows teams to publish, share, and deploy serverless applications directly using the SAR console or API.
What is the purpose of Lambda Destinations for asynchronous invocations?
Answer: To route success and failure results to services like SQS, SNS, or EventBridge without custom code
Lambda Destinations automatically send the result of asynchronous invocations to a configured target service on success or failure, replacing the need for custom error-handling code.
In a SAM template, the Globals section is used to define shared settings. Which of the following properties CANNOT be set in Globals?
Answer: FunctionName
FunctionName is resource-specific and cannot be defined in the Globals section; properties like Timeout, MemorySize, and Environment variables can be shared globally.
A DevOps engineer needs Lambda function logs to be exported to an S3 bucket for long-term storage. What is the correct approach?
Answer: Create a CloudWatch Logs subscription filter that streams to Kinesis Firehose and then S3
CloudWatch Logs subscription filters can stream log data to Kinesis Data Firehose, which then delivers the logs to S3 for archival.
Which CodePipeline action category is used to invoke a Lambda function as a custom action within a deployment pipeline?
Answer: Invoke
The Invoke action category in CodePipeline is specifically designed to call a Lambda function, enabling custom logic at any pipeline stage.
When using AWS CDK Pipelines to deploy a serverless application, which construct represents a self-mutating pipeline that updates itself before deploying application changes?
Answer: CodePipeline with selfMutation: true (pipelines.CodePipeline)
The aws-cdk-lib/pipelines CodePipeline construct with selfMutation enabled (the default) automatically updates the pipeline definition before deploying application stages.