Topic 1 Question 143
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?
AfterBlockTraffic
BeforeBlockTraffic
BeforeInstall
DownloadBundle
ユーザの投票
コメント(2)
- 正解だと思う選択肢: 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."
👍 4tom_cat2023/11/24 - 正解だと思う選択肢: C
C should be correct
👍 3vandergun2023/11/23
シャッフルモード