ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 32 - DVA-C02 discussion

Report
Export

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

A.
BeforeInstall -> ApplicationStop -> ApplicationStart -> AfterInstall
Answers
A.
BeforeInstall -> ApplicationStop -> ApplicationStart -> AfterInstall
B.
ApplicationStop -> BeforeInstall -> AfterInstall -> ApplicationStart
Answers
B.
ApplicationStop -> BeforeInstall -> AfterInstall -> ApplicationStart
C.
BeforeInstall -> ApplicationStop -> ValidateService -> ApplicationStart
Answers
C.
BeforeInstall -> ApplicationStop -> ValidateService -> ApplicationStart
D.
ApplicationStop -> BeforeInstall -> ValidateService -> ApplicationStart
Answers
D.
ApplicationStop -> BeforeInstall -> ValidateService -> ApplicationStart
Suggested 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]

asked 16/09/2024
Luis Maciel
42 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first