Courseiva

CCNA Agentic Ai Questions

21 questions · Agentic Ai topic · All types, answers revealed

1
Multi-Selectmedium

A company is building an agent that uses Azure OpenAI to answer questions from a large document library. The agent must use a Retrieval Augmented Generation (RAG) pattern. Which TWO actions should the team take to implement RAG effectively?

Select 2 answers
A.Ensure the model is large enough to memorize the entire document library.
B.Fine-tune the Azure OpenAI model on the document library.
C.Index the documents into a vector database like Azure Cognitive Search.
D.Train a custom language model from scratch.
E.Use a retrieval step to fetch relevant document chunks before generating a response.
AnswersC, E

RAG requires a searchable vector index so the agent can retrieve semantically similar chunks. Indexing documents into Azure Cognitive Search with embeddings satisfies the retrieval constraint, enabling grounded answers rather than relying solely on the model's parametric knowledge.

Why this answer

Option C is correct because RAG requires an external knowledge store that supports semantic similarity search, and indexing the documents into a vector database such as Azure Cognitive Search (or Azure AI Search) creates embeddings that let the agent retrieve the most relevant passages at query time. Option E is correct because the defining step of Retrieval Augmented Generation is retrieving the top-k relevant document chunks and injecting them into the prompt as grounding context before the model generates its answer, which keeps responses accurate and current without retraining. Option A is not appropriate because no model can memorize an entire large document library, and relying on memorization defeats the purpose of retrieval.

Option B is not appropriate because fine-tuning teaches style and task behavior rather than reliably storing and retrieving factual document content, and it is not the RAG mechanism. Option D is not appropriate because training a custom language model from scratch is prohibitively expensive and unnecessary when Azure OpenAI plus retrieval already solves the problem.

Exam trap

The trap here is that candidates often confuse fine-tuning (which adapts model behavior) with RAG (which augments prompts with retrieved data), leading them to select Option B instead of understanding that RAG requires an external retrieval step and vector index.

2
Multi-Selecthard

An agent uses Azure OpenAI with function calling to perform actions. The agent is not executing functions correctly. Which THREE factors should the team check to diagnose the issue?

Select 3 answers
A.The temperature parameter is set too high.
B.The token limit is too low, truncating the function definitions.
C.The function parameter schemas are incorrect or incomplete.
D.The function descriptions are ambiguous or missing.
E.The model version is outdated.
AnswersB, C, D

Function definitions consume prompt tokens alongside the conversation. If the model's context window or max token setting is too low, definitions get truncated, so the model receives incomplete schemas and cannot emit valid function call arguments, causing execution failures.

Why this answer

Option B is correct because function definitions are serialized into the prompt sent to the model, so if the token limit (max_tokens/context window) is too low, the function schema can be truncated and the model cannot emit valid function calls. Option C is correct because Azure OpenAI function calling relies on a strict JSON Schema for each function's parameters; incorrect or incomplete schemas (wrong types, missing required fields) cause the model to produce arguments that fail validation or the call to be rejected. Option D is correct because the model selects functions based on their natural-language descriptions, so ambiguous or missing descriptions lead to wrong or no function selection.

Option A is not a primary cause: temperature affects randomness, not whether a syntactically valid function call is produced, and function calling can work at high temperature. Option E is not a required check: while newer models may improve function-calling reliability, an outdated model version is not a standard diagnostic factor for functions failing to execute.

Exam trap

Microsoft often tests the misconception that temperature or model version are primary causes for function-calling failures, when in reality the core issues are token limits, schema correctness, and description clarity.

3
MCQhard

A financial services company is building an agent that uses Azure OpenAI to generate investment advice. The agent must be monitored for toxicity and bias. Which combination of services should the team use to implement content safety monitoring?

A.Azure Cognitive Search and Azure AI Language.
B.Azure Bot Service and Azure Logic Apps.
C.Azure Machine Learning and Azure Functions.
D.Azure AI Content Safety and Azure OpenAI content filtering.
AnswerD

Azure AI Content Safety provides configurable harm categories (hate, violence, self-harm, sexual) with severity scoring, while Azure OpenAI content filtering applies policy at the model prompt and completion layer. Together they cover both model-level and application-level toxicity and bias monitoring.

Why this answer

Azure AI Content Safety provides built-in models for detecting harmful content such as hate speech, self-harm, and sexual content, while Azure OpenAI content filtering applies configurable severity-level filters (e.g., low, medium, high) to model inputs and outputs. Together, they enable real-time monitoring of toxicity and bias in generated investment advice, meeting compliance requirements for financial services.

Exam trap

The trap here is that candidates may confuse general AI services (like Azure AI Language or Azure Machine Learning) with the specific, purpose-built content safety and filtering services required for monitoring toxicity and bias in generative AI outputs.

How to eliminate wrong answers

Option A is wrong because Azure Cognitive Search is a retrieval service for indexing and querying data, not a content safety or bias detection tool, and Azure AI Language provides NLP features like sentiment analysis but lacks dedicated toxicity and bias monitoring for generative AI outputs. Option B is wrong because Azure Bot Service is a framework for building conversational agents, and Azure Logic Apps is an integration workflow service; neither includes built-in content safety or bias detection capabilities. Option C is wrong because Azure Machine Learning is a platform for training and deploying custom ML models, and Azure Functions is a serverless compute service; while you could build custom safety logic, they do not provide the pre-built, configurable content filtering and toxicity detection that Azure AI Content Safety and Azure OpenAI content filtering offer out of the box.

4
MCQhard

An agent built with Azure AI Foundry Agent Service performs a long-running operation by calling a function tool that starts a batch job. The batch job can take up to 30 minutes, and the agent currently times out because the function tool waits for completion. The team wants the agent to continue the conversation after the job finishes. Which pattern should the team implement?

A.Increase the function tool's HTTP client timeout to 30 minutes so the call waits for the job
B.Have the function tool return immediately with a job identifier, then resume the agent when the job completes via a new run or thread message
C.Move the batch job into the code interpreter tool so it runs inside the agent's session
D.Enable parallel tool calls so the agent can start the job and keep responding at the same time
AnswerB

Returning a job identifier lets the tool call finish quickly, so the run is not blocked. When the batch job completes, an external trigger can submit the result back to the agent, either by starting a new run or by adding a message to the thread. This asynchronous pattern matches the requirement that the agent continue the conversation after a long operation finishes.

Why this answer

Long-running work should be decoupled from the agent run. Returning a job identifier immediately keeps the tool call fast, and an external completion event can then deliver the result back to the agent by starting a new run or posting to the thread. Blocking the tool call, moving the job into code interpreter, or enabling parallel calls all fail to provide a reliable continuation path after the job finishes.

Exam trap

The trap here is assuming a longer timeout solves long-running work, when the real need is an asynchronous callback that resumes the agent.

5
MCQmedium

A company is building an agent by using Azure AI Foundry Agent Service. The agent must use a file search tool that references a 400-page product manual stored as an uploaded file. The team wants the agent to retrieve relevant passages without you writing chunking or embedding code. Which tool should you configure?

A.A function tool that calls a Logic App workflow to parse the PDF at query time
B.The built-in file_search tool attached to the agent, with the manual uploaded to the agent's vector store
C.Azure AI Search index configured as a connected knowledge source with semantic ranker enabled
D.A code interpreter tool with the PDF mounted in the session file store
AnswerB

The file_search tool in Azure AI Foundry Agent Service automatically chunks, embeds, and indexes uploaded files into a vector store, then performs retrieval during a run. Because the platform handles ingestion and embedding, the team can point the agent at the uploaded manual and get passage-level grounding without writing custom chunking or embedding code, which is exactly what the scenario requires.

Why this answer

The requirement is managed retrieval over an uploaded document without custom chunking or embedding work. The built-in file_search tool ingests uploaded files into a vector store, handles chunking and embedding automatically, and returns relevant passages to the model during runs. Building an Azure AI Search index, writing a function tool, or using code interpreter all shift ingestion and retrieval responsibility back to the team, which the scenario rules out.

Exam trap

The trap here is assuming any grounding option works equally well, when only the built-in file_search tool removes the need for custom chunking and embedding of uploaded files.

6
MCQeasy

A developer is creating an agent in Azure AI Foundry Agent Service and wants the agent to remember a user's stated preferences across separate conversations that occur days apart. The agent definition already includes a model deployment and instructions. What should the developer add to persist this context?

A.Increase the model's context window by selecting a larger deployment
B.Attach a Foundry memory store to the agent so it can save and retrieve user facts across threads
C.Enable the code interpreter tool so the agent can write preferences to a file
D.Add the preferences to the agent's instructions field in the agent definition
AnswerB

A memory store in Azure AI Foundry Agent Service is designed to persist user-level facts and preferences beyond a single thread. The agent can write memories during one conversation and retrieve them in later conversations, even days apart, as long as the same user identity is used. This directly provides the cross-session continuity the scenario requires.

Why this answer

Cross-conversation memory requires a durable, user-scoped store outside the model and outside static agent configuration. Attaching a Foundry memory store lets the agent save facts during one thread and retrieve them in later threads for the same user. A larger context window, code interpreter session files, and the instructions field all fail because they are either ephemeral, shared, or scoped to a single run.

Exam trap

The trap here is confusing a bigger context window with persistent memory, when context length is per-request and memory must be stored externally.

7
MCQmedium

A company is deploying an agent built with Azure AI Foundry Agent Service to production. The agent must log all interactions for auditing and compliance. The team needs to capture the full conversation history, including tool calls and their results. Which approach should they use?

A.Use the agent's built-in conversation history feature and periodically export it manually via the portal.
B.Configure the agent to write conversation logs to a local file on the client application.
C.Instruct the agent to include a summary of each interaction in its response for the user to save.
D.Enable diagnostic settings on the Azure AI Foundry resource to send logs to Azure Monitor and Log Analytics.
AnswerD

Enabling diagnostic settings on the Azure AI Foundry resource allows you to stream logs, including agent interactions and tool calls, to Azure Monitor and Log Analytics. This provides a centralized, durable audit trail. You can then query and analyze logs for compliance. This is the recommended approach for auditing agent interactions in production.

Why this answer

Enabling diagnostic settings to send logs to Azure Monitor and Log Analytics is the correct approach because it provides a centralized, durable, and queryable audit trail of all agent interactions, including tool calls. Other methods are either local, manual, or incomplete, and do not meet compliance needs for production auditing.

Exam trap

The trap here is relying on the agent's built-in conversation history for auditing, but that history is session-scoped and not designed for compliance logging.

8
Multi-Selecthard

A media company is building an Azure AI Foundry agent that generates summaries of news articles. The agent uses a tool to fetch articles from an internal CMS. The company wants to ensure the agent respects content usage rights and does not summarize articles that are marked as restricted. The agent must also log every article it accesses for auditing. Which two actions should the team take? (Choose two.)

Select 2 answers
A.Instruct the agent in its system message to ignore articles that are marked restricted.
B.Enable diagnostic logging on the Azure AI Foundry resource to capture all tool calls and their responses.
C.Use a content filter to block articles that contain certain keywords associated with restricted content.
D.Store a copy of every article in the agent's conversation history for later review.
E.Configure the CMS tool to return only articles with a usage rights field set to 'public' or 'licensed', and have the agent filter based on that field.
AnswersB, E

Diagnostic logging captures tool invocations and responses, providing an audit trail of every article the agent accesses. This satisfies the auditing requirement by recording which articles were fetched and when. It works in conjunction with access controls to ensure compliance, and it does not expose restricted content because the filtering already prevents such articles from being returned.

Why this answer

To respect usage rights, the CMS tool should filter articles based on the usage rights field before they reach the agent, ensuring only permissible content is summarized. To audit access, diagnostic logging on the Azure AI Foundry resource captures all tool calls and responses. Together, these actions enforce policy at the data layer and provide a verifiable audit trail without exposing restricted content to the model.

Exam trap

The trap here is relying on prompt instructions to enforce content restrictions, which is not deterministic, instead of implementing access control at the tool or data source level.

9
MCQeasy

An e-commerce company wants to build an agent that helps users track orders, initiate returns, and answer FAQs. The agent should be available on the company's website and mobile app. Which Azure service should the team use to deploy the agent?

A.Azure Logic Apps
B.Azure API Management
C.Azure Bot Service
D.Azure Functions
AnswerC

Azure Bot Service provides channels for websites and mobile apps plus the Bot Framework SDK, letting one agent serve both surfaces. It satisfies the multi-channel deployment requirement directly, whereas Azure OpenAI alone supplies models without channel hosting or conversation routing.

Why this answer

Azure Bot Service is the correct choice because it provides a managed environment for building, deploying, and scaling conversational AI agents that can be integrated with multiple channels, including websites and mobile apps. It supports the Bot Framework SDK, which enables the agent to handle order tracking, returns, and FAQs through natural language understanding (NLU) with LUIS or the newer CLU service.

Exam trap

The trap here is that candidates often confuse Azure Bot Service with Azure Logic Apps or Azure Functions, mistakenly thinking that workflow automation or serverless compute alone can serve as a conversational agent, but they lack the essential dialog management, channel integration, and NLU capabilities that Azure Bot Service provides.

How to eliminate wrong answers

Option A is wrong because Azure Logic Apps is a workflow automation service for integrating apps and data, not a conversational agent platform; it lacks built-in support for dialog management, NLU, and multi-channel deployment. Option B is wrong because Azure API Management is used to publish, secure, and monitor APIs, not to host interactive conversational agents; it cannot manage user intents or multi-turn dialogues. Option D is wrong because Azure Functions is a serverless compute service for running event-driven code, but it does not provide the necessary framework for building conversational flows, channel adapters, or state management required for an agent.

10
MCQhard

A team is building an agent using Azure AI Foundry Agent Service that must use the function calling tool to interact with a custom API. The agent sometimes fails to call the function with the correct parameters. Which action should the team take to improve the reliability of function calling?

A.Switch to using the code interpreter tool instead of function calling for API interactions.
B.Increase the temperature setting of the model to encourage more creative parameter generation.
C.Provide detailed descriptions and examples for each function parameter in the function definition.
D.Reduce the number of functions available to the agent to only one.
AnswerC

Providing detailed descriptions and examples for each parameter helps the model understand exactly what values are expected. This improves the accuracy of parameter extraction. The model uses these descriptions to map user input to the correct parameters. Including examples of valid values or formats can further reduce errors. This is a best practice for function calling in Azure AI Foundry Agent Service.

Why this answer

Providing detailed descriptions and examples for each function parameter is the correct action because it gives the model clear guidance on expected values, improving parameter accuracy. Other options either increase randomness, misuse tools, or reduce functionality without addressing the root cause of parameter errors.

Exam trap

The trap here is assuming that lowering temperature always fixes function calling, but the real issue is often insufficient parameter descriptions.

11
MCQeasy

A company is using Azure AI Foundry to create an agent that must answer questions based on a set of internal documents. The agent should provide accurate answers and cite the source documents. Which feature should the team use to ground the agent's responses in the documents?

A.Fine-tuning the underlying language model with the internal documents.
B.Azure AI Search index connected as a knowledge tool in the agent.
C.Storing the documents in Azure Blob Storage and providing the agent with a SAS URL.
D.Embedding the documents in the agent's system prompt.
AnswerB

Azure AI Search index connected as a knowledge tool allows the agent to retrieve relevant document chunks and ground its responses. It supports citations by returning document references. This is the standard way to implement retrieval-augmented generation (RAG) in Azure AI Foundry Agent Service, ensuring answers are based on the internal documents and sources are cited.

Why this answer

Using an Azure AI Search index as a knowledge tool is the correct approach because it enables retrieval-augmented generation, allowing the agent to fetch relevant document chunks and cite sources. Fine-tuning, SAS URLs, and embedding documents in the prompt do not provide effective grounding or citation capabilities for a document library.

Exam trap

The trap here is thinking that fine-tuning is a quick way to add knowledge, but it does not support citations or dynamic updates.

12
Multi-Selecthard

An agent uses Azure AI Language to perform sentiment analysis on customer feedback. The team notices that the sentiment scores are sometimes inaccurate for negative feedback. Which TWO improvements should the team consider?

Select 2 answers
A.Pre-process the text to handle negations and sarcasm.
B.Use a custom sentiment analysis model trained on domain-specific data.
C.Switch to a different language model without fine-tuning.
D.Increase the number of decimal places in the sentiment score.
E.Increase the confidence threshold for positive sentiment.
AnswersA, B

Negation and sarcasm invert surface polarity, so the model scores positive words as positive despite negative intent. Pre-processing rewrites or flags these constructions before scoring, directly addressing the inaccurate negative-feedback scores described in the stem.

Why this answer

Option A is correct because Azure AI Language's prebuilt sentiment analysis can misclassify negations (e.g., "not good") and sarcasm, so pre-processing the text to normalize or flag these constructs improves accuracy. Option B is correct because training a custom sentiment analysis model on domain-specific labeled data lets the service learn industry-specific vocabulary and phrasing, which typically boosts accuracy for specialized feedback. Option C is not appropriate because simply swapping language models without fine-tuning does not address domain-specific or negation/sarcasm issues.

Option D is wrong because the number of decimal places in the score is a formatting detail and does not affect model accuracy. Option E is wrong because raising a positive-sentiment confidence threshold only changes classification cutoffs and does not improve the underlying sentiment detection for negative feedback.

Exam trap

The trap here is that candidates often assume that increasing precision or switching models generically will fix inaccuracies, rather than recognizing that domain-specific fine-tuning and text pre-processing are the standard Azure AI Language approaches to handle linguistic edge cases like negations and sarcasm.

13
MCQeasy

A retail company is creating an Azure AI Foundry agent that helps customers find products. The agent must be able to call a product search API and a store inventory API. The team wants to define these capabilities so the agent can invoke them when needed. What should the team do?

A.Embed the API endpoints in the agent's system message and instruct the model to call them by using HTTP requests.
B.Use the agent's built-in code interpreter to write Python code that calls the APIs.
C.Create an Azure Function for each API and configure the agent to use them as skills.
D.Add the two APIs as tools in the agent definition, providing their OpenAPI schemas.
AnswerD

Azure AI Foundry agents use tools to interact with external services. By adding the APIs as tools with their OpenAPI schemas, the agent can understand the available operations, parameters, and responses, and invoke them when appropriate. This is the standard way to extend an agent's capabilities with custom APIs.

Why this answer

The team needs to enable the agent to call two external APIs. In Azure AI Foundry, tools are the mechanism for integrating external services. By adding each API as a tool with its OpenAPI schema, the agent gains the ability to invoke them with correct parameters and handle responses.

This is the native, supported approach and requires minimal custom code.

Exam trap

The trap here is assuming the agent can call APIs by simply mentioning them in the prompt, rather than defining them as tools with proper schemas.

14
MCQmedium

A company is developing an agent that uses Azure AI Vision to analyze images uploaded by users. The agent must identify objects and read text in images. The team uses the Azure AI Vision API. During testing, the agent fails to read text from images with low contrast. What should the team do to improve optical character recognition (OCR) accuracy for such images?

A.Use a different OCR API from Azure Cognitive Services.
B.Pre-process the image to adjust contrast and brightness before calling the OCR API.
C.Train a custom OCR model using Azure Custom Vision.
D.Increase the confidence threshold for text detection.
AnswerB

Low-contrast images degrade the pixel gradients OCR relies on to segment characters. Adjusting contrast and brightness before the API call restores that separation, improving recognition accuracy without retraining or changing the Azure AI Vision service.

Why this answer

Azure AI Vision's OCR API performs best on images with sufficient contrast and brightness. Pre-processing the image (e.g., using OpenCV or PIL to adjust contrast and brightness) enhances text visibility, directly improving OCR accuracy for low-contrast images without changing the API or training a custom model.

Exam trap

The trap here is that candidates may assume Azure Custom Vision can be repurposed for OCR or that adjusting confidence thresholds can fix recognition accuracy, when in fact pre-processing the image is the standard approach to improve OCR results for low-quality inputs.

How to eliminate wrong answers

Option A is wrong because Azure AI Vision's Read API is already the dedicated OCR service within Azure Cognitive Services; switching to a different OCR API (e.g., Form Recognizer) would not inherently solve low-contrast issues and may add unnecessary complexity. Option C is wrong because Azure Custom Vision is designed for image classification and object detection, not for reading text; it cannot be trained to perform OCR. Option D is wrong because increasing the confidence threshold for text detection would filter out more detections, potentially missing low-confidence but correct text reads, and does not improve the underlying OCR engine's ability to recognize text in low-contrast images.

15
MCQmedium

A company is building an agent using Azure AI Foundry Agent Service. The agent must be able to call an external REST API that returns real-time inventory data. The API requires an OAuth 2.0 token that changes frequently. Which approach should the team use to enable the agent to call this API securely?

A.Configure the agent to use a managed identity and assign it the necessary permissions to call the REST API directly.
B.Store the OAuth token in the agent's knowledge base and have the agent retrieve it when needed.
C.Use a function tool in the agent definition that invokes an Azure Function, which retrieves the token from Azure Key Vault and calls the REST API.
D.Embed the OAuth token in the agent's system prompt so the agent can include it in API calls.
AnswerC

This approach is correct because the agent can call an Azure Function as a function tool, and the function can securely retrieve the OAuth token from Key Vault at runtime. This keeps the token out of the agent's configuration and allows the function to handle token refresh and API calls, ensuring secure and up-to-date authentication for the external REST API.

Why this answer

The correct approach is to use a function tool that invokes an Azure Function, which securely retrieves the OAuth token from Azure Key Vault and calls the REST API. This keeps credentials out of the agent and handles token refresh. Other options either expose the token, rely on unsupported authentication, or misuse the knowledge base.

Exam trap

The trap here is assuming that managed identity can authenticate to any external API, but it only works with resources that trust Microsoft Entra ID.

16
Multi-Selectmedium

A team is building an agent with Azure AI Foundry Agent Service that must call several internal function tools. The team reports that the model sometimes invents function names that do not exist and passes arguments that do not match the tool schema. Which TWO practices should the team adopt to reduce these failures? (Choose two.)

Select 2 answers
A.Disable parallel tool calls so the model can only invoke one function per turn
B.Set the agent's temperature to a high value so the model explores more tool combinations
C.Handle tool-call validation errors by returning a structured error message to the model and allowing it to retry
D.Define each tool with a clear name, description, and JSON schema for its parameters
E.Increase the model's max tokens so it has more room to explain each function call
AnswersC, D

When a tool call fails validation, returning a clear, structured error as the tool result lets the model correct its arguments on the next turn. This feedback loop turns a hard failure into a recoverable step and reduces the chance that the run aborts. It complements precise tool schemas by catching the residue of malformed calls that still slip through.

Why this answer

Reliable function calling depends on a precise contract and a recovery path. Clear names, descriptions, and JSON schemas tell the model exactly which tools exist and how to call them, while returning structured validation errors lets the model self-correct on a subsequent turn. Temperature, parallel-call settings, and token limits affect other behaviors and do not resolve hallucinated function names or malformed arguments.

Exam trap

The trap here is assuming model sampling settings control tool accuracy, when tool schema quality and validation feedback drive correct function invocation.

17
MCQmedium

A bank is deploying an Azure AI Foundry agent that provides account balance information over the phone. The agent must authenticate callers by using voice biometrics before revealing any account details. The bank wants to integrate this authentication step into the agent's conversation flow without exposing sensitive data to the language model. Which approach should the bank use?

A.Include the caller's voiceprint in the system message so the model can compare it to the live audio.
B.Use Azure Communication Services to record the call and send the audio to the agent as a text transcript for authentication.
C.Add a voice biometrics tool to the agent and configure a pre-action that runs before any account-related tool call.
D.Configure the agent to ask for the caller's account number and PIN, then validate them against a database before answering.
AnswerC

Azure AI Foundry agents support tools and pre-actions that can enforce authentication before executing sensitive operations. A voice biometrics tool can verify the caller, and a pre-action ensures the verification runs before account tools are invoked. This keeps sensitive data out of the language model because the authentication result gates access to account information.

Why this answer

The bank needs voice biometric authentication integrated into the agent flow without exposing sensitive data to the language model. A voice biometrics tool with a pre-action that gates account-related tool calls achieves this: the biometric check happens outside the model, and only a success token is passed to the orchestration layer, allowing account tools to run. This satisfies security and integration requirements.

Exam trap

The trap here is assuming the language model itself can perform biometric verification or that any authentication method, such as PIN, is acceptable when voice biometrics is explicitly required.

18
Drag & Dropmedium

Drag and drop the steps to implement an Azure AI Bot Service with QnA Maker into the correct order.

Drag or tap steps into the slots.

Steps
Order
1Step 1
2Step 2
3Step 3
4Step 4

Why this order

Start with QnA Maker, build the knowledge base, create the bot, connect it, and test.

19
MCQeasy

A company is building an agent that needs to perform tasks like sending emails and updating a CRM system. The agent uses Azure OpenAI with function calling. The team defines functions for these tasks. When the agent is tested, it sometimes calls the wrong function or invents function names. What should the team do to improve the reliability of function calling?

A.Fine-tune the model on a dataset of correct function calls.
B.Reduce the number of functions to only the most common ones.
C.Set the temperature parameter to 0 for deterministic output.
D.Provide better function descriptions with examples of when to use each function.
AnswerD

Function-calling accuracy depends on the model's understanding of each function's purpose. Richer descriptions stating when to invoke each function, plus concrete examples, reduce ambiguity and stop the model inventing or mis-selecting names, directly improving reliability.

Why this answer

Providing better function descriptions with examples directly improves the model's ability to select the appropriate function. Azure OpenAI's function calling relies on the semantic understanding of the function definitions; clear descriptions and usage examples reduce ambiguity, helping the model map user intent to the correct function signature without hallucinating names.

Exam trap

The trap here is that candidates often assume deterministic output (temperature=0) or reducing complexity (fewer functions) will fix reliability, when the real issue is semantic ambiguity in function definitions that the model cannot resolve without better descriptions.

How to eliminate wrong answers

Option A is wrong because fine-tuning on a dataset of correct function calls is unnecessary and inefficient; Azure OpenAI's base models already understand function calling patterns, and fine-tuning would require a large, curated dataset and could introduce overfitting or degrade general performance. Option B is wrong because reducing the number of functions limits the agent's capabilities and does not address the root cause of incorrect selection; the model may still invent names if descriptions are poor. Option C is wrong because setting temperature to 0 makes output deterministic but does not fix ambiguous or poorly defined function descriptions; the model will still confidently choose the wrong function if it misinterprets the intent.

20
Multi-Selecteasy

A company wants to deploy an agent using Azure Bot Service that integrates with Microsoft Teams. Which THREE steps should the team take?

Select 3 answers
A.Use the Bot Framework SDK to build the bot with Teams-specific features.
B.Create a Teams app manifest file with bot configuration.
C.Register the bot in the Azure portal and obtain a Microsoft App ID.
D.Deploy the bot code to an Azure Function.
E.Write the bot in C# using Azure SDK for .NET.
AnswersA, B, C

Building with the Bot Framework SDK provides the messaging endpoint and activity handling that Teams requires, including Teams-specific activity types and adaptive card support. It satisfies the integration constraint by producing a bot the Teams channel can register and route conversations to.

Why this answer

Option A is correct because the Bot Framework SDK provides the Teams-specific activities, Adaptive Cards, and middleware needed to build an agent that works properly inside Microsoft Teams. Option B is correct because a Teams app manifest (with the bot's ID, scopes, and commands) must be packaged and uploaded/sideloaded so Teams knows how to surface the bot to users. Option C is correct because registering the bot in Azure Bot Service yields the Microsoft App ID and password that the bot uses to authenticate with the Bot Connector and Teams channel.

Option D is not required: bot code can run on App Service, containers, or Functions, so deploying to Azure Functions is only one optional hosting choice. Option E is not required: the Bot Framework SDK supports multiple languages (C#, JavaScript, Python, Java), so writing in C# with the Azure SDK for .NET is not a mandatory step.

Exam trap

The trap here is that candidates often assume hosting (Azure Function) or language choice (C#) are mandatory steps, when in fact the three required steps are always: register the bot in Azure, build with the SDK, and create the Teams app manifest.

21
MCQmedium

You are building an agent for a legal firm that uses Azure OpenAI to analyze contracts. The agent must extract key clauses, identify risks, and summarize the contract. The agent uses a RAG pattern with Azure Cognitive Search as the vector database. After deployment, the agent sometimes returns irrelevant information or fails to find relevant clauses. You suspect the issue is with the chunking strategy. The contracts are large, typically 50-100 pages. Currently, you are chunking by page (each page is one chunk). You want to improve retrieval accuracy. Which action should you take?

A.Keep page-level chunking but add 50% overlap between chunks.
B.Use a different embedding model, such as text-embedding-3-large.
C.Increase the chunk size to 5 pages per chunk and reduce overlap.
D.Change chunking to use semantic boundaries: split at clause or section headings.
AnswerD

Page-based chunking splits clauses across arbitrary boundaries, so retrieved vectors mix unrelated contract text. Splitting at clause or section headings keeps each chunk semantically coherent, which is the axis that improves retrieval accuracy for the RAG pattern over 50-100 page contracts.

Why this answer

Splitting contracts at semantic boundaries (clause or section headings) preserves the natural meaning and context of each chunk, which is critical for legal document analysis. Page-level chunking often splits a clause across two pages, causing the vector search to retrieve incomplete or irrelevant information. By aligning chunks with the document's logical structure, the RAG pattern retrieves more coherent and relevant passages for the Azure OpenAI agent to process.

Exam trap

The trap here is that candidates often focus on tuning parameters like overlap or chunk size, or switching embedding models, without recognizing that the fundamental issue is the chunking strategy's failure to respect the document's logical structure.

How to eliminate wrong answers

Option A is wrong because adding 50% overlap to page-level chunking still splits clauses at arbitrary page boundaries, and the overlap only partially mitigates the issue without guaranteeing that a complete clause is captured in a single chunk. Option B is wrong because the embedding model is not the root cause; even a better model like text-embedding-3-large cannot fix retrieval accuracy if the chunking strategy destroys semantic coherence. Option C is wrong because increasing chunk size to 5 pages per chunk makes the chunks too large and reduces precision, and reducing overlap further increases the risk of missing relevant content that spans chunk boundaries.

Ready to test yourself?

Try a timed practice session using only Agentic Ai questions.