Courseiva
Design for New SolutionseasyMultiple SelectObjective-mapped

SAP-C02 Design for New Solutions Practice Question

A company is hosting a static website on Amazon S3. The website uses JavaScript to make API calls to a backend API hosted on Amazon API Gateway. The company wants to reduce latency for users worldwide. Which combination of AWS services should the solutions architect use? (Choose two.)

⚠ Common exam trap

A common mix-up: candidates think Lambda@Edge can directly process API calls to API Gateway, but Lambda@Edge only intercepts CloudFront events and cannot replace the API Gateway origin or handle backend API logic.

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 CloudFront with API Gateway as an origin.

Amazon CloudFront can use API Gateway as a custom origin, allowing API requests to be served from edge locations closer to users, which reduces latency. This integration caches API responses at the edge when possible and terminates the user's TCP connection at the edge, improving performance for global users.

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 CloudFront with API Gateway as an origin.

    Why this is correct

    This allows API calls to be served from edge locations.

  • Use AWS Global Accelerator for the S3 website.

    Why it's wrong here

    Global Accelerator is for TCP/UDP traffic, not static websites.

  • Use Lambda@Edge to process API calls at the edge.

    Why it's wrong here

    Lambda@Edge runs code at edge, but the API still needs to be served from API Gateway.

  • Use Amazon CloudFront for both the S3 website and the API Gateway endpoint.

    Why this is correct

    CloudFront provides edge caching and reduces latency globally.

  • Enable S3 Transfer Acceleration on the bucket.

    Why it's wrong here

    Transfer Acceleration speeds up uploads, not general API calls.

Visual reference

Client Server SYN (seq=100) SYN-ACK (seq=200, ack=101) ACK (ack=201) Connection established — data transfer begins

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

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 →

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.