Courseiva

CCNA Implement Generative AI And Agentic Solutions Questions

75 of 167 questions · Page 1/3 · Implement Generative AI And Agentic Solutions · Answers revealed

1
MCQhard

You are designing an agentic workflow where an agent needs to maintain conversational context and remember user preferences across multiple disparate sessions over several weeks. Which architectural component should you implement?

A.Increasing the model context window to 1,000,000 tokens for every request.
B.A persistent semantic memory store integrated with the agent's context pipeline.
C.Using a stateless function with zero memory persistence.
D.Storing the entire conversation history in a local client-side cookie.
AnswerB

Persistent memory allows the agent to recall and store user facts and preferences across different sessions.

Why this answer

Long-term memory implemented via vector stores or external databases allows agents to retrieve historical interactions across sessions.

2
Multi-Selecteasy

Which TWO resources are required to set up an Azure AI Foundry project?

Select 2 answers
A.An Azure Data Factory instance.
B.A virtual machine.
C.A dedicated Kubernetes cluster.
D.An Azure AI Services or Azure OpenAI resource.
E.A storage account (Azure Blob Storage).
AnswersD, E

This is the core compute/service resource.

Why this answer

A project requires a backing resource (Azure AI Services or Azure OpenAI) and a storage mechanism (Azure Storage) to function.

3
MCQmedium

You are developing a customer support agent using Microsoft Foundry. The agent needs to call a custom weather API tool when a user asks about local conditions. How should you define this capability in the agent configuration?

A.Register a custom function tool by providing an OpenAPI schema definition that describes the weather API endpoints, parameters, and expected responses.
B.Upload the compiled C# library containing the API client code directly into the agent code interpreter workspace.
C.Add the weather API endpoint URL as a grounding data source under the vector store settings.
D.Configure a managed data connection pointing to the weather API URL within Azure AI Search.
AnswerA

Providing an OpenAPI schema allows the model to correctly format requests and interpret responses from custom external APIs.

Why this answer

In Microsoft Foundry and Azure AI Agent Service, you configure custom tools by defining them as OpenAPI specifications or functions that the model can invoke via function calling capabilities.

4
MCQhard

An agent is prone to 'hallucinations' when responding to specific niche queries. What is the most effective way to reduce these hallucinations using RAG?

A.Retrain the base LLM on the niche dataset.
B.Increase the system prompt length.
C.Set the grounding threshold to a higher value in the agent configuration.
D.Lower the temperature setting to 0.0.
AnswerC

A higher grounding threshold ensures only the most relevant documents are passed to the model.

Why this answer

Increasing the 'top_k' or relevance threshold ensures the retrieved data is highly specific to the query, reducing ambiguity.

5
MCQeasy

You are configuring a Microsoft Foundry project to deploy a multimodal model. You need to ensure that the model deployment scales automatically based on request volume while minimizing management overhead. Which deployment type should you select?

A.Standard deployment
B.Local container deployment
C.Provisioned Throughput deployment
D.Batch deployment
AnswerA

Standard deployment provides auto-scaling and managed infrastructure suitable for dynamic request volumes.

Why this answer

Standard deployment in Azure AI Foundry supports automatic scaling based on traffic volume with managed infrastructure. Provisioned Throughput is for dedicated guaranteed capacity, and Batch deployments are for asynchronous processing.

6
MCQmedium

You are configuring automatic evaluation in Azure AI Foundry using the groundedness metric. The evaluation pipeline requires a source context and an LLM-generated response. What does the groundedness metric assess?

A.Whether the generated response is derived exclusively from the source context without unsupported claims
B.The cost per token consumed during inference
C.The sentiment and tone of the user prompt
D.The speed and latency of the model response in milliseconds
AnswerA, D

Groundedness checks for hallucinations by verifying that statements in the answer are supported by the retrieval context.

Why this answer

The groundedness metric measures whether the model's generated answers can be verified solely from the provided source context, detecting hallucinations.

7
Multi-Selectmedium

When designing an Azure AI Foundry project architecture, which TWO resources are typically linked to the Azure AI Hub to enable full model deployment and search capabilities? (Choose TWO)

Select 2 answers
A.Azure AI Search service
B.Azure SQL Database relational server
C.Azure OpenAI service
D.Azure Stream Analytics job cluster
E.Power BI embedded analytics workspace
AnswersA, C

Azure AI Search provides vector and hybrid search capabilities for RAG grounding.

Why this answer

Azure OpenAI and Azure AI Search are core resources linked to Azure AI Hub workspaces for model hosting and RAG search indexer capabilities.

8
MCQmedium

You are building a generative AI application that summarizes long legal documents. Users complain that summaries omit important clauses located in the middle of the document due to the model's attention limitations over extremely long texts. What phenomenon does this represent, and how can you mitigate it?

A.Token overflow error; mitigate by increasing Azure AI Search semantic ranker depth
B.Lost in the middle phenomenon; mitigate using map-reduce or recursive summarization patterns
C.Embedding drift; mitigate by retraining the text-embedding-ada-002 model
D.Prompt injection; mitigate by enabling Azure AI Content Safety prompt shields
AnswerB

Map-reduce summarizes smaller chunks first and then combines them, bypassing context attention limitations.

Why this answer

The 'lost in the middle' phenomenon occurs when LLMs overlook information in the middle of long contexts. Mitigation involves chunking or map-reduce summarization patterns.

9
Multi-Selecthard

You are troubleshooting a RAG application in Azure AI Foundry where retrieved search results are irrelevant to user queries. Which THREE actions should you take to diagnose and improve retrieval quality? (Choose THREE)

Select 3 answers
A.Evaluate whether document chunk sizes and overlaps align with query granularity
B.Inspect embedding vector distances and similarity scores of retrieved documents
C.Increase the Azure OpenAI model temperature parameter to 1.5
D.Configure Azure Key Vault access policies for the search service
E.Enable semantic ranking in Azure AI Search to re-rank results based on deep language understanding
AnswersA, B, E

Poor chunking sizes can split vital context or bundle unrelated topics, ruining retrieval precision.

Why this answer

Analyzing embeddings, evaluating chunking strategies, and testing hybrid search or semantic ranking are key steps to diagnose and resolve poor retrieval quality.

10
MCQhard

You are building an agent that needs to execute Python code safely to calculate financial projections requested by users. Which tool in Azure AI Agent Service should you enable to allow the agent to write and run code in an isolated environment?

A.Code Interpreter tool
B.Azure Container Instances dynamic scaling group
C.Azure Functions webhook integration
D.Azure AI Search vector embedding tool
AnswerA

Code Interpreter allows the agent to generate and execute Python code in a secure sandbox to solve data problems.

Why this answer

The Code Interpreter tool in Azure AI Agent Service provides a secure, sandboxed Python execution environment where agents can run generated code and analyze data.

11
MCQhard

You are monitoring an Azure OpenAI deployment in Azure AI Foundry and notice an increase in HTTP 429 (Too Many Requests) errors. Your application needs to handle these rate limit spikes gracefully. What is the recommended architectural solution?

A.Restart the Azure OpenAI resource from the Azure Portal
B.Implement exponential backoff and jitter retry logic in the application SDK
C.Set the model temperature parameter to 0.0
D.Switch the authentication method from API keys to Managed Identity
AnswerB

Exponential backoff with jitter prevents thundering herd problems and allows requests to succeed as capacity opens up.

Why this answer

Implementing retry logic with exponential backoff and jitter in the application code handles transient rate-limiting errors (HTTP 429) gracefully.

12
MCQhard

You are optimizing a RAG pipeline in Azure AI Foundry. The model is hallucinating when retrieving documents from a large corpus. Which strategy should you implement to improve grounding accuracy?

A.Increase the temperature of the model to 1.0
B.Use a larger embedding model
C.Implement a Cross-Encoder re-ranking step
D.Increase the chunk size to include the entire document
AnswerC

Re-ranking ensures only the most contextually relevant chunks are sent to the LLM.

Why this answer

Adding a re-ranking step after the initial search significantly improves the relevance of the context provided to the LLM.

13
MCQmedium

You are designing a RAG solution using Azure AI Search and Azure OpenAI. Users report that when querying technical documentation, the system misses highly relevant paragraphs because the exact keywords do not match the user's conversational query. How should you configure Azure AI Search to improve retrieval accuracy?

A.Switch the index analyzer to a standard whitespace analyzer to prevent stemming issues.
B.Enable semantic ranking on the Azure AI Search index and use hybrid search combining vector embeddings and keyword BM25.
C.Increase the number of retrieved documents (top_k) from 3 to 20 without changing the query type.
D.Convert all documents to uppercase before indexing to ensure case-insensitive matching.
AnswerB

Hybrid search combined with semantic ranking bridges the gap between keyword mismatches and semantic meaning.

Why this answer

Semantic ranking in Azure AI Search applies advanced machine learning models to understand the intent of the query and re-rank search results based on semantic relevance rather than pure keyword matching.

14
Multi-Selectmedium

You are preparing a dataset for fine-tuning an Azure OpenAI model in Azure AI Foundry. Which TWO data formatting and preparation requirements must you follow? (Choose TWO)

Select 2 answers
A.Include unencrypted passwords and PII in plain text to improve model empathy
B.Upload raw unstructured PDF files directly as the fine-tuning training dataset
C.Format training data as JSONL (JSON Lines) where each line is a chat completion example
D.Ensure training examples follow the expected system, user, and assistant message roles
E.Encode all training examples in binary audio wave files (.wav)
AnswersC, D

Azure OpenAI fine-tuning requires JSONL format matching chat message structures.

Why this answer

Fine-tuning data for Azure OpenAI must be formatted as valid JSONL where each line represents a chat completion training example.

15
MCQeasy

You are monitoring your Azure OpenAI deployment in Azure AI Foundry. You notice an increase in HTTP 429 status codes. What does this error indicate?

A.Internal server error at Microsoft
B.Model deployment not found
C.Rate limit or token quota exceeded (Too Many Requests)
D.Invalid API key authentication
AnswerC

HTTP 429 means you have hit your deployment's tokens-per-minute (TPM) or requests-per-minute (RPM) limits.

Why this answer

HTTP 429 indicates that the request rate or token usage has exceeded your allocated quota or rate limit.

16
MCQhard

You are designing an agentic workflow in Azure AI Foundry that requires the agent to call an external REST API. Which component should you use to define the tool interface?

A.Azure AI Content Safety
B.LLM output parser
C.Tool definition using a Python function
D.Flow input schema
AnswerC

Defining tools as Python functions within a prompt flow allows the agent to execute code and call external APIs seamlessly.

Why this answer

In prompt flow, tools are defined using Python functions or specific tool definitions that map the schema for the LLM to understand how to invoke the external function.

17
MCQmedium

You are building an agentic workflow in Azure AI Foundry using the Semantic Kernel framework. The agent needs to call external APIs dynamically based on user intent. Which component should you register with the kernel to enable this capability?

A.A system prompt template
B.A plugin containing native or semantic functions
C.A sequential planner instance
D.A custom memory store
AnswerB

Plugins expose functions that the agent can invoke when responding to user requests.

Why this answer

Plugins (formerly known as skills in Semantic Kernel) are used to encapsulate functions and APIs that the agent can call dynamically. Prompts, memory, and planners serve different roles in orchestration.

18
MCQeasy

You are preparing a prompt template for a summarization task. You want to provide three distinct examples of input text and expected summaries before asking the model to process the target text. What is this prompting technique called?

A.Retrieval-augmented generation
B.Chain-of-thought prompting
C.Few-shot prompting
D.Zero-shot prompting
AnswerC

Few-shot prompting guides the model by supplying demonstrations of the desired task.

Why this answer

Providing examples within the prompt is known as few-shot prompting. Zero-shot has no examples, and chain-of-thought involves reasoning steps.

19
MCQmedium

How do you handle sensitive user data when using an Azure AI Agent?

A.Send all data to the model; the model will ignore it.
B.Increase the model parameter size.
C.Store user PII in the vector index.
D.Use Data Masking/PII filtering before the data reaches the agent.
AnswerD

Data sanitization is a critical step in maintaining privacy compliance.

Why this answer

Data privacy practices dictate that sensitive data should be anonymized before being sent to the model or excluded from training.

20
Multi-Selecthard

When designing a RAG-based agent, which THREE factors directly influence the quality of the retrieved information?

Select 3 answers
A.The system prompt's instructions on retrieval.
B.The use of hybrid search (combining keyword and vector search).
C.The granularity and quality of the chunked documents in the index.
D.The frequency of the model's training updates.
E.The model's temperature setting.
AnswersA, B, C

Clear instructions on how to use retrieved data help the model utilize it effectively.

Why this answer

Retrieval quality is dependent on the quality of the indexed data, the search query construction, and the effectiveness of the search algorithm.

21
MCQmedium

You are deploying an Azure OpenAI model in Azure AI Foundry and need to restrict access so that only specific virtual networks within your enterprise can invoke the model endpoint. Which feature should you configure?

A.API key rotation policies
B.Azure Private Link with private endpoints
C.Cross-Origin Resource Sharing (CORS) headers
D.Model rate limit quotas
AnswerB

Private endpoints secure traffic between your virtual network and the Azure OpenAI service.

Why this answer

Private endpoints and virtual network rules restrict network access to Azure OpenAI resources securely.

22
MCQeasy

What is the primary purpose of a 'Vector Store' in a RAG-based agentic application?

A.To store embeddings for efficient semantic similarity search.
B.To generate text responses.
C.To log user conversations for analytics.
D.To fine-tune the LLM.
AnswerA

This is the core function of a vector database.

Why this answer

Vector stores allow for semantic search, which finds content based on meaning rather than exact keyword matching.

23
MCQmedium

You are configuring content safety filters in Azure AI Foundry for a public-facing generative AI application. You need to ensure that the application detects and blocks potential jailbreak attempts and protected material text. Which component should you configure?

A.Azure Key Vault access policies restricting model endpoint tokens.
B.Azure AI Content Safety text moderation service with jailbreak and protected material detection enabled.
C.Azure API Management rate-limiting policies configured to drop requests containing long prompts.
D.Azure Monitor activity log alerts for anomalous token usage.
AnswerB

Content Safety includes dedicated blocklists and classifiers designed specifically to catch prompt injection, jailbreak attempts, and copyrighted text.

Why this answer

Azure AI Content Safety provides specialized detectors for hate speech, sexual content, violence, self-harm, jailbreak attacks, and protected material detection.

24
Multi-Selectmedium

You are configuring prompt engineering practices for a generative AI application in Azure AI Foundry. Which THREE practices should you follow to ensure high output quality and reliability? (Choose three.)

Select 3 answers
A.Specify the desired output format explicitly (e.g., JSON schema or markdown tables).
B.Embed all system instructions inside the user prompt string without using system roles.
C.Rely entirely on vague, implicit instructions to give the model creative freedom.
D.Use delimiters such as triple backticks or XML tags to clearly separate instructions from user-provided data.
E.Incorporate few-shot examples of edge cases and expected behaviors.
AnswersA, D, E

Explicit formatting instructions ensure parsable and structured outputs.

Why this answer

Effective prompt engineering involves clear separation of context/instructions, few-shot examples, and specifying output formats.

25
MCQmedium

You are designing an agentic workflow where an orchestrator agent delegates sub-tasks to specialized worker agents (e.g., a research agent and a coding agent). Which framework or service native to Azure AI supports multi-agent orchestration patterns?

A.Azure Data Factory pipeline authoring
B.Semantic Kernel or Microsoft AutoGen
C.Azure Stream Analytics query editor
D.Azure Logic Apps standard workflow designer
AnswerB

Semantic Kernel and AutoGen provide robust frameworks for building multi-agent conversational and task-oriented workflows.

Why this answer

Microsoft AutoGen and Semantic Kernel are core frameworks supported within Azure AI for multi-agent orchestration and collaborative agent workflows.

26
MCQhard

You are implementing Retrieval-Augmented Generation (RAG) using Azure AI Search and Azure OpenAI. Users report that when searching for technical product specifications, the system occasionally retrieves outdated product manuals because newer versions share similar titles. What configuration change should you make to improve retrieval accuracy?

A.Increase the chunk size parameter in the document ingestion pipeline to 4000 tokens
B.Decrease the temperature parameter of the Azure OpenAI generation model to 0.0
C.Switch the embedding model from text-embedding-ada-002 to text-embedding-3-small
D.Enable semantic search and semantic ranking on the Azure AI Search index
AnswerD

Semantic ranking uses advanced language models to re-rank search results, significantly improving relevancy for technical queries.

Why this answer

Enabling semantic search and semantic ranking in Azure AI Search allows the system to understand user intent and rank results based on deep semantic meaning rather than just keyword matches.

27
MCQeasy

You are managing prompt assets in Azure AI Foundry. Your team collaborates on developing, testing, and versioning system prompts. Which feature in Azure AI Foundry should you use to store and manage these prompt templates?

A.Azure Storage Blob lifecycle management policies
B.Prompt flow / Prompt management workspace assets
C.Azure App Service deployment slots
D.Azure Key Vault secret versions
AnswerB

Azure AI Foundry provides prompt management and prompt flow capabilities to version and test prompt templates.

Why this answer

Prompt flow and prompt management tools in Azure AI Foundry allow teams to author, version, and share prompt templates collaboratively.

28
MCQeasy

You are writing a system prompt for an Azure OpenAI model deployed in Azure AI Foundry. You want to ensure the model responds only using the provided context and refuses to answer if the context is insufficient. What technique should you use?

A.Configure Azure AI Content Safety severity levels to high
B.Set the model temperature to 1.0 and top_p to 0.0
C.Enable semantic caching on the Azure OpenAI deployment
D.Include explicit grounding instructions and a negative constraint in the system prompt
AnswerD

System prompt engineering allows you to define constraints such as 'If the answer cannot be found in the context, state 'I do not know'.'

Why this answer

Grounding instructions combined with explicit refusal behavior in system prompts establish strict boundaries for RAG applications.

29
MCQeasy

You are designing an AI application and want to test different foundation models (e.g., GPT-4o vs. Llama 3) side-by-side using the same prompt and test dataset. Which feature in Azure AI Foundry should you use?

A.Azure Monitor workbook performance graphs
B.Azure Cosmos DB cross-region replication
C.Side-by-side evaluation in Azure AI Foundry playground
D.Azure Front Door traffic routing
AnswerC

The AI Foundry playground supports side-by-side model comparisons to evaluate quality and response style.

Why this answer

Model evaluation and playground comparison tools in Azure AI Foundry allow developers to compare outputs across different models side-by-side.

30
MCQhard

You are designing an agent that needs to access user-specific data from OneDrive. How should you handle the authentication for this tool call?

A.Disable authentication for the API.
B.Use a Managed Identity for the agent.
C.Hardcode the OAuth tokens in the tool definition.
D.Request the user to provide credentials via the chat interface.
AnswerB

Managed Identities ensure secure and automated access to Azure resources.

Why this answer

Managed Identities provide the secure, token-based authentication required for services to communicate without storing credentials.

31
MCQhard

You are building an agentic application that uses function calling. The model frequently hallucinates arguments for complex tool schemas. Which technique should you apply to improve function calling reliability?

A.Convert all tool arguments into unstructured natural language text.
B.Remove all parameter descriptions from the tool schema to reduce prompt token count.
C.Set the model frequency penalty to high values.
D.Enhance the JSON schema with detailed parameter descriptions, enum constraints, and strict schema validation settings.
AnswerD

Explicit parameter descriptions and strict schemas drastically reduce malformed or hallucinated tool arguments.

Why this answer

Providing clear docstrings, descriptions for every parameter in the JSON schema, and strict mode (if supported) guides the model to populate correct arguments.

32
MCQeasy

What is the primary benefit of using the Model Catalog in Azure AI Foundry?

A.Automated prompt engineering
B.Centralized discovery and deployment of models
C.Network security configuration
D.Automatic data labeling
AnswerB

This simplifies model management.

Why this answer

The Model Catalog provides a centralized location to discover and deploy models.

33
MCQmedium

You are testing an agent in the Azure AI Foundry playground. You observe that the agent answers questions about its internal prompt. What is the most effective way to prevent this?

A.Delete the search index.
B.Use a higher-parameter model.
C.Update the system prompt to explicitly refuse requests about its instructions.
D.Disable the playground.
AnswerC

Reinforcing the agent's persona and rules is the primary defense against prompt injection/leakage.

Why this answer

System prompts should clearly define the agent's identity and boundaries to prevent prompt leakage.

34
MCQhard

You are implementing prompt engineering for a customer support agent. To minimize hallucinations when the model lacks information, which Prompt Flow technique is most effective?

A.Chain-of-thought prompting
B.Instructional grounding to only answer from context
C.Increasing the Top_P parameter
D.Few-shot prompting with varied examples
AnswerB

This restricts the model to the provided context and reduces hallucinations.

Why this answer

Prompt engineering for RAG requires explicit instructions to use provided context and say 'I don't know' if missing.

35
MCQhard

You are designing an agentic workflow in Azure AI Agent Service where multiple specialized agents need to collaborate to solve complex, multi-step financial analysis tasks. One agent manages the workflow state and decides which sub-agent to invoke next. What architectural pattern is best suited for this implementation?

A.Orchestrator-workers pattern, where a central agent dynamically assigns sub-tasks to specialized worker agents based on intermediate results.
B.Single monolithic prompt pattern, where all instructions are combined into one massive system prompt without multi-agent handoffs.
C.Map-reduce batch processing pattern, where all sub-agents execute independently in parallel without communication.
D.Static sequential pipeline, where agents execute strictly in a predefined linear order without conditional branching.
AnswerA

This pattern is ideal for complex workflows requiring dynamic task delegation, state management, and specialized agent collaboration.

Why this answer

The orchestrator-workers (or router) pattern uses a central orchestrator agent to manage state, evaluate progress, and delegate tasks to specialized worker agents.

36
MCQeasy

You are deploying an Azure OpenAI model in Azure AI Foundry and want to evaluate its performance and safety against a validation dataset before moving to production. Which tool should you use?

A.Azure Monitor Log Analytics query packs
B.Azure Advisor cost recommendations
C.Model evaluation in Azure AI Foundry
D.Azure API Management developer portal
AnswerC

Azure AI Foundry provides built-in model evaluation wizards and SDK functions to assess quality and safety metrics.

Why this answer

Azure AI Foundry evaluation tools allow developers to run automated evaluations using metrics like groundedness, relevance, and coherence against test datasets.

37
MCQmedium

You need to ensure that your agent's response is formatted as valid JSON. How should you approach this?

A.Set the temperature to 0.5.
B.Use an external library to convert text to JSON.
C.Ask the user to request JSON.
D.Define the JSON schema in the system prompt instructions.
AnswerD

Explicit instructions on formatting guide the model to follow the required structure.

Why this answer

Using structured outputs or defining the schema in the system prompt is the standard way to enforce output formats in LLMs.

38
MCQhard

You are implementing an agentic workflow where an agent needs to search a vector database, inspect the retrieved results, and if the results are insufficient, reformulate the query and search again before answering. What agent design pattern are you implementing?

A.Static zero-shot generation pattern
B.Direct REST API proxy pattern
C.Database indexing batch pattern
D.Self-Correction / Reflection pattern
AnswerD

The reflection pattern enables agents to evaluate their work and iteratively refine their approach.

Why this answer

Self-Correction / Reflection pattern allows agents to evaluate their intermediate outputs, detect gaps or failures, and take corrective action (like query re-writing) before finalizing their response.

39
Multi-Selectmedium

When designing prompt engineering strategies for complex reasoning tasks in Azure OpenAI, which TWO techniques help reduce hallucinations and improve output reliability? (Choose TWO)

Select 2 answers
A.Few-shot prompting providing high-quality input-output demonstration examples
B.Chain-of-thought (CoT) prompting instructing step-by-step reasoning
C.Disabling system prompts entirely to maximize model freedom
D.Setting the top_p parameter to 0.0 while setting temperature to 2.0
E.Encoding all prompt variables in hexadecimal format
AnswersA, B

Demonstration examples set clear expectations for format, tone, and accuracy.

Why this answer

Few-shot prompting with clear examples and chain-of-thought reasoning significantly improve complex task accuracy and reduce hallucinations.

40
MCQmedium

You are developing a multi-agent orchestration solution using Azure AI Agent Service and want to ensure that user inputs are safely evaluated before they are passed to the model. Which component should you configure to inspect and filter incoming prompts for malicious content and restricted topics?

A.Azure Key Vault access policies
B.Azure AI Content Safety integrated into the model gateway
C.Azure Cognitive Search semantic ranker
D.Azure API Management rate limiting policy
AnswerB

Azure AI Content Safety provides prompt shielding and text moderation directly within the model gateway or agent pipeline.

Why this answer

Azure AI Content Safety is integrated into Azure AI Foundry and agent services to inspect prompts and completions for safety violations, jailbreak attempts, and restricted topics before they reach the model.

41
Multi-Selectmedium

When configuring role-based access control (RBAC) in Azure AI Foundry and Azure OpenAI, which TWO built-in Azure roles are commonly assigned to developers and services? (Choose TWO)

Select 2 answers
A.Storage Blob Data Owner
B.Cognitive Services OpenAI User
C.Virtual Machine Contributor
D.Network Contributor
E.Azure AI Developer
AnswersB, E

Cognitive Services OpenAI User allows principals to invoke model deployments.

Why this answer

Cognitive Services OpenAI User and Azure AI Developer are standard built-in RBAC roles used to secure access to Azure AI resources.

42
MCQhard

You are tuning the prompt for a generative AI application in Azure AI Foundry. The model frequently hallucinates when asked complex multi-part questions. You decide to use chain-of-thought (CoT) prompting. How should you structure the prompt to implement CoT effectively?

A.Set the model seed parameter to a fixed integer value for reproducibility
B.Reduce the maximum completion token limit to 150 tokens
C.Instruct the model to think step-by-step and show its intermediate reasoning before providing the final answer
D.Instruct the model to output its response exclusively in JSON format with strict schema validation
AnswerC

Asking the model to break down its reasoning step-by-step significantly improves accuracy on complex tasks.

Why this answer

Chain-of-thought prompting involves guiding the model to articulate intermediate reasoning steps before arriving at the final conclusion.

43
MCQeasy

You want to monitor the cost and latency of your agentic application in production. Which service should you integrate with your Azure AI Foundry project?

A.Azure OpenAI Studio.
B.Azure AI Search.
C.Azure Application Insights.
D.Azure AI Content Safety.
AnswerC

Application Insights provides the telemetry required for monitoring performance and costs.

Why this answer

Azure Monitor combined with Application Insights is the standard for tracking telemetry in Azure AI services.

44
MCQhard

You are designing a multi-agent solution in Azure AI Foundry where agents collaborate asynchronously. One agent produces an intermediate JSON payload that must be strictly validated before being consumed by the next agent. What feature should you implement?

A.Model temperature set to 1.0
B.Azure API Management XML transformation policy
C.Structured Outputs with strict JSON Schema enforcement
D.Azure AI Content Safety hate speech detection
AnswerC

Structured Outputs guarantee that the model response conforms 100% to the provided JSON Schema.

Why this answer

Structured Outputs (JSON mode with strict schema enforcement) ensures that model completions conform precisely to a defined JSON Schema.

45
MCQmedium

You are developing a RAG solution using Azure AI Search. Users are searching using domain-specific acronyms that are not well-represented in standard embedding models, resulting in poor retrieval scores. What feature should you enable in Azure AI Search to improve keyword matching for exact acronyms?

A.Increasing the embedding dimension size to 3072
B.Enabling Azure AI Content Safety filters
C.Setting the semantic ranker threshold to zero
D.Hybrid search combining vector search and full-text BM25 search
AnswerD

Hybrid search merges vector embeddings with keyword BM25 scoring, capturing both semantic intent and exact keyword matches like acronyms.

Why this answer

Hybrid search combines vector search (for semantic meaning) with full-text keyword search (BM25 algorithm), ensuring exact acronyms and part numbers are matched reliably.

46
MCQmedium

You are building an agent in Azure AI Foundry that needs to retrieve information from a company SharePoint site. Which component should you implement to ground the agent?

A.Blob Storage integration
B.Azure AI Search with a SharePoint connector
C.Direct REST API call to SharePoint
D.Microsoft Graph Data Connect directly to the model
AnswerB

The SharePoint connector enables indexing for retrieval.

Why this answer

Azure AI Search with a SharePoint indexer is the standard way to ground agents in external document stores.

47
Multi-Selectmedium

You are evaluating generative AI model outputs in Azure AI Foundry. Which TWO automated evaluation metrics assess the quality and correctness of RAG responses against source data? (Choose TWO)

Select 2 answers
A.Groundedness (measuring adherence to source context)
B.Virtual network gateway throughput
C.Storage account transaction count per hour
D.CPU utilization percentage of the Azure App Service plan
E.Relevance (measuring how well the response addresses the user query)
AnswersA, E

Groundedness evaluates whether model answers are supported by retrieved context.

Why this answer

Groundedness and relevance are core Azure AI Foundry automated evaluation metrics used to assess RAG application quality.

48
MCQeasy

You are designing a generative AI application in Azure AI Foundry and want to categorize user queries into predefined intent classes before routing them to specific agents. Which prompt engineering technique should you apply?

A.Zero-shot random generation
B.Enabling JSON output mode without schema definition
C.Few-shot prompting with labeled classification examples
D.Increasing model temperature to 1.5
AnswerC

Providing input-output classification examples in the prompt teaches the model how to categorize incoming queries.

Why this answer

Few-shot classification prompting provides examples of inputs paired with their corresponding categories to guide the model's classification accuracy.

49
MCQeasy

When engineering prompts for Azure OpenAI models, you want to guide the model's output format and persona effectively. Which practice represents the most reliable prompt engineering technique?

A.Embedding all context and instructions exclusively inside user messages without utilizing system messages.
B.Providing clear role definition, explicit formatting instructions, and few-shot examples within the system message.
C.Using overly complex, ambiguous phrasing to encourage the model to explore diverse latent spaces.
D.Relying entirely on zero-shot inference without system messages to maximize model creativity.
AnswerB

Structuring prompts with clear system instructions and few-shot examples significantly improves adherence to desired formats and behaviors.

Why this answer

Providing clear instructions, role definition, and formatting constraints along with few-shot examples yields the most consistent and accurate model behavior.

50
MCQmedium

You are configuring an Azure AI Search index for use with Azure OpenAI On Your Data. The index contains technical documentation with complex nested tables. Which search configuration will yield the best retrieval performance for semantic queries?

A.Configure a pure OData filter index without vector embeddings.
B.Enable semantic search alongside vector and keyword search (hybrid search).
C.Use simple query syntax with exact phrase matching only.
D.Disable all vector fields and rely exclusively on traditional Lucene scoring.
AnswerB

Hybrid search combined with semantic ranking provides the highest retrieval accuracy for complex enterprise documents.

Why this answer

Enabling semantic search on the Azure AI Search index uses deep learning models to understand the intent and meaning of natural language queries, especially over complex document structures.

51
MCQeasy

When evaluating an AI agent, what does the 'Coherence' metric measure?

A.The cost of the API call.
B.The logical flow and clarity of the generated text.
C.The number of sources cited.
D.The speed of the response.
AnswerB

Coherence refers to the quality of the narrative structure.

Why this answer

Coherence measures how well the generated text flows and connects logical ideas together.

52
Multi-Selectmedium

You are designing a RAG solution using Azure AI Search and Azure OpenAI. Which TWO factors significantly influence the effectiveness of chunking documents during the ingestion phase? (Choose TWO)

Select 2 answers
A.Chunk size measured in tokens or characters
B.Azure OpenAI model temperature setting
C.Chunk overlap percentage between consecutive segments
D.Azure API Management timeout duration
E.Virtual network subnet IP address range
AnswersA, C

Chunk size determines how much specific detail versus broad context is captured in each vector.

Why this answer

Chunk size (token length) and chunk overlap are critical parameters that balance retaining context while ensuring chunks fit within embedding model token limits.

53
Multi-Selecthard

When configuring vector embeddings and search indexes in Azure AI Search for RAG, which THREE factors directly impact vector search performance and recall accuracy? (Choose THREE)

Select 3 answers
A.Embedding model dimension size and consistency with source generation
B.Azure App Service CPU architecture (x64 vs ARM)
C.HNSW (Hierarchical Navigable Small World) algorithm parameters such as m and efSearch
D.Choice of vector similarity metric (Cosine, Dot Product, or Euclidean)
E.Configuring Azure Front Door DNS CNAME records
AnswersA, C, D

Query and document vectors must use the exact same embedding model and dimensionality.

Why this answer

Embedding model dimensionality, vector similarity metric (e.g., cosine, dot product), and HNSW algorithm index parameters impact search performance and recall.

54
MCQeasy

You are configuring a connection between Azure AI Foundry and an Azure OpenAI resource. Which credential type is recommended for secure, keyless authentication between services in Azure?

A.Account primary access key stored in application configuration
B.Hardcoded personal access tokens (PAT)
C.Anonymous public access with IP whitelisting
D.Managed Identity with Azure RBAC
AnswerD

Managed identity eliminates hardcoded API keys and is the security best practice across Azure AI services.

Why this answer

Managed identities (system-assigned or user-assigned) provide secure, keyless authentication between Azure resources without storing credentials in code or configuration files.

55
MCQmedium

You are configuring model fine-tuning for an Azure OpenAI model in Azure AI Foundry. You have prepared a JSONL training dataset. Which evaluation approach is recommended to verify that fine-tuning successfully improved model performance without causing catastrophic forgetting?

A.Inspect Azure Key Vault access audit logs
B.Review Azure Cost Management invoices for training hours
C.Run an evaluation dataset comparing baseline and fine-tuned models using Azure AI Foundry evaluation metrics
D.Check Azure Monitor CPU utilization percentages of the hosting cluster
AnswerC

Comparing baseline and fine-tuned models on a holdout test dataset validates improvements and detects regressions.

Why this answer

Evaluating the fine-tuned model against a holdout test dataset using automated metrics (like GPT-4 as a judge) compares baseline vs. fine-tuned performance.

56
Multi-Selectmedium

Which THREE settings in the Azure AI Foundry playground can directly affect the 'creativity' of an agent's response?

Select 3 answers
A.Temperature.
B.The search index threshold.
C.Top-P (Nucleus sampling).
D.Frequency Penalty.
E.The system prompt length.
AnswersA, C, D

Temperature controls randomness.

Why this answer

Temperature, Top-P, and Frequency Penalty are the primary hyperparameters for controlling response output style.

57
MCQeasy

You are configuring an agent in Azure AI Foundry that needs to perform mathematical calculations accurately. Large language models often make arithmetic errors. How should you equip the agent to handle calculations reliably?

A.Provide a code interpreter tool so the model can write and execute Python code for calculations.
B.Set the model temperature to 0.0 and ask it to guess the result.
C.Increase the presence penalty to force new tokens.
D.Instruct the model in the system prompt to double-check its arithmetic mentally.
AnswerA

Executing Python code guarantees accurate mathematical computation.

Why this answer

Giving the agent a code interpreter or calculator tool allows it to execute calculations deterministically rather than relying on internal probabilistic math.

58
MCQmedium

A user asks a question that triggers a 'Blocked' response from Azure AI Content Safety, even though the query seems harmless. What is the best step to investigate this?

A.Change the system prompt to ignore safety.
B.Increase the model temperature.
C.Disable Content Safety for the deployment.
D.Check the Content Safety logs in the Azure AI Foundry portal.
AnswerD

Logs provide the justification for why a specific policy was triggered.

Why this answer

Viewing the logs in the Content Safety dashboard identifies which specific policy was triggered.

59
Multi-Selectmedium

You are monitoring an Azure OpenAI model deployed in Azure AI Foundry. Which TWO Azure diagnostic metrics or logs should you analyze to track operational health and performance? (Choose TWO)

Select 2 answers
A.Request duration (latency) in milliseconds
B.Azure ExpressRoute circuit bandwidth saturation
C.Prompt tokens and completion tokens consumed per request
D.Azure SQL Database deadlock frequency
E.Virtual machine disk IOPS consumption
AnswersA, C

Latency metrics help monitor model responsiveness and performance SLAs.

Why this answer

Request duration (latency) and token counts (prompt and completion tokens) are key operational metrics tracked in diagnostic logs.

60
Multi-Selectmedium

Which TWO of the following are valid ways to provide context to an agent in Prompt Flow?

Select 2 answers
A.Deploying the model in a different region
B.Passing conversation history as part of the messages list
C.Injecting retrieved documents into the prompt template
D.Increasing the model output length
E.Training a new model on the context
AnswersB, C

History provides multi-turn context.

Why this answer

Static prompt text and dynamic vector store retrieval are standard methods.

61
Multi-Selecthard

You are building an advanced agentic solution in Azure AI Foundry that integrates with external line-of-business systems. Which THREE architectural patterns or features should you incorporate to ensure robustness and safety? (Choose THREE)

Select 3 answers
A.Human-in-the-loop review for high-impact tool actions
B.Allowing the agent to execute any bash command directly on production servers without validation
C.Disabling all logging and monitoring to maximize execution speed
D.Exponential backoff and jitter retry logic for handling API rate limits (HTTP 429)
E.Structured Outputs with strict JSON Schema validation for tool payloads
AnswersA, D, E

Human approval prevents unintended data modifications or destructive API calls.

Why this answer

Rate limiting, human-in-the-loop approvals, and robust exception handling with retries are essential for robust agentic integrations.

62
Multi-Selecthard

You are optimizing an agentic workflow in Azure AI Foundry. The agent needs to solve complex reasoning problems by breaking them down into distinct sub-tasks, executing them iteratively, and reflecting on intermediate results. Which THREE architectural frameworks or patterns support this behavior? (Choose three.)

Select 3 answers
A.Reflection pattern where the agent critiques its own intermediate outputs and refines them.
B.ReAct (Reason and Act) pattern combining thought generation with tool execution steps.
C.Static hardcoded IF-ELSE decision trees without model inference.
D.Single-turn stateless completion calls with temperature set to zero.
E.Plan-and-Solve prompt strategy where the agent creates a complete execution plan before stepping through tasks.
AnswersA, B, E

Self-reflection allows agents to catch errors and improve output quality iteratively.

Why this answer

Chain-of-thought, ReAct (Reason+Act), and plan-and-solve are foundational agentic reasoning patterns.

63
Multi-Selecthard

You are deploying an enterprise RAG application in Azure AI Foundry. You need to ensure data security and compliance across all components. Which THREE security practices should you implement? (Choose THREE)

Select 3 answers
A.Use Managed Identities with Azure RBAC for service-to-service authentication
B.Grant anonymous public network access on all AI service firewalls
C.Configure Azure Private Endpoints for Azure OpenAI and Azure AI Search
D.Store API keys in plain text configuration files committed to public GitHub repositories
E.Implement Customer-Managed Keys (CMK) via Azure Key Vault for data encryption at rest
AnswersA, C, E

Managed identities eliminate hardcoded credentials and enforce role-based access control.

Why this answer

Using private endpoints, managed identities, and customer-managed keys are foundational enterprise security practices for Azure AI and search services.

64
MCQmedium

You are building a RAG solution and observe that the model retrieves the correct documents but fails to use the information accurately. What is the most effective approach to improve performance?

A.Refine the system prompt instructions
B.Increase the vector index size
C.Use a smaller base model
D.Disable streaming response
AnswerA

Instructions guide the model on how to use context.

Why this answer

Iterative prompt engineering and improving the system message instructions are key to improving RAG performance.

65
Multi-Selecthard

Which TWO strategies are recommended to prevent 'Model Over-Reliance' or 'Automation Bias' in agents?

Select 2 answers
A.Include a clear disclaimer that the agent is an AI and may provide incorrect information.
B.Disable the ability for the agent to say 'I don't know'.
C.Provide citations and links back to original source documents.
D.Remove all human oversight from the process.
E.Use the highest available model temperature.
AnswersA, C

Transparency reduces user over-reliance.

Why this answer

Ensuring the user is informed and has a way to verify information prevents over-reliance on the agent's output.

66
Multi-Selectmedium

When designing an evaluation pipeline in Azure AI Foundry for generative AI applications, which TWO metrics are commonly used to assess safety and risk? (Choose TWO)

Select 2 answers
A.Database transaction log growth rate
B.Storage account geo-replication latency
C.Sexual content and violence safety metrics
D.Network bandwidth throughput in megabits per second
E.Hate speech and unfairness detection
AnswersC, E

Safety metrics measure the presence of harmful or explicit content in completions.

Why this answer

Hate speech, sexual content, violence, and self-harm detection metrics assess safety and risk in Azure AI Foundry evaluation pipelines.

67
MCQmedium

You are building an agent in Azure AI Foundry that requires access to a private internal database. Which component should you configure to ensure the agent retrieves data securely without exposing the database endpoint publicly?

A.Azure Private Link and Managed Virtual Network
B.Public IP allowlisting
C.Entra ID Application Proxy
D.Shared Access Signatures (SAS)
AnswerA

Managed Virtual Networks and Private Endpoints provide secure, private connectivity.

Why this answer

Managed Virtual Networks and Private Endpoints in Azure AI Foundry ensure that traffic between your agent and data sources remains within the Microsoft backbone network.

68
MCQmedium

You want to add a new tool to an agent. Which step is required to link the tool to the model?

A.Hardcode the tool logic in the system prompt.
B.Add the tool code to the global Python environment.
C.Register the tool in the agent configuration within Azure AI Foundry.
D.Update the content safety policy.
AnswerC

Tools must be registered and mapped for the model to recognize their availability.

Why this answer

The tool must be defined as an 'Available Tool' in the agent's configuration so the model knows it can call it.

69
Multi-Selecthard

Which THREE features are provided by the Azure AI Foundry evaluation service?

Select 3 answers
A.Visualization of evaluation results
B.Built-in metrics for RAG (e.g., coherence, fluency)
C.Automated model fine-tuning based on failures
D.Custom evaluation code integration
E.Automatic user interface generation
AnswersA, B, D

Results are visualized in the portal.

Why this answer

Built-in metrics, custom evaluation logic, and dataset visualization are key features.

70
MCQmedium

You are developing a generative AI application that uses Azure OpenAI. You want to track token consumption per user department for chargeback purposes. Which feature should you enable and utilize?

A.Azure Cost Management budgeting alerts only
B.Azure AI Content Safety severity reports
C.Azure Advisor security recommendations
D.Azure Monitor metrics and diagnostic logs with custom metadata tags
AnswerD

Diagnostic settings send detailed request logs (including token counts) to Log Analytics where queries can aggregate consumption by tags.

Why this answer

Enabling Azure OpenAI usage metrics combined with custom headers or Microsoft Entra ID claims allows tracking and auditing token consumption by department.

71
Multi-Selectmedium

Which THREE types of tools can be integrated into an Azure AI Agent?

Select 3 answers
A.Azure AI Search indexes.
B.Custom Python functions.
C.Hard drive file systems (local).
D.External REST APIs.
E.Operating system kernel drivers.
AnswersA, B, D

Search indexes are standard RAG tools.

Why this answer

Agents can integrate with search indexes, custom Python functions, and external REST APIs.

72
MCQeasy

You are creating a custom prompt template in Azure AI Foundry. You want to insert the user's input safely while preventing prompt injection vulnerabilities. How should you design the template structure?

A.Remove all spaces and punctuation from the user input
B.Concatenate user input directly into the middle of the system prompt string
C.Use explicit XML tags or markdown delimiters to separate system instructions from user inputs
D.Encode all user inputs using Base64 before sending to the model
AnswerC

Delimiters and XML tags clearly demarcate untrusted user input from system instructions.

Why this answer

Separating system instructions from user input using clear delimiters (such as markdown blockquotes or XML tags like <user_input>) helps the model distinguish instructions from data.

73
MCQeasy

You are building a customer service agent in Azure AI Foundry. The agent needs to call an external inventory management REST API when customers ask about stock levels. Which feature of Azure AI Agent Service should you implement to allow the agent to interact with this external API?

A.Function calling (Tools)
B.Prompt shields
C.Azure AI Content Safety filters
D.Azure Cognitive Search index
AnswerA

Function calling enables the model to output JSON arguments that your application code uses to invoke external APIs.

Why this answer

Function calling (or tool definitions) allows agents to invoke external APIs and custom functions by generating structured JSON payloads based on user intents.

74
Multi-Selectmedium

When implementing grounding in a RAG application using Azure AI Foundry, which TWO practices help minimize hallucinations in model outputs? (Choose TWO)

Select 2 answers
A.Adding explicit system prompt instructions telling the model to refuse answers not supported by context
B.Including source document chunk citations in the prompt context alongside the text
C.Disabling content safety filters to allow unrestricted generation
D.Setting the model temperature parameter to 2.0 to maximize creativity
E.Removing all source context documents from the prompt entirely
AnswersA, B

Negative constraints in system prompts prevent the model from making up facts.

Why this answer

Instructing the model to rely only on context and providing precise retrieved snippets with source citations minimize hallucinations.

75
MCQhard

An agent is performing poorly on multi-hop reasoning tasks. What architectural pattern should you implement to improve performance?

A.Increase the temperature to 1.0.
B.Switch to a smaller model to increase speed.
C.Decrease the max_tokens parameter.
D.Use a Chain-of-Thought prompting strategy in the agent's system prompt.
AnswerD

CoT is specifically designed to improve multi-hop reasoning.

Why this answer

Chain-of-thought prompting forces the model to break down complex queries into intermediate logical steps.

Page 1 of 3 · 167 questions totalNext →

Ready to test yourself?

Try a timed practice session using only Implement Generative AI And Agentic Solutions questions.