SDLC Automation

Which section of an AWS CodeBuild buildspec identifies the generated files to include in the build output?

Show the answer

Correct answerB. artifacts

AWhy not this: The cache section identifies files to reuse across builds rather than deliver as build output.

BWhy this is right: The artifacts section identifies generated files to collect as build output.

CWhy not this: The env section configures environment variables rather than output file selection.

DWhy not this: The phases section defines build commands rather than the files collected as output.

The artifacts section specifies the files CodeBuild collects as build output. The phases section defines commands that run during the build, including commands that generate those files.