Courseiva
Continuous Improvement for Existing SolutionshardMultiple SelectObjective-mapped

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

Inside (Private) PC-A 10.0.0.1 PC-B 10.0.0.2 NAT Router Outside (Public) 203.0.113.1 Inside Global Server PAT: many private IPs share one public IP via unique port numbers

Quick reference

AWS S3 Storage Class Comparison

Storage ClassMin DurationRetrievalUse Case
S3 StandardNoneImmediateFrequently accessed data
S3 Standard-IA30 daysImmediateInfrequent access, rapid retrieval
S3 One Zone-IA30 daysImmediateNon-critical infrequent data
S3 Intelligent-TieringNoneImmediate–hoursUnknown or changing access patterns
S3 Glacier Instant90 daysMillisecondsArchive with instant retrieval
S3 Glacier Flexible90 daysMinutes–hoursArchive, flexible retrieval
S3 Glacier Deep Archive180 daysHoursLong-term compliance archive

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 →

How Courseiva writes practice questions · Editorial policy

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.