SAP-C02 Continuous Improvement for Existing Solutions Practice Question
A company uses AWS CodeBuild to run unit tests. The build process is taking longer than expected. The buildspec.yml file includes a pre-build phase that downloads dependencies from a public repository. What is the most effective way to reduce build time?
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
✓
Configure the build project to use an S3 cache for dependencies.
Caching dependencies in an S3 bucket avoids re-downloading them from the public repository on every build, which is the most effective way to reduce build time as network downloads are typically the bottleneck. Increasing compute resources (Option C) may not help if the bottleneck is network bandwidth, and parallel builds (Option B) are for running multiple builds concurrently, not speeding up a single build. Reducing the build timeout (Option D) does not speed up execution; it just cancels a build that exceeds the limit.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✓
Configure the build project to use an S3 cache for dependencies.
Why this is correct
Correct. Caching dependencies in S3 prevents repeated downloads, saving significant time.
- ✗
Run the build in parallel across multiple build projects.
Why it's wrong here
Incorrect. Parallel builds are for running multiple separate builds simultaneously; they do not affect a single build's duration.
- ✗
Increase the compute type of the build environment to use more vCPUs.
Why it's wrong here
Incorrect. While more vCPUs can speed up CPU-bound tasks, the bottleneck here is likely network download speed, so this is less effective.
- ✗
Reduce the build timeout setting to force faster execution.
Why it's wrong here
Incorrect. The build timeout is a safety limit to stop hung builds; reducing it does not make the build run faster.
Quick reference
AWS S3 Storage Class Comparison
| Storage Class | Min Duration | Retrieval | Use Case |
|---|---|---|---|
| S3 Standard | None | Immediate | Frequently accessed data |
| S3 Standard-IA | 30 days | Immediate | Infrequent access, rapid retrieval |
| S3 One Zone-IA | 30 days | Immediate | Non-critical infrequent data |
| S3 Intelligent-Tiering | None | Immediate–hours | Unknown or changing access patterns |
| S3 Glacier Instant | 90 days | Milliseconds | Archive with instant retrieval |
| S3 Glacier Flexible | 90 days | Minutes–hours | Archive, flexible retrieval |
| S3 Glacier Deep Archive | 180 days | Hours | Long-term compliance archive |
Go deeper
Related to this question
About these practice questions
One of 1,660 original SAP-C02 practice questions on Courseiva, each with a full explanation and wrong-answer analysis — not exam dumps or protected exam content. Learn why practice questions differ from exam dumps →
JA
Written by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
This SAP-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 SAP-C02 exam.