Home › Forums › AWS › AWS Certified DevOps Engineer Professional › Review Mode Set 2 Qn 25 › Reply To: Review Mode Set 2 Qn 25
-
Hello xiaochris,
Thank you for your feedback.
For this question, you want to run Lambda functions to validate your new deployment, even before production traffic flows to the. The recommended stage on where to run the validations is on the “AfterAllowTestTraffic” lifecycle hook. At this stage, the new deployment has its own “test listener” in which you can perform testing to validate that the application is working as expected.
With the “BeforeAllowTraffic” lifecycle hook, the validation on the “test listener” is completed and the new deployment in on its own target group. You use this stage when you know that the new deployment is successful and you need to perform extra actions before allowing the production traffic to it.
Hope this helps.
Regards,
Kenneth Samonte @ Tutorials Dojo