AWS Certified Developer – Associate — Question 411

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

Answer options

Correct answer: B

Explanation

During an in-place deployment in AWS CodeDeploy, the lifecycle begins by stopping the active application version using the ApplicationStop hook. This is followed by the BeforeInstall hook to prepare the environment, the AfterInstall hook once files are copied, and finally the ApplicationStart hook to launch the updated service. Other options are incorrect because they place the stopping mechanism after the installation phase or put the start phase before post-installation tasks.