For a deployment using AWS Code Deploy, what is the run order of the hooks for in-place deployments?
BeforeInstall -> ApplicationStop -> ApplicationStart -> AfterInstall
ApplicationStop -> BeforeInstall -> AfterInstall -> ApplicationStart
BeforeInstall -> ApplicationStop -> ValidateService -> ApplicationStart
ApplicationStop -> BeforeInstall -> ValidateService -> ApplicationStart
Explanations:
Incorrect because theApplicationStophook should occur beforeBeforeInstall.
Correct as it matches the actual order:ApplicationStop -> BeforeInstall -> AfterInstall -> ApplicationStart.
Incorrect asValidateServiceis not part of the default sequence in in-place deployments.
Incorrect asValidateServiceappears, which is not used in in-place deployments by default.