AI-103 Practice Question 95: Client Side Function Calling Credentials
Microsoft Azure AI Apps and Agents Developer Associate (AI-103) · Test 10 · question 5 of 10
A bank's customer-support web app lets a signed-in customer chat with an agent about their own accounts. To answer "what's my current balance," the agent needs an internal account API that authorizes requests using the customer's own delegated OAuth token, the token issued to the web app's session when that customer signed in, and never available anywhere else, including to the Foundry project or any identity it manages. The team wants live balance data without routing the call under a broad service identity that could see every customer's accounts.
Which tool should expose this capability to the agent?
Show answer and explanation
Answer:
Function calling runs wherever the calling application runs: "Your app executes the function and returns the output." Here that application is the customer's own authenticated browser session, which already holds the delegated token the account API requires, nothing about that token needs to exist anywhere inside Foundry for the lookup to work, and the call is authorized exactly as the customer, not as any broader identity.
- B is wrong because the OpenAPI tool is a hosted tool: Foundry invokes the API directly using the *project's* managed identity, not the signed-in customer's; the account API would need to trust a single service principal for every customer, which is the broad access the bank wants to avoid. - C is wrong for the same reason: the Azure Functions tool authenticates as the function app's own identity, running inside Foundry's environment rather than the customer's session, so it never sees and cannot use the customer's delegated token. - D is wrong because an MCP server authenticates to the downstream API with its own service credential, again substituting a shared identity for the one credential that actually carries the customer's own authorization.
Reference: Use function calling with Microsoft Foundry agents