SDLC Automation
CodeDeploy rejects an EC2 deployment revision because appspec.yml is missing, although it exists in a nested directory. Where should the file be placed?
Show the answer
Correct answerD. In the revision archive's root directory
AWhy not this: A scripts directory can contain lifecycle scripts, but the AppSpec file belongs at the archive root.
BWhy not this: The agent configuration directory contains agent settings, not the deployment revision's AppSpec file.
CWhy not this: The application destination does not determine where CodeDeploy looks for the revision's AppSpec file.
DWhy this is right: CodeDeploy requires appspec.yml at the root of an EC2/On-Premises revision archive.
For an EC2/On-Premises deployment, appspec.yml must be at the root of the revision archive. The application's installation directory is a deployment destination, not where CodeDeploy discovers the revision's AppSpec file.