Prévia do material em texto
https://www.passcert.com/AZ-401.html
Page 2
MICROSOFT
Question 1
You coordinate work in an Azure DevOps Services project that uses the Basic process. The project has Area
Paths named Checkout and Reliability and Iteration Paths named Sprint 7 and Sprint 8. You can edit both
path fields on the Issues and select the existing paths.
The current reports group Issues 214 and 219 under Checkout for team responsibility and Sprint 7 for
scheduling. Issue 214 stays with Checkout but moves to Sprint 8. Reliability takes responsibility for Issue 219
and will work on it in Sprint 7. The existing reports use the two path fields and must show these changes for
the same Issues.
Which edits should you make? Choose ONE.
A. Add a Sprint 8 tag to Issue 214. Set Issue 219's Area Path to Reliability.
B. Set Issue 214's Iteration Path to Sprint 8. Set Issue 219's Area Path to Reliability.
C. Set both Issues' Iteration Paths to Sprint 8. Set Issue 219's Area Path to Reliability.
D. Set Issue 214's Iteration Path to Sprint 8. Assign Issue 219 to an engineer on the Reliability team.
Answer: B
Explanation
B - Correct: In this Azure DevOps Services project using the Basic process, Area Path represents the team responsible for
an Issue and Iteration Path records its scheduled sprint. You can select the existing paths and edit both fields. Set Issue
214's Iteration Path to Sprint 8 and keep its Area Path at Checkout. Set Issue 219's Area Path to Reliability and keep its
Iteration Path at Sprint 7. The two edits update the existing reports using the same Issues.
MICROSOFT
Question 2
On November 14, 2026, a release engineer uses an AI-assisted integration to update an Azure Boards work
item in Azure DevOps Services. The integration has permission to read and edit the item. An update replaces
the entire Acceptance Criteria field. The integration can make the update conditional on the work-item
revision returned by a read.
At revision 18, the field contained one criterion: "Retain deployment logs for 7 days." The integration
prepared an update that kept that criterion and added "Link the smoke-test results to the work item." Before
the update ran, another engineer changed the retention period to 30 days in revision 19. The update
conditioned on revision 18 was rejected with a revision mismatch.
The release engineer needs to add the smoke-test criterion while preserving other contributors' edits,
including any made while the retry is being prepared.
Which recovery sequence should the integration use? Choose ONE.
A. Read the current field and revision, append the full original proposal to the current text, and write the
combined text conditional on that revision. Reread the field after the write.
B. Read the current field, add the smoke-test criterion if it is missing, and write the merged text without a
revision condition. Reread the field after the write.
C. Read the current field and revision, add the smoke-test criterion to the text if it is missing, and use that
revision to guard any write. Reread the field after a successful write.
D. Read the latest revision, submit the original replacement text conditional on that revision, and reread the
https://www.passcert.com/AZ-401.html
https://www.passcert.com/AZ-401.html
Page 3
Question 2 continued
field after the write.
Answer: C
Explanation
C - Correct: In this Azure DevOps Services project, the integration has permission to read and edit the item, and an update
replaces the entire Acceptance Criteria field. The rejected revision 18 update did not apply. Reread the current field and its
revision together, preserve the 30-day retention criterion and any other current edits, and add the smoke-test criterion if it is
missing. Condition the write on the revision just read so another edit before the write causes a new conflict. After a successful
write, reread the field to confirm that it contains the 30-day retention criterion and the smoke-test criterion.
MICROSOFT
Question 3
On November 14, 2026, a team investigates missing release evidence for bug 125 in Azure DevOps
Services. The Azure Boards project is connected to the team's GitHub.com repository through the native
integration. The team has contributor access to both, and the release owner can edit the Azure Pipelines
classic release definition.
The pull request that fixes the bug was merged into the default branch. Its title and a comment contain
AB#125. Its description and commit messages contain no reference to bug 125. The pull request is absent
from the bug's Development section.
The production stage shows Succeeded. The artifact used by that stage has source commit a48c7f2, which
is also the pull request's merge commit. Work item deployment reporting was disabled in the release
definition when the stage ran. The bug's Deployment section has no production record.
Which pair of findings explains the missing Development link and identifies why the release pipeline did not
publish deployment status? Choose ONE.
A. The bug reference appears only in the title and a comment, and work item deployment reporting was
disabled for the release.
B. The bug reference appears only in the title and a comment, and production used an artifact from an earlier
revision.
C. The pull request lacks a completion keyword, and work item deployment reporting was disabled for the
release.
D. The pull request lacks a completion keyword, and production used an artifact from an earlier revision.
Answer: A
Explanation
A - Correct: In the Azure DevOps Services and GitHub.com integration configured for this scenario, a bare AB#125 in a pull
request description or commit message can create the link shown under Development. A title or comment does not create it,
even when the pull request is merged into the default branch. The production stage succeeded with an artifact built from
a48c7f2, the pull request's merge commit. Work item deployment reporting was disabled for that classic release run, so the
pipeline did not publish its environment status to Boards.
https://www.passcert.com/AZ-401.html
https://www.passcert.com/AZ-401.html
Page 4
MICROSOFT
Question 4
A DevOps metrics analyst is preparing the October 2026 report for a production pipeline. The report covers
scheduled runs queued from 00:00 UTC on October 1 through, but excluding, 00:00 UTC on November 1. All
runs in the window have a final outcome: 118 succeeded, 10 failed, and 12 were canceled.
The team defines two success-rate targets:
- Execution reliability must be at least 92.0% among runs that were not canceled.
- Scheduled-run yield must be at least 85.0% across all scheduled runs in the report, including canceled
runs.
Use the unrounded rates to evaluate the targets, and round the displayed percentages to one decimal place.
Which results should the analyst report? Choose ONE.
A. Execution reliability meets its target. Scheduled-run yield meets its target.
B. Execution reliability misses its target. Scheduled-run yield meets its target.
C. Execution reliability meets its target. Scheduled-run yield misses its target.
D. Execution reliability misses its target. Scheduled-run yield misses its target.
Answer: C
Explanation
C - Correct: For runs queued in the October UTC reporting window, both measures count 118 successes. Execution reliability
excludes the 12 canceled runs, giving 118 ÷ (118 + 10) = 92.1875%. It meets the 92.0% target and displays as 92.2%.
Scheduled-run yield includes the canceled runs, giving 118 ÷ (118 + 10 + 12) ≈ 84.2857%. It misses the 85.0% target and
displays as 84.3%. Compare each unrounded rate with its target before rounding for display.
MICROSOFT
Question 5
On November 14, 2026, a team uses version 1.4 of its VS Code agent profile to run pre-release validation for
an approved commit. The agent can submit a validation job through an MCP tool. The profile disables the
service's preview status tool, and the agent credential lacks permission to read job status. The release
operator can look up submissions by correlation ID inthe release leads
can view the project and read the repositories that contain its issues.
Both charts will count issues with the rollout label. Every rollout issue was in the project throughout the
14-day review window, and none were archived or deleted. Several issues were closed as completed during
that window while staying in their assigned iteration.
The first chart must show how many rollout issues are assigned to each iteration today. The second must
show how the counts of open and completed rollout issues changed over the last 14 days.
Which X-axis configuration meets both requirements? Choose ONE.
A. Use Time for the assignment chart and Iteration for the issue-state trend.
B. Use Iteration for the assignment chart and Iteration for the issue-state trend.
C. Use Iteration for the assignment chart and Time for the issue-state trend.
D. Use Time for the assignment chart and Time for the issue-state trend.
Answer: C
Explanation
C - Correct: In GitHub.com Projects Insights as of November 14, 2026, a current chart with Iteration on the X-axis counts this
project's rollout issues by their present iteration assignment. Setting the second chart's X-axis to Time makes it historical, so
the leads can track the open and completed counts across the 14-day window. Closing an issue as completed can change
those counts even when its iteration assignment stays the same. Apply the rollout filter to both charts. The engineer can save
both configurations, and the release leads have access to the project and its underlying issues.
MICROSOFT
Question 35
On November 14, 2026, a release engineer is investigating personal workflow notifications on GitHub.com.
GitHub Actions is enabled, the engineer watches the repository, and they can view its workflow runs and edit
their own notification preferences. They pushed two commits to main, the branch configured to trigger the
Deploy workflow.
In the Actions run history, the engineer found a failed Deploy run for commit 83a1ef2 and a failed Build run
for commit 6bd712d. These are the only run records they have examined. Neither commit produced a
notification in their GitHub inbox. In Notification settings -> System -> Actions, Email and Only notify for failed
workflows are selected, and On GitHub is cleared.
For future workflow runs they trigger in this repository, the engineer wants to receive failure notifications in
both the GitHub inbox and email and exclude successful runs.
Which conclusion and settings change are supported? Choose ONE.
A. Both Deploy runs are confirmed. Enable On GitHub, keep Email selected, and clear Only notify for failed
workflows.
B. Only the first Deploy run is confirmed. Enable On GitHub and keep Email and Only notify for failed
workflows selected.
C. Both Deploy runs are confirmed. Enable On GitHub and keep Email and Only notify for failed workflows
selected.
D. Only the first Deploy run is confirmed. Unwatch and watch the repository again, keeping Email as the only
selected Actions channel.
https://www.passcert.com/AZ-401.html
https://www.passcert.com/AZ-401.html
Page 29
Question 35 continued
Answer: B
Explanation
B - Correct: In the GitHub.com configuration shown for November 14, 2026, the failed Deploy run for 83a1ef2 confirms that
Deploy ran for that commit. The failed Build run for 6bd712d leaves Deploy for that commit unverified. On GitHub was
cleared, so the empty inbox cannot establish whether either Deploy run occurred. The engineer watches the repository,
GitHub Actions is enabled, and they can edit their personal notification preferences. They should select On GitHub, keep
Email and Only notify for failed workflows selected, and save. For future runs the engineer triggers in this repository, these
settings deliver failure notifications to both the GitHub inbox and email and exclude successful runs.
MICROSOFT
Question 36
Azure SRE Agent is investigating a production Azure App Service app under a response plan explicitly set to
Autonomous. Use the Azure SRE Agent behavior documented as of November 14, 2026. Telemetry shows
sustained high memory usage and an elevated HTTP 5xx rate. The runbook calls for one restart of the
affected app under these conditions, and the team authorizes the agent to use only temporary access for that
operation.
The agent proposes the restart but reports that its managed identity lacks permission to perform it. In the
Azure SRE Agent web portal, the incident thread shows a pending Microsoft Entra on-behalf-of (OBO)
request for temporary access and no restart execution. The incident commander has Contributor access on
the app and does not hold the SRE Agent Administrator role. The available SRE Agent Administrator is
signed in to the portal with a Microsoft Entra work or school account that has effective Azure permission to
restart the affected app.
What should the team do to let the agent perform the restart within the authorized permission boundary?
Choose ONE.
A. Have the incident commander use their app-level Contributor access to approve the pending OBO
request.
B. Give the agent a standing app-level role with restart permission and run the operation under the existing
Autonomous plan.
C. Have the SRE Agent Administrator switch the plan to Review and approve the infrastructure action while
leaving the OBO request pending.
D. Have the SRE Agent Administrator verify the target app and proposed restart in the pending OBO request,
then authorize it.
Answer: D
Explanation
D - Correct: Under the Azure SRE Agent behavior documented as of November 14, 2026, the agent requests temporary
Microsoft Entra OBO access when its managed identity lacks permission, including in Autonomous mode. The telemetry and
runbook justify one restart of the affected App Service app. In the Azure SRE Agent web portal, the SRE Agent Administrator
should verify the target app and proposed restart, then authorize the request with their Microsoft Entra work or school
account. The agent temporarily uses that account's existing Azure restart permission for the operation and returns to its
managed identity when the operation completes. Microsoft Learn: On-behalf-of authorization
Confirm execution in the operation record and check app health and the HTTP 5xx rate to verify recovery.
https://www.passcert.com/AZ-401.html
https://www.passcert.com/AZ-401.html
Page 30
MICROSOFT
Question 37
On November 14, 2026, a DevOps engineer tests preview wrapper v0.4 under Python 3.12 on a workstation
with a local GitHub Copilot CLI session. The wrapper uses AI to find a session by its recorded repository and
writes a downloadable JSON manifest to a folder restricted to incident responders. The AI endpoint and the
responders are authorized to receive the session ID, repository, and end time. Only the workstation
investigation team may read the prompt and response.
In this test fixture, ai_lookup(repository, history) sends both arguments to the AI endpoint and returns
whether the requested repository matches history["repository"]. export_json(record) writes the supplied object
to the incident review folder.
Code (python)
session = {
"session_id": "s-42",
"repository": "platform/deploy",
"ended_at": "2026-11-14T09:20:00Z",
"prompt": "Analyze the private incident notes.",
"response": "The notes identify an unreleased service.",
}
def manifest(record):
fields = ("session_id", "repository", "ended_at")
return {field: record[field] for field in fields}
def report(repository, record):
if ai_lookup(repository, record):
export_json(record)
report("platform/deploy", session)
The lookup returns True. The captured history object in the model request and the downloaded JSON file
both contain all five fields from session.
Which replacement for the body of report keeps the AI lookup based on the recorded repository, exports a
manifest only for a match, and respects both disclosure boundaries? Choose ONE.
A. ```python
if ai_lookup(repository, {"repository": repository}):
export_json(manifest(record))
B. ```python
ifai_lookup(repository, record):
export_json(manifest(record))
C. ```python
if ai_lookup(repository, manifest(record)):
export_json(manifest(record))
D. ```python
if ai_lookup(repository, manifest(record)):
https://www.passcert.com/AZ-401.html
https://www.passcert.com/AZ-401.html
Page 31
Question 37 continued
export_json(record)
Answer: C
Explanation
C - Correct: In the November 14, 2026 fixture, preview wrapper v0.4 runs against a local GitHub Copilot CLI session and
sends the supplied history object to the AI endpoint. Passing manifest(record) limits that request to the session ID, recorded
repository, and end time that the endpoint is authorized to receive. The lookup still compares the requested repository with
the value stored in the session. On a match, passing manifest(record) to the exporter writes only those same three fields to
the incident review folder, within the responders' access authorization.
https://www.passcert.com/AZ-401.htmlthe service console.
The team approves four action requests for the entire run. Each new session displays a fresh local counter,
but the run allowance applies across sessions. The runner can save a checkpoint when it exits without
spending another request. The validation service uses the client correlation ID for tracing and can create a
separate job if the same ID is submitted again.
Run log:
Repository and commit checks completed. Results saved.
Action requests used: 4 of 4.
Final request: validation submitted with client correlation ID VAL-204.
Client result: timed out waiting for a response. No server job ID or terminal result received.
What should the run controller do next? Choose ONE.
A. Keep the completed checks, open a new session, and resubmit the validation with the original correlation
ID to recover the missing result.
B. Record the remote validation as unresolved, save the completed checks and correlation ID, and end the
loop so the release operator can reconcile the submission.
https://www.passcert.com/AZ-401.html
https://www.passcert.com/AZ-401.html
Page 5
Question 5 continued
C. Keep the validation unresolved, save the completed checks and correlation ID, and open a new session to
query the preview status tool.
D. Record the remote validation as failed, save the completed checks and correlation ID, and end the loop so
the validation can be rerun later.
Answer: B
Explanation
B - Correct: The client timeout leaves the acceptance and outcome of VAL-204 unresolved. The four-request allowance has
been exhausted across sessions, and resubmitting with the tracing ID can create another job. In the team's version 1.4 VS
Code profile used on November 14, 2026, the preview status tool is disabled and the agent credential lacks status-read
permission. Save the completed checks and VAL-204 through the exit checkpoint, which costs no action request, and stop
the loop. The release operator can use the correlation ID to reconcile the original submission in the service console.
MICROSOFT
Question 6
On November 14, 2026, a DevOps team is testing a release-triage workflow in an internal preview. Its pinned
GitHub Copilot build in VS Code has Agent mode and repository skill discovery enabled for the pilot
workspace. A direct call to the Azure DevOps MCP work-item read tool succeeds with credentials scoped to
the target project. Workspace policy blocks shell execution and work-item writes.
The draft skill is saved as .github/skills/release-triage/README.md and does not appear in the workspace's
skill list.
Its frontmatter is:
Code (yaml)
---
name: release-triage
summary: Verify an Azure DevOps work item and report its status.
---
The skill must retrieve the supplied work-item ID, confirm that the returned ID matches, and report the item's
status. The repository also contains scripts/collect.ps1, a read-only script that performs the lookup when run
from a shell.
Which configuration makes the skill discoverable and lets the agent complete the workflow under the current
policy? Choose ONE.
A. Save the file as .github/skills/release-triage/SKILL.md, retain summary in the frontmatter, and direct the
agent to call the MCP work-item read tool.
B. Keep the file at .github/skills/release-triage/README.md, rename summary to description, and direct the
agent to call the MCP work-item read tool.
C. Save the file as .github/skills/release-triage/SKILL.md, rename summary to description, and direct the
agent to run scripts/collect.ps1.
D. Save the file as .github/skills/release-triage/SKILL.md, rename summary to description, and direct the
agent to call the MCP work-item read tool.
Answer: D
Explanation
D - Correct: In the team's November 14, 2026 pilot, the pinned GitHub Copilot build in VS Code has Agent mode and
https://www.passcert.com/AZ-401.html
https://www.passcert.com/AZ-401.html
Page 6
Question 6 continued
repository skill discovery enabled. Saving .github/skills/release-triage/SKILL.md with YAML name: release-triage and a
description of when to use it provides the repository skill entry point. The skill body directs the agent to use the
project-scoped Azure DevOps MCP read that already succeeded in this workspace, compare the returned ID with the
supplied ID, and report the status when they match. The workflow uses the existing MCP authorization and requires neither
shell execution nor work-item writes.
MICROSOFT
Question 7
A team uses Azure Repos Git for a hosted application and two self-managed versions, 3.4 and 4.1. Approved
changes to main deploy automatically to the hosted application after CI passes. The self-managed versions
receive monthly patches, and each patch must work with the database schema already in use for that
version.
The same authorization defect is reproducible on all three versions. Compatibility tests show that a build from
the 4.1 release tag cannot start against a 3.4 database. Builds from main require a newer schema than either
self-managed version uses. Engineers can create branches and open pull requests. Every merge into a
delivery branch requires an approved pull request and passing CI.
Which branching plan lets the team fix all three versions, preserve their database compatibility, and keep
deploying hosted changes as soon as they pass review and CI? Choose ONE.
A. Keep hosted changes on main. Create a patch branch from each self-managed release tag, then merge
main into both patch branches whenever it contains a fix they share.
B. Keep hosted changes on main. Maintain one patch branch from the 4.1 release tag, apply the fix there,
and run separate 3.4 and 4.1 build and test jobs against that branch.
C. Keep hosted changes on main. Create a patch branch from each self-managed release tag and bring the
fix into each branch through a separate pull request, adapting it where needed.
D. Create a patch branch from each self-managed release tag and apply the fix separately to each. Integrate
hosted changes on develop and promote them to main during the monthly patch release.
Answer: C
Explanation
C - Correct: In this Azure Repos Git repository, submit the hosted fix to main through a pull request. Once the pull request is
approved and CI passes, the merge can deploy through the existing hosted pipeline. Branch the 3.4 and 4.1 patch lines from
their own release tags. Port the fix separately, adapt it to each baseline where needed, and require pull request approval and
CI against each version's existing schema. This keeps both self-managed versions patchable without a schema upgrade and
leaves hosted deployment independent of the monthly patch schedule.
https://www.passcert.com/AZ-401.html
https://www.passcert.com/AZ-401.html
Page 7
MICROSOFT
Question 8
On November 14, 2026, you administer an Azure Repos Git repository in Azure DevOps Services. The
release/production branch has a required build validation policy. The Release Responders group has
Contribute and Contribute to pull requests set to Allow. It also inherits Allow for Bypass policies when
pushing from the repository. No other assignment grants either bypass permission, and no assignment
denies pull request completion bypass. You have Manage permissions on the branch.
In a test of the current configuration, a group member successfully pushes a fast-forward commit directly to
release/production. The same member then tries to complete a separate, conflict-free pull request targeting
that branch. Its required build has failed, and the member cannot complete the pull request.
The team needs members of Release Responders to be able to complete an emergency pull request when
the required build fails. Direct pushes by those members to release/production must be blocked, and the
group's permissions on other branches must stay as they are.
Which settings should you apply to the group in Branch security for release/production? Leave any
permission that an option does not list as it is. Choose ONE.
A. Set Bypass policies when completing pull requests to Allow and Force push to Deny.B. Set Bypass policies when completing pull requests to Allow and Bypass policies when pushing to Not set.
C. Set Bypass policies when completing pull requests to Not set and Bypass policies when pushing to Deny.
D. Set Bypass policies when completing pull requests to Allow and Bypass policies when pushing to Deny.
Answer: D
Explanation
D - Correct: In Azure Repos Git on Azure DevOps Services, the two bypass permissions apply to different operations. On
release/production, Allow for Bypass policies when completing pull requests lets group members with the existing
contribution permissions explicitly override the failed build when completing a pull request. Deny for Bypass policies when
pushing overrides the repository-level Allow on that branch, so the required policy blocks a direct push even when it is a
fast-forward. Both assignments are scoped to release/production, so permissions on other branches are unaffected.
Microsoft Learn: Set branch permissions · Microsoft Learn: Understand permission states
MICROSOFT
Question 9
On November 14, 2026, you are coordinating two fixes in a GitHub.com organization repository with Copilot
cloud agent enabled under GitHub Copilot Business. Morgan and Riley both have repository write access.
Classic branch protection on main requires one approving review and a passing ci check. Auto-merge is
disabled.
Morgan posts an @copilot comment on an open pull request assigned to Copilot, asking it to make the
follow-up fix in that same pull request. The pull request head is fix/retry-handler, and its timeline shows that
the comment started a new agent session.
Morgan also assigns a separate issue to Copilot. The agent opens a pull request attributed to Morgan.
Morgan marks it ready for review and authorizes the GitHub Actions run. The required ci check passes on
the latest commit, but no one has submitted an approving review.
Both pull requests target main.
Which plan correctly identifies where the cloud agent can push for each fix and how to merge the issue pull
request? Choose ONE.
A. Copilot pushes the follow-up to fix/retry-handler and the issue fix to a new Copilot branch. Riley approves
the issue pull request and asks Copilot to merge it.
https://www.passcert.com/AZ-401.html
https://www.passcert.com/AZ-401.html
Page 8
Question 9 continued
B. Copilot pushes the follow-up to fix/retry-handler and the issue fix to a new Copilot branch. Riley approves
the issue pull request and merges it.
C. Copilot pushes each fix to its own new Copilot branch. Riley approves the issue pull request and asks
Copilot to merge it.
D. Copilot pushes each fix to its own new Copilot branch. Riley approves the issue pull request and merges
it.
Answer: B
Explanation
B - Correct: For GitHub Copilot Business on GitHub.com as of November 14, 2026, the default push target for an @copilot
request to update an existing pull request is that pull request's head. Morgan requested the update in the same pull request,
so Copilot pushes to fix/retry-handler. The separate issue assignment creates a new copilot/ branch. Morgan's workflow
authorization allowed GitHub Actions to run, and ci passed on the latest commit. The approving review is a separate
requirement. Classic branch protection adds an approval when Copilot opens a pull request under its own app identity. This
pull request is attributed to Morgan, so one eligible approval is sufficient. Morgan requested the pull request and cannot
supply that approval. Riley has write access and can provide the required approval, then merge manually with the passing
check. Copilot cloud agent can push the proposed changes to its assigned branch but cannot approve or merge the pull
request.
MICROSOFT
Question 10
On November 14, 2026, a team is troubleshooting a required CI check for pull requests into main on
GitHub.com. Contributors can push topic branches but cannot bypass the merge requirement. The team can
edit the CI job. The developer and the Linux CI runner both use Git 2.48.1, with trailing spaces configured as
whitespace errors.
A developer stages a one-line addition with trailing spaces. The local pre-commit hook runs git diff --cached
--check and rejects the commit. Without changing the index, the developer runs git commit --no-verify and
pushes the resulting commit. The required CI job checks out that exact commit with a clean working tree and
index. Its sole parent is available. The job runs the same command as the hook and reports success. The job
is configured to fail when its check exits nonzero.
Which change to the CI check catches the whitespace error while keeping the existing hook for local
feedback? Choose ONE.
A. Check the patch from the commit's parent to the checked-out commit.
Code (bash)
git diff --check HEAD^ HEAD
B. Compare the working tree with the checked-out commit.
Code (bash)
git diff --check HEAD
C. Check the patch from the checked-out commit back to its parent.
Code (bash)
git diff --check HEAD HEAD^
D. Invoke the existing pre-commit script directly from the CI checkout.
Answer: A
Explanation
https://www.passcert.com/AZ-401.html
https://www.passcert.com/AZ-401.html
Page 9
Question 10 continued
A - Correct: With Git 2.48.1 in the stated setup, git commit --no-verify skips the local pre-commit hook, so the staged line
becomes part of the commit. The unchanged hook command sees an empty diff in CI because the index matches HEAD.
The runner has checked out the exact proposed commit and has its sole parent, so git diff --check HEAD^ HEAD examines
the patch in the direction the change was introduced. The newly added line has trailing spaces, so the command exits
nonzero. That failure blocks the merge through the required GitHub.com check, which contributors cannot bypass. The
original hook continues to catch the error before ordinary local commits.
MICROSOFT
Question 11
On November 14, 2026, a team uses Azure Pipelines in Azure DevOps Services to roll out API version 2.7
alongside stable version 2.6. The production environment owner has configured a release check outside
YAML for the expansion stage. The team uses generally available capabilities for this rollout. The check
identity can read version-filtered telemetry, and the release operator is authorized to restore stable-only
routing.
The planned canary traffic share is 5%. Expansion requires at least 300 application requests served by
version 2.7 during a fixed 15-minute window, with a request error rate below 1% and p95 request latency
below 250 ms. The policy excludes readiness probes from the request sample. If the criteria are unmet when
the window closes, the operator must restore stable-only routing.
At the deadline, service-wide telemetry shows 8,400 application requests, a 0.2% error rate, and 180 ms p95
latency. Version 2.7 telemetry shows zero application requests, zero application request errors, and no
application request latency measurement. The canary has recorded 600 successful readiness probes with 30
ms p95 probe latency.
What should the release engineer do? Choose ONE.
A. Pass the check at the deadline and expand because version 2.7 met the application request volume and
health thresholds.
B. Keep expansion blocked and start a fresh observation window at the existing 5% routing setting.
C. Pass the check and expand using the canary's readiness probe count, success rate, and p95 latency.
D. Fail the check at the deadline, keep expansion blocked, and restore stable-only routing.
Answer: D
Explanation
D - Correct: In this Azure DevOps Services rollout, the check on the protected expansion environment requires at least 300
application requests served by version 2.7 within the fixed 15-minute window, an error rate below 1%, and p95 latency below
250 ms. At the deadline, zero eligible requests leaves both the request error rate and p95 latency unmeasured. The 5%
routing setting describes intended exposure, and readiness probes are excluded from the sample. The check must fail, which
keeps expansion blocked, and the authorizedrelease operator must restore routing to stable version 2.6.
https://www.passcert.com/AZ-401.html
https://www.passcert.com/AZ-401.html
Page 10
MICROSOFT
Question 12
On November 14, 2026, a team runs a release pipeline in Azure DevOps Services on a Microsoft-hosted
agent. The installed Azure Load Testing extension provides the AzureLoadTest@1 task. Its service
connection uses an identity with Load Test Contributor on the test resource. The task sets
waitForCompletion: false so the pipeline can prepare release artifacts while a 20-minute load test runs
against staging.
The release gate can read the status and results for the exact load-test run ID. In a rehearsal, the launch task
reported success while that run was still active. Production deployment requires the current release attempt
to complete its configured workload and meet its error-rate and latency criteria.
Which rule should open the production gate? Choose ONE.
A. When the matching run completes successfully, open the gate if its final evaluation shows that both criteria
passed.
B. After the planned test duration elapses, open the gate if the matching run's latest measurements are within
both limits.
C. When the matching run reaches a terminal state, open the gate if its results report can be archived.
D. When the launch task succeeds, open the gate if the latest completed run against the same staging
deployment met both criteria.
Answer: A
Explanation
A - Correct: In this November 14, 2026 Azure DevOps Services setup, the installed extension's AzureLoadTest@1 task uses
waitForCompletion: false, so task success confirms that the load test was launched. While the Microsoft-hosted pipeline
prepares release artifacts, the load test can continue against staging. At the production gate, use the existing authorized
result access to check the exact run ID for the current release attempt. Open the gate only after that run completes its
workload successfully and its final evaluation shows that both the configured error-rate and latency criteria passed. Keep the
gate closed while the matching result is pending or unavailable, or if the run fails or stops before completion.
MICROSOFT
Question 13
For a November 14, 2026 release, an Azure DevOps Services YAML pipeline uses the installed
AzureLoadTest@1 task with waitForCompletion set to true. The task runs a 10-minute JMeter test against a
staging checkout API using a v0.1 load test configuration. The pipeline is authorized to use the Azure service
connection, whose identity has Load Test Contributor on the load testing resource. Deployment requires the
load test task to succeed.
The current configuration uses a 90% auto-stop threshold over 60 seconds and has no failure criteria. The
first run finished with 6% errors overall. The Checkout sampler had 1% errors, and the highest error rate in
any 60-second window was 12%. The pipeline allowed deployment. A second run stopped early after a
60-second window with 96% errors.
If those traffic patterns recur, the team wants the first run to finish and block deployment and the second to
stop early under the existing outage cutoff. A completed run must fail the quality check when more than 2%
of all requests fail.
Which excerpt should you use in the load test configuration? Choose ONE.
A. ```yaml
autoStop:
errorPercentage: 90
https://www.passcert.com/AZ-401.html
https://www.passcert.com/AZ-401.html
Page 11
Question 13 continued
timeWindow: 60
failureCriteria:
- percentage(error) > 0.02
B. ```yaml
autoStop:
errorPercentage: 90
timeWindow: 60
failureCriteria:
- Checkout: percentage(error) > 2
C. ```yaml
autoStop:
errorPercentage: 90
timeWindow: 60
failureCriteria:
- percentage(error) > 2
D. ```yaml
autoStop:
errorPercentage: 2
timeWindow: 60
failureCriteria:
- percentage(error) > 2
Answer: C
Explanation
C - Correct: In this November 14, 2026 Azure DevOps Services pipeline, the v0.1 YAML keeps auto-stop at 90% over 60
seconds. The first run's highest window was 12%, so the run can finish. The outage window reached 96%, so auto-stop
would still end that run early to limit cost. The failure criterion has no sampler prefix, so it evaluates the aggregate across all
requests. Its threshold is 2 on the 0-100 percentage scale, and the strict comparison allows exactly 2%. The completed run's
6% overall error rate therefore fails the criterion even though Checkout recorded 1%. The pipeline is authorized to use the
service connection, whose identity has Load Test Contributor on the load testing resource. With waitForCompletion set to
true, AzureLoadTest@1 waits for the result and requires the criteria to pass for the task to succeed. The failed criterion
blocks deployment.
https://www.passcert.com/AZ-401.html
https://www.passcert.com/AZ-401.html
Page 12
MICROSOFT
Question 14
An Azure DevOps Services organization has an entitlement of six concurrent self-hosted jobs. Its release
pool has seven self-hosted agents that will stay online throughout the release window. Four advertise the
SDK capability that every release job demands. The other three lack that capability.
All 27 independent release jobs are ready at 09:00 and must finish by 09:55. Each job takes exactly 10
minutes and occupies one eligible agent and one self-hosted parallel job slot. Assume a queued job starts
immediately whenever both resources are available.
Three jobs already running in a separate pool count against the same entitlement. Two finish at 09:20, and
the third runs past 09:55. No other jobs compete for slots. Each proposed change can be in place before
09:00, and every added agent meets the SDK demand and stays online throughout the window.
Which plan meets the deadline? Choose ONE.
A. Add three eligible agents and increase the entitlement by one parallel job.
B. Add one eligible agent and increase the entitlement by three parallel jobs.
C. Add two eligible agents and increase the entitlement by two parallel jobs.
D. Add four eligible agents and keep the current parallel job entitlement.
Answer: C
Explanation
C - Correct: Adding two agents gives the release pool six agents that meet the SDK demand. The entitlement rises from six
to eight concurrent self-hosted jobs across the Azure DevOps Services organization. Before 09:20, the other pool uses three
slots, leaving five slots for the release and allowing two 10-minute waves of five jobs. From 09:20, the other pool uses one
slot. Seven slots are free, and the six eligible agents can run three more full waves of up to six jobs each by 09:50. This gives
capacity for 28 completions, so all 27 jobs can finish by 09:55. The final five minutes are too short for another job.
MICROSOFT
Question 15
On November 14, 2026, you maintain an Azure Pipelines YAML pipeline in Azure DevOps Services. The
pipeline connects to a GitHub.com repository through the Azure Pipelines GitHub App. The app is authorized
for the repository, and you can edit the pipeline YAML. Push CI is disabled, and there are no path filters or
trigger overrides. All pull requests in this scenario are ready for review and originate in the same repository.
The current PR trigger is:
Code (yaml)
pr:
branches:
include:
- main
A pull request from feature/cache into main queued a validation run and received a GitHub check. A pull
request from hotfix/token into release/2026.11 did not queue a run.
You need both pull requests to qualify for validation when opened or when new commits are pushed to them.
Pull requests from either main or release/2026.11 into staging must remain outside the trigger.
Which two entries should the PR trigger's branch include list contain? Choose ONE.
A. main and release/2026.11
https://www.passcert.com/AZ-401.html
https://www.passcert.com/AZ-401.html
Page 13
Question 15 continued
B. feature/cache and release/2026.11
C. main and hotfix/token
D. feature/cache and hotfix/token
Answer: A
Explanation
A - Correct: In this Azure DevOps Services setup, the authorized GitHub App connects the repository to theYAML pipeline.
For GitHub PR validation, pr.branches.include matches the pull request's target branch when the PR opens or receives new
commits. The cache PR targets main and the token fix targets release/2026.11, so both qualify. The promotion PRs target
staging, which is absent from the list. The matching rule applies with push CI disabled.
MICROSOFT
Question 16
An Azure DevOps Services pipeline validates pull requests from public forks of a GitHub.com repository. Fork
jobs receive a restricted job token and no protected pipeline secrets. A fork job replaced a test launcher in
the self-hosted Linux agent's home directory. The next job on that VM started with a clean checkout and still
executed the replacement launcher.
Keep automatic fork validation and the existing credential policy. Every validation job, including a rerun for
the same pull request, must start from a trusted host state. The team manages VM provisioning outside the
jobs, and the jobs use no shared writable storage.
Which plan meets these requirements? Choose ONE.
A. Provision a VM from a trusted image for each validation job and discard it when the job ends.
B. Issue a fresh restricted token and restore the checkout and test launcher before reusing the VM.
C. Reserve a reusable agent pool for fork jobs and restart each agent service before its next job.
D. Provision a VM from a trusted image for each pull request and keep it until that pull request closes.
Answer: A
Explanation
A - Correct: Keep the existing restrictions on tokens and secrets for GitHub fork jobs in Azure DevOps Services. Those
controls limit credential exposure, while the incident shows that fork code can still alter files on the self-hosted Linux VM
outside the checkout. Provision each job on a VM from a trusted image and discard that VM afterward. With no shared
writable storage, the next job starts without the prior job's modified files, even when it is a rerun of the same pull request.
https://www.passcert.com/AZ-401.html
https://www.passcert.com/AZ-401.html
Page 14
MICROSOFT
Question 17
On November 14, 2026, you review a GitHub Copilot draft for an Azure Pipelines release validation step.
Your permissions cover the expanded YAML preview and inspection of the supplied fixture. On the
self-hosted Linux pool, the script runs from the root of a clean checkout under Bash 5.2 with errexit and
pipefail initially disabled. Both installed versions of release-check inspect the current worktree and return 0 on
success or a nonzero code on failure. The installations shown in the fixture are fixed for this review.
The Copilot draft contains this step.
Code (yaml)
pool:
name: ReleaseLinux
steps:
- script: |
release-check --version
release-check | tee validation.log
env:
APPROVED_REVISION: '31a7f2c0d9e4b6a18c5f0237de9b4a621f8073cd'
The simulated fixture shows these observations.
Code (text)
Expanded YAML preview: succeeded
git rev-parse --verify HEAD: 9c45e2b1630fac8d71be43a5e6802d9f17ca564b
git cat-file -e "${APPROVED_REVISION}^{commit}": exit 0
command -v release-check: /usr/local/bin/release-check
release-check --version: 2.3.0
/opt/release-check/2.4.1/bin/release-check --version: 2.4.1
release-check: exit 7
tee validation.log: exit 0
Script step: succeeded
The step must confirm that the checked-out commit matches APPROVED_REVISION before running
release-check 2.4.1. It must save the checker's standard output in validation.log and fail if either the checker
or the log write fails.
Which replacement for the script body meets these requirements? Choose ONE.
A. ```bash
checker=/opt/release-check/2.4.1/bin/release-check
test "$(git rev-parse --verify HEAD)" = "$APPROVED_REVISION" || exit 1
set -o pipefail
"$checker" | tee validation.log
B. ```bash
checker="$(command -v release-check)"
https://www.passcert.com/AZ-401.html
https://www.passcert.com/AZ-401.html
Page 15
Question 17 continued
test "$(git rev-parse --verify HEAD)" = "$APPROVED_REVISION" || exit 1
set -e
"$checker" | tee validation.log
C. ```bash
checker=/opt/release-check/2.4.1/bin/release-check
git cat-file -e "${APPROVED_REVISION}^{commit}" || exit 1
set -e
"$checker" | tee validation.log
D. ```bash
checker="$(command -v release-check)"
git cat-file -e "${APPROVED_REVISION}^{commit}" || exit 1
set -o pipefail
"$checker" | tee validation.log
Answer: A
Explanation
A - Correct: The absolute path selects the fixed 2.4.1 installation shown in the fixture. The test compares the checked-out
HEAD with APPROVED_REVISION before invoking the checker, so the displayed mismatch exits with code 1. When the
revisions match, tee saves the checker's standard output in validation.log. In Bash 5.2, pipefail makes the final pipeline return
a nonzero status if the checker or tee fails. If the checker returns 7 and tee returns 0, the step returns 7. The November 14
preview establishes YAML expansion, and the supplied fixture provides the command versions, commit identities, and exit
codes for this review.
MICROSOFT
Question 18
You maintain a YAML pipeline for an Azure Repos Git repository in Azure DevOps Services. Use the service
behavior as of November 14, 2026. The project has Disable implied YAML CI trigger enabled, and that
setting must stay enabled. There are no pipeline UI trigger overrides.
Both main and develop use the same root azure-pipelines.yml:
Code (yaml)
pool:
name: BuildAgents
steps:
- template: steps/build.yml
The steps/build.yml template contains:
Code (yaml)
steps:
- script: echo Build started
In this simulated scenario, a manual run on either branch succeeds and prints Build started. Separate pushes
to main and develop each change only src/app.py and contain no CI skip directive. Neither push queues a CI
https://www.passcert.com/AZ-401.html
https://www.passcert.com/AZ-401.html
Page 16
Question 18 continued
run.
You can edit the YAML on both branches.
Which change makes pushes to main queue CI runs, keeps pushes to develop from queueing CI runs, and
preserves manual builds on both branches? Choose ONE.
A. Add this block at the top level of azure-pipelines.yml and keep the build template as shown.
Code (yaml)
trigger:
branches:
include:
- main
B. Add this condition to the script step in steps/build.yml and keep the root YAML as shown.
Code (yaml)
condition: eq(variables['Build.SourceBranch'], 'refs/heads/main')
C. Add this block at the top level of steps/build.yml and keep the root YAML as shown.
Code (yaml)
trigger:
branches:
include:
- main
D. Add these blocks at the top level of azure-pipelines.yml and keep the build template as shown.
Code (yaml)
variables:
ciBranch: main
trigger:
branches:
include:
- $(ciBranch)
Answer: A
Explanation
A - Correct: In Azure DevOps Services as of November 14, 2026, Disable implied YAML CI trigger suppresses implicit push
CI when the root YAML omits trigger. It still permits explicit CI triggers. This root-level trigger gives Azure Pipelines the literal
branch name main before a run is queued. The main push matches, the develop push falls outside the include list, and
manual runs on either branch still execute the unchanged build template.
https://www.passcert.com/AZ-401.html
https://www.passcert.com/AZ-401.html
Page 17
MICROSOFT
Question 19
A release engineer is testing a YAML pipeline in Azure DevOps Services using the service behavior as of
November 14, 2026. The repository contains scan-result.txt, a one-line test fixture containing either pass or
fail.
Code (yaml)
trigger: none
pool:
vmImage: ubuntu-latest
stages:
- stage: Build
dependsOn: []
jobs:
- job: Compile
steps:
- script: echo Build completed
- stage: Security
dependsOn: []
jobs:
- job: Scan
steps:
- checkout: self
- script: |
test "$(cat scan-result.txt)" = pass
- stage: Deploy
dependsOn: [Build, Security]
condition: eq(variables['Build.SourceBranch'], 'refs/heads/main')
jobs:
- job: Release
steps:
- script: echo Release gate reached
In a manually queued run, Build.SourceBranch wasrefs/heads/main and scan-result.txt contained fail. Build
succeeded, Security failed with exit code 1, and the Release job logged Release gate reached.
The pipeline can be queued from other branches. All other source refs available for queuing differ from
refs/heads/main by more than capitalization.
Deploy must run only when both predecessor stages succeed and the run is from refs/heads/main.
Which replacement for the Deploy condition meets both requirements? Choose ONE.
A. ```yaml
https://www.passcert.com/AZ-401.html
https://www.passcert.com/AZ-401.html
Page 18
Question 19 continued
condition: succeeded()
B. ```yaml
condition: or(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/main'))
C. ```yaml
condition: and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/main'))
D. ```yaml
condition: and(succeeded(), eq(variables['Build.SourceBranch'], 'main'))
Answer: C
Explanation
C - Correct: In Azure DevOps Services YAML as of November 14, 2026, a custom stage condition replaces the default
dependency success check. With dependsOn: [Build, Security], succeeded() restores that check for both predecessors. The
and expression also requires eq() to match Build.SourceBranch against the full ref refs/heads/main. This comparison ignores
case. All other queueable refs differ by more than capitalization, so only refs/heads/main can satisfy it. The observed Security
failure makes the combined condition false even on main. When both predecessors succeed on main, both checks are true
and Deploy can start. Azure Pipelines conditions, Azure Pipelines expression functions.
MICROSOFT
Question 20
In a November 2026 rollout on Azure DevOps Services, the platform team publishes YAML templates in the
protected Azure Repos repository Platform/PipelineTemplates at refs/tags/v3. The complete pipeline
template, production.yml, accepts a buildProfile parameter, includes package-steps.yml in its build job, and
uses release-stages.yml to verify the artifact before deploying it. Test pipelines also use package-steps.yml.
The application pipelines are already authorized to use the prod-arm service connection. Application teams
can edit YAML in their own repositories. Only the platform team can change the shared templates and
manage checks on prod-arm.
In a pilot, an application pipeline that directly included the shared packaging and release templates
completed its build. The Checks panel showed a Required template failure on prod-arm before the
deployment stage started.
Which configuration lets application teams choose a build profile while requiring the platform-controlled
verification and deployment sequence whenever a pipeline uses prod-arm? Choose ONE.
A. Include package-steps.yml and release-stages.yml from the shared tag in the application pipeline.
Configure the connection's Required template check to require production.yml at that tag.
B. Extend production.yml from the shared tag and pass the build profile as a parameter. Configure the
connection's Required template check to require release-stages.yml at that tag.
C. Extend production.yml from the shared tag and pass the build profile as a parameter. Configure the
connection's Required template check to require that same template at that tag.
D. Extend an application-owned root template that includes the shared packaging and release templates.
Configure the connection's Required template check to require that application-owned root.
Answer: C
Explanation
C - Correct: In Azure DevOps Services, use root-level extends to reference production.yml in Platform/PipelineTemplates at
refs/tags/v3 and pass the buildProfile parameter. The platform-owned template controls the verification and deployment
sequence and reuses package-steps.yml in its build job. Configure the Required template check on prod-arm to reference
https://www.passcert.com/AZ-401.html
https://www.passcert.com/AZ-401.html
Page 19
Question 20 continued
the same repository, tag, and template path. Azure Pipelines evaluates that relationship before the stage that consumes
prod-arm starts. An application pipeline that only includes the release stages can still build, but its deployment stage fails the
template check.
MICROSOFT
Question 21
A team uses GitHub Agentic Workflows on GitHub.com to triage pull requests from public forks. The
generated workflow runs on a GitHub-hosted Linux runner and uses pull_request_target. In a test run, a
custom job checks out the fork's head branch and runs ./scripts/classify.sh from that checkout. The classifier
step receives a token with contents: write on the base repository. The classifier needs only the list of
changed paths, which the workflow already retrieves separately. A separate safe-output job posts the triage
comment.
Which change prevents the fork contributor from running code with the write token while preserving
classification and commenting? Choose ONE.
A. Run the classifier from the maintainer-controlled base revision and pass the changed-path list as data.
B. Move classifier result handling to the safe-output job and keep execution in the fork checkout.
C. Use a read-only token for checkout and retain the write token for the classifier step.
D. Pin the fork checkout to the pull request's exact head commit before running the classifier.
Answer: A
Explanation
A - Correct: In this GitHub.com pull_request_target workflow, the custom classifier step explicitly receives a token with
contents: write on the base repository. Running the classifier and its executable dependencies from the maintainer-controlled
base revision prevents a fork contributor from replacing the code that runs with that token. The classifier still receives the
changed-path list as input data, and the separate safe-output job can still post the triage comment.
MICROSOFT
Question 22
An Azure DevOps Services YAML pipeline must deploy the exact archive that passed integration tests in the
current run. The Package stage publishes two pipeline artifacts and emits testedArtifact as a stage output
containing the published name of the tested archive. It also emits packagePath, the local path from which
that archive was published. The tested artifact name can vary between runs.
Deploy depends on successful completion of Package and runs on a separate Microsoft-hosted Linux agent
with its own workspace. The deployment job can read artifacts from both runs shown and has permission to
deploy to the target.
Code (text)
Current run 6812, commit 72fc0e
Package result = Succeeded
Published artifact names = checkout-linux-a, checkout-linux-b
Template default artifact name = checkout-linux-a
testedArtifact = checkout-linux-b
packagePath = /tmp/checkout.tar.gz
Latest completed successful run 6811, commit 72fc0e
https://www.passcert.com/AZ-401.html
https://www.passcert.com/AZ-401.html
Page 20
Question 22 continued
Published artifact names = checkout-linux-a, checkout-linux-b
Each archive embeds its producer run ID, so the two runs produce different archives from the same commit.
How should you configure Deploy to retrieve the tested archive? Choose ONE.
A. Map testedArtifact into Deploy and download that artifact from the latest completed successful run of this
pipeline.
B. Map packagePath into Deploy and read the archive at that path on the deployment agent.
C. Map testedArtifact into Deploy and download that artifact from the current pipeline run.
D. Use the template's default artifact name in Deploy and download that artifact from the current pipeline run.
Answer: C
Explanation
C - Correct: Map the testedArtifact output from the successful Package stage through the existing dependency, then
download that named pipeline artifact from the current Azure DevOps Services run. Here the name is checkout-linux-b and
the run is 6812. Together they identify the archive that passed integration tests. The deployment job has permission to read
and deploy it, and downloading the published artifact transfers it to the separate agent.
MICROSOFT
Question23
On November 14, 2026, a release pipeline uses a fresh Ubuntu 22.04 worker with stable PowerShell 7.4 to
validate an Azure machine configuration Audit package before publication. The pipeline needs per-resource
compliance results for that worker. The build account creates the ZIP successfully, but its first run of
Get-GuestConfigurationPackageComplianceStatus stops with a filesystem permission error before returning
any resource results. No test agent is present under /var/lib/GuestConfig/bin. The Linux test agent
documented for this setup lists PowerShell 7.2.0-preview.7. Both the build account and a sudo session can
load the Guest Configuration module and read the ZIP.
Which plan should the pipeline use on the next fresh worker to obtain the local compliance results while
keeping elevation limited to the step that requires it? Choose ONE.
A. Create the ZIP with sudo pwsh, then run the compliance check with sudo pwsh.
B. Create the ZIP with sudo pwsh, then run the compliance check as the build account.
C. Create the ZIP as the build account, then run the compliance check with sudo pwsh.
D. Create the ZIP as the build account, then run the compliance check as that account in PowerShell
7.2.0-preview.7.
Answer: C
Explanation
C - Correct: Keep New-GuestConfigurationPackage under the build account and run
Get-GuestConfigurationPackageComplianceStatus through sudo pwsh. On the fresh Ubuntu 22.04 worker, the first
compliance check needs root access to install the agent under /var/lib/GuestConfig/bin. The stable PowerShell 7.4 shell can
launch the check. In the documented Linux setup, the agent carries PowerShell 7.2.0-preview.7 as its own runtime. The Audit
check uses DSC Test and Get to report compliance and per-resource details for that worker without applying the
configuration. Microsoft Learn package testing guide
https://www.passcert.com/AZ-401.html
https://www.passcert.com/AZ-401.html
Page 21
MICROSOFT
Question 24
A platform engineer is retiring machine configurations on two Azure Windows VMs named checkout-01 and
checkout-02. The cleanup pipeline uses version 2024-04-05 of the Azure Resource Manager Guest
Configuration API. Its identity has permission to read and delete guest configuration assignments on both
VMs.
The team deleted the standalone Azure Policy assignment that created SmbAudit on checkout-01. It also
removed the member policy that created TlsBaseline on checkout-01 from an initiative that remains
assigned. A separate ARM template directly created AgentBaseline on checkout-01. The team redeployed
that template in incremental mode with AgentBaseline omitted. An active policy still requires TlsBaseline on
checkout-02.
After these changes, the pipeline retrieves the complete guest assignment list for each VM. Checkout-01
returns TlsBaseline and AgentBaseline. Checkout-02 returns TlsBaseline.
Which cleanup plan removes the remaining retired guest assignments while preserving both VMs and the
configuration still required by policy? Choose ONE.
A. Delete AgentBaseline on checkout-01 and let Azure Policy remove TlsBaseline from checkout-01.
B. Delete TlsBaseline and AgentBaseline on checkout-01 using their VM-scoped guest assignment IDs.
C. Delete TlsBaseline on checkout-01 and let the incremental deployment remove AgentBaseline.
D. Delete AgentBaseline on checkout-01 and delete TlsBaseline from both VMs.
Answer: B
Explanation
B - Correct: Delete the TlsBaseline and AgentBaseline guest assignment resources under checkout-01. Removing the
initiative member leaves its guest assignment for explicit cleanup, and omitting the directly deployed AgentBaseline from an
incremental ARM deployment leaves that resource in place. SmbAudit is already absent after its standalone policy
assignment was deleted. The Guest Configuration API version 2024-04-05 addresses each Azure VM assignment by its
VM-scoped resource ID, and the pipeline has permission to read and delete those assignments. List both VMs again to
confirm the two retired assignments are gone and the separate TlsBaseline on checkout-02 is still present for its active policy.
MICROSOFT
Question 25
A deployment team needs to read the same Azure Key Vault secret from two jobs. One runs on a schedule
on an Azure VM. The other runs on a self-hosted Linux CI runner in the company's datacenter. Both hosts
can reach the vault.
The Azure VM's managed identity endpoint returns a token when the scheduled job selects the attached
user-assigned managed identity. The datacenter runner has no managed identity endpoint, but its CI job
receives an OpenID Connect (OIDC) token. The token's issuer, subject, and audience match a federated
credential on the user-assigned managed identity and another on the app registration associated with a
separate Microsoft Entra application service principal.
Of those two principals, only the user-assigned managed identity has Azure RBAC permission to read the
secret. The team must use the existing permissions and cannot use stored credentials.
How should the two jobs authenticate to read the secret? Choose ONE.
A. On the VM, request a Key Vault access token for the user-assigned managed identity from the local
endpoint. On the CI runner, exchange the OIDC job token with Microsoft Entra ID for a Key Vault access
token for the application service principal.
B. On the VM, request a Key Vault access token for the user-assigned managed identity from the local
https://www.passcert.com/AZ-401.html
https://www.passcert.com/AZ-401.html
Page 22
Question 25 continued
endpoint. On the CI runner, present the OIDC job token directly to Key Vault.
C. On the VM, request a Key Vault access token for the user-assigned managed identity from the local
endpoint. On the CI runner, exchange the OIDC job token with Microsoft Entra ID for a Key Vault access
token for that same identity.
D. On both hosts, select the user-assigned managed identity by client ID and request a Key Vault access
token from the host's managed identity endpoint.
Answer: C
Explanation
C - Correct: The Azure VM job selects the attached user-assigned managed identity and requests a Key Vault access token
through the VM's managed identity endpoint. The datacenter runner has no managed identity endpoint, so the CI job uses its
OIDC token as a federated assertion. The configured credential matches the token's issuer, subject, and audience, allowing
Microsoft Entra ID to issue a Key Vault access token for the same managed identity. Key Vault uses that identity's existing
Azure RBAC permission to authorize both secret reads.
MICROSOFT
Question 26
A release service runs outside GitHub Actions and creates issues on GitHub.com. Its GitHub App is installed
on the service-api and release-tools repositories with permission to create issues in both. Scheduled filings
must run unattended and be attributed to the installed App. Interactive filings must be attributed to the
engineer who authorized the App and must respect that engineer's repository permissions.
During a pilot, an engineer who can create issues in service-api but lacks that permission in release-tools
submits an issue to release-tools through the service. GitHub accepts the request and attributes the issue to
the App.
Which credential should the service present when requesting an installation access token, when filing a
scheduled issue, and when filing an interactive issue, in that order? Choose ONE.
A. App JWT, App installation access token, App user access token.
B. App JWT, App user access token, App installation access token.
C. App JWT, App installation access token, App installation access token.
D. App installation access token, App installation access token, App user access token.
Answer: A
Explanation
A - Correct: On GitHub.com, the service presents an App JWT to authenticate as the GitHub App when requesting an
installation access token. It uses that installation token for unattended issue creation as the installed App, within the
installation's repository and permission grants.For an interactive filing, it uses the authorizing engineer's GitHub App user
access token. That token gives the filing the engineer's attribution and limits it to access shared by the App and engineer.
The pilot engineer can file interactively in service-api and lacks the required permission in release-tools. The App's
installation grant still permits scheduled filings in both repositories.
https://www.passcert.com/AZ-401.html
https://www.passcert.com/AZ-401.html
Page 23
MICROSOFT
Question 27
Your Azure DevOps Services organization needs a new Billing project. In the existing Storefront project, you
need to create a Release team and update the existing Support team. The Support backlog currently shows
work from the Storefront\Legacy area. It should show work from the already-created Storefront\Operations
area instead.
Priya has collection-level permission to create projects. Mateo belongs to the Storefront Project
Administrators group. Erin is an administrator of the Support team. These are their only relevant grants.
Which assignment uses the narrowest existing permission sufficient for each operation? Choose ONE.
A. Assign Billing project creation to Priya, Release team creation to Erin, and the Support area change to
Mateo.
B. Assign Billing project creation and Release team creation to Mateo, and the Support area change to Erin.
C. Assign Billing project creation to Priya, and Release team creation and the Support area change to Mateo.
D. Assign Billing project creation to Priya, Release team creation to Mateo, and the Support area change to
Erin.
Answer: D
Explanation
D - Correct: Under Azure DevOps Services permissions as of November 14, 2026, Priya can create Billing with her
collection-level project creation grant. Mateo can create Release through Project settings -> Teams because he belongs to
Storefront's Project Administrators group. Erin can change Support's selected area under the team's Iterations and areas
settings because she administers the existing team. Mateo could also make that change, but Erin's Support team grant is
narrower. Verify that the intended Storefront\Operations work appears in the Support backlog.
MICROSOFT
Question 28
A release engineer is configuring an Azure DevOps Services YAML pipeline as of November 14, 2026. The
pipeline is authorized to use the PFX file in the Secure files library, and the required approvals and checks
have passed.
The job contains this download step:
Code (yaml)
- task: DownloadSecureFile@1
name: signingMaterial
inputs:
secureFile: 'approved-signing-material.pfx'
In a test run, the download succeeds. A later signing step in the same job reports that it cannot open the file
after receiving the Library filename as its file argument. The signing tool requires the local path to the
downloaded PFX.
Which expression should the signing step pass as its file argument? Choose ONE.
A. $(signingMaterial.secureFile)
B. $(DownloadSecureFile.secureFilePath)
C. $(signingMaterial.secureFilePath)
D. $(secureFilePath)
https://www.passcert.com/AZ-401.html
https://www.passcert.com/AZ-401.html
Page 24
Question 28 continued
Answer: C
Explanation
C - Correct: As of November 14, 2026, in an Azure DevOps Services YAML job, DownloadSecureFile@1 exposes the
downloaded file's temporary local path as secureFilePath. The download step is named signingMaterial, so
$(signingMaterial.secureFilePath) passes that path to the signing tool in the same job. The pipeline already has permission to
use the file and has passed the required approvals and checks. The secureFile input selects the Library file, while the output
identifies the downloaded copy on the agent.
MICROSOFT
Question 29
You administer a private repository on GitHub.com as of November 14, 2026. GitHub Actions is enabled, the
repository has GitHub Code Security and GitHub Secret Protection entitlements, and you have permission to
manage security settings and view all three types of alerts.
For a release check, you need evidence that CodeQL successfully analyzed default-branch commit 7f3c2ad,
that Dependabot flagged the advisory under review in service/package.json, and that repository secret
scanning detected the known credential finding in deploy/legacy.env at historical commit 3c8d1b2.
Each option contains three evidence excerpts.
Which set satisfies all three checks? Choose ONE.
A. Q4. CodeQL run details show a successful analysis for commit 7f3c2ad following reconfiguration of default
setup.
D4. Dependabot reported the advisory against service/package.json.
S1. Push protection blocked a later push containing the same type of credential in deploy/legacy.env.
B. Q3. The CodeQL workflow recorded a successful analysis of 7f3c2ad after default setup was reconfigured.
D2. A Dependabot alert for the advisory identifies tools/package.json as the affected manifest.
S4. A recorded location for the known repository secret-scanning finding shows deploy/legacy.env at commit
3c8d1b2.
C. Q2. After default setup was reconfigured, the CodeQL workflow successfully analyzed commit 7f3c2ad.
D3. The affected manifest in the Dependabot alert for the advisory is service/package.json.
S2. A repository secret-scanning alert identifies the known credential finding in deploy/legacy.env at commit
3c8d1b2.
D. Q1. CodeQL default setup still showed Enabled after the configuration test for 7f3c2ad failed to analyze
the repository's only supported language.
D1. A Dependabot alert for the advisory lists service/package.json as the affected manifest.
S3. Repository secret-scanning alert details locate the known finding in deploy/legacy.env at commit
3c8d1b2.
Answer: C
Explanation
C - Correct: In this private GitHub.com repository on November 14, 2026, Actions is enabled, the required GitHub Code
Security and GitHub Secret Protection entitlements are in place, and you have the necessary settings and alert permissions.
Q2 verifies that CodeQL successfully analyzed default-branch commit 7f3c2ad after reconfiguration. The Enabled setting
alone is insufficient because it can persist after analysis fails for every supported language. D3 ties the Dependabot advisory
to the affected manifest service/package.json. S2 confirms that repository secret scanning detected the known credential in
https://www.passcert.com/AZ-401.html
https://www.passcert.com/AZ-401.html
Page 25
Question 29 continued
deploy/legacy.env at historical commit 3c8d1b2. A push protection block establishes the outcome of a later push attempt and
supplies no historical repository alert location.
MICROSOFT
Question 30
On November 14, 2026, you are using the generally available Microsoft Defender for Cloud onboarding flow
in the Azure portal to connect an Azure DevOps Services organization. The onboarding account has Project
Collection Administrator permissions and Basic access in the target organization. Third-party OAuth is
enabled, and authorization succeeds in the intended tenant. When the account selects Create, Azure denies
permission to create the connector resource.
The target resource group already contains a connector for another organization. Security analysts need
read-only access to the new connector's findings when they become available. Their grant must exclude the
existing connector.
Which Azure role assignments meet both requirements? Choose ONE.
A. Assign Security Reader on the subscription to the onboarding account. Assign Security Reader on the
new connector to the analysts.
B. Assign Security Reader on the subscription to the onboarding account. Assign Security Reader on the
resource group to the analysts.
C. Assign Contributor on the subscription to the onboarding account. Assign Security Reader on the resource
group to the analysts.
D. Assign Contributor on the subscription to the onboarding account. Assign Security Reader on the new
connector to the analysts.
Answer: D
Explanation
D - Correct: For the generally available Azure portal flow for Azure DevOps Services as documented on November 14, 2026,
assignthe onboarding account Contributor on the target subscription so it can create the connector resource. The account
already meets the Azure DevOps prerequisites through Project Collection Administrator permissions, Basic access, and
enabled third-party OAuth in the target organization. Once the connector exists, Security Reader at that connector's scope
lets analysts read its available findings and leaves the existing connector outside their grant.
MICROSOFT
Question 31
On November 14, 2026, an incident responder is verifying delivery from a GitHub Enterprise Cloud enterprise
audit log to a Log Analytics workspace. The deployed Microsoft Sentinel codeless connector polls the
enterprise audit endpoint with include=all in 15-minute windows. Its data collection rule maps the source
_document_id to DocumentId in GitHubAuditLogsV2_CL and converts the source @timestamp to
TimeGenerated.
The responder can query the workspace and has the successful source response bodies from this run. An
enterprise administrator can repeat the source request using their classic personal access token with
read:audit_log.
The responder records these observations for the 10:00-10:15 UTC audit window:
Code (text)
10:16 First page: HTTP 200; Link header contains a next-page URL
https://www.passcert.com/AZ-401.html
https://www.passcert.com/AZ-401.html
Page 26
Question 31 continued
10:16 Next page: HTTP 429; no successful retry recorded by 10:25
10:25 Workspace: 82,416 audit rows over the last seven days
10:25 Workspace: newest audit event occurred at 10:14 and was ingested at 10:20
Which verification plan establishes whether every event in the affected window reached the workspace and
how long delivery took? Choose ONE.
A. Use the preceding window's workspace row count as the expected total, then compare counts and
calculate lag from the affected window's workspace rows.
B. Repeat the source query for the affected window after throttling clears, follow the continuation links, then
match event IDs and calculate lag for each matched event.
C. Repeat the source query for the affected window after throttling clears, follow the continuation links, then
compare source and workspace row counts and calculate lag from the workspace rows.
D. Use the captured source responses for the affected window, match their event IDs to workspace rows,
and calculate lag for each matched event.
Answer: B
Explanation
B - Correct: The Link header and HTTP 429 show that the captured GitHub Enterprise Cloud responses omit an advertised
page. Once throttling clears, the enterprise administrator uses their classic personal access token with read:audit_log to
repeat the enterprise audit request with include=all for the same 10:00-10:15 UTC window. They follow the Link continuation
URLs until a successful page has no next link. The responder matches each returned _document_id to DocumentId in
GitHubAuditLogsV2_CL and reports any unmatched IDs as unverified at the time of the check. For each matched ID, the
responder subtracts the source event timestamp from the earliest recorded workspace ingestion time to estimate delivery lag.
The event recorded at 10:14 and ingested at 10:20 shows about six minutes of lag for that event alone.
MICROSOFT
Question 32
On November 14, 2026, a team uses two GitHub.com Projects, Release Delivery and Defect Triage. You can
create and save Insights charts in both projects. The release leads can view both projects and their
underlying repository issues.
The checkout release lead wants a current count of committed checkout defects by assignee across the
checkout-api and storefront repositories. Adding an issue to Release Delivery commits it to the release, and
the checkout-release label identifies checkout defects. The project views show these four open issues. They
account for every item in the two projects, and each listed membership is unarchived.
checkout-api#41 is assigned to Priya, labeled checkout-release, and listed in both projects.
storefront#22 is assigned to Sam, labeled checkout-release, and listed only in Release Delivery.
checkout-api#48 is assigned to Sam, labeled checkout-release, and listed only in Defect Triage.
storefront#31 is assigned to Sam, labeled search-release, and listed only in Release Delivery.
Which Insights configuration and expected counts meet the reporting requirement? Choose ONE.
A. In Release Delivery, create a current chart that counts all project items by assignee. Expect one item for
Priya and two for Sam.
B. In Release Delivery, create a current chart that counts items labeled checkout-release by assignee across
both repositories. Expect one item for Priya and two for Sam.
C. In Defect Triage, create a current chart that counts items labeled checkout-release by assignee. Expect
one item for Priya and one for Sam.
https://www.passcert.com/AZ-401.html
https://www.passcert.com/AZ-401.html
Page 27
Question 32 continued
D. In Release Delivery, create a current chart that counts items labeled checkout-release by assignee across
both repositories. Expect one item for Priya and one for Sam.
Answer: D
Explanation
D - Correct: In the November 14, 2026 GitHub.com setup, you have permission to save a current Insights chart in Release
Delivery, and the release leads can view that project and its underlying issues. The chart counts items added to Release
Delivery. Filtering by checkout-release across both repositories keeps checkout-api#41 for Priya and storefront#22 for Sam,
so each has one item. The label filter excludes storefront#31, which lacks the checkout-release label. Project membership
excludes checkout-api#48, which appears only in Defect Triage.
MICROSOFT
Question 33
On November 14, 2026, a release engineer uses the historical burn-up chart in GitHub Projects on
GitHub.com to report progress against a 14-issue release commitment. The engineer can view the project
and all linked repository issues. Both snapshots use the same chart filters and reporting window.
At 09:00, the chart shows 8 completed and 6 remaining. During the day, issue #84 is closed as completed
and issue #91 is archived in the project. The repository still shows #91 as open. These are the only item
changes during the interval, and the release commitment still covers the original 14 issues. At 16:00, the
chart shows 9 completed and 4 remaining.
Which report gives the correct progress against the original commitment and explains why the chart shows
two fewer remaining issues? Choose ONE.
A. Two issues were completed and four remain unfinished. The chart counts both the closure of #84 and the
archiving of #91 as completions.
B. One issue was completed and four remain unfinished. The closure of #84 counts as a completion, and
archiving #91 removes it from both the chart and the commitment.
C. One issue was completed and five remain unfinished. The closure of #84 counts as a completion, and
archiving #91 moves it to the chart's Not planned category.
D. One issue was completed and five remain unfinished. The closure of #84 counts as a completion, and
archiving #91 excludes it from the chart.
Answer: D
Explanation
D - Correct: In the November 14, 2026 GitHub.com historical burn-up snapshots, the chart filters and reporting window are
unchanged, and the engineer has access to all linked issues. Closing #84 as completed moved one issue from remaining to
completed, raising the completed count from 8 to 9. GitHub Projects Insights excludes archived items, so archiving #91
removed a second issue from the remaining count, which fell from 6 to 4. Issue #91 stayed open and remains in the original
14-issue commitment. Report one new completion and five unfinished issues by adding #91 to the four still shown as
remaining.
https://www.passcert.com/AZ-401.html
https://www.passcert.com/AZ-401.html
Page 28
MICROSOFT
Question 34
On November 14, 2026, a release engineer is configuring two saved Insights charts for an
organization-owned project on GitHub.com. The engineer can create and save charts, and