AWS Certified Solutions Architect – Professional — Question 250

A company has been using a third-party provider for its content delivery network and recently decided to switch to Amazon CloudFront. The development team wants to maximize performance for the global user base. The company uses a content management system (CMS) that serves both static and dynamic content.
The CMS is behind an Application Load Balancer (ALB) which is set as the default origin for the distribution. Static assets are served from an Amazon S3 bucket.
The Origin Access Identity (OAI) was created properly and the S3 bucket policy has been updated to allow the GetObject action from the OAI, but static assets are receiving a 404 error.
Which combination of steps should the solutions architect take to fix the error? (Choose two.)

Answer options

Correct answer: A, B

Explanation

The correct actions involve adding another origin for static assets (A) and creating a path-based rule in the ALB to forward static asset requests (B). These steps ensure that requests for static content are properly directed, while options C, D, and E do not directly address the 404 error issue related to the static assets.