Welcome to ExamTopics
ExamTopics Logo
- Expert Verified, Online, Free.

Unlimited Access

Get Unlimited Contributor Access to the all ExamTopics Exams!
Take advantage of PDF Files for 1000+ Exams along with community discussions and pass IT Certification Exams Easily.

Exam AWS Certified Developer - Associate DVA-C02 topic 1 question 17 discussion

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

  • A. BeforeInstall -> ApplicationStop -> ApplicationStart -> AfterInstall
  • B. ApplicationStop -> BeforeInstall -> AfterInstall -> ApplicationStart
  • C. BeforeInstall -> ApplicationStop -> ValidateService -> ApplicationStart
  • D. ApplicationStop -> BeforeInstall -> ValidateService -> ApplicationStart
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
pratchatcap
Highly Voted 1 year, 5 months ago
Selected Answer: B
It's B. Check the image in the link. https://docs.aws.amazon.com/codedeploy/latest/userguide/reference-appspec-file-structure-hooks.html#appspec-hooks-server
upvoted 24 times
awsdummie
1 year, 3 months ago
Answer A For InPlace deployment
upvoted 2 times
...
...
Anandesh
Most Recent 1 month, 3 weeks ago
Selected Answer: B
https://docs.aws.amazon.com/codedeploy/latest/userguide/reference-appspec-file-structure-hooks.html#appspec-hooks-server
upvoted 1 times
...
65703c1
3 months, 2 weeks ago
Selected Answer: B
B is the correct answer.
upvoted 1 times
...
SD_CS
7 months, 1 week ago
Selected Answer: B
Answer is B. There is no doubt - please go to the URL https://docs.aws.amazon.com/codedeploy/latest/userguide/reference-appspec-file-structure-hooks.html and search with "In-place deployments" In fact none of the deployments follow the order mentioned in A
upvoted 2 times
...
ez_24
8 months, 4 weeks ago
B In AWS CodeDeploy for in-place deployments, the hooks run in the following order: ApplicationStop: Executed before the new application revision is downloaded. DownloadBundle: The new application revision is downloaded. BeforeInstall: Executed after the new revision is downloaded but before the new version is installed. Install: The application revision specified in the deployment is installed. AfterInstall: Executed after the application revision is installed. ApplicationStart: Invoked to start any services that were stopped during ApplicationStop. ValidateService: Ensures the service is operating correctly after the new deployment. This sequence ensures a smooth deployment process by systematically stopping, updating, and restarting the application.
upvoted 4 times
...
quanbui
11 months ago
ApplicationStop -> BeforeInstall -> AfterInstall -> ApplicationStart -> ValidateService. Ref: https://docs.aws.amazon.com/codedeploy/latest/userguide/reference-appspec-file-structure-hooks.html
upvoted 1 times
...
Skywalker23
11 months, 2 weeks ago
Selected Answer: B
Application must be stopped before installation. Otherwise the installation may corrupt the running application’s files and cause damages. Not good.
upvoted 2 times
...
Tony88
1 year ago
Selected Answer: B
Stopped -> Installed -> Started -> Validated Go with B.
upvoted 3 times
...
ninomfr64
1 year ago
Selected Answer: B
I's B as per doc https://docs.aws.amazon.com/codedeploy/latest/userguide/reference-appspec-file-structure-hooks.html#appspec-hooks-server:~:text=a%20load%20balancer.-,Lifecycle%20event%20hook%20availability,-The%20following%20table
upvoted 1 times
...
sp323
1 year ago
Application start is after install
upvoted 1 times
...
fcbc62d
1 year, 1 month ago
Selected Answer: B
For in-place deployment B is correct. https://docs.aws.amazon.com/codedeploy/latest/userguide/reference-appspec-file-structure-hooks.html
upvoted 1 times
...
jipark
1 year, 1 month ago
Selected Answer: B
this image explain all : https://docs.aws.amazon.com/codedeploy/latest/userguide/reference-appspec-file-structure-hooks.html#appspec-hooks-server
upvoted 1 times
...
ScherbakovMike
1 year, 3 months ago
Definitely, B: the order is the same in case of InPlace and Blue/Green deployment: https://docs.aws.amazon.com/codedeploy/latest/userguide/reference-appspec-file-structure-hooks.html#reference-appspec-file-structure-hooks-availability
upvoted 1 times
...
awsdummie
1 year, 3 months ago
Selected Answer: A
Refere the video 18:00 time stamp https://youtu.be/ISttjCIBd6U
upvoted 2 times
...
Nagendhar
1 year, 4 months ago
Ans: A For an in-place deployment using AWS CodeDeploy, the run order of the hooks is option A, "BeforeInstall -> ApplicationStop -> ApplicationStart -> AfterInstall." This is the correct order of hooks for an in-place deployment, where the deployment package is installed on the same set of Amazon EC2 instances that are running the current version of the application.
upvoted 2 times
...
DeaconStJohn
1 year, 4 months ago
Selected Answer: B
I'll go with B based on the link provided by others
upvoted 2 times
...
Syre
1 year, 4 months ago
Selected Answer: A
You guys should read the questions carefully. Answer is A. You are confusing the run order of hooks for in-place deployments with the run order of hooks for blue/green deployments. For blue/green deployments, the run order of the hooks is indeed ApplicationStop -> BeforeInstall -> AfterInstall -> ApplicationStart, which matches option B. However, for in-place deployments, the correct run order of the hooks is BeforeInstall -> ApplicationStop -> AfterInstall -> ApplicationStart, as stated in option A.
upvoted 3 times
[Removed]
1 year, 1 month ago
BeforeInstall runs after ApplicationStop for ALL deployments types. The correct answer is B
upvoted 1 times
...
DeaconStJohn
1 year, 4 months ago
From the below link: https://docs.aws.amazon.com/codedeploy/latest/userguide/reference-appspec-file-structure-hooks.html#appspec-hooks-server Neither type of deployment follows this order. BeforeInstall -> ApplicationStop -> AfterInstall -> ApplicationStart
upvoted 2 times
...
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...