SAP-C02 Continuous Improvement for Existing Solutions Practice Question
A company is using AWS CodePipeline to automate deployments. The pipeline includes a build stage that compiles code and runs tests. The build stage fails intermittently due to network timeouts when downloading dependencies. Which THREE actions could improve the reliability of the build stage?
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
✓
Use CodeBuild local cache to store dependencies across builds.
Options B, C, and D are correct: Using CodeBuild local cache (B) stores dependencies across builds, reducing download time. Running CodeBuild in a VPC with a NAT gateway (C) ensures consistent outbound connectivity, mitigating network timeouts. Storing dependencies in an S3 bucket and configuring the build to use cached dependencies (D) also reduces reliance on external downloads. Option A is incorrect because increasing the timeout only delays the failure but does not address the root cause. Option E is incorrect because a larger compute type may improve build speed but does not fix network timeouts.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
Increase the build timeout to allow more time for downloads.
Why it's wrong here
Does not fix the root cause of timeout.
- ✓
Use CodeBuild local cache to store dependencies across builds.
Why this is correct
Local cache reduces download frequency.
- ✓
Run the CodeBuild project in a VPC with a NAT gateway to ensure consistent outbound connectivity.
Why this is correct
VPC with NAT provides reliable internet access.
- ✓
Store dependencies in an S3 bucket and configure the build to use cached dependencies.
Why this is correct
Caching reduces dependency on external sources.
- ✗
Use a larger compute type for CodeBuild to improve network speed.
Why it's wrong here
Larger instance does not guarantee network reliability.
Visual reference
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
This SAP-C02 question is part of Courseiva's 1,660-question bank — original exam-style content with full explanations and wrong-answer analysis, never real exam questions or exam dumps. 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.