Q57 — AWS SAP-C02 Ch.1
Question 57 of 75 | ← Chapter 1
Q132. A company is providing weather data over a REST-based API to several customers. The API is hosted by Amazon API Gateway and is integrated with different AWS Lambda functions for each API operation.The company uses Amazon Route 53 for DNS and has created a resource record of weather.example.com. The company stores data for the API in Amazon DynamoDB tables. The company needs a solution that will give the API the ability to fail over to a different AWS Region.Which solution will meet these requirements?
- A. Deploy a new set of Lambda functions in a new Region. Update the APl Gateway API to use an edge- optimized APl endpoint with Lambda functions from both Regions as targets Convert the DynamoDB tables to global table:
- B. Deploy a new API Gateway API and Lambda functions in another Region. Change the Route 53 DNS record to a multivalue answer. Add both API Gateway APIs to the answer. Enable target health monitoring. Convert the DynamoDB tables to global tables
- C. Deploy a new API Gateway API and Lambda functions in another Region. Change the Route 53 DNS record to a failover record. Enable target health monitoring. Convert the DynamoDB tables to global tables ✓
- D. Deploy a new API Gateway API in a new Region. Change the Lambda functions to global functions.Change the Route 53 DNS record to a multivalue answer. Add both API Gateway APls to the answer.Enable target health monitoring. Convert the DynamoDB tables to global tables
Correct Answer: C. Deploy a new API Gateway API and Lambda functions in another Region. Change the Route 53 DNS record to a failover record. Enable target health monitoring. Convert the DynamoDB tables to global tables
Explanation
The solution that will meet the requirements is Option C: Deploy a new API Gateway API and Lambda functions in another Region. Each AWS region will have its own copy of the API with its own set of Lambda functions and DynamoDB tables. Change the Route 53 DNS record to a failover record. Failover routing policies allow for automatic failover to a secondary endpoint in the event of an outage or failure in the primary endpoint. Enable target health monitoring to monitor the health of both endpoints and route traffic only to healthy targets.Option A involves deploying a new set of Lambda functions in a new Region, which may require additional configuration and maintenance overhead. Additionally, it is not clear how the DynamoDB tables will be kept in sync across regions.Option B involves creating a multivalue answer within Route 53, which would introduce additional complexity and management overhead. Also, there is no mention of how the DynamoDB tables will be replicated.Option D is not a valid solution since there is no such thing as global Lambda functions.Therefore, option C provides a simple and effective solution that will give the API the ability to fail over to a different AWS Region while minimizing maintenance overhead and ensuring data consistency through the use of DynamoDB global tables. https://docs.aws.amazon.com/apigateway/latest/developerguide/dns-failover.htmluse case of road 53 DNS failover record