AWS SysOps Admin SOA-C02 · Networking and Content Delivery · medium

A company serves static web assets (app.2026.js, styles.css, and images) from a private Amazon S3 bucket through an Amazon CloudFront distribution. The security team requires that: (1) Block Public Access remain enabled on the S3 bucket, (2) users cannot bypass CloudFront to access the S3 URLs directly, and (3) the solution supports S3 buckets encrypted with AWS KMS (SSE-KMS) as well as dynamic PUT/POST uploads. Which CloudFront feature replaces legacy Origin Access Identity (OAI) to meet all three requirements?

Published · Last updated · checked before publication — how we verify questions

Options

  • AEnable S3 Static Website Hosting with a public Principal: "*" bucket policy
  • BConfigure CloudFront Origin Access Control (OAC) with an S3 bucket policy for cloudfront.amazonaws.comCorrect answer
  • CUse a legacy CloudFront Origin Access Identity (OAI) without changing KMS settings
  • DPlace the S3 bucket inside a private VPC subnet behind a Network Load Balancer (NLB) and target group

Answer: B. Configure CloudFront Origin Access Control (OAC) with an S3 bucket policy for cloudfront.amazonaws.com

Amazon CloudFront Origin Access Control (OAC) is the modern replacement for legacy Origin Access Identity (OAI). Unlike OAI, OAC natively supports SSE-KMS encrypted S3 objects, dynamic HTTP methods (PUT, POST, DELETE), all AWS Regions, and short-term SigV4 signing with the cloudfront.amazonaws.com service principal.

Why the other options are wrong

  • A. Enable S3 Static Website Hosting with a public Principal: "*" bucket policy — Static website endpoints do not support private S3 buckets and require public read access.
  • C. Use a legacy CloudFront Origin Access Identity (OAI) without changing KMS settings — Legacy OAI does not support S3 objects encrypted with AWS KMS (SSE-KMS).
  • D. Place the S3 bucket inside a private VPC subnet behind a Network Load Balancer (NLB) and target group — Amazon S3 is a regional service outside VPC subnets and is secured for CloudFront using OAC.

All Networking and Content Delivery questions and the topic overview →

AWS and Amazon Web Services are trademarks of Amazon.com, Inc. PrepIQ Hub is not affiliated with, endorsed by, or sponsored by Amazon Web Services.