exam questions

Exam AWS Certified Developer - Associate DVA-C02 All Questions

View all questions & answers for the AWS Certified Developer - Associate DVA-C02 exam

Exam AWS Certified Developer - Associate DVA-C02 topic 1 question 397 discussion

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?

  • A. Specify an Amazon S3 cache in CodeBuild. Add the S3 cache folder path to the buildspec.yaml file for the build project.
  • B. Specify a local cache in CodeBuild. Add the CodeArtifact repository name to the buildspec.yaml file for the build project.
  • C. Specify a local cache in CodeBuild. Add the cache folder path to the buildspec.yaml file for the build project.
  • D. Retrieve the buildspec.yaml file directly from CodeArtifact. Add the CodeArtifact repository name to the buildspec.yaml file for the build project.
Show Suggested Answer Hide Answer
Suggested Answer: C 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
Alabi
Highly Voted 10 months ago
Selected Answer: 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.
upvoted 7 times
...
Duke315
Most Recent 8 months, 2 weeks ago
Selected Answer: C
version: 0.2 phases: install: Anyone want cheaper contributor PDF then check certificationtest[.]net 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.
upvoted 1 times
...
albert_kuo
9 months ago
Selected Answer: 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 build cache: paths: - '/root/.cache/pip/**/*' # dependencies cache
upvoted 1 times
...
cachac
10 months ago
Selected Answer: B
C does not specify how to integrate it with CodeArtifact
upvoted 1 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago