GCP Generative AI Leader Practice Question 17: Agent Tooling Live Systems
Google Cloud Generative AI Leader · Test 2 · question 7 of 10
An airline's new assistant answers baggage-allowance and change-fee questions well, because it was grounded in the published policy documents. Passengers, though, keep asking "where is my bag right now" and "move me to the 6pm flight", and the assistant either apologizes or invents an answer. The baggage tracking system and the reservation system both expose supported internal APIs that staff already use.
What capability does the assistant need in order to handle these requests?
Show answer and explanation
Answer:
Function calling, also known as tool use, gives the model definitions of external tools. When it processes a prompt the model determines whether a tool is needed and, if so, emits structured data naming the tool and its parameters; the application executes the call and feeds the result back. Google Cloud names the two use cases directly: fetching data (up-to-date information from APIs and systems) and taking action (submitting forms, updating state). "Where is my bag" is the first; "move me to the 6pm flight" is the second. Option C is the only one that bridges the assistant to live systems.
- A is wrong because a context window only holds what you put into the request. No window size lets a model read a tracking system it was never connected to. - B is wrong because grounding in more documents still only answers policy questions. Documents describe the rules; they don't know where one passenger's suitcase is right now. - D is wrong because fine-tuning adjusts style and task behavior, not access to data. A better-phrased answer about a live bag location is still a guess.
Reference: Introduction to function calling