IT Certifications · AZ-401

Exam AZ-401: Designing and Implementing Microsoft Agentic DevOps Solutions (beta) Practice Test

AZ-401 focuses on designing and implementing DevOps solutions for agent-based applications. Its practice material explores operational choices around resilient service calls, secure identity and permissions, cross-service observability, model selection, agent evaluation, instruction boundaries, and isolated test execution.

Exam overview

Exam providerMicrosoft
Exam codeAZ-401
CategoryIT Certifications

About the Exam AZ-401: Designing and Implementing Microsoft Agentic DevOps S… Exam

Agentic DevOps work involves building workflows that can interact safely with models, tools, and external services. This question bank’s vocabulary highlights decisions such as applying bounded retries to transient failures, using supported identity mechanisms instead of repository-held long-lived secrets, and granting agents only the permissions needed for specific actions. It also touches on tracing a request across service boundaries, routing requests between models according to cost and quality needs, and defining useful fallback behavior for unsupported tasks. Evaluation scenarios compare agent versions against consistent test cases, while instruction-separation practices help prevent untrusted repository content from redirecting an agent. Isolation is relevant when running automated tests without exposing production systems. These are practice-bank signals, not confirmed official exam domains or topic weights.

Sample Practice Questions

Review a selection from this exam's published US Practice Tests practice bank.

Question 1

A team wants to make its agent service resilient to a temporary rate limit returned by an external API. Which retry policy is generally appropriate?

  1. ARetry immediately in a tight loop until the API responds
  2. BUse bounded retries with exponential backoff and honor any server-provided retry delay
  3. CRetry forever with no maximum attempt count
  4. DTreat every rate-limit response as proof that the request can never succeed
Show answerCorrect answer: B

Bounded retries with backoff reduce pressure on a rate-limited service, and respecting a server-provided delay follows the service's guidance. A retry limit helps prevent unbounded work and cost.

Question 2

A team stores application credentials in a managed secret service and wants its CI job to retrieve them without storing a long-lived cloud secret in the repository. Which identity approach is generally preferable when supported?

  1. AUse workload identity federation with short-lived credentials
  2. BCommit an encrypted credential file beside the pipeline definition
  3. CPut the credential in a build variable visible to all contributors
  4. DReuse a developer's personal access token
Show answerCorrect answer: A

Workload identity federation can let a pipeline authenticate using its trusted identity and obtain short-lived credentials, avoiding a persistent secret in source control. Access should still be scoped to the job's needs.

Question 3

A team runs an agent workflow that calls several external services. One service occasionally times out, causing the whole workflow to fail. Which change is generally most appropriate for a transient timeout?

  1. AAdd bounded retries with backoff and a clear failure path if the service remains unavailable
  2. BRetry immediately without a limit until the service responds
  3. CIgnore all service errors and mark the workflow successful
  4. DIncrease the agent's permissions so it can bypass the service
Show answerCorrect answer: A

Bounded retries with backoff can recover from temporary failures while avoiding infinite loops or excessive load. The workflow should still report or handle failure when the dependency remains unavailable.

Question 4

A team is integrating an agent with a work-tracking system. The agent should create draft work items but must not alter project settings or delete existing items. What is the best permission design?

  1. AGrant the agent the narrowest role or API permissions that allow creating the required draft items
  2. BUse a project administrator account so future tasks do not require permission changes
  3. CShare a human user's session token with the agent
  4. DAllow unrestricted access and rely on the agent's instructions to avoid sensitive actions
Show answerCorrect answer: A

Least privilege limits the impact of mistakes or compromised behavior. The agent should receive only the capabilities needed for its defined task, rather than broad administrative access.

Question 5

An engineering team wants to find the cause of a production request's failure as it passes through several services. Which observability practice is most helpful for following that request across service boundaries?

  1. ADistributed tracing with propagated trace context
  2. BA single aggregate CPU chart
  3. CA list of all deployed package versions
  4. DA periodic database backup report
Show answerCorrect answer: A

Distributed tracing connects spans from multiple services using trace context, helping show the path and timing of an individual request. Metrics and inventory reports can be useful but do not provide the same request-level path.

Question 6

A team is deciding whether an agent should use a fast, lower-cost model or a more capable, higher-cost model for each request. Which strategy best balances cost and quality?

  1. AUse the most capable model for every request regardless of complexity
  2. BRoute requests based on task requirements, using the least costly model that meets quality and safety needs
  3. CAlways use the lowest-cost model and rely on retries for difficult requests
  4. DChoose a model randomly to distribute usage
Show answerCorrect answer: B

Routing by task complexity and requirements can preserve quality where it matters while avoiding unnecessary cost for straightforward work. The routing policy should be monitored and evaluated against defined outcomes.

Question 7

A team is defining how an agent should handle a request that falls outside its supported tasks. Which behavior is safest and most useful?

  1. AGuess the intended outcome and perform the closest available action
  2. BRepeat the request with increasingly broad permissions until it succeeds
  3. CExplain the limitation, avoid taking consequential action, and route the request for human review
  4. DSilently mark the request complete so the workflow remains uninterrupted
Show answerCorrect answer: C

A clear failure path prevents unsupported requests from becoming unintended actions. Explaining the limitation and escalating to a person preserves transparency while allowing work to continue through an appropriate process.

How to use this practice test

Access is free. A session presents up to 20 random questions from the 50-question AZ-401 practice bank, and results appear after the session. Use missed or uncertain items to identify which design decisions—such as permissions, resilience, evaluation, or observability—need further investigation.

Preparation tips

  • For transient API failures, distinguish retryable timeouts and rate limits from persistent errors; consider bounded retries and backoff rather than repeating every failure indefinitely.
  • Sketch an agent’s access path to external tools and secrets, then reduce permissions to the actions it must perform and avoid storing long-lived credentials in source control.
  • Practice tracing a request across service boundaries with correlated telemetry, and identify what information would help locate a failure without exposing sensitive data.
  • Compare agent versions using the same representative task set and explicit quality criteria; include unsupported requests and tool failures in the evaluation cases.
  • Separate trusted task instructions from repository or user-provided content, and plan isolated test execution that cannot reach production resources.
Official sourceOfficial exam page ↗