An AWS CodeBuild project must compile an application and export all generated files from the dist directory, without the dist directory itself appearing in the artifact paths. Which buildspec settings meet these requirements? (Choose three.)
Choose 3 answers
Show the answer
Correct answersA. Set artifacts.base-directory to dist.B. Run compilation commands in phases.build.commands.D. Set artifacts.files to the recursive pattern **/*.
AWhy this is right: The base directory makes artifact paths relative to dist, excluding the dist directory itself.
BWhy this is right: The build phase can run the compilation commands that generate the application files.
CWhy not this: Cache paths identify reusable build data, not the files to export as build artifacts.
DWhy this is right: The recursive file pattern selects all generated files beneath the artifact base directory.
EWhy not this: Reports collect supported test or coverage results, not general deployment artifacts.
Build commands generate the application files, artifacts.base-directory selects dist as the collection root, and artifacts.files selects its contents recursively. Cache paths preserve reusable build data; they do not define exported build artifacts.