AWS Certified Solutions Architect Professional SAP-C02 Practice Question

Your company runs an AWS Step Functions Standard workflow that invokes several Lambda functions by using the prod alias. All functions currently run on the nodejs14.x runtime. Leadership has asked the team to adopt the newly supported nodejs20.x runtime. The upgrade must not reduce throughput or cause downtime, only a small percentage of production traffic should be routed to the new runtime at first with automatic rollback if CloudWatch error metrics cross a threshold, and the Step Functions definition must remain unchanged for future runtime updates.

Which deployment strategy will satisfy these requirements?

  • Use AWS CodeDeploy with a linear or canary deployment configuration to update the existing prod alias from the nodejs14.x version to a new nodejs20.x version of each function, and attach CloudWatch alarms so that CodeDeploy automatically rolls the alias back if errors increase.

  • Containerize the functions in Node.js 20 Docker images, deploy them to an Amazon ECS Fargate service behind an Application Load Balancer, and have the state machine invoke the ALB endpoint while gradually shifting traffic with weighted target groups.

  • Update the $LATEST version of every function in place to nodejs20.x, disable and later re-enable provisioned concurrency while you manually test the new code.

  • Create new Lambda functions that run nodejs20.x, modify each Task state in the Step Functions definition to call the new function ARNs, and delete the original functions after validation.

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