AWS Certified Developer – Associate — Question 234

A developer is testing a new file storage application that uses an Amazon CloudFront distribution to serve content from an Amazon S3 bucket. The distribution accesses the S3 bucket by using an origin access identity (OAI). The S3 bucket's permissions explicitly deny access to all other users.

The application prompts users to authenticate on a login page and then uses signed cookies to allow users to access their personal storage directories. The developer has configured the distribution to use its default cache behavior with restricted viewer access and has set the origin to point to the S3 bucket. However, when the developer tries to navigate to the login page, the developer receives a 403 Forbidden error.

The developer needs to implement a solution to allow unauthenticated access to the login page. The solution also must keep all private content secure.

Which solution will meet these requirements?

Answer options

Correct answer: A

Explanation

Option A is correct because it allows unrestricted access to the login page while keeping the default cache behavior unchanged, ensuring that private content remains secure. Options B and C do not correctly address the requirement for unrestricted access to the login page or involve unnecessary changes to the default cache behavior. Option D compromises security by adding read access through a bucket policy, which is not needed for the login page.