BuildSpec File Structure Quiz

5 questions Pass: 70% +25 pts (50 with Pro)

Quiz covering Build Processes and CodeBuild

What you'll be asked

  1. Which file extension is standard for defining the build instructions in AWS CodeBuild?
  2. Which phase in a buildspec file is intended for running unit tests or linters?
  3. If you need to install specific dependencies (like npm packages) before your build begins, which phase should you use?
  4. What is the primary purpose of the 'artifacts' section in a buildspec file?
  5. During a build, you want to perform a cleanup task only if the build fails. How can you ensure this happens regardless of the status of the 'build' phase?

Answers and explanations come after you submit.