Which of the following API Gateway metrics in Amazon CloudWatch can help the developer troubleshoot the issue?
(Choose two.)
CacheHitCount
IntegrationLatency
CacheMissCount
Latency
Count
Explanations:
CacheHitCount measures the number of times a request is served from the cache rather than being processed by the backend integration. While caching can affect performance, it does not directly relate to the timeout issue with Lambda executions.
IntegrationLatency measures the time taken for the integration (in this case, the Lambda function) to process the request after receiving it from API Gateway. If the Lambda function completes quickly but the overall API Gateway times out, analyzing IntegrationLatency can help identify if there is a delay in processing or if the timeout is happening before the function is invoked.
CacheMissCount indicates the number of requests that could not be served from the cache and thus had to be processed by the backend. Similar to CacheHitCount, it does not provide insights into the timing issues related to the Lambda function execution or the API Gateway timeouts.
Latency measures the total time taken for API Gateway to receive a request and respond to it. This includes the time spent waiting for the integration (Lambda function) response, network latency, and any other processing time within API Gateway. Analyzing this metric can help the developer understand where delays are occurring in the API Gateway lifecycle.
Count tracks the number of times the API method is invoked. While it provides information about request volume, it does not provide insights into timing or performance issues, making it less useful for diagnosing timeout problems with API Gateway.