Testing and Deployment
A developer packages a revision for an in-place CodeDeploy deployment to Amazon EC2 instances. Which elements belong in the revision's AppSpec file? (Choose two.)
Choose 2 answers
Show the answer
Correct answersA. Mappings from source files to installation destinationsC. Lifecycle event hooks that run deployment scripts
AWhy this is right: The files section maps revision content to destination paths on the instances.
BWhy not this: Source trigger configuration controls pipeline invocation, not revision installation on instances.
CWhy this is right: The hooks section associates scripts with deployment lifecycle events.
DWhy not this: CodeBuild buildspec files define build commands; AppSpec files describe deployment behavior.
An EC2 AppSpec file specifies file installation mappings and lifecycle hooks for deployment scripts. Build commands belong in a CodeBuild buildspec, not the CodeDeploy AppSpec file.