nerdexam
AmazonAmazon

SAP-C02 · Question #111

SAP-C02 Question #111: Real Exam Question with Answer & Explanation

The correct answer is D: Change the CloudFront configuration to use an AWS Lambda@Edge function that is invoked by. https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/lambda-how-to-choose-

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

Explanation

https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/lambda-how-to-choose-

Community Discussion

No community discussion yet for this question.

Full SAP-C02 PracticeBrowse All SAP-C02 Questions