An enterprise is planning to roll out a major update to its global web application. The application's static assets are hosted in an Amazon S3 bucket and served through an Amazon CloudFront distribution. The update requires changes to the CloudFront configuration, including new origin request policies and updated cache behaviors. The security and operations teams require that these changes be tested with a small percentage of live production traffic before being fully deployed, with the ability to roll back immediately if anomalies are detected.
Which combination of steps should a Solutions Architect recommend to meet these requirements with the least operational overhead? (Select TWO.)
- Create a staging CloudFront distribution that is linked to the primary distribution, and apply the new configuration changes to the staging distribution.Answer
- Create a CloudFront continuous deployment policy that specifies a weight-based traffic split to route a percentage of requests to the staging distribution, and associate it with the primary distribution.Answer
- CCreate a second independent CloudFront distribution with the same alternate domain name (CNAME), and configure Amazon Route 53 weighted routing policies to split DNS traffic between the two distributions.
- DDeploy a Lambda@Edge function associated with the Viewer Request event of the primary distribution to dynamically modify the origin request headers and route traffic to a staging S3 bucket.
- EConfigure AWS CodeDeploy with a custom canary deployment configuration to manage the lifecycle and traffic routing for the primary CloudFront distribution.
Answer
Create a staging CloudFront distribution linked to the primary distribution, apply the configuration changes to the staging distribution, and then create and associate a continuous deployment policy that specifies a weight-based traffic split to route a percentage of requests to the staging distribution.
Using CloudFront continuous deployment is the recommended AWS best practice for testing CDN configuration changes with live traffic. Creating a staging distribution linked to the primary distribution provides a safe sandbox for configurations like origin request policies and cache behaviors. Associating a weight-based continuous deployment policy ensures a percentage of production traffic is routed to the staging distribution without DNS caching issues or custom code overhead, enabling immediate rollbacks if anomalies are detected.
Step-by-Step Solution
Key Concept
CloudFront Continuous Deployment
Estimated Time:3m 0s