AWS Certified Advanced Networking – Specialty (ANS-C01) — Question 258
A media company is planning to host an event that the company will live stream to users. The company wants to use Amazon CloudFront.
A network engineer creates a primary origin and a secondary origin for CloudFront. The engineer needs to ensure that the primary origin can fail over to the secondary origin within 15 seconds if a disruption occurs.
Which solution will meet this requirement with the LEAST operational overhead?
Answer options
- A. Configure a Lambda@Edge function to check the health status of both origins every 10 seconds. Reroute incoming requests when the origin health status is unhealthy.
- B. Create a Network Load Balancer (NLB) in front of both origins Configure the NLB as the origin in CloudFront.
- C. Set the CloudFront origin connection timeout value to 5 seconds Set the origin connection attempts value to 2.
- D. Configure a Lambda@Edge function to monitor incoming requests for an origin response. Reroute incoming requests if no response is received from the primary origin within 10 seconds.
Correct answer: C
Explanation
Option C is correct because it allows CloudFront to attempt a connection to the secondary origin quickly, ensuring a failover within the required 15 seconds. Options A and D involve more complex monitoring and rerouting, which adds operational overhead. Option B introduces a Network Load Balancer, which may add unnecessary complexity and isn't the least operationally intensive solution.