Q49 — AWS DVA-C02 Ch.1
Question 49 of 100 | ← Chapter 1
Where should the appspec.yml file be placed for AWS CodeDeploy to function?
- A. In the root of the application's source code directory structure ✓
- B. In the bin folder along with all compiled code
- C. In an Amazon S3 bucket
- D. In the same folder as the application configuration files
Correct Answer: A. In the root of the application's source code directory structure
Explanation
Reference: https://docs.aws.amazon.com/codedeploy/latest/userguide/reference-appspec-file.html AppSpec files on an EC2/on-premises compute platform If your application uses the EC2/On-Premises compute platform, the AppSpec file must be a YAML-formatted file named appspec.yml and it must be placed in the root of the directory structure of an application's source code. Otherwise, deployments fail. It is used by CodeDeploy to determine: What it should install onto your instances from your application revision in Amazon S3 or GitHub Which lifecycle event hooks to run in response to deployment lifecycle events.