ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 115 - DOP-C02 discussion

Report
Export

A company's production environment uses an AWS CodeDeploy blue/green deployment to deploy an application. The deployment incudes Amazon EC2 Auto Scaling groups that launch instances that run Amazon Linux 2.

A working appspec. ymi file exists in the code repository and contains the following text.

A DevOps engineer needs to ensure that a script downloads and installs a license file onto the instances before the replacement instances start to handle request traffic. The DevOps engineer adds a hooks section to the appspec. yml file.

Which hook should the DevOps engineer use to run the script that downloads and installs the license file?

A.
AfterBlockTraffic
Answers
A.
AfterBlockTraffic
B.
BeforeBlockTraffic
Answers
B.
BeforeBlockTraffic
C.
Beforelnstall
Answers
C.
Beforelnstall
D.
Down load Bundle
Answers
D.
Down load Bundle
Suggested answer: C

Explanation:

This hook runs before the new application version is installed on the replacement instances. This is the best place to run the script because it ensures that the license file is downloaded and installed before the replacement instances start to handle request traffic. If you use any other hook, you may encounter errors or inconsistencies in your application.

asked 16/09/2024
Victor Avila
29 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first