A CodeBuild build completes compilation but fails in UPLOAD_ARTIFACTS with 'no matching artifact paths found.' The build creates files in dist, while buildspec.yml sets the artifacts base-directory to output; what should the engineer change?
Show the answer
Correct answerD. Set the artifacts base-directory to dist in buildspec.yml.
AWhy not this: Bucket permissions control artifact upload access, not whether local files match the configured artifact paths.
BWhy not this: Compilation has completed; additional execution time does not correct an artifact directory mismatch.
CWhy not this: Source change detection controls pipeline triggering, not artifact discovery during an existing build.
DWhy this is right: The artifact base directory must point to the directory containing the generated files.
CodeBuild resolves artifact file patterns relative to the configured base-directory, which must match the build output location. Artifact bucket permissions would address an access-denied error, not failure to find local artifact files.