[{"data":1,"prerenderedAt":389},["ShallowReactive",2],{"practiceExams":3,"studies":184,"free-lesson-\u002Fcourses\u002Faws-certified-devops-engineer-professional\u002Flessons\u002Faws-codedeploy-lambda-version-traffic-shifting-dop-c02":185},[4,22,36,48,60,72,84,97,109,120,130,141,154,163,175],{"id":5,"slug":6,"description":7,"questionCount":8,"isActive":9,"datePublicModified":10,"difficulty":11,"examVersion":18},22,"aws-certified-solutions-architect-professional-sap-c03","Prepare for the AWS Certified Solutions Architect - Professional (SAP-C03) exam with realistic practice questions on architecture, security, cost, resilience and automation, with detailed explanations.",767,true,"2026-11-15T00:00:00.000Z",{"providerId":12,"title":13,"subtitle":14,"slug":15,"coverImageUrl":16,"level":17},1,"AWS Certified Solutions Architect - Professional","SAP-C02","aws-certified-solutions-architect-professional","\u002Fimages\u002Fdifficulties\u002Faws-certified-solutions-architect-professionalsap-c02\u002Fcovers\u002Faws-SAP-C02.png","advanced",{"slug":6,"code":19,"dateBetaStart":20,"dateReleased":21,"pageSlug":15},"SAP-C03",null,"2026-11-17",{"id":23,"slug":24,"description":25,"questionCount":26,"isActive":9,"datePublicModified":27,"difficulty":28,"examVersion":34},5,"aws-certified-cloud-practitioner-clf-c02","Master your AWS Certified Cloud Practitioner exam with our Practice Exam Simulator. Prepare effectively and assess your readiness with realistic practice exams designed to mirror the most popular official AWS exam.",937,"2026-10-30T00:00:00.000Z",{"providerId":12,"title":29,"subtitle":30,"slug":31,"coverImageUrl":32,"level":33},"AWS Certified Cloud Practitioner","CLF-C02","aws-certified-cloud-practitioner","\u002Fimages\u002Fdifficulties\u002Faws-certified-cloud-practitionerclf-c02\u002Fcovers\u002Faws-CLF-C02.png","foundational",{"slug":24,"code":30,"dateBetaStart":20,"dateReleased":35,"pageSlug":31},"2023-09-19",{"id":37,"slug":38,"description":39,"questionCount":40,"isActive":9,"datePublicModified":27,"difficulty":41,"examVersion":46},8,"aws-certified-devops-engineer-professional-dop-c02","Boost your readiness for the AWS Certified DevOps Engineer - Professional (DOP-C02) exam with our practice exam simulator. Featuring realistic questions and detailed explanations, it helps you identify knowledge gaps and improve your skills.",1040,{"providerId":12,"title":42,"subtitle":43,"slug":44,"coverImageUrl":45,"level":17},"AWS Certified DevOps Engineer - Professional","DOP-C02","aws-certified-devops-engineer-professional","",{"slug":38,"code":43,"dateBetaStart":20,"dateReleased":47,"pageSlug":44},"2023-03-07",{"id":49,"slug":50,"description":51,"questionCount":52,"isActive":9,"datePublicModified":27,"difficulty":53,"examVersion":57},11,"aws-certified-ai-practitioner-aif-c01","Prepare for the AWS Certified AI Practitioner exam with our practice exam simulator. Realistic questions on AI, machine learning and generative AI fundamentals, with detailed explanations, help you find your knowledge gaps and assess your readiness.",928,{"providerId":12,"title":54,"subtitle":55,"slug":56,"coverImageUrl":45,"level":33},"AWS Certified AI Practitioner","AIF-C01","aws-certified-ai-practitioner",{"slug":50,"code":55,"dateBetaStart":58,"dateReleased":59,"pageSlug":56},"2024-08-13","2024-10-22",{"id":12,"slug":61,"description":62,"questionCount":63,"isActive":9,"datePublicModified":27,"difficulty":64,"examVersion":70},"aws-certified-solutions-architect-associate-saa-c03","Unlock your potential with the AWS Certified Solutions Architect - Associate Practice Exam Simulator. This comprehensive tool is designed to prepare you thoroughly and assess your readiness for the most sought-after AWS associate certification.",1203,{"providerId":12,"title":65,"subtitle":66,"slug":67,"coverImageUrl":68,"level":69},"AWS Certified Solutions Architect - Associate","SAA-C03","aws-certified-solutions-architect-associate","\u002Fimages\u002Fdifficulties\u002Faws-certified-solutions-architect-associatesaa-c03\u002Fcovers\u002Faws-SAA-C03.png","associate",{"slug":61,"code":66,"dateBetaStart":20,"dateReleased":71,"pageSlug":67},"2022-08-30",{"id":73,"slug":74,"description":75,"questionCount":76,"isActive":9,"datePublicModified":27,"difficulty":77,"examVersion":81},9,"aws-certified-data-engineer-associate-dea-c01","Prepare for your AWS Certified Data Engineer - Associate exam with our practice exam simulator. Featuring real exam scenarios, detailed explanations, and instant feedback to boost your confidence and success rate.",891,{"providerId":12,"title":78,"subtitle":79,"slug":80,"coverImageUrl":45,"level":69},"AWS Certified Data Engineer - Associate","DEA-C01","aws-certified-data-engineer-associate",{"slug":74,"code":79,"dateBetaStart":82,"dateReleased":83,"pageSlug":80},"2023-11-27","2024-03-12",{"id":85,"slug":86,"description":87,"questionCount":88,"isActive":9,"datePublicModified":89,"difficulty":90,"examVersion":94},17,"aws-certified-generative-ai-developer-professional-aip-c01","Get ready for the AWS Certified Generative AI Developer - Professional exam with our practice exam simulator. Realistic scenario-based questions with detailed explanations help you assess your readiness to build generative AI solutions on AWS.",982,"2026-10-29T00:00:00.000Z",{"providerId":12,"title":91,"subtitle":92,"slug":93,"coverImageUrl":45,"level":17},"AWS Certified Generative AI Developer - Professional","AIP-C01","aws-certified-generative-ai-developer-professional",{"slug":86,"code":92,"dateBetaStart":95,"dateReleased":96,"pageSlug":93},"2025-11-28","2026-03-17",{"id":98,"slug":99,"description":100,"questionCount":101,"isActive":9,"datePublicModified":89,"difficulty":102,"examVersion":107},13,"aws-certified-security-specialty-scs-c03","Advance your career in cloud security with the AWS Certified Security - Specialty (SCS-C03) Exam Simulator. Realistic, scenario-based practice exams mirror the official exam, with detailed explanations to close your knowledge gaps.",864,{"providerId":12,"title":103,"subtitle":104,"slug":105,"coverImageUrl":106,"level":17},"AWS Certified Security - Specialty","SCS-C03","aws-certified-security-specialty","\u002Fimages\u002Fdifficulties\u002Faws-certified-security-specialtyscs-c02\u002Fcovers\u002Faws_SCS_c02.png",{"slug":99,"code":104,"dateBetaStart":20,"dateReleased":108,"pageSlug":105},"2025-12-01",{"id":110,"slug":111,"description":112,"questionCount":113,"isActive":9,"datePublicModified":89,"difficulty":114,"examVersion":118},19,"aws-certified-machine-learning-engineer-associate-mla-c02","Prepare for the AWS Certified Machine Learning Engineer - Associate exam with our practice exam simulator. Realistic questions with detailed explanations help you find your knowledge gaps and assess your readiness to build and run ML workloads on AWS.",861,{"providerId":12,"title":115,"subtitle":116,"slug":117,"coverImageUrl":45,"level":69},"AWS Certified Machine Learning Engineer - Associate","MLA-C02","aws-certified-machine-learning-engineer-associate",{"slug":111,"code":116,"dateBetaStart":119,"dateReleased":20,"pageSlug":117},"2026-09-29",{"id":121,"slug":122,"description":123,"questionCount":124,"isActive":9,"datePublicModified":89,"difficulty":125,"examVersion":129},15,"aws-certified-ai-business-strategist-aib-c01","Prepare for the AWS Certified AI Business Strategist exam with our practice exam simulator. Realistic, scenario-based questions with detailed explanations help you assess your readiness to lead AI adoption on AWS and close your knowledge gaps.",848,{"providerId":12,"title":126,"subtitle":127,"slug":128,"coverImageUrl":45,"level":33},"AWS Certified AI Business Strategist","AIB-C01","aws-certified-ai-business-strategist",{"slug":122,"code":127,"dateBetaStart":119,"dateReleased":20,"pageSlug":128},{"id":131,"slug":132,"description":133,"questionCount":134,"isActive":9,"datePublicModified":89,"difficulty":135,"examVersion":139},21,"aws-certified-cloudops-engineer-associate-soa-c03","Prepare for the AWS Certified CloudOps Engineer - Associate exam with our practice exam simulator. Realistic questions with detailed explanations help you assess your readiness to deploy, operate and troubleshoot workloads on AWS.",862,{"providerId":12,"title":136,"subtitle":137,"slug":138,"coverImageUrl":45,"level":69},"AWS Certified CloudOps Engineer - Associate","SOA-C03","aws-certified-cloudops-engineer-associate",{"slug":132,"code":137,"dateBetaStart":20,"dateReleased":140,"pageSlug":138},"2025-09-30",{"id":142,"slug":143,"description":144,"questionCount":145,"isActive":9,"datePublicModified":146,"difficulty":147,"examVersion":151},10,"aws-certified-advanced-networking-specialty-ans-c01","The AWS Certified Advanced Networking - Specialty practice exam simulates the real test, offering scenario-based questions that assess your ability to design, implement, and troubleshoot complex AWS networking solutions. ",681,"2024-11-13T00:00:00.000Z",{"providerId":12,"title":148,"subtitle":149,"slug":150,"coverImageUrl":45,"level":17},"AWS Certified Advanced Networking - Specialty","ANS-C01","aws-certified-advanced-networking-specialty",{"slug":143,"code":149,"dateBetaStart":152,"dateReleased":153,"pageSlug":150},"2022-01-01","2022-07-12",{"id":155,"slug":156,"description":157,"questionCount":158,"isActive":9,"datePublicModified":159,"difficulty":160,"examVersion":161},6,"aws-certified-solutions-architect-professional-sap-c02","Elevate your career with the AWS Certified Solutions Architect - Professional Exam Simulator. Get ready to ace the most popular Professional AWS exam with our realistic practice exams. Assess your readiness, boost your confidence, and ensure your success.",789,"2024-06-06T00:00:00.000Z",{"providerId":12,"title":13,"subtitle":14,"slug":15,"coverImageUrl":16,"level":17},{"slug":156,"code":14,"dateBetaStart":20,"dateReleased":162,"pageSlug":20},"2022-11-15",{"id":164,"slug":165,"description":166,"questionCount":167,"isActive":9,"datePublicModified":159,"difficulty":168,"examVersion":173},4,"aws-certified-developer-associate-dva-c02","Unlock your potential as a software developer with the AWS Certified Developer - Associate Exam Simulator! Prepare thoroughly with realistic practice exams designed to mirror the official exam.",399,{"providerId":12,"title":169,"subtitle":170,"slug":171,"coverImageUrl":172,"level":69},"AWS Certified Developer - Associate","DVA-C02","aws-certified-developer-associate","\u002Fimages\u002Fdifficulties\u002Faws-certified-developer-associatedva-c02\u002Fcovers\u002Faws-DVA-C02.png",{"slug":165,"code":170,"dateBetaStart":20,"dateReleased":174,"pageSlug":171},"2023-02-28",{"id":176,"slug":177,"description":178,"questionCount":179,"isActive":9,"datePublicModified":159,"difficulty":180,"examVersion":181},7,"aws-certified-security-specialty-scs-c02","Advance your career in cloud cybersecurity with the AWS Certified Security - Specialty Exam Simulator! Tailored for professionals, this tool offers realistic practice exams to mirror the official exam.",5431,{"providerId":12,"title":103,"subtitle":104,"slug":105,"coverImageUrl":106,"level":17},{"slug":177,"code":182,"dateBetaStart":20,"dateReleased":183,"pageSlug":20},"SCS-C02","2023-07-11",[],{"slug":186,"title":187,"focus":188,"level":17,"components":189,"diagrams":220,"steps":250,"dateModified":387,"course":388,"nextLesson":20},"aws-codedeploy-lambda-version-traffic-shifting-dop-c02","AWS CodeDeploy: Lambda version traffic shifting","How CodeDeploy shifts a Lambda alias between published versions using deployment configurations, validation hooks, and alarm-based rollback.",[190,196,200,204,208,212,216],{"key":191,"kind":192,"name":193,"icon":194,"provider":195},"amazon-cloudwatch","service","Amazon CloudWatch","\u002Fimages\u002Fprovider-services\u002Famazon-cloudwatch\u002Fcovers\u002FArch_Amazon-CloudWatch_64.png","AWS",{"key":197,"kind":192,"name":198,"icon":199,"provider":195},"aws-cloudtrail","AWS CloudTrail","\u002Fimages\u002Fprovider-services\u002Faws-cloudtrail\u002Fcovers\u002FArch_AWS-CloudTrail_64.png",{"key":201,"kind":192,"name":202,"icon":203,"provider":195},"aws-codebuild","AWS CodeBuild","\u002Fimages\u002Fprovider-services\u002Faws-codebuild\u002Fcovers\u002FArch_AWS-CodeBuild_64.png",{"key":205,"kind":192,"name":206,"icon":207,"provider":195},"aws-codedeploy","AWS CodeDeploy","\u002Fimages\u002Fprovider-services\u002Faws-codedeploy\u002Fcovers\u002FArch_AWS-CodeDeploy_64.png",{"key":209,"kind":192,"name":210,"icon":211,"provider":195},"aws-codepipeline","AWS CodePipeline","\u002Fimages\u002Fprovider-services\u002Faws-codepipeline\u002Fcovers\u002FArch_AWS-CodePipeline_64.png",{"key":213,"kind":192,"name":214,"icon":215,"provider":195},"aws-lambda","AWS Lambda","\u002Fimages\u002Fprovider-services\u002Faws-lambda\u002Fcovers\u002FArch_AWS-Lambda_64.png",{"key":217,"kind":192,"name":218,"icon":219,"provider":195},"aws-x-ray","AWS X-Ray","\u002Fimages\u002Fprovider-services\u002Faws-x-ray\u002Fcovers\u002FArch_AWS-X-Ray_64.png",[221],{"key":222,"cards":223,"groups":236,"lines":237},"lambda-rollout",[224,227,230,233],{"key":225,"component":205,"label":226},"deploy","Lambda deployment",{"key":228,"component":213,"label":229},"function","Application function: live alias, published versions 41 and 42",{"key":231,"component":213,"label":232},"hooks","Validation hook functions",{"key":234,"component":191,"label":235},"monitor","Application metrics and deployment alarms",[],[238,240,242,244,246,248],{"from":225,"to":228,"label":239},"alias updates",{"from":225,"to":231,"label":241},"hook invocation",{"from":231,"to":228,"label":243},"test invocations",{"from":231,"to":225,"label":245},"validation status",{"from":228,"to":234,"label":247},"execution metrics",{"from":234,"to":225,"label":249},"alarm status",[251,288,306,331,343,346,361,364,374],{"kind":252,"title":253,"body":254,"diagram":222,"walkthrough":255},"explanation","Deploy the alias, not mutable code","\u003Cp>A Lambda deployment shifts an \u003Cstrong>alias\u003C\u002Fstrong> between already \u003Cstrong>published versions\u003C\u002Fstrong>. In this example, callers invoke \u003Ccode>live\u003C\u002Fcode>, initially pointing to version 41. Version 42 is published before deployment; CodeDeploy changes alias routing rather than rewriting either version. Calls made directly to a version bypass that routing.\u003C\u002Fp>\u003Cp>The \u003Cstrong>AppSpec\u003C\u002Fstrong> identifies the function, alias, current version, target version, and optional hooks. The deployment configuration supplies the traffic schedule; the deployment group supplies alarm and automatic rollback settings. The diagram separates deployment control from application execution.\u003C\u002Fp>\u003Cp>\u003Cstrong>CodeDeploy\u003C\u002Fstrong> executes this rollout; CodePipeline orchestrates release stages, and Lambda executes application and hook code. \u003Cstrong>CloudWatch\u003C\u002Fstrong> evaluates metric alarms; CloudTrail records API activity, while X-Ray records traces. Neither API history nor traces replace the alarm status CodeDeploy monitors.\u003C\u002Fp>",[256,259,264,270,275,280,285],{"text":257,"cards":258},"CodeDeploy owns the Lambda deployment and applies its selected rollout policy.",[225],{"text":260,"cards":261,"lines":262},"CodeDeploy updates the application's live alias to shift traffic from published version 41 to published version 42. The function card contains the alias and both immutable versions.",[228],[263],{"from":225,"to":228},{"text":265,"cards":266,"lines":267},"CodeDeploy invokes the configured validation Lambda functions. In this design, they test the target version directly before traffic moves and test the live alias after traffic moves.",[231],[268,269],{"from":225,"to":231},{"from":231,"to":228},{"text":271,"cards":272,"lines":273},"Each validation hook explicitly reports its lifecycle execution status to CodeDeploy; returning from the function alone does not report that status.",[],[274],{"from":231,"to":225},{"text":276,"cards":277,"lines":278},"The application function emits execution metrics to CloudWatch, where configured alarms evaluate deployment health.",[234],[279],{"from":228,"to":234},{"text":281,"cards":282,"lines":283},"CodeDeploy checks the configured CloudWatch alarms and can stop the deployment when an alarm enters ALARM.",[],[284],{"from":234,"to":225},{"text":286,"cards":287},"Alias updates expose the new version, explicit hook results gate deployment progress, and monitored alarms provide a separate health signal.",[],{"kind":289,"title":290,"exercise":291},"exercise","Restore the rollout controller and health monitor",{"type":292,"diagram":222,"question":293,"hidden":294,"tray":295},"palette","Fill the two slots: the service that updates alias routing and consumes hook results, and the service that evaluates application metric alarms.",[225,234],[296,297,299,301,302,304],{"component":205},{"component":209,"reason":298},"CodePipeline orchestrates release stages; CodeDeploy executes the Lambda alias rollout.",{"component":213,"reason":300},"Lambda runs the application and hooks; CodeDeploy owns the rollout schedule and consumes lifecycle results.",{"component":191},{"component":197,"reason":303},"CloudTrail records API activity; it does not evaluate the application metric alarms monitored by CodeDeploy.",{"component":217,"reason":305},"X-Ray records traces; CloudWatch evaluates the metric alarms used to stop this deployment.",{"kind":252,"title":307,"body":308,"table":309},"Translate a deployment configuration into alias weights","\u003Cp>The Lambda AppSpec resource uses \u003Ccode>AWS::Lambda::Function\u003C\u002Fcode> with \u003Ccode>Name\u003C\u002Fcode>, \u003Ccode>Alias\u003C\u002Fcode>, \u003Ccode>CurrentVersion\u003C\u002Fcode>, and \u003Ccode>TargetVersion\u003C\u002Fcode>. Both versions must already exist. Weighted aliases route between published versions, not \u003Ccode>$LATEST\u003C\u002Fcode>; publishing and selecting the target is separate from shifting production traffic.\u003C\u002Fp>\u003Cp>A \u003Cstrong>canary\u003C\u002Fstrong> configuration sends an initial percentage to the target, waits its configured interval, then moves the remainder. A \u003Cstrong>linear\u003C\u002Fstrong> configuration adds equal percentage increments at successive intervals. \u003Cstrong>All-at-once\u003C\u002Fstrong> moves all alias traffic in one step. Predefined configurations or supported custom configurations define these schedules.\u003C\u002Fp>\u003Cp>Weights are \u003Cstrong>probabilities per invocation\u003C\u002Fstrong>, not exact request counts or user cohorts. During a canary, repeated calls from one client can reach either version. Low traffic can produce a very uneven sample, so a longer interval alone does not guarantee meaningful evidence about the target.\u003C\u002Fp>",{"columns":310,"rows":315},[311,312,313,314],"Configuration","Weight changes","Observation opportunity","Exposure trade-off",[316,321,326],[317,318,319,320],"Canary","Initial share, then remainder","One partial-traffic interval","Small start, large final jump",[322,323,324,325],"Linear","Equal successive increments","Multiple partial-traffic intervals","Gradually increasing exposure",[327,328,329,330],"All-at-once","Entire share immediately","No partial-traffic interval","Immediate full exposure",{"kind":289,"title":332,"exercise":333},"Name the two staged schedules",{"type":334,"question":335,"text":336,"answers":337,"distractors":340},"placeholder","Complete the distinction between the two staged traffic schedules.","A {} configuration shifts an initial share, waits, then shifts the remainder. A {} configuration shifts equal increments at successive intervals.",[338,339],"canary","linear",[341,342],"all-at-once","rollback",{"kind":252,"title":344,"body":345},"Use hooks as gates and alarms as ongoing checks","\u003Cp>Lambda supports the optional \u003Cstrong>BeforeAllowTraffic\u003C\u002Fstrong> and \u003Cstrong>AfterAllowTraffic\u003C\u002Fstrong> validation hooks. The first runs before traffic shifting starts; the second runs after traffic shifting completes, not after every canary or linear increment. Hooks are \u003Cstrong>Lambda functions\u003C\u002Fstrong>, not build jobs or pipeline stages. A pre-traffic test must invoke the target version explicitly if it needs to test new code: the production alias still selects the old version.\u003C\u002Fp>\u003Cp>CodeDeploy passes a \u003Ccode>DeploymentId\u003C\u002Fcode> and \u003Ccode>LifecycleEventHookExecutionId\u003C\u002Fcode> to the hook. The hook must call \u003Cstrong>PutLifecycleEventHookExecutionStatus\u003C\u002Fstrong> with those identifiers and \u003Ccode>Succeeded\u003C\u002Fcode> or \u003Ccode>Failed\u003C\u002Fcode>. A normal Lambda return is insufficient; without the callback, the lifecycle event eventually times out. Give the hook execution role permission to report that result.\u003C\u002Fp>\u003Cp>\u003Cstrong>CloudWatch alarms\u003C\u002Fstrong> cover health during traffic shifting, including the intervals between weight changes. An enabled deployment-group alarm in ALARM stops the deployment. Stopping and rolling back are separate: enable automatic rollback for \u003Ccode>DEPLOYMENT_STOP_ON_ALARM\u003C\u002Fcode>, and for \u003Ccode>DEPLOYMENT_FAILURE\u003C\u002Fcode> to cover failures such as unsuccessful validation. Alarm polling failures are governed separately by \u003Ccode>ignorePollAlarmFailure\u003C\u002Fcode>; choosing to ignore them permits progress without a reliable alarm check.\u003C\u002Fp>",{"kind":289,"title":347,"exercise":348},"Repair the lifecycle validator",{"type":349,"diagram":222,"requirement":350,"change":351,"tray":352,"hint":359,"explanation":360},"flaw","BeforeAllowTraffic and AfterAllowTraffic must invoke validation Lambda functions that explicitly report their lifecycle execution status.",{"card":231,"component":201},[353,355,357],{"component":213,"reason":354},"Lambda functions implement the supported validation hooks and report lifecycle execution status.",{"component":201,"reason":356},"A build job is not a Lambda lifecycle hook function.",{"component":209,"reason":358},"A pipeline stage is not a Lambda lifecycle hook function.","The hook must be a Lambda function; a successful build or pipeline stage is not the lifecycle callback.","The hook component must be AWS Lambda. Its code performs validation and calls PutLifecycleEventHookExecutionStatus; merely returning successfully does not complete the lifecycle event.",{"kind":252,"title":362,"body":363},"Make rollback useful, and diagnose the right boundary","\u003Cp>Design \u003Cstrong>deployment alarms\u003C\u002Fstrong> around evidence the target actually receives. Aggregate errors across both versions can hide a regression in a small canary share. Lambda's \u003Ccode>ExecutedVersion\u003C\u002Fcode> dimension can distinguish the version that ran behind a weighted alias. Choose evaluation periods and missing-data treatment deliberately: no requests is not evidence of health, and an alarm must have time to evaluate before exposure increases.\u003C\u002Fp>\u003Cp>With automatic rollback enabled for the triggering condition, CodeDeploy deploys the last known good revision and restores alias routing toward the previous version. \u003Cstrong>Rollback does not undo side effects\u003C\u002Fstrong>, database writes, or incompatible schema changes, and it does not terminate invocations already running. Keep adjacent versions compatible with shared data and downstream systems.\u003C\u002Fp>\u003Cp>When progress stops, inspect the \u003Cstrong>deployment event\u003C\u002Fstrong> first: a hook failure calls for hook logs and callback permissions; an alarm stop calls for alarm history and the metric's dimensions; an alias-update failure calls for the CodeDeploy service role and function configuration. Preserve the separation in the diagram: CodeDeploy changes routing, hooks report validation, and CloudWatch supplies alarm status.\u003C\u002Fp>",{"kind":289,"title":365,"exercise":366},"Reassemble the controlled rollout",{"type":367,"diagram":222,"question":368,"decoys":369},"build","Rebuild the illustrated Lambda rollout, including scheduled alias control, validation tests and explicit results, and metric-based deployment health checks.",[370,372],{"component":209,"reason":371},"CodePipeline orchestrates release stages; CodeDeploy executes the alias traffic schedule and consumes lifecycle hook results.",{"component":197,"reason":373},"CloudTrail records API activity; CloudWatch evaluates the application metric alarms checked by CodeDeploy.",{"kind":252,"title":375,"body":376,"takeaways":377},"What to remember","\u003Cp>\u003Cstrong>Safe Lambda traffic shifting\u003C\u002Fstrong> combines an alias schedule, explicit validation results, and meaningful alarms with separately configured automatic rollback.\u003C\u002Fp>",[378,381,384],{"title":379,"text":380},"Versions stay immutable","CodeDeploy shifts an alias between published versions. Canary and linear configurations control exposure over time, but weights are probabilities rather than guaranteed request counts.",{"title":382,"text":383},"Hooks must report","BeforeAllowTraffic precedes shifting; AfterAllowTraffic follows its completion. Each hook must explicitly report its lifecycle execution status to CodeDeploy.",{"title":385,"text":386},"Stop is not rollback","Configure both health alarms and the automatic rollback conditions they should trigger. Restoring alias routing does not reverse application side effects or stop invocations already running.","2026-10-29T23:39:10.555Z",{"pageSlug":44,"code":43,"certification":42,"certificationSlug":44},1796130158343]