Question 270
An agent-enabled client receives a model-suggested `updateOrder` tool call with an order ID and a quantity. What must be enforced before executing it?
Explanation
Correct Answer
Validate the order ID, typed quantity and business rules against the caller’s permissions, execute via the authorized service and use its actual receipt to confirm the update. Model prose alone cannot commit changes.
Incorrect Answers
The model can propose updateOrder, but a proposed tool call is not evidence that inventory or order records changed. Showing success before the response is deceptive.
A global administrator identity bypasses record ownership and least privilege. The application must bind the authenticated user’s allowed operations to the tool request.
A string-format check can identify malformed IDs but cannot establish that the user owns or may edit the referenced order. Record authorization must happen at the business service.



Microsoft Azure AI Fundamentals (AI-901) Practice Tests