Exam4Training

For a deployment using AWS Code Deploy, what is the run order of the hooks for in-place deployments?

For a deployment using AWS Code Deploy, what is the run order of the hooks for in-place deployments?
A . BeforeInstall -> ApplicationStop -> ApplicationStart -> AfterInstall
B . ApplicationStop -> BeforeInstall -> AfterInstall -> ApplicationStart
C . BeforeInstall -> ApplicationStop -> ValidateService -> ApplicationStart
D . ApplicationStop -> BeforeInstall -> ValidateService -> ApplicationStart

Answer: B

Explanation:

For in-place deployments, AWS CodeDeploy uses a set of predefined hooks that run in a specific order during each deployment lifecycle event. The hooks are ApplicationStop, BeforeInstall, AfterInstall, ApplicationStart, and ValidateService.

The run order of the hooks for in-place deployments is as follows:

ApplicationStop: This hook runs first on all instances and stops the current application that is running on the instances.

BeforeInstall: This hook runs after ApplicationStop on all instances and performs any tasks required before installing the new application revision.

AfterInstall: This hook runs after BeforeInstall on all instances and performs any tasks required after installing the new application revision.

ApplicationStart: This hook runs after AfterInstall on all instances and starts the new application that has been installed on the instances.

ValidateService: This hook runs last on all instances and verifies that the new application is running properly on the instances.

Reference: [AWS CodeDeploy lifecycle event hooks reference]

Latest DVA-C02 Dumps Valid Version with 65 Q&As

Latest And Valid Q&A | Instant Download | Once Fail, Full Refund

Exit mobile version