All Microsoft exams

Free AI-500 practice test: 30 questions with answers

30 original questions for Designing and Implementing Multi-Agent AI Solutions, drawn from every topic area. Answer each one to see whether you got it right and why. No sign-up.

Free questions
30
Full bank
100 questions

AI-500 exam guide: topics, cost and format

All 30 AI-500 questions with answers

The same questions as the test above, grouped by exam topic. Open any question to see the answer and explanation.

Develop multi-agent solutions in Azure (8 questions)

  1. Question 1

    An agent's answers quietly degrade over several weeks after a provider updates the underlying model. The team wants automatic detection of quality regression. Which practice is most appropriate?

    1. AScheduled automated evaluations on a fixed test set with alerts when scores fall below a threshold
    2. BTurning off scheduled evaluations and dashboards to avoid alert noise during rollouts
    3. CReviewing user complaints once they reach the support desk ticket queue by hand
    4. DRetraining the agent every hour on fresh production logs without a regression test suite
    Show answer and explanation
    Correct answer: A

    Scheduled evaluations on a fixed test set detect quality changes early, and threshold alerts turn the signal into action. Waiting for complaints, disabling evaluation and retraining without tests do not detect regression reliably.

  2. Question 2

    A retrieval-augmented agent returns answers that are close in topic but miss the exact policy clause the user needs. The team suspects the chunking strategy. Which change is most likely to improve retrieval precision?

    1. AChunk documents by logical sections such as clauses, with overlap and metadata for filtering
    2. BRemove document metadata such as clause identifiers, effective dates and owner tags so the index stays smaller
    3. CSplit every sentence into a separate chunk with no surrounding context or clause reference and index it alone
    4. DUse one chunk per entire document regardless of length, with the full text embedded as a single vector per file
    Show answer and explanation
    Correct answer: A

    Section-aware chunks with overlap and metadata let retrieval match the precise clause and filter by document attributes. Whole-document chunks dilute relevance, sentence-level chunks lose context, and removing metadata reduces filtering precision.

  3. Question 3

    In a long multi-turn session, an agent gradually forgets the customer's stated constraints, and the summaries it writes drift away from the facts. Which design addresses this summary drift?

    1. ADrop the summaries entirely and rely on the model's recall of the full conversation history across the session
    2. BKeep key facts in structured memory and validate summaries against source records before reuse
    3. CAsk the model to rewrite its summary each time using just its own previous summary as the sole input across turns
    4. DIncrease the sampling temperature and top-p for more creative, varied summaries of each turn in the session
    Show answer and explanation
    Correct answer: B

    Structured facts with validation against sources prevent each rewrite from drifting, because the stored records remain the reference. Relying on recall, summarizing only a summary, and raising temperature all increase drift.

  4. Question 4

    A tool call to an external pricing API sometimes returns malformed data. The solution must not pass invalid values to downstream agents. Which mechanism addresses this?

    1. AForward raw responses unchanged to downstream agents since the pricing API has a reliable uptime record
    2. BAsk the downstream agent to infer the correct values from the partial, unvalidated payload it receives
    3. CValidate tool results against a schema and apply a fallback or retry policy before use
    4. DTurn off the pricing tool entirely and use cached estimates from last quarter
    Show answer and explanation
    Correct answer: C

    Schema validation catches malformed results, and retry or fallback policies keep the workflow safe. Forwarding raw data propagates errors, disabling the tool removes a needed capability, and guessing produces unreliable outputs.

  5. Question 5

    A company exposes internal capabilities to several agents through the Model Context Protocol. Which Azure service is commonly used to host an MCP server with managed scaling and authentication in front of existing APIs?

    1. AAzure Blob Storage static hosting with plain static files and no server-side compute
    2. BAzure Table Storage key-value entities with no compute layer to run the MCP server logic
    3. CA local laptop running a script on a developer's machine with no authentication or TLS
    4. DAzure API Management in front of an Azure Functions or Logic Apps backend
    Show answer and explanation
    Correct answer: D

    API Management can front MCP servers implemented on Azure Functions or Logic Apps, adding authentication, throttling and monitoring. Static storage has no compute, and an unauthenticated laptop script is neither managed nor secure.

  6. Question 6

    A hub-and-spoke design sends every task through a central orchestrator, which has become a bottleneck under load. Which change best improves throughput while keeping control?

    1. ASerialize every task through a single durable queue with one worker that runs each step in strict FIFO order
    2. BRemove the orchestrator so agents act independently without shared coordination or state
    3. CPartition the orchestrator's work by task type and run independent spokes in parallel with rate limits
    4. DAdd a second orchestrator instance that receives the same tasks with no coordination
    Show answer and explanation
    Correct answer: C

    Partitioning by task type and running independent work in parallel removes the bottleneck while rate limits protect shared services. Removing coordination loses control, duplicate orchestrators create conflicts, and a single serial worker keeps the bottleneck.

  7. Question 7

    A solution must let an external agent built by another vendor collaborate with the company's agents securely, passing tasks and results between them. Which protocol is designed for agent-to-agent interoperability?

    1. ASerial port communication
    2. BPlain SMTP without authentication
    3. CFTP with anonymous login
    4. DAgent2Agent (A2A) protocol
    Show answer and explanation
    Correct answer: D

    A2A is designed for agents to discover and communicate with each other across vendors, and it can be secured with standard authentication. The other protocols are not agent interoperability standards.

  8. Question 8

    Which two practices prevent a multi-agent workflow from repeating expensive work or running without bound? (Choose two.)

    1. ALet agents create new agents without any limit
    2. BRetry failing calls indefinitely until they succeed
    3. CCap the number of iterations and tool calls in each control loop
    4. DRemove all timeouts so that long tasks always finish
    5. EBatch similar requests and apply rate limits to shared services
    Show answer and explanation
    Correct answer: C, E

    Iteration and tool-call caps stop unbounded loops, and batching with rate limits reduces repeated work and protects shared services. Unlimited agent creation, indefinite retries and removed timeouts all create runaway cost or stalls.

Secure, govern, and deploy multi-agent solutions (8 questions)

  1. Question 9

    An agent needs to call a backend API on behalf of the signed-in user, without storing the user's password. Which authentication flow is designed for this?

    1. ASharing the user's password with the agent at setup
    2. BAnonymous calls with the API key in the URL
    3. CBasic authentication with a shared administrator account
    4. DOAuth 2.0 on-behalf-of flow
    Show answer and explanation
    Correct answer: D

    The on-behalf-of flow exchanges the user's token for a token scoped to the downstream API, so the user's password is never stored. Shared passwords, URL-embedded keys and shared administrator accounts each break these requirements.

  2. Question 10

    Application secrets for agents, including API keys and certificates, must be rotated regularly without redeploying the agents. Which approach fits?

    1. AStore secrets in a shared document with edit access for the team and its vendors
    2. BStore secrets in Azure Key Vault and reference them with managed identity, with scheduled rotation
    3. CEmbed the secrets in the agent's container image at build time for every release
    4. DHard-code the secrets in the orchestration prompt template so tool calls receive them
    Show answer and explanation
    Correct answer: B

    Key Vault with managed identity provides centralized secrets, scheduled rotation and access control without redeploying images. Embedded, shared or prompt-based secrets cannot be rotated safely.

  3. Question 11

    A guardrail must stop an agent from returning personal data that appears in a tool response before the answer reaches the user. Where should this check be applied?

    1. AOn the tool response and on the final output, as separate guardrail interventions
    2. BIn the monthly audit report that compliance staff reviews after each release cycle for personal data
    3. CNowhere in the chain, because the model's output is trusted by default
    4. DOn the user's original question and the retrieval query built from it before tool calls run
    Show answer and explanation
    Correct answer: A

    A multi-point guardrail strategy checks tool responses and final outputs, so personal data is caught on both paths before it reaches the user. Checking only the question, trusting the model and auditing monthly leave the data exposed.

  4. Question 12

    A release strategy must expose a new agent version to 5 percent of users first, watch quality metrics, and then increase exposure gradually. Which release method matches this?

    1. ACanary release with staged traffic increases and automated rollback on metric breaches
    2. BBig-bang release of the new version to every user at once with no staging
    3. CCopying the package files to the production environment by hand over SSH
    4. DReleasing on Friday evenings during peak hours without monitoring dashboards
    Show answer and explanation
    Correct answer: A

    A canary release sends a small share of traffic to the new version and increases it as metrics stay healthy, with rollback if they degrade. A big-bang release gives no early warning, and manual or unmonitored releases remove the safeguard.

  5. Question 13

    Which two controls help meet a regulated requirement for protecting agent data? (Choose two.)

    1. AKeeping conversation data in a personal folder on each developer machine
    2. BEncryption at rest with customer-managed keys held in Azure Key Vault
    3. CPublishing audit logs publicly for transparency
    4. DData residency settings combined with audit logs of agent actions
    5. EDeleting audit logs after 24 hours by default
    Show answer and explanation
    Correct answer: B, D

    Data residency and audit logs satisfy location and accountability requirements, and customer-managed keys give control over encryption at rest. Personal folders, public logs and short audit retention all fail common regulatory expectations.

  6. Question 14

    A security team wants to test whether an agent can be tricked into revealing restricted data through crafted inputs before release. Which Foundry capability supports this shift-left testing?

    1. AThe shared team calendar for release meetings
    2. BThe AI Red Teaming Agent for automated adversarial testing
    3. CA printed copy of the agent security policy binder
    4. DThe billing dashboard for monthly token usage charts
    Show answer and explanation
    Correct answer: B

    The AI Red Teaming Agent runs automated adversarial tests that probe for unsafe behaviour before release, which is shift-left security. Billing charts, calendars and printed policies do not test the agent.

  7. Question 15

    A company's custom guardrail must block any agent response that quotes internal pricing before the response is released, even though the general safety filter allows it. Which guardrail type is needed?

    1. AA general harm-category filter for violent and sexual content
    2. BA custom guardrail for the domain-specific constraint, applied to outputs
    3. CSetting the temperature parameter to near zero to tighten sampling
    4. DA longer system prompt that instructs the model to be careful about internal figures
    Show answer and explanation
    Correct answer: B

    A custom guardrail encodes a domain-specific rule such as no internal pricing and applies it to outputs. General filters target other categories, temperature changes randomness, and asking politely in the prompt is not enforcement.

  8. Question 16

    A new version of an agent must be tested before any production traffic is sent to it. Which deployment environment sequence is the common DTAP practice?

    1. ADevelopment, test, acceptance, then production
    2. BAcceptance only, with no test environment
    3. CProduction first, then test later
    4. DDevelopment directly to production with a manual check
    Show answer and explanation
    Correct answer: A

    DTAP moves releases through development, test, acceptance and production, so each stage catches different problems before users are affected. Skipping stages or going straight to production removes those checks.

Evaluate, optimize, and monitor multi-agent solutions (7 questions)

  1. Question 17

    A team wants to evaluate open-ended answers from its agent at scale, where exact-match scoring is not useful. Which evaluation method is commonly used?

    1. ALLM-as-a-judge scoring against a rubric, checked by human spot reviews
    2. BCounting the number of characters in each answer after trimming
    3. CChecking whether the answer contains the word the as a keyword match across responses
    4. DMeasuring the server's CPU and memory usage during inference batches per node
    Show answer and explanation
    Correct answer: A

    A judge model scores answers against a rubric, and human spot checks calibrate the judge. Character counts, single-word checks and CPU metrics do not measure answer quality.

  2. Question 18

    An agent's token usage has doubled after a change, and the bill is rising quickly. Which control is most direct for keeping token usage under control?

    1. ARemove tracing and token-count telemetry so that costs are hidden from the finance dashboard
    2. BDouble the context window for every request and keep prior tool outputs verbatim in full
    3. CSet token limits per request and loop controls that stop repeated tool calls
    4. DAsk the agent to repeat its full step-by-step reasoning in every message to the user
    Show answer and explanation
    Correct answer: C

    Per-request token limits and loop controls stop runaway generation and repeated tool calls that inflate usage. Hiding traces, enlarging context windows and asking for repeated reasoning all increase token consumption.

  3. Question 19

    A multi-agent workflow fails intermittently, and the operations team cannot tell which agent caused the failure. Which observability practice solves this?

    1. ASeparate log files per agent and per tool with no shared identifiers or timestamp sync across hosts
    2. BDistributed trace correlation with a shared correlation ID across all agents and tools
    3. CSampling successful requests at a low rate to reduce telemetry storage cost
    4. DRestarting the whole multi-agent system, including queues and caches, whenever a failure occurs
    Show answer and explanation
    Correct answer: B

    A shared correlation ID across agents and tools lets operators follow one request through the workflow and find the failing step. Unlinked logs, blind restarts and sampling only successes hide the failing component.

  4. Question 20

    A business unit asks how much each product team spends on agent usage so that costs can be charged back. Which approach supports this?

    1. AEstimate usage from the number of employees in each department and seat allocation
    2. BShare one API key across every team and split the monthly bill equally by headcount
    3. CTag usage by team and workload, then report cost and quota consumption per tag
    4. DAsk each team to report spending from memory at each monthly review
    Show answer and explanation
    Correct answer: C

    Tagging usage by team and workload allows accurate cost reports and chargebacks based on consumption. Shared keys and equal splits or estimates do not reflect real usage.

  5. Question 21

    Which two signals help diagnose entity continuity problems caused by context window limits? (Choose two.)

    1. ATracking whether named entities disappear from later turns of a session
    2. BIncreasing the number of tools available to the agent
    3. CCounting the emoji used in each response
    4. DKeeping every turn verbatim without any summary or retrieval
    5. EMeasuring how often each entity is restated correctly in the answers
    Show answer and explanation
    Correct answer: A, E

    Entity disappearance across turns and restatement accuracy directly show whether the agent keeps track of who or what is being discussed. More tools, emoji counts and unmanaged verbatim history do not measure entity continuity.

  6. Question 22

    A new agent version improves answer quality in tests but raises average latency by 40 percent. The product team needs to decide whether to release it. Which approach gives the clearest basis for the decision?

    1. AEvaluate quality and latency against defined service-level targets on representative traffic before deciding
    2. BMeasure latency on the developer's laptop using a single warm local test run of the agent
    3. CDecide by counting the commits in the release branch since the last tag, the number of open pull requests, and the merge frequency
    4. DRelease it because the quality test suite passed, and treat the latency increase as acceptable
    Show answer and explanation
    Correct answer: A

    Testing quality and latency together against service-level targets on representative traffic shows whether the trade-off is acceptable. Ignoring latency, laptop-only measurements and commit counts do not inform the decision.

  7. Question 23

    A team must improve the throughput of a batch job that runs thousands of independent agent tasks, but the model endpoint returns rate-limit errors. Which change helps most?

    1. ARun tasks in parallel with a concurrency limit and exponential backoff on throttling responses
    2. BSend every task at once and retry calls immediately, without a concurrency cap
    3. CRun tasks one at a time through a single serial worker to avoid throttling, accepting the lower overall throughput
    4. DDisable retries for throttled calls so that failed tasks are silently dropped
    Show answer and explanation
    Correct answer: A

    Bounded parallelism with exponential backoff raises throughput while respecting rate limits. Unbounded bursts cause more throttling, serial execution is slow, and dropping failed tasks loses work.

Architect multi-agent solutions (7 questions)

  1. Question 24

    A claims-processing system must route each claim through intake, fraud review and payout agents. Each step depends on the previous step's approved output, and no two steps can run at once. Which orchestration pattern fits best?

    1. AParallel fan-out to every agent at once with a majority vote on output
    2. BSequential orchestration with a handoff of the approved output between agents
    3. CPeer-to-peer broadcast where each agent chooses its own execution order
    4. DHub-and-spoke dispatch from a central coordinator with no shared state
    Show answer and explanation
    Correct answer: B

    Sequential orchestration passes each approved output to the next agent, which matches dependent, non-concurrent steps. Parallel fan-out would run dependent steps before inputs exist, peer-to-peer broadcast gives no fixed order, and hub-and-spoke without shared state loses the handoff context.

  2. Question 25

    An architect is deciding how much autonomy an agent that issues refunds should have. Which design best follows human-in-the-loop principles for high-value actions?

    1. ALet the agent approve refunds of every amount without review because the model is accurate
    2. BGive the agent unlimited refund authority to avoid delays in the queue
    3. CRequire human approval above a defined refund threshold and log each decision
    4. DRemove audit logging of tool calls and refund decisions so the agent can act without delay
    Show answer and explanation
    Correct answer: C

    A threshold-based approval gate keeps low-risk refunds fast while routing high-value actions to a person, and logging provides accountability. Unlimited autonomy and removed logging each remove control over consequential actions.

  3. Question 26

    Each agent in a multi-agent system must access only the tools it needs, and the security team wants each agent to have its own identity for auditing. Which design meets this?

    1. ARun every agent under one shared service principal with full access to storage
    2. BPass the administrator's personal credentials to each agent at runtime on startup
    3. CGive every agent access to every tool and rely on prompts to limit use
    4. DAssign each agent a distinct Microsoft Entra identity with tool-specific role assignments
    Show answer and explanation
    Correct answer: D

    Distinct identities with scoped role assignments give least privilege and per-agent audit trails. Shared principals and personal credentials blur accountability, and prompt-only limits are not an access control.

  4. Question 27

    A multi-agent solution needs short-term conversation context for each session, shared team state across agents, and long-term knowledge about customers. Which memory design best matches these needs?

    1. AOne large prompt that keeps the full transcript of each user's conversation in one unbounded context window with no pruning or expiry
    2. BSession state in a fast cache, shared team state in a store scoped to the workflow, and long-term semantic memory in an indexed store with retention rules
    3. CStoring customer knowledge and history in the model weights through nightly fine-tuning jobs that retrain the base deployment and replace the previous checkpoint each night
    4. DA single text file on a network drive, with session notes, team state and long-term customer records appended to it without schema, locking, indexing or retention rules for each memory type
    Show answer and explanation
    Correct answer: B

    Multi-tier memory separates session, team and long-term data with suitable lifecycle and retention controls. A single ever-growing prompt is costly and unbounded, a shared text file has no isolation, and retraining for each memory update is impractical.

  5. Question 28

    A regulated deployment requires that a compromised agent cannot move laterally to other agents' tools or data. Which principle should guide the architecture?

    1. AZero Trust with per-agent identity scoping and segmented network paths
    2. BA flat network where every agent trusts peer traffic by default with open subnets
    3. CShared secrets and connection strings distributed to every agent in plain configuration files
    4. DDisabling authentication between agents on the internal network to reduce latency
    Show answer and explanation
    Correct answer: A

    Zero Trust with per-agent identity and segmented paths limits what a compromised agent can reach, which prevents lateral movement. Flat trust, shared secrets and disabled authentication each make lateral movement easier.

  6. Question 29

    A team wants to reproduce a rare failure in which an agent called a tool with the wrong parameters. Which observability capability most directly supports this debugging?

    1. AA monthly average of response times, rolled up per deployment region and model version for reports
    2. BThe total count of distinct end users per calendar day, broken down by tenant
    3. CThe final answer text saved to the session store without intermediate steps
    4. DAgent replay capture that records prompts, tool inputs and outputs for the failing run
    Show answer and explanation
    Correct answer: D

    Replay capture stores the reasoning path, tool calls and their inputs and outputs so the failure can be reproduced. Averages and counts do not show what happened, and the final answer omits the intermediate steps.

  7. Question 30

    Which two components are needed to coordinate agent-to-tool interactions across a production multi-agent system? (Choose two.)

    1. AA tool registry that defines the permitted scope for each agent
    2. BOne unrestricted credential shared by all tools
    3. CA random tool selector with no metadata
    4. DAn integration layer that routes tool calls and records their results
    5. EA chat window with no logging
    Show answer and explanation
    Correct answer: A, D

    A tool registry with per-agent scopes controls what each agent may call, and an integration layer routes calls and records results for governance. A shared unrestricted credential, random selection and unlogged chat remove the controls production systems require.

Want more AI-500 questions?

The full bank has 100 questions with answers and explanations, as a PDF, an online practice exam, or both.

Full question bank · 100 questions
$89$124

Both formats together. The best value.

Instant access after payment, with 90 days of updates. Checkout is on our store, AIExamCerts.