nerdexam
Amazon

SAP-C02 · Question #111

A company wants to host a new global website that consists of static content. A solutions architect is working on a solution that uses Amazon CloudFront with an origin access identity (OAI) to access

Sign in or unlock SAP-C02 to reveal the answer and full explanation for question #111. The question stem and answer options stay visible for context.

Submitted by mike_84· Mar 6, 2026Design for New Solutions

Question

A company wants to host a new global website that consists of static content. A solutions architect is working on a solution that uses Amazon CloudFront with an origin access identity (OAI) to access website content that is stored in a private Amazon S3 bucket. During testing, the solutions architect receives 404 errors from the S3 bucket. Error messages appear only for attempts to access paths that end with a forward slash. such as example.com/path/. These requests should return the existing S3 object path/index.html. Any potential solution must not prevent CloudFront from caching the content. What should the solutions architect do to resolve this problem?

Options

  • AChange the CloudFront origin to an Amazon API Gateway proxy endpoint.
  • BChange the CloudFront origin to an Amazon API Gateway endpoint.
  • CChange the CloudFront configuration to use an AWS Lambda@Edge function that is invoked by a
  • DChange the CloudFront configuration to use an AWS Lambda@Edge function that is invoked by

Unlock SAP-C02 to see the answer

You've previewed enough free SAP-C02 questions. Unlock SAP-C02 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.

Full SAP-C02 Practice