Topic 1 Question 397
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?
Specify an Amazon S3 cache in CodeBuild. Add the S3 cache folder path to the buildspec.yaml file for the build project.
Specify a local cache in CodeBuild. Add the CodeArtifact repository name to the buildspec.yaml file for the build project.
Specify a local cache in CodeBuild. Add the cache folder path to the buildspec.yaml file for the build project.
Retrieve the buildspec.yaml file directly from CodeArtifact. Add the CodeArtifact repository name to the buildspec.yaml file for the build project.
ユーザの投票
コメント(4)
- 正解だと思う選択肢: C
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 builds.
👍 7Alabi2024/06/29 - 正解だと思う選択肢: B
C does not specify how to integrate it with CodeArtifact
👍 1cachac2024/06/29 - 正解だと思う選択肢: C
update buildspec.yaml
version: 0.2
phases: install: commands: - echo Installing dependencies... - pip install -r requirements.txt build: commands: - echo Build started on
date- echo Compiling the Python code... - python setup.py buildcache: paths: - '/root/.cache/pip/**/*' # dependencies cache
👍 1albert_kuo2024/07/27
シャッフルモード