Q11 — AWS SAP-C02 Ch.1
Question 11 of 75 | ← Chapter 1
Q86. A company is running a web application in the AWS Cloud. The application consists of dynamic content that is created on a set of Amazon EC2 instances. The EC2 instances run in an Auto Scaling group that is configured as a target group for an Application Load Balancer (ALB). The company is using an Amazon CloudFront distribution to distribute the application globally. The CloudFront distribution uses the ALB as an origin. The company uses Amazon Route 53 for DNS and has created an A record of www.example.com for the CloudFront distribution. A solutions architect must configure the application so that it is highly available and fault tolerant.Which solution meets these requirements?
- A. Provision a full, secondary application deployment in a different AWS Region. Update the Route 53Arecord to be a failover record. Add both of the CloudFront distributions as values. Create Route 53 health checks
- B. Provision an ALB, an Auto Scaling group, and EC2instances in a different AWS Region. Update the CloudFront distribution, and create a second origin for the new ALB. Create an origin group for the two origins. Configure one origin as primary and one origin as secondary. ✓
- C. Provision an Auto Scaling group and EC2 instances in a different AWS Region. Create a second target for the new Auto Scaling group in the ALB. Set up the failover routing algorithm on the ALB
- D. Provision a full, secondary application deployment in a different AWS Region. Create a second CloudFront distribution, and add the new application setup as an origin. Create an AWS Global Accelerator accelerator.Add both of the CloudFront distributions as endpoints
Correct Answer: B. Provision an ALB, an Auto Scaling group, and EC2instances in a different AWS Region. Update the CloudFront distribution, and create a second origin for the new ALB. Create an origin group for the two origins. Configure one origin as primary and one origin as secondary.
Explanation
The solution that meets the requirements of configuring the application to be highly available and fault-tolerant is: B. Provision an ALB, an Auto Scaling group, and EC2 instances in a different AWS Region. Update the CloudFront distribution and create a second origin for the new ALB. Create an origin group for the two origins. Configure one origin as primary and one origin as secondary. Explanation: Option B: Provision an ALB, an Auto Scaling group, and EC2 instances in a different AWS Region. By setting up a secondary deployment in a different region, you ensure high availability and fault tolerance in case of failures in the primary region. Update the CloudFront distribution to include a second origin pointing to the ALB in the secondary region. Create an origin group that includes both origins, and configure one origin as the primary and the other as the secondary. CloudFront will automatically route traffic to the secondary origin if the primary origin becomes unavailable. This setup ensures that the application remains accessible even if there are issues in the primary region. Option A is incorrect because using Route 53 failover records alone does not provide the same level of fault tolerance as having a full secondary deployment in a different region. While health checks can help determine the availability of the primary region, it does not automatically failover traffic to the secondary region. Option C is incorrect because adding a second target for the Auto Scaling group in the ALB does not provide fault tolerance at the region level. If there are issues in the primary region, traffic will still be affected. Option D is incorrect because creating a second CloudFront distribution and adding it as an origin does not provide the same level of fault tolerance as having a full secondary deployment in a different region. Additionally, creating an AWS Global Accelerator accelerator is not necessary in this scenario. Therefore, the correct solution is B: Provision an ALB, an Auto Scaling group, and EC2 instances in a different AWS Region. Update the CloudFront distribution, create a second origin for the new ALB, create an origin group, and configure one origin as primary and one origin as secondary. This setup ensures the application is highly available and fault-tolerant.