AWS Certified Solutions Architect Professional SAP-C02 Practice Question

An e-commerce company needs to add a CI/CD pipeline for a business-critical AWS Lambda function that processes real-time transactions. The pipeline must 1) deploy new versions with zero downtime, 2) initially route only 10 percent of production traffic to the new version and automatically shift the remaining traffic 15 minutes later, 3) roll back automatically if the function's 5xx error rate exceeds 1 percent during the first traffic-shifting window, and 4) minimize custom code and operational overhead. Which solution meets these requirements?

  • Create an AWS CodePipeline deploy stage that uses AWS CodeDeploy with the predefined deployment configuration CodeDeployDefault.LambdaCanary10Percent15Minutes. Associate a CloudWatch alarm that monitors the Lambda Errors metric and enable automatic rollback on alarm breach.

  • Use AWS CloudFormation to create a change set that updates the Lambda function version, configure the stack to roll back on failure, and add a 15-minute creation policy before completion.

  • Configure an Amazon EventBridge rule to invoke an AWS Step Functions state machine that updates the Lambda alias weights in 10 percent increments and monitors CloudWatch metrics to trigger a custom rollback Lambda function.

  • Deploy the Lambda function with AWS Elastic Beanstalk using a rolling deployment policy and configure a CloudWatch alarm to initiate rollback if the 5xx error rate exceeds 1 percent.

AWS Certified Solutions Architect Professional SAP-C02
Design for New Solutions
Your Score:
Settings & Objectives
Random Mixed
Questions are selected randomly from all chosen topics, with a preference for those you haven’t seen before. You may see several questions from the same objective or domain in a row.
Rotate by Objective
Questions cycle through each objective or domain in turn, helping you avoid long streaks of questions from the same area. You may see some repeat questions, but the distribution will be more balanced across topics.

Check or uncheck an objective to set which questions you will receive.

Bash, the Crucial Exams Chat Bot
AI Bot