DVA-C02 · Question #411
A developer has a continuous integration and continuous delivery (CI/CD) pipeline that uses AWS CodeArtifact and AWS CodeBuild. The build artifacts are between 0.5 GB and 1.5 GB in size. The builds…
The correct answer is C. Specify a local cache in CodeBuild. Add the cache folder path to the buildspec.yaml file for the. Using a local cache in CodeBuild allows you to cache dependencies locally on the build host, which can significantly reduce the time it takes to retrieve dependencies during subsequent
Question
A developer has a continuous integration and continuous delivery (CI/CD) pipeline that uses AWS CodeArtifact and AWS CodeBuild. The build artifacts are between 0.5 GB and 1.5 GB in size. The builds happen frequently and retrieve many dependencies from CodeArtifact each time. The builds have been slow because of the time it takes to transfer dependencies. The developer needs to improve build performance by reducing the number of dependencies that are retrieved for each build. Which solution will meet this requirement?
Options
- ASpecify an Amazon S3 cache in CodeBuild. Add the S3 cache folder path to the buildspec.yaml
- BSpecify a local cache in CodeBuild. Add the CodeArtifact repository name to the buildspec.yaml
- CSpecify a local cache in CodeBuild. Add the cache folder path to the buildspec.yaml file for the
- DRetrieve the buildspec.yaml file directly from CodeArtifact. Add the CodeArtifact repository name
How the community answered
(53 responses)- A8% (4)
- B4% (2)
- C75% (40)
- D13% (7)
Explanation
Using a local cache in CodeBuild allows you to cache dependencies locally on the build host, which can significantly reduce the time it takes to retrieve dependencies during subsequent
Community Discussion
No community discussion yet for this question.