Question 100
A software team reports this Copilot-related situation: A generated asynchronous call path ignores cancellation and leaves resources open. Which action most directly satisfies the requirement?
Explanation
Correct Answer
Cancellation is part of correct lifecycle management. Acceptance evidence: Cancelling a request closes handles and stops unwanted work.
Incorrect Answers
Language feature support varies by runtime version. That recommendation is relevant to a different task: A Copilot fix passes unit tests but fails the production language version. In this case the main need is: A generated asynchronous call path ignores cancellation and leaves resources open.
Plausible parsers can miss semantic invalidity. That recommendation is relevant to a different task: An AI-generated parser accepts an invalid date such as February 30. In this case the main need is: A generated asynchronous call path ignores cancellation and leaves resources open.
Clients may depend on response codes even if behavior looks similar. That recommendation is relevant to a different task: A model-generated patch changes an endpoint's HTTP status contract. In this case the main need is: A generated asynchronous call path ignores cancellation and leaves resources open.