Soru

Zorluk: KolayAWS CodeBuild

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?

  1. In the root of the source directory, named buildspec.ymlCevap
  2. B
    In a subdirectory named build/ at the root of the source directory, named buildspec.yml
  3. C
    In AWS Systems Manager Parameter Store as a parameter named buildspec.yml, referenced by the build project configuration
  4. D
    In 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

1
Identify the default build specification file naming convention for AWS CodeBuild.
The file must be named buildspec.yml.
AWS CodeBuild looks specifically for a file named buildspec.yml by default.
2
Determine the default directory location for this file within the source repository.
The file must be placed in the root of the source directory.
CodeBuild fails to locate the build phases if the file is placed in a subdirectory unless a custom path is configured.

Anahtar Kavram

AWS CodeBuild default buildspec location and naming convention
Tahmini Süre:45s
Bu soruyu puanla