exam questions

Exam AWS Certified DevOps Engineer - Professional DOP-C02 All Questions

View all questions & answers for the AWS Certified DevOps Engineer - Professional DOP-C02 exam

Exam AWS Certified DevOps Engineer - Professional DOP-C02 topic 1 question 143 discussion

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.yml 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
  • B. BeforeBlockTraffic
  • C. BeforeInstall
  • D. DownloadBundle
Show Suggested Answer Hide Answer
Suggested Answer: C 🗳️

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
thanhnv142
Highly Voted 10 months, 4 weeks ago
Selected Answer: C
C is correct: For blue/green deployment, Before install is one of several hooks that come before <the replacement instances> start to handle request traffic. A and B: these hooks come after the replacement instances start to handle request traffic. They are hooks from the original instance, which are two of 3 last steps. D: There is no such hook in blue/green deployment
upvoted 7 times
...
tom_cat
Highly Voted 1 year, 1 month ago
Selected Answer: C
A & B are not available for replacement instances - https://docs.aws.amazon.com/codedeploy/latest/userguide/reference-appspec-file-structure-hooks.html#reference-appspec-file-structure-hooks-availability D - "Reserved for CodeDeploy operations. Cannot be used to run scripts."
upvoted 5 times
...
DanShone
Most Recent 9 months, 2 weeks ago
Selected Answer: C
C is correct
upvoted 2 times
...
twogyt
11 months, 2 weeks ago
Selected Answer: C
is C: 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
upvoted 2 times
...
vandergun
1 year, 1 month ago
Selected Answer: C
C should be correct
upvoted 3 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 ...