Question 740 of 1,740
SDLC AutomationeasyMultiple ChoiceObjective-mapped

Quick Answer

The correct answer is to enable the local cache feature in CodeBuild. This reduces build time by storing downloaded dependencies, such as Maven or npm packages, on the build instance’s local instance store, so subsequent builds reuse the cached files instead of re-downloading them from the internet. On the AWS Certified DevOps Engineer Professional DOP-C02 exam, this scenario tests your understanding of CodeBuild’s caching mechanisms versus other optimization strategies like increasing compute resources or running parallel builds, which do not address the root cause of repeated downloads. A common trap is to assume that Amazon EFS or S3 caching is always better, but for low-latency dependency reuse, the local cache is optimal because it avoids network overhead. Remember the tip: “Local cache for local speed” — if the dependencies don’t change often, cache them on the instance to skip the download.

DOP-C02 SDLC Automation Practice Question

This DOP-C02 practice question tests your understanding of sdlc automation. Match the stated requirement to the specific cloud service, access model, or configuration option — many options are valid in isolation but not for this scenario. After answering, compare your reasoning against the explanation and wrong-answer breakdown below. Once you have made your selection, read the full explanation to reinforce the concept and understand why each distractor is designed to mislead on exam day.

A development team uses AWS CodeBuild to run unit tests on every commit to the develop branch. The tests take a long time because they download dependencies each time. What should the team do to reduce build time?

Question 1easymultiple choice
Full question →

Answer choices

Why each option matters

Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.

Correct answer & explanation

Enable the local cache feature in CodeBuild.

Option B is correct because enabling the local cache in CodeBuild allows dependencies to be cached across builds, reducing download time. Option A is wrong because increasing compute resources may help but not as effectively as caching. Option C is wrong because parallel builds do not reduce a single build's time. Option D is wrong because Amazon EFS adds network latency; local instance store is better.

Key principle: Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • Enable the local cache feature in CodeBuild.

    Why this is correct

    Caching dependencies reduces download time.

    Related concept

    Read the scenario before looking for a memorised answer.

  • Store dependencies in Amazon Elastic File System (EFS) and mount it during builds.

    Why it's wrong here

    EFS is slower than local cache.

  • Increase the compute type of the build environment.

    Why it's wrong here

    Faster compute does not address dependency downloads.

  • Use multiple builds in parallel for the same commit.

    Why it's wrong here

    Parallel builds do not speed up a single build.

Common exam traps

Common exam trap: answer the scenario, not the keyword

Many certification questions include familiar terms but test a specific constraint. Read the exact wording before choosing an answer that is generally true but wrong for this case.

Detailed technical explanation

How to think about this question

This question should be treated as a scenario, not a definition check. Identify the problem, the constraint and the best action. Then compare each option against those facts.

KKey Concepts to Remember

  • Read the scenario before looking for a memorised answer.
  • Find the constraint that changes the correct option.
  • Eliminate answers that are true in general but not in this case.
  • Use explanations to understand the rule behind the answer.

TExam Day Tips

  • Underline the problem statement mentally.
  • Watch for words such as best, first, most likely and least administrative effort.
  • Review why wrong options are wrong, not only why the correct option is correct.

Key takeaway

Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option.

Real-world example

How this comes up in practice

An e-commerce site experiences heavy traffic on Black Friday and near-zero traffic during off-peak weeks. Rather than provisioning permanent large VMs, the team uses auto-scaling groups that add capacity automatically under load and reduce it overnight. Questions like this test whether you understand elasticity, availability zones, and cloud compute scaling patterns.

What to study next

Got this wrong? Here's your next step.

Identify which DOP-C02 exam domain this question belongs to, then review the specific concept being tested. Practise related questions in that domain and focus on understanding why each wrong answer is tempting — not just why the correct answer is right.

Related practice questions

Related DOP-C02 practice-question pages

Use these pages to review the topic behind this question. This is how one missed question becomes focused revision.

Practice this exam

Start a free DOP-C02 practice session

Short sessions build daily habit. Longer sessions build exam-day stamina. Try a timed session to simulate real conditions.

FAQ

Questions learners often ask

What does this DOP-C02 question test?

SDLC Automation — This question tests SDLC Automation — Read the scenario before looking for a memorised answer..

What is the correct answer to this question?

The correct answer is: Enable the local cache feature in CodeBuild. — Option B is correct because enabling the local cache in CodeBuild allows dependencies to be cached across builds, reducing download time. Option A is wrong because increasing compute resources may help but not as effectively as caching. Option C is wrong because parallel builds do not reduce a single build's time. Option D is wrong because Amazon EFS adds network latency; local instance store is better.

What should I do if I get this DOP-C02 question wrong?

Identify which DOP-C02 exam domain this question belongs to, then review the specific concept being tested. Practise related questions in that domain and focus on understanding why each wrong answer is tempting — not just why the correct answer is right.

What is the key concept behind this question?

Read the scenario before looking for a memorised answer.

About these practice questions

Courseiva creates original exam-style practice questions with explanations and wrong-answer analysis. It does not publish real exam questions, exam dumps, or protected exam content. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

Same concept, more angles

1 more ways this is tested on DOP-C02

These questions test the same concept from different angles. Work through them to make sure you can recognise it however the exam phrases it.

Variation 1. A team uses AWS CodeBuild to run unit tests. They notice that builds are taking longer than expected. The build environment includes many dependencies that are downloaded every time. Which change would MOST reduce build time?

medium
  • A.Enable local caching for dependencies.
  • B.Store dependencies in an Amazon S3 bucket and configure CodeBuild to use S3 cache.
  • C.Increase the compute type to a larger instance.
  • D.Use Amazon EFS to share dependencies across builds.

Why B: Option D is correct because dependency caching avoids re-downloading. Option A is wrong because more CPU may not help if network is bottleneck. Option B is wrong because EFS is not supported. Option C is wrong because local cache is limited.

Keep practising

More DOP-C02 practice questions

Last reviewed: Jun 20, 2026

Question Discussion

Share a tip, memory trick, or ask about the reasoning behind this question. Do not post real exam questions, leaked content, braindumps, or copyrighted exam material. Comments are moderated and may be removed without notice.

Loading comments…

Sign in to join the discussion.

This DOP-C02 practice question is part of Courseiva's free Amazon Web Services certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the DOP-C02 exam.