Question 540
A Python inference API repeatedly opens Redis sockets, exhausting client-side connection budgets. Which observation BEST confirms the intended behavior after the change?
Explanation
Correct Answer
Connection pooling reduces socket overhead and supports predictable Redis client resource usage. The observed result “Requests use stable pooled connections and connection churn declines under load” would confirm the change “Reuse supported Redis connection pools with bounded concurrency” in this situation: A Python inference API repeatedly opens Redis sockets, exhausting client-side connection budgets.
Incorrect Answers
Redis vector index schema binds dimension and distance metric to the model's actual embeddings. The situation here is: A Python inference API repeatedly opens Redis sockets, exhausting client-side connection budgets. A test of this alternative would miss the specific outcome “Requests use stable pooled connections and connection churn declines under load”.
Cache keys must represent every input dimension that materially changes the response. The situation here is: A Python inference API repeatedly opens Redis sockets, exhausting client-side connection budgets. A test of this alternative would miss the specific outcome “Requests use stable pooled connections and connection churn declines under load”.
Cache invalidation must follow source updates; a long TTL alone can preserve stale answers. The situation here is: A Python inference API repeatedly opens Redis sockets, exhausting client-side connection budgets. A test of this alternative would miss the specific outcome “Requests use stable pooled connections and connection churn declines under load”.