[{"data":1,"prerenderedAt":429},["ShallowReactive",2],{"practiceExams":3,"studies":184,"free-lesson-\u002Fcourses\u002Faws-certified-devops-engineer-professional\u002Flessons\u002Faws-codedeploy-ecs-blue-green-deployments-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":240,"steps":282,"dateModified":424,"course":425,"nextLesson":426},"aws-codedeploy-ecs-blue-green-deployments-dop-c02","AWS CodeDeploy: ECS blue\u002Fgreen deployments","How CodeDeploy coordinates replacement ECS task sets and load balancer traffic, including validation gates and failed traffic shifts.",[190,196,200,204,208,212,216,220,224,228,232,236],{"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},"amazon-elastic-container-service-(amazon-ecs)","Amazon Elastic Container Service (Amazon ECS)","\u002Fimages\u002Fprovider-services\u002Famazon-elastic-container-service-(amazon-ecs)\u002Fcovers\u002FArch_Amazon-Elastic-Container-Service_64.png",{"key":201,"kind":192,"name":202,"icon":203,"provider":195},"amazon-eventbridge","Amazon EventBridge","\u002Fimages\u002Fprovider-services\u002Famazon-eventbridge\u002Fcovers\u002FArch_Amazon-EventBridge_64.png",{"key":205,"kind":192,"name":206,"icon":207,"provider":195},"amazon-route-53","Amazon Route 53","\u002Fimages\u002Fprovider-services\u002Famazon-route-53\u002Fcovers\u002FArch_Amazon-Route-53_64.png",{"key":209,"kind":192,"name":210,"icon":211,"provider":195},"aws-app-mesh","AWS App Mesh","\u002Fimages\u002Fprovider-services\u002Faws-app-mesh\u002Fcovers\u002FArch_AWS-App-Mesh_64.png",{"key":213,"kind":192,"name":214,"icon":215,"provider":195},"aws-cloudtrail","AWS CloudTrail","\u002Fimages\u002Fprovider-services\u002Faws-cloudtrail\u002Fcovers\u002FArch_AWS-CloudTrail_64.png",{"key":217,"kind":192,"name":218,"icon":219,"provider":195},"aws-codebuild","AWS CodeBuild","\u002Fimages\u002Fprovider-services\u002Faws-codebuild\u002Fcovers\u002FArch_AWS-CodeBuild_64.png",{"key":221,"kind":192,"name":222,"icon":223,"provider":195},"aws-codedeploy","AWS CodeDeploy","\u002Fimages\u002Fprovider-services\u002Faws-codedeploy\u002Fcovers\u002FArch_AWS-CodeDeploy_64.png",{"key":225,"kind":192,"name":226,"icon":227,"provider":195},"aws-codepipeline","AWS CodePipeline","\u002Fimages\u002Fprovider-services\u002Faws-codepipeline\u002Fcovers\u002FArch_AWS-CodePipeline_64.png",{"key":229,"kind":192,"name":230,"icon":231,"provider":195},"aws-lambda","AWS Lambda","\u002Fimages\u002Fprovider-services\u002Faws-lambda\u002Fcovers\u002FArch_AWS-Lambda_64.png",{"key":233,"kind":192,"name":234,"icon":235,"provider":195},"aws-step-functions","AWS Step Functions","\u002Fimages\u002Fprovider-services\u002Faws-step-functions\u002Fcovers\u002FArch_AWS-Step-Functions_64.png",{"key":237,"kind":192,"name":238,"icon":239,"provider":195},"elastic-load-balancing-(elb)","Elastic Load Balancing (ELB)","\u002Fimages\u002Fprovider-services\u002Felastic-load-balancing-(elb)\u002Fcovers\u002FArch_Elastic-Load-Balancing_64.png",[241],{"key":242,"cards":243,"groups":262,"lines":263},"ecs-blue-green",[244,247,250,253,256,259],{"key":245,"component":221,"label":246},"deploy","ECS deployment coordinator",{"key":248,"component":197,"label":249},"green","Replacement task set — green",{"key":251,"component":197,"label":252},"blue","Original task set — blue",{"key":254,"component":237,"label":255},"alb","ALB: production listener, test listener, two target groups",{"key":257,"component":229,"label":258},"validation","AppSpec validation hooks",{"key":260,"component":191,"label":261},"alarms","Deployment alarm monitoring",[],[264,266,268,270,272,274,276,278,280],{"from":245,"to":248,"label":265},"task-set creation",{"from":245,"to":251,"label":267},"eventual termination",{"from":245,"to":254,"label":269},"routing updates",{"from":254,"to":251,"label":271},"original requests",{"from":254,"to":248,"label":273},"replacement requests",{"from":245,"to":257,"label":275},"hook invocation",{"from":257,"to":254,"label":277},"test requests",{"from":257,"to":245,"label":279},"hook status",{"from":260,"to":245,"label":281},"alarm state",[283,323,344,369,380,383,398,401,411],{"kind":284,"title":285,"body":286,"diagram":242,"walkthrough":287},"explanation","Two task sets, one deployment coordinator","\u003Cp>For an ECS service using the \u003Ccode>CODE_DEPLOY\u003C\u002Fcode> deployment controller, \u003Cstrong>CodeDeploy\u003C\u002Fstrong> coordinates a replacement task set and load balancer routing instead of updating the original tasks in place. The ECS AppSpec identifies the replacement task definition and the container name and port used for load balancing; the deployment group identifies the service, target-group pair, and listeners.\u003C\u002Fp>\u003Cp>The diagram uses an \u003Cstrong>Application Load Balancer\u003C\u002Fstrong> with a production listener and an optional test listener. Each task set uses a different target group. Production traffic initially reaches blue; test traffic can reach green before production moves. These are listener-routing changes, not Route 53 DNS changes or App Mesh routing changes.\u003C\u002Fp>\u003Cp>The arrows show deployment control, application requests, and validation feedback—not every network connection. ECS AppSpec validation hooks name \u003Cstrong>Lambda functions\u003C\u002Fstrong>, not CodeBuild projects or Step Functions state machines. CodeDeploy owns this task-set and traffic lifecycle; a release pipeline can invoke it but does not replace that coordinator.\u003C\u002Fp>",[288,291,296,301,308,315,320],{"text":289,"cards":290},"CodeDeploy coordinates this deployment using the ECS deployment group's configuration and the revision's AppSpec.",[245],{"text":292,"cards":293,"lines":294},"CodeDeploy asks ECS to create the replacement task set. Green runs the replacement task definition alongside the original version.",[248],[295],{"from":245,"to":248},{"text":297,"cards":298,"lines":299},"Blue is the original task set. The eventual-termination arrow represents cleanup after a successful shift and the configured retention period, not deletion when green is created.",[251],[300],{"from":245,"to":251},{"text":302,"cards":303,"lines":304},"CodeDeploy updates the ALB's listener routing. The ALB forwards requests to blue or green through their separate target groups; the test listener can reach green while production still reaches blue.",[254],[305,306,307],{"from":245,"to":254},{"from":254,"to":251},{"from":254,"to":248},{"text":309,"cards":310,"lines":311},"CodeDeploy invokes Lambda validation hooks; in this design, validation sends requests through the ALB's test listener. The hook reports Succeeded or Failed to CodeDeploy with PutLifecycleEventHookExecutionStatus, rather than relying only on a successful Lambda return.",[257],[312,313,314],{"from":245,"to":257},{"from":257,"to":254},{"from":257,"to":245},{"text":316,"cards":317,"lines":318},"CodeDeploy checks configured CloudWatch alarms during deployment. The alarm-state arrow represents that monitoring relationship, not an unsolicited push notification.",[260],[319],{"from":260,"to":245},{"text":321,"cards":322},"The complete picture separates task-set lifecycle control, ALB request routing, explicit hook results, and alarm feedback.",[],{"kind":324,"title":325,"exercise":326},"exercise","Restore the coordinator, router, and hook runner",{"type":327,"diagram":242,"question":328,"hidden":329,"tray":330},"palette","Fill the three gaps using the control arrows, request arrows, and hook-result arrow to distinguish their responsibilities.",[245,254,257],[331,332,333,334,336,338,340,342],{"component":221},{"component":237},{"component":229},{"component":225,"reason":335},"CodePipeline orchestrates release stages; CodeDeploy owns the depicted ECS task-set and listener-shift lifecycle.",{"component":217,"reason":337},"CodeBuild runs build jobs; it is neither the ECS deployment coordinator nor a function named by an ECS AppSpec hook.",{"component":205,"reason":339},"Route 53 changes DNS answers, not ALB listener routing between the two task-set target groups.",{"component":209,"reason":341},"App Mesh is not the ALB whose production and test listeners CodeDeploy updates in this deployment.",{"component":233,"reason":343},"An ECS AppSpec hook names a Lambda function, not a Step Functions state machine.",{"kind":284,"title":345,"body":346,"table":347},"Readiness is not application acceptance","\u003Cp>Creating green does not authorize production traffic. ECS must bring the replacement task set to a \u003Cstrong>steady state\u003C\u002Fstrong>, and load balancer target health must support routing to it. Capacity shortages, task startup failures, and failing health checks can block deployment before a production shift. A healthy target still does not prove that a business transaction works.\u003C\u002Fp>\u003Cp>Use \u003Cstrong>validation hooks\u003C\u002Fstrong> for that stronger check. \u003Ccode>AfterInstall\u003C\u002Fcode> follows replacement task-set creation; with the test listener configured, \u003Ccode>AfterAllowTestTraffic\u003C\u002Fcode> can validate green through that listener. \u003Ccode>BeforeAllowTraffic\u003C\u002Fcode> is the last hook before production routing changes, and \u003Ccode>AfterAllowTraffic\u003C\u002Fcode> validates after the production shift. A hook must report its result using the deployment and lifecycle-event execution identifiers; invocation success alone does not pass the gate.\u003C\u002Fp>\u003Cp>For this successful path, test validation finishes before the pre-production hook, which finishes before the production shift; post-shift validation follows. Only after successful validation and the configured \u003Cstrong>termination wait\u003C\u002Fstrong> should the original task set be removed.\u003C\u002Fp>",{"columns":348,"rows":352},[349,350,351],"Gate","What it establishes","What it does not establish",[353,357,361,365],[354,355,356],"ECS steady state","Tasks reach service readiness","Business correctness",[358,359,360],"Target health","Health endpoint passes","Full workflow correctness",[362,363,364],"Test-traffic hook","Selected checks pass on green","Production-load behavior",[366,367,368],"Post-shift validation","Checks pass after routing","Permanent future health",{"kind":324,"title":370,"exercise":371},"Order the validation boundary",{"type":372,"question":373,"steps":374},"process","Order this successful deployment segment, starting with validation through the configured test listener.",[375,376,377,378,379],"Complete AfterAllowTestTraffic validation against green.","Complete BeforeAllowTraffic validation.","Shift production traffic according to the deployment configuration.","Complete AfterAllowTraffic validation.","Wait the configured termination interval, then terminate the original task set.",{"kind":284,"title":381,"body":382},"A stopped shift is not automatically a rollback","\u003Cp>With an \u003Cstrong>ALB\u003C\u002Fstrong>, the deployment configuration can shift production traffic all at once, in a canary, or in linear increments. Canary and linear shifts create an observation interval, but they do not judge application correctness themselves. For CodeDeploy ECS deployments using a \u003Cstrong>Network Load Balancer\u003C\u002Fstrong>, only all-at-once traffic shifting is supported.\u003C\u002Fp>\u003Cp>Configured \u003Cstrong>CloudWatch alarms\u003C\u002Fstrong> can stop a deployment when application metrics cross a threshold, even while targets remain healthy. Alarm monitoring and \u003Cstrong>automatic rollback\u003C\u002Fstrong> are separate settings: configure rollback for the relevant failure or alarm-stop condition if traffic should return automatically. EventBridge event routing is not a substitute for the deployment group's CloudWatch alarm monitoring. An inability to retrieve alarm state is also not evidence of health; the alarm-poll failure setting controls whether deployment can continue in that case.\u003C\u002Fp>\u003Cp>Diagnose the failed boundary before retrying: inspect ECS events and task failures for readiness problems, target health for routing readiness, hook execution and callback results for validation failures, and alarm history for metric-triggered stops. During a partial shift, stopping further movement does not by itself prove that all production traffic has returned to blue. Check listener routing and rollback status explicitly.\u003C\u002Fp>",{"kind":324,"title":384,"exercise":385},"Repair the alarm-feedback source",{"type":386,"diagram":242,"requirement":387,"change":388,"tray":389,"hint":396,"explanation":397},"flaw","CodeDeploy must monitor the deployment group's configured metric alarms during a partial production shift; automatic rollback for an alarm stop is already enabled.",{"card":260,"component":201},[390,392,394],{"component":191,"reason":391},"CloudWatch supplies the metric alarm state that CodeDeploy monitors.",{"component":201,"reason":393},"Event routing does not replace the deployment group's CloudWatch alarm monitoring.",{"component":213,"reason":395},"API activity records are not the CloudWatch metric alarm state checked by CodeDeploy.","The required input is a metric alarm's state, not a routed deployment event.","CloudWatch is the alarm-state source. CodeDeploy uses that state to stop the deployment, and the separately enabled rollback policy determines the automatic recovery action. Verify restored routing rather than treating a stopped deployment as proof of rollback.",{"kind":284,"title":399,"body":400},"Preserve the recovery path through the whole shift","\u003Cp>Treat the deployment as three connected mechanisms: \u003Cstrong>task-set lifecycle\u003C\u002Fstrong>, \u003Cstrong>listener routing\u003C\u002Fstrong>, and \u003Cstrong>acceptance feedback\u003C\u002Fstrong>. CodeDeploy creates green and eventually terminates blue; the ALB forwards application requests; hooks and alarms tell the coordinator whether to continue. A hook's explicit status and a monitored alarm are different feedback paths, not replacements for each other.\u003C\u002Fp>\u003Cp>A configured \u003Cstrong>deployment-ready wait\u003C\u002Fstrong> pauses before production rerouting and requires continuation before its timeout. The \u003Cstrong>termination wait\u003C\u002Fstrong> instead retains the original task set after the shift. Keeping blue available preserves the fast traffic-return path, but requires overlapping capacity. Once blue is terminated, do not assume that recovery is still just a listener reversal.\u003C\u002Fp>\u003Cp>Finally, traffic rollback does not undo database writes or external side effects. Both versions must tolerate shared state during overlap and after traffic returns. The operational finish is therefore not merely green receiving requests: verify post-shift validation, alarm state, final routing, and the intended original-task-set retention or cleanup.\u003C\u002Fp>",{"kind":324,"title":402,"exercise":403},"Reassemble the deployment control loop",{"type":404,"diagram":242,"question":405,"decoys":406},"build","Rebuild the depicted ECS blue\u002Fgreen deployment, distinguishing task-set lifecycle control, application routing, validation, and alarm feedback, and label each connection by what it carries.",[407,409],{"component":225,"reason":408},"CodePipeline orchestrates release stages; it does not replace CodeDeploy as the ECS task-set and traffic-shift coordinator.",{"component":205,"reason":410},"Route 53 changes DNS answers; the depicted router must forward requests through production and test listeners to task-set target groups.",{"kind":284,"title":412,"body":413,"takeaways":414},"What to remember","\u003Cp>\u003Cstrong>CodeDeploy coordinates replacement capacity, listener routing, and acceptance gates; a safe recovery also depends on explicit rollback settings and an available original task set.\u003C\u002Fstrong>\u003C\u002Fp>",[415,418,421],{"title":416,"text":417},"Separate control from traffic","CodeDeploy manages task-set lifecycle and listener changes; the load balancer forwards requests through separate target groups. An optional test listener exposes green before production moves.",{"title":419,"text":420},"Validate beyond health","Steady state and target health do not prove application correctness. Lambda hooks must report lifecycle-event status explicitly, and CloudWatch alarms add metric-based deployment protection.",{"title":422,"text":423},"Verify recovery explicitly","A stopped shift is not proof of restored traffic. Configure rollback, retain blue for the intended recovery interval, and verify routing; traffic rollback does not reverse application side effects.","2026-10-29T23:39:10.549Z",{"pageSlug":44,"code":43,"certification":42,"certificationSlug":44},{"slug":427,"title":428},"aws-codedeploy-lambda-version-traffic-shifting-dop-c02","AWS CodeDeploy: Lambda version traffic shifting",1796130158190]