AWS Certified Solutions Architect – Associate (SAA-C03) — Question 120

A company is developing a file-sharing application that will use an Amazon S3 bucket for storage. The company wants to serve all the files through an Amazon CloudFront distribution. The company does not want the files to be accessible through direct navigation to the S3 URL.
What should a solutions architect do to meet these requirements?

Answer options

Correct answer: D

Explanation

The correct answer is D because creating an origin access identity (OAI) allows CloudFront to securely access the S3 bucket without exposing it directly. This ensures that only the OAI can read the files, while the other options either do not restrict access properly or involve incorrect configurations that do not meet the requirement of preventing direct S3 URL access.