nerdexam
AmazonAmazon

SAP-C02 · Question #527

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

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

Submitted by wei.xz· Mar 6, 2026Design for New Solutions

Question

registration form for users. The website uses Amazon S3 for hosting and uses Amazon CloudFront as the content delivery network with AWS WAF configured. When the registration form is submitted, the website calls an Amazon API Gateway API endpoint that invokes an AWS Lambda function to process the payload and forward the payload to an external API call. During testing, a solutions architect encounters a cross-origin resource sharing (CORS) error. The solutions architect confirms that the CloudFront distribution origin has the Access-Control- What should the solutions architect do to resolve the error?

Options

  • AChange the CORS configuration on the S3 bucket. Add rules for CORS to the AllowedOrigin
  • BEnable the CORS setting in AWS WAF. Create a web ACL rule in which the Access-Control-
  • CEnable the CORS setting on the API Gateway API endpoint. Ensure that the API endpoint is
  • DEnable the CORS setting on the Lambda function. Ensure that the return code of the function has

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 PracticeBrowse All SAP-C02 Questions