Question 500
A PostgreSQL query occasionally runs for many minutes and exhausts the API's request worker pool. After implementing the targeted fix, which observation is the strongest direct acceptance evidence?
Explanation
Correct Answer
This is a direct, observable acceptance check for the case: A PostgreSQL query occasionally runs for many minutes and exhausts the API's request worker pool. The intended corrective action is Use query statement timeouts plus client cancellation and inspect long-running query plans. The specific verification is Slow queries are canceled predictably while healthy requests continue serving.
Incorrect Answers
The application is still using an obsolete database endpoint. This is a separate requirement; the current case instead hinges on: This is a direct, observable acceptance check for the case: A PostgreSQL query occasionally runs for many minutes and exhausts the API's request worker pool. The matching answer is: Slow queries are canceled predictably while healthy requests continue serving.
The alternative addresses: TLS encryption without meaningful peer validation does not authenticate the target server. The reported constraint here is different: This is a direct, observable acceptance check for the case: A PostgreSQL query occasionally runs for many minutes and exhausts the API's request worker pool. The case-specific choice is: Slow queries are canceled predictably while healthy requests continue serving.
The client reuses an expired identity token instead of obtaining a current one. By contrast, the relevant technical condition here is: This is a direct, observable acceptance check for the case: A PostgreSQL query occasionally runs for many minutes and exhausts the API's request worker pool. The appropriate selection is: Slow queries are canceled predictably while healthy requests continue serving.