Development with AWS Services

An application supplies a client-side inventory tool definition to Amazon Bedrock Converse, and the model returns a toolUse block. Inventory access must use the application's existing authorization checks; what should the application do next?

Show the answer

Correct answerC. Authorize and run the tool, then send its result back through Converse.

AWhy not this: Credentials in a prompt do not implement authorization or execute the inventory operation and could expose sensitive information.

BWhy not this: An asynchronous inference job does not execute a client-side tool requested during a conversation.

CWhy this is right: The application controls authorization and execution, then returns a toolResult associated with the requested tool use.

DWhy not this: Converse returns a client-side tool request; it does not execute the application's inventory code.

For client-side tool use, the model requests a tool invocation, but the application authorizes and executes it before returning a toolResult. A tool definition alone does not cause Converse to execute application code.