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.
Publishing a new immutable version of each Lambda function that uses the nodejs20.x runtime and then moving the existing prod alias with an AWS CodeDeploy canary or linear deployment exposes only a defined percentage of traffic to the new code. CodeDeploy shifts additional traffic in stages, monitors CloudWatch alarms, and automatically rolls the alias back to the previous version if the alarms enter ALARM state. Because the state machine invokes the alias rather than a specific version ARN, no change to the Step Functions definition is required. The other options either require updating the workflow definition, perform an all-at-once cutover without automated rollback, or introduce a completely different compute platform, none of which meets the stated constraints.
Ask Bash
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.
What is an AWS CodeDeploy canary deployment?
Open an interactive chat with Bash
How do CloudWatch alarms integrate with AWS CodeDeploy?
Open an interactive chat with Bash
Why does using the Lambda alias (such as 'prod') prevent changes to the Step Functions definition?
Open an interactive chat with Bash
AWS Certified Solutions Architect Professional SAP-C02
Design for New Solutions
Your Score:
Report Issue
Bash, the Crucial Exams Chat Bot
AI Bot
Loading...
Loading...
Loading...
Pass with Confidence.
IT & Cybersecurity Package
You have hit the limits of our free tier, become a Premium Member today for unlimited access.
Military, Healthcare worker, Gov. employee or Teacher? See if you qualify for a Community Discount.
Monthly
$19.99
$19.99/mo
Billed monthly, Cancel any time.
3 Month Pass
$44.99
$14.99/mo
One time purchase of $44.99, Does not auto-renew.
MOST POPULAR
Annual Pass
$119.99
$9.99/mo
One time purchase of $119.99, Does not auto-renew.
BEST DEAL
Lifetime Pass
$189.99
One time purchase, Good for life.
What You Get
All IT & Cybersecurity Package plans include the following perks and exams .