Your team is using AWS CodeDeploy to update a 'Lambda' function. They want to ensure that a 'Validation' function runs after the traffic is fully shifted to the new version. Which AppSpec hook should they use?

Direct Answer (Verified)Reviewed by Sunny (Senior Cloud Engineer)

Correct Answer: PostTraffic

PostTraffic hook runs after all traffic has been shifted to the new version, ideal for cleanup or final verification....

📋Part of AWS Certified DevOps Engineer – Professional (DOP-C02) · AWS Certification Practice
Real Exam ScenarioScenario Based

Your team is using AWS CodeDeploy to update a 'Lambda' function. They want to ensure that a 'Validation' function runs after the traffic is fully shifted to the new version. Which AppSpec hook should they use?

✓ Correct Answer & ExplanationScenario Based

Correct Answer

PostTraffic

Why This Answer Is Correct

PostTraffic hook runs after all traffic has been shifted to the new version, ideal for cleanup or final verification.

📚 What This Question Tests

This question evaluates your knowledge of Scenario Based — a core concept tested in AWS Certified DevOps Engineer – Professional (DOP-C02). Understanding Scenario Based is essential for designing scalable, secure, and cost-effective cloud architectures. Mastery of this topic will help you answer scenario-based questions confidently on exam day.