Question 19:
You are building a large-scale confidential documentation web server on AWS, and all of the documentation for it will be stored on S3. One of the requirements is that it cannot be publicly accessible from S3 directly. You will need to use CloudFront to accomplish this. Which of the methods listed below would satisfy the requirements as outlined? Choose an answer from the options below.
Answer options:
A.Create an Identity and Access Management (IAM) user for CloudFront and grant access to the objects in your S3 bucket to that IAM User. B.Create an Origin Access Identity (OAI) for CloudFront and grant access to the objects in your S3 bucket to that OAI only. C.Create individual policies for each bucket that stores documents and in that policy grant access to only CloudFront. D.Create an S3 bucket policy that lists the CloudFront distribution ID as the Principal and the target bucket as the Amazon Resource Name (ARN).