Amazon
DVA-C02 · Question #72
For a deployment using AWS Code Deploy, what is the run order of the hooks for in-place deployments?
The correct answer is B. ApplicationStop -> BeforeInstall -> AfterInstall -> ApplicationStart. https://docs.aws.amazon.com/codedeploy/latest/userguide/reference-appspec-file-structure- hooks.html#reference-appspec-file-structure-hooks-run-order Section: Run Order of Hooks in a Deployment
Submitted by kwame.gh· Mar 5, 2026Deployment
Question
For a deployment using AWS Code Deploy, what is the run order of the hooks for in-place deployments?
Options
- ABeforeInstall -> ApplicationStop -> ApplicationStart -> AfterInstall
- BApplicationStop -> BeforeInstall -> AfterInstall -> ApplicationStart
- CBeforeInstall -> ApplicationStop -> ValidateService -> ApplicationStart
- DApplicationStop -> BeforeInstall -> ValidateService -> ApplicationStart
How the community answered
(31 responses)- A6% (2)
- B90% (28)
- C3% (1)
Explanation
https://docs.aws.amazon.com/codedeploy/latest/userguide/reference-appspec-file-structure- hooks.html#reference-appspec-file-structure-hooks-run-order Section: Run Order of Hooks in a Deployment
Community Discussion
No community discussion yet for this question.