exam questions

Exam AWS Certified Developer Associate All Questions

View all questions & answers for the AWS Certified Developer Associate exam

Exam AWS Certified Developer Associate topic 1 question 58 discussion

Exam question from Amazon's AWS Certified Developer Associate
Question #: 58
Topic #: 1
[All AWS Certified Developer Associate Questions]

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

  • A. Before Install -> Application Stop -> Application Start -> After Install
  • B. Application Stop -> Before Install -> After Install -> Application Start
  • C. Before Install -> Application Stop -> Validate Service -> Application Start
  • D. Application Stop -> Before Install -> Validate Service -> Application Start
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
awscertified
Highly Voted 3 years, 6 months ago
B. Application Stop -> Before Install -> After Install -> Application Start > https://docs.aws.amazon.com/codedeploy/latest/userguide/reference-appspec-file-structure-hooks.html#reference-appspec-file-structure-hooks-run-order > Section: Run Order of Hooks in a Deployment
upvoted 24 times
...
akitravv
Highly Voted 3 years, 3 months ago
Selected Answer: B
Run order of hooks in a deployment (without classic load balancer in deployment group) Start -> Application Stop -> Download Bundle -> Before Install -> Install -> After Install -> Application Start -> Validate Service -> End
upvoted 7 times
...
sumanshu
Most Recent 4 months, 1 week ago
Selected Answer: B
B) Correct. ApplicationStop: Stops the application gracefully. This is where you would stop or clean up your existing application processes or services. BeforeInstall: Prepares the instance for the new deployment. You can use this hook to perform tasks like backing up files or preparing dependencies. AfterInstall: Performs the tasks after the new application revision has been installed. This can include activities such as configuration updates or setting permissions. ApplicationStart: Starts the application or service with the newly deployed version. ValidateService (optional): Validates that the deployment was successful. You can run tests here to ensure the application is functioning correctly.
upvoted 1 times
sumanshu
4 months, 1 week ago
You might only need a specific hook for a deployment. For example: If you only need to stop the application before updating files, you would only define the ApplicationStop hook. If you only want to validate the service after deployment, you can define just the ValidateService hoo
upvoted 1 times
sumanshu
4 months, 1 week ago
Hooks - Perform custom actions during the deployment process. version: 0.0 os: linux files: - source: / destination: /var/www/myapp hooks: ApplicationStop: - location: scripts/stop_application.sh timeout: 300 runas: root BeforeInstall: - location: scripts/before_install.sh timeout: 300 runas: root AfterInstall: - location: scripts/after_install.sh timeout: 300 runas: root ApplicationStart: - location: scripts/start_application.sh timeout: 300 runas: root ValidateService: - location: scripts/validate_service.sh timeout: 300 runas: root
upvoted 1 times
...
...
...
rcaliandro
1 year, 10 months ago
Selected Answer: B
B. Application Stop -> Before Install -> After Install -> Application Start (https://docs.aws.amazon.com/codedeploy/latest/userguide/reference-appspec-file-structure-hooks.html )
upvoted 1 times
...
sichilam
2 years, 3 months ago
B is the answer
upvoted 1 times
...
Bhargav2211
3 years, 4 months ago
Selected Answer: B
The Answer is B
upvoted 2 times
...
LearnerThbsh
3 years, 4 months ago
B. Application Stop -> Before Install -> After Install -> Application Start
upvoted 2 times
...
VAG1595
3 years, 6 months ago
Answer: B
upvoted 1 times
...
wils3
3 years, 6 months ago
Ans: B
upvoted 1 times
...
codeScalable
3 years, 6 months ago
definitely B
upvoted 1 times
...
saeidp
3 years, 6 months ago
B is correct
upvoted 1 times
...
kinetic1g
3 years, 6 months ago
B. Application Stop -> Before Install -> After Install -> Application Start
upvoted 1 times
...
FHU
3 years, 6 months ago
B is the correct answer
upvoted 1 times
...
BillyC
3 years, 6 months ago
B is COrrect!
upvoted 1 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 ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago