Q33 — AWS SAP-C02 Ch.2
Question 33 of 75 | ← Chapter 2
Q183. A company has deployed an application on AWS Elastic Beanstalk. The application uses Amazon Aurora for the database layer. An Amazon CloudFront distribution serves web requests and includes the Elastic Beanstalk domain name as the origin server. The distribution is configured with an alternate domain name that visitors use when they access the application Each week, the company takes the application out of service for routine maintenance. During the time that the application is unavailable, the company wants visitors to receive an informational message instead of a CloudFront error message. A solutions architect creates an Amazon S3 bucket as the first step in the process. Which combination of steps should the solutions architect take next to meet the requirements? (Select THREE)
- A. Upload static informational content to the S3 bucket ✓
- B. Create a new CloudFront distribution. Set the S3 bucket as the origin
- C. Set the S3 bucket as a second origin in the original CloudFront distribution. Configure the distribution and the S3 bucket to use an origin access identity (OAI) ✓
- D. During the weekly maintenance, edit the default cache behavior to use the S3 origin. Revert the change when the maintenance is complete ✓
- E. During the weekly maintenance. create a cache behavior for the S3 origin on the new distribution. Set the path pattern to *. Set the precedence to 0. Delete the cache behavior when the maintenance is complete
- F. During the weekly maintenance, configure Elastic Beanstalk to serve traffic from the S3 bucket
Correct Answer: A. Upload static informational content to the S3 bucket, C. Set the S3 bucket as a second origin in the original CloudFront distribution. Configure the distribution and the S3 bucket to use an origin access identity (OAI), D. During the weekly maintenance, edit the default cache behavior to use the S3 origin. Revert the change when the maintenance is complete
Explanation
A. Upload static informational content to the S3 bucket.Upload the static informational content (such as an HTML file) to the previously created Amazon S3 bucket. This content will be displayed to visitors during the maintenance period.C. Set the S3 bucket as a second origin in the original CloudFront distribution. Configure the distribution and the S3 bucket to use an origin access identity (OAI).Add the S3 bucket as a second origin in the original CloudFront distribution that serves the Elastic Beanstalk domain name. Configure both the distribution and the S3 bucket to use an origin access identity (OAI). This ensures that CloudFront can access the static informational content from the S3 bucket during the maintenance period.D. During the weekly maintenance, edit the default cache behavior to use the S3 origin. Revert the change when the maintenance is complete.During the maintenance window, modify the default cache behavior of the CloudFront distribution to use the S3 origin instead of the Elastic Beanstalk origin. This change allows CloudFront to serve the static informational content from the S3 bucket to visitors during the maintenance period. Remember to revert this change when the maintenance is complete so that the application can resume normal operation. Option B: Creating a new CloudFront distribution and setting the S3 bucket as the origin is unnecessary and could cause confusion for the users.Option E: During the weekly maintenance, creating a cache behavior for the S3 origin on the new distribution is unnecessary, it is more complex and prone to human error.Option F: Configuring Elastic Beanstalk to serve traffic from the S3 bucket is not necessary because CloudFront is already being used as the web request server.