For an in-place deployment using AWS CodeDeploy, what is the correct sequence of lifecycle hooks that run?
Choose an answer
Tap an option to check your answer.
Correct answer: ApplicationStop -> BeforeInstall -> AfterInstall -> ApplicationStart.
Why this is the answer
The correct sequence for an in-place deployment with AWS CodeDeploy begins with ApplicationStop. This hook stops the currently running application on the instance. Next, BeforeInstall prepares the instance for the new application revision, often used for pre-installation tasks. Then, AfterInstall handles post-installation tasks, such as configuring the application. Finally, ApplicationStart starts the newly deployed application. The other options are incorrect because they either misorder these essential hooks or include ValidateService too early. ValidateService is typically run after ApplicationStart to ensure the new version is working correctly, not before it.
Pass your exam — without the endless answer hunt
Get every verified question and explanation for this exam in one place, and save hours of prep. 1,000+ certifications · 20+ languages · free to start.
Pass your exam faster → No card needed