SCS-C02 · Question #44
SCS-C02 Question #44: Real Exam Question with Answer & Explanation
Sign in or unlock SCS-C02 to reveal the answer and full explanation for question #44. The question stem and answer options stay visible for context.
Question
A company has a single-page application (SPA) that is served by Amazon CloudFront. An Amazon S3 bucket is the origin of the CloudFront distribution. The company is using Amazon Cognito for authentication. An external security review reveals that unauthenticated users can download the application source code from the SPA in index.html and view internal details of the SPA. A security engineer needs to implement a solution to avoid exposing the source code to unauthenticated users. Which solution will meet these requirements?
Options
- ASplit the login logic to a separate login.html page. Designate the new page as the landing page.
- BChange the authentication method in Amazon Cognito to use an AWS Lambda authorizer.
- CImplement an Amazon Cognito hosted UI for the login. Add Lambda@Edge logic to the
- DCreate an origin access identity (OAI). Associate the OAI with the CloudFront distribution.
Unlock SCS-C02 to see the answer
You've previewed enough free SCS-C02 questions. Unlock SCS-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.