A software engineer is setting up a new build configuration in AWS CodeBuild for a web application. The engineer wants CodeBuild to automatically find the build commands and phases without specifying a custom path in the build project settings.
Where should the build specification file be placed by default, and what must it be named?
- In the root of the source directory, named buildspec.ymlCevap
- BIn a subdirectory named build/ at the root of the source directory, named buildspec.yml
- CIn AWS Systems Manager Parameter Store as a parameter named buildspec.yml, referenced by the build project configuration
- DIn the root of the source directory, named trust-policy.json, containing an IAM policy that delegates build permissions
Cevap
In the root of the source directory, named buildspec.yml
The correct answer is the option stating that the file must be placed in the root of the source directory and named buildspec.yml. AWS CodeBuild expects the build specification file to be in the root directory and named buildspec.yml by default, unless a custom file name or location is overridden in the build project settings.
Adım Adım Çözüm
Anahtar Kavram
AWS CodeBuild default buildspec location and naming convention
Tahmini Süre:45s