
Answer-first summary for fast verification
Answer: Use an AWS Serverless Application Model (AWS SAM) template to define the serverless application. Use AWS CodeDeploy to deploy the Lambda functions with the Canary10Percent15Minutes Deployment Preference Type. Use Amazon CloudWatch alarms to monitor the health of the functions.
The correct answer is A. Using an AWS Serverless Application Model (AWS SAM) template and AWS CodeDeploy with the Canary10Percent15Minutes Deployment Preference Type allows for a gradual rollout of the new version. This approach initially directs 10% of the traffic to the new version and, if no issues are detected, gradually shifts the remaining traffic over 15 minutes. This minimizes the risk and potential impact on customers. Furthermore, Amazon CloudWatch alarms are configured to monitor the health of the Lambda functions, enabling prompt action if any issues arise. Options B, C, and D do not provide the same level of traffic control and monitoring during the deployment process.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
No comments yet.
A DevOps engineer is responsible for constructing a continuous deployment pipeline for a serverless application that utilizes AWS Lambda functions. The company has set a goal to minimize the potential negative impact on customers during the deployment process and to maintain a vigilant monitoring system for any operational issues. What deployment configuration should the engineer adopt to fulfill these objectives?
A
Use an AWS Serverless Application Model (AWS SAM) template to define the serverless application. Use AWS CodeDeploy to deploy the Lambda functions with the Canary10Percent15Minutes Deployment Preference Type. Use Amazon CloudWatch alarms to monitor the health of the functions.
B
Use AWS CloudFormation to publish a new stack update, and include Amazon CloudWatch alarms on all resources. Set up an AWS CodePipeline approval action for a developer to verify and approve the AWS CloudFormation change set.
C
Use AWS CloudFormation to publish a new version on every stack update, and include Amazon CloudWatch alarms on all resources. Use the RoutingConfig property of the AWS::Lambda::Alias resource to update the traffic routing during the stack update.
D
Use AWS CodeBuild to add sample event payloads for testing to the Lambda functions. Publish a new version of the functions, and include Amazon CloudWatch alarms. Update the production alias to point to the new version. Configure rollbacks to occur when an alarm is in the ALARM state.