Question 1,498 of 1,750
SDLC AutomationmediumMultiple ChoiceObjective-mapped

Increasing CodeBuild Resources and Timeout via buildspec.yml Overrides

This DOP-C02 practice question tests your understanding of sdlc automation. This is a configuration task: choose the command set that satisfies every stated requirement. Small differences — like 'secret' vs 'password' or 'transport input ssh' vs 'all' — change whether the answer is correct. A key principle to apply: aWS CodeBuild compute type. 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.

An organization uses AWS CodeBuild to run integration tests. The tests require a large amount of memory and CPU, and they often timeout after the default 60 minutes. What is the MOST efficient way to increase the timeout and allocate more resources?

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

Select a larger instance type in the CodeBuild project configuration, such as 'BUILD_GENERAL1_LARGE'.

Option C is correct because in AWS CodeBuild, the compute type (e.g., BUILD_GENERAL1_LARGE) is a project-level configuration, not a buildspec override. To increase memory and CPU, you must select a larger compute type in the CodeBuild project settings. Additionally, the timeout can be increased in the project configuration or via the AWS CLI/API, not in the buildspec.yml. This approach is the most efficient and reliable way to allocate more resources and extend the timeout.

Key principle: AWS CodeBuild compute type

Answer analysis

Option-by-option breakdown

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

  • Use Amazon CloudWatch to monitor the build and automatically restart it if it times out.

    Why it's wrong here

    Incorrect. Using Amazon CloudWatch to restart a timed-out build does not increase resources or change the timeout. It merely retries with the same limitations.

  • Use AWS Lambda instead of CodeBuild, as it can run up to 15 minutes.

    Why it's wrong here

    Incorrect. AWS Lambda has a maximum execution time of 15 minutes and limited memory/CPU compared to CodeBuild. It is not designed for integration tests that require large resources and long runtimes.

  • Select a larger instance type in the CodeBuild project configuration, such as 'BUILD_GENERAL1_LARGE'.

    Why this is correct

    Correct. Selecting a larger compute type (e.g., BUILD_GENERAL1_LARGE) in the CodeBuild project configuration increases memory and CPU. The timeout can be adjusted in the same project settings or via AWS CLI. This directly addresses both requirements.

    Related concept

    AWS CodeBuild compute type

  • Modify the buildspec.yml file to include 'compute-type' and 'timeout-in-minutes' overrides.

    Why it's wrong here

    Incorrect. The buildspec.yml does not support a 'compute-type' field or a 'timeout-in-minutes' override for compute resources. Compute type is a project-level setting, and timeout overrides are only available via environment variables or the project configuration, not in buildspec.yml.

Common exam traps

Common exam trap: answer the scenario, not the keyword

The trap is that candidates may think buildspec.yml can override compute type, but in reality compute type is a project-level setting. Many incorrectly believe the buildspec 'timeout-in-minutes' field exists for overall build timeout, but it only applies to individual phases. The correct approach is to modify the project configuration.

Detailed technical explanation

How to think about this question

Under the hood, CodeBuild uses build environments backed by EC2 instances; the compute-type field maps to specific instance families (e.g., BUILD_GENERAL1_LARGE corresponds to a 7 GB RAM, 4 vCPU instance). The timeout-in-minutes override in buildspec.yml takes precedence over the project-level timeout, allowing per-build flexibility. In real-world scenarios, teams often use this override for integration tests that require burstable performance, while keeping the project default for standard builds.

KKey Concepts to Remember

  • AWS CodeBuild compute type
  • CodeBuild project configuration

TExam Day Tips

  • 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

AWS CodeBuild compute type

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.

Review aWS CodeBuild compute type, then practise related DOP-C02 questions on the same topic to reinforce the concept.

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 — AWS CodeBuild compute type.

What is the correct answer to this question?

The correct answer is: Select a larger instance type in the CodeBuild project configuration, such as 'BUILD_GENERAL1_LARGE'. — Option C is correct because in AWS CodeBuild, the compute type (e.g., BUILD_GENERAL1_LARGE) is a project-level configuration, not a buildspec override. To increase memory and CPU, you must select a larger compute type in the CodeBuild project settings. Additionally, the timeout can be increased in the project configuration or via the AWS CLI/API, not in the buildspec.yml. This approach is the most efficient and reliable way to allocate more resources and extend the timeout.

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

Review aWS CodeBuild compute type, then practise related DOP-C02 questions on the same topic to reinforce the concept.

What is the key concept behind this question?

AWS CodeBuild compute type

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

Keep practising

More DOP-C02 practice questions

Last reviewed: Jul 4, 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.