For IndividualsFor Educators
ExpertMinds LogoExpertMinds
ExpertMinds

Ace your certifications with Practice Exams and AI assistance.

  • Browse Exams
  • For Educators
  • Blog
  • Privacy Policy
  • Terms of Service
  • Cookie Policy
  • Support
  • AWS SAA Exam Prep
  • PMI PMP Exam Prep
  • CPA Exam Prep
  • GCP PCA Exam Prep

© 2026 TinyHive Labs. Company number 16262776.

    PracticeAWS Solutions Architect Professional (SAP-C02)AWS Solutions Architect Professional SAP-C02 Practice Exam 2Question 55
    Medium1 markMultiple Choice
    Domain 2.3: Security ControlsCloudFrontS3Security

    AWS SAP-C02 · Question 55 · Domain 2.3: Security Controls

    A company is using Amazon S3 to host a static website. They want to use Amazon CloudFront to distribute the content globally. They must ensure that users can ONLY access the content via CloudFront, and direct access to the S3 bucket URL is blocked. How should this be configured?

    Answer options:

    A.

    Make the S3 bucket public and use CloudFront signed URLs.

    B.

    Configure Origin Access Control (OAC) in CloudFront and update the S3 bucket policy to allow access only from the CloudFront distribution.

    C.

    Use a VPC Endpoint for S3 and route CloudFront traffic through the VPC.

    D.

    Configure AWS WAF on the S3 bucket to block non-CloudFront IPs.

    How to approach this question

    Identify the mechanism to secure S3 origins behind CloudFront.

    Full Answer

    B.Configure Origin Access Control (OAC) in CloudFront and update the S3 bucket policy to allow access only from the CloudFront distribution.✓ Correct
    Origin Access Control (OAC) is the modern, secure way to restrict S3 bucket access to only a specific CloudFront distribution. The S3 bucket policy is updated to allow 's3:GetObject' only when the condition matches the CloudFront ARN.

    Common mistakes

    Using the legacy OAI or trying to attach WAF to S3.
    Question 54All questionsQuestion 56

    Practice the full AWS Solutions Architect Professional SAP-C02 Practice Exam 2

    75 questions · hints · full answers · grading

    Sign up freeTake the exam

    More questions from this exam

    Q01A company is setting up a multi-account AWS environment using AWS Organizations. They need to ens...EasyQ02An enterprise needs to connect its on-premises data center to AWS. They require a dedicated, priv...EasyQ03A company wants to share a single AWS Transit Gateway across multiple AWS accounts within their A...EasyQ04An architect needs to design a highly available database architecture that spans multiple AWS Reg...EasyQ05A global financial institution is migrating its core banking application to AWS. The application ...Medium
    View all 75 questions →