Which YAML-formatted file is used to define the build commands and runtime settings for an AWS CodeBuild project?

Direct Answer (Verified)Reviewed by Sunny (Senior Cloud Engineer)

Correct Answer: buildspec.yml

The buildspec file is placed in the root directory of your source code and instructs CodeBuild on how to run the build....

📋Part of AWS Certified Solutions Architect – Associate (SAA-C03) · AWS Certification Practice
Real Exam ScenarioAWS CodeBuild

Which YAML-formatted file is used to define the build commands and runtime settings for an AWS CodeBuild project?

✓ Correct Answer & ExplanationAWS CodeBuild

Correct Answer

buildspec.yml

Why This Answer Is Correct

The buildspec file is placed in the root directory of your source code and instructs CodeBuild on how to run the build.

📚 What This Question Tests

This question evaluates your knowledge of AWS CodeBuild — a core concept tested in AWS Certified Solutions Architect – Associate (SAA-C03). Understanding AWS CodeBuild is essential for designing scalable, secure, and cost-effective cloud architectures. Mastery of this topic will help you answer scenario-based questions confidently on exam day.