Question 457:
You have deployed a REST API in Amazon API Gateway. And the API integrates with a DynamoDB table. The table has a large amount of data. For certain queries, it may take over 10 seconds to finish. You want to set a custom timeout of 5 seconds for the API so that users do not have to wait a long time for the response. How should you implement this?
Answer options:
A.You can configure the DynamoDB Accelerator (DAX) in the DynamoDB table so that the table can process the queries from the API Gateway faster. B.The timeout of API gateway is 30 seconds and cannot be customized. Define a custom timeout of 5 seconds at the application or function level. C.Enlarge the DynamoDB read capacity to a higher value to shorten the waiting time for the users of the REST API. D.In the integration request of the API gateway, uncheck the “Use Default Timeout” box and configure the custom timeout to be 5 seconds.