# Design and implement authentication and authorization methods — Practice reading

Exam: AZ-401 — Designing and Implementing Microsoft Agentic DevOps Solutions (beta)
Knowledge domain: Design and implement a security and compliance plan (15–20%)
HTML: https://learningpathx.com/learning-path/AZ-401/learn/802

This public learning practice includes correct answers and existing explanations. Reading does not save progress or create a test.

## Question 1

Type: single\_choice
Knowledge point: Design and implement authentication and authorization methods / part 1

A release publisher runs on an Azure VM and reads secrets from a production Azure Key Vault. The publisher VM is replaced during each rollout. In a rehearsal, the replacement VM obtained a Key Vault token using its system-assigned managed identity, but the vault denied the read. The replacement VM had a different principal ID, and the role assignment that grants the publisher read access still named the outgoing VM's principal. The release team can authorize a publisher principal during this migration. Future deployments can configure managed identities on replacement VMs but cannot change production vault role assignments. A separate verifier runs on a disposable Azure VM and reads secrets from a test vault. Its provisioning workflow can grant each verifier the required read access. Each verifier must have its own principal, and Azure must delete that principal automatically when its VM is deleted. Both vaults use Azure role-based access control, and both workloads support either managed identity type. Which identity design meets both workloads' requirements? Choose ONE.

### Options

**A**

Enable a system-assigned identity on each publisher VM and create a separate user-assigned identity for each verifier VM.

**B**

Reuse one user-assigned identity across publisher VMs and create a separate user-assigned identity for each verifier VM.

**C**

Reuse one user-assigned identity across publisher VMs and enable a system-assigned identity on each verifier VM.

**D**

Enable a system-assigned identity on each publisher VM and each verifier VM.

Correct answer: C

### Explanation

The production vault grants access to a principal. The rehearsal showed that acquiring a token succeeds independently of authorization to read secrets. A dedicated user-assigned managed identity has a principal that survives publisher VM replacement, so the release team can grant it the required production vault access during migration. Attach that identity to each replacement VM and configure the publisher to request tokens with it. Each verifier needs a different lifecycle. Enable a system-assigned managed identity on its VM and grant that principal the required access to the test vault. Deleting the verifier VM automatically deletes its identity.

## Question 2

Type: single\_choice
Knowledge point: Design and implement authentication and authorization methods / part 1

An application on a replacement Azure VM must read a specific version of a deployment secret from Azure Key Vault. The deployment needs an identity that survives VM replacement and minimizes ongoing credential maintenance. The replacement VM has the application's existing user-assigned managed identity attached, and the application obtains an access token using that identity. The vault uses Azure RBAC for secret access and has public network access disabled. The application's normal secret request resolves the vault hostname to a public IP address and receives HTTP 403\. From the same VM, an engineer repeats the request with the same HTTPS URL and access token, overriding DNS for that request so it connects to the vault's private endpoint IP. The probe preserves the original HTTPS hostname and successfully retrieves the requested secret version. Which plan best meets the identity requirements and restores normal secret reads while keeping public network access disabled? Choose ONE.

### Options

**A**

Switch to a certificate-authenticated application service principal, grant it secret-read access, and correct the VM's vault DNS resolution.

**B**

Keep the user-assigned managed identity and its current permissions, and correct the VM's vault DNS resolution.

**C**

Keep the user-assigned managed identity and its current permissions, and update the VM subnet's route to the private endpoint IP.

**D**

Keep the user-assigned managed identity, correct the VM's vault DNS resolution, and add a vault-scoped secret-read role assignment.

Correct answer: B

### Explanation

A user-assigned managed identity has a lifecycle independent of the Azure VM, can be attached to its replacements, and uses Azure-managed credentials. Obtaining a token shows that the workload can authenticate as that identity. The successful private-endpoint probe goes further. Key Vault accepts the same token, authorizes the read of the same secret version under Azure RBAC, and returns the secret over the private endpoint from the same VM. The normal request goes to the public IP because of DNS, and public network access is disabled. Correct the VM's DNS resolution so the existing vault hostname resolves to the private endpoint IP.

## Question 3

Type: single\_choice
Knowledge point: Design and implement authentication and authorization methods / part 1

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.

### Options

**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 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.

Correct answer: C

### Explanation

Both jobs need a Microsoft Entra access token for Key Vault that represents the principal with permission to read the secret. On the Azure VM, the job selects the attached user-assigned managed identity at the local managed identity endpoint. On the datacenter runner, the job presents its OIDC token to Microsoft Entra ID using the federated credential on that same identity. Microsoft Entra ID issues a Key Vault access token for the managed identity, so Key Vault applies the same existing Azure RBAC permission to both requests.

## Question 4

Type: single\_choice
Knowledge point: Design and implement authentication and authorization methods / part 1

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.

### Options

**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.

Correct answer: A

### Explanation

The service authenticates as the GitHub App with an App JWT when requesting an installation access token. It uses the resulting installation access token for scheduled filings, which GitHub attributes to the installed App and limits to the installation's repositories and granted permissions. For an interactive filing, the service uses the engineer's GitHub App user access token. GitHub attributes that filing to the engineer and applies both the App's access and the engineer's repository permissions. The pilot engineer can therefore file interactively in service-api and lacks the required permission in release-tools. The scheduled job can still file in both repositories under the installation's grants.

## Question 5

Type: single\_choice
Knowledge point: Design and implement authentication and authorization methods / part 1

A private repository on GitHub.com runs a manually dispatched GitHub Actions workflow on GitHub-hosted runners. GitHub Issues is enabled, and repository policy permits the workflow token to create issues. Both jobs check out the repository. In a test run, an action in `scan` successfully read repository files through the GitHub API even though the workflow supplied no token input and the action had no separate credentials. The `file-issue` job runs `gh issue create` for the same repository. That job has no GitHub CLI login or token environment variable configured.

The workflow currently declares these permissions at the workflow level, with no job-level overrides:

```yaml
permissions:
  contents: read
  issues: write
```

Which configuration preserves checkout, the API read, and issue creation while granting each job only the permissions it needs? Choose ONE.

### Options

**A**

Set job-level permissions. Give `scan` `contents: read`. Give `file-issue` `contents: read` and `issues: write`. Set `GH_TOKEN` to `${{ secrets.GITHUB_TOKEN }}` on the CLI step.

**B**

Set job-level permissions. Give `scan` `contents: read`. Give `file-issue` `contents: read` and `issues: write`. Rely on the CLI to pick up the job token without setting `GH_TOKEN`.

**C**

Keep the workflow-level permissions for both jobs. Leave the `scan` action's token input unset and set `GH_TOKEN` to `${{ secrets.GITHUB_TOKEN }}` on the CLI step.

**D**

Set job-level permissions. Give `scan` `contents: read` and `issues: read`. Give `file-issue` `contents: read` and `issues: write`. Set `GH_TOKEN` to `${{ secrets.GITHUB_TOKEN }}` on the CLI step.

Correct answer: A

### Explanation

Job-level `permissions` control what each job's `GITHUB_TOKEN` can do. An action can access that token through `github.token` even when the workflow omits the action's token input. Give `scan` only `contents: read` for checkout and repository file reads. Add `issues: write` in `file-issue` and pass that job's token as `GH_TOKEN` on the CLI step so `gh issue create` can authenticate to the same repository.

## Question 6

Type: single\_choice
Knowledge point: Design and implement authentication and authorization methods / part 1

On November 14, 2026, a release engineer tests a local script that reads two private GitHub Projects titles. The script reads the organization-owned project through `GET /orgs/harbor-labs/projectsV2/12` on `api.github.com`, using REST API version `2026-03-10`. It reads the engineer's user-owned project through `user.projectV2` on `https://api.github.com/graphql`. The user-owned project contains issues from one of the engineer's private repositories.

An approved fine-grained personal access token (PAT) targeting `harbor-labs` returns the organization project title. A separate fine-grained PAT targeting the engineer's personal account returns the expected `viewer.login` in GraphQL, but the project field returns an access error. The engineer confirms the project number and can open both projects in the browser.

The organization allows both PAT types. The script must use a credential whose project access is limited to `harbor-labs` for the organization request. Both credentials must grant only read access to Projects. Which configuration meets these requirements? Choose ONE.

### Options

**A**

Use a fine-grained PAT with repository Metadata read permission for the organization request and a classic PAT with `read:project` for the user request.

**B**

Use a fine-grained PAT with organization Projects read permission for the organization request and a fine-grained PAT with Contents read permission on the personal repository for the user request.

**C**

Use a fine-grained PAT with organization Projects read permission for the organization request and a classic PAT with `read:project` for the user request.

**D**

Use a classic PAT with `read:project` for the organization request and a classic PAT with `read:project` for the user request.

Correct answer: C

### Explanation

For the November 14, 2026 GitHub.com scenario, evaluate support and permissions for each request. The organization Projects endpoint in REST API version `2026-03-10` accepts a fine-grained PAT whose resource owner is `harbor-labs` and whose organization Projects permission is read. The resource-owner selection limits that credential's project access to the organization. [GitHub REST API reference for organization projects](https://docs.github.com/en/rest/projects/projects?apiVersion=2026-03-10#get-project-for-organization)

Fine-grained PATs cannot access user-owned Projects under these GitHub.com conditions. A successful `viewer.login` establishes the caller's identity while the access error shows that the token cannot read the requested project. Use the engineer's classic PAT with `read:project` for the GraphQL query. That scope permits reading the project title without granting project writes. [GitHub PAT limitations](https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/managing-your-personal-access-tokens), [GitHub Projects GraphQL authentication](https://docs.github.com/en/issues/planning-and-tracking-with-projects/automating-your-project/using-the-api-to-manage-projects#authentication)

## Question 7

Type: single\_choice
Knowledge point: Design and implement authentication and authorization methods / part 1

In a November 14, 2026 simulation, the GitHub.com repository `fabrikam/release-api` uses `azure/login@v2` on a GitHub-hosted runner to sign in through a Microsoft Entra app registration. The repository was created on August 3, 2026\. This run is a push to `main`, and the job does not reference a GitHub environment. The three Azure variables already identify the intended application, tenant, and subscription.

The workflow is:

```yaml
name: Azure sign-in
on:
  push:
    branches: [main]
jobs:
  login:
    runs-on: ubuntu-latest
    permissions:
      contents: read
    steps:
      - uses: actions/checkout@v4
      - uses: azure/login@v2
        with:
          client-id: ${{ vars.AZURE_CLIENT_ID }}
          tenant-id: ${{ vars.AZURE_TENANT_ID }}
          subscription-id: ${{ vars.AZURE_SUBSCRIPTION_ID }}
          audience: api://AzureADTokenExchange
```

The application's federated identity credential for this workflow is:

```json
{
  "issuer": "https://token.actions.githubusercontent.com",
  "subject": "repo:fabrikam/release-api:ref:refs/heads/main",
  "audiences": ["api://AzureADTokenExchange"]
}
```

In the configured run, checkout succeeds, but the login job cannot request a GitHub OIDC token, so the Entra token exchange does not start. In an otherwise identical diagnostic run with token requests enabled for the job, GitHub issues a token, but Entra rejects the exchange. These are the decoded claims from that diagnostic run:

```json
{
  "iss": "https://token.actions.githubusercontent.com",
  "sub": "repo:fabrikam@184726/release-api@630412:ref:refs/heads/main",
  "aud": "api://AzureADTokenExchange"
}
```

Keep `contents: read`, the trigger, and the login inputs. Which combination of job permission and federated credential corrects both failures? Choose ONE.

### Options

**A**

Add `id-token: write` to the login job and use this credential:  
  
`json { "issuer": "https://token.actions.githubusercontent.com", "subject": "repo:fabrikam/release-api:ref:refs/heads/main", "audiences": ["api://AzureADTokenExchange"] } `

**B**

Leave `id-token` unset in the login job and use this credential:  
  
`json { "issuer": "https://token.actions.githubusercontent.com", "subject": "repo:fabrikam@184726/release-api@630412:ref:refs/heads/main", "audiences": ["api://AzureADTokenExchange"] } `

**C**

Add `id-token: write` to the login job and use this credential:  
  
`json { "issuer": "https://token.actions.githubusercontent.com", "subject": "repo:fabrikam@184726/release-api@630412:ref:refs/heads/main", "audiences": ["api://AzureADTokenExchange"] } `

**D**

Add `id-token: write` to the login job and use this credential:  
  
`json { "issuer": "https://token.actions.githubusercontent.com/", "subject": "repo:fabrikam/release-api:ref:refs/heads/main", "audiences": ["api://fabrikam-release-api"] } `

Correct answer: C

### Explanation

The diagnostics show two failures at different points. In the configured workflow, the login job needs `id-token: write` to request a GitHub OIDC token. Once the job obtains the token, the Entra credential must match its issuer, subject, and audience. The existing credential already matches the issuer and audience. Its subject uses repository and owner names alone, while the token issued for this GitHub.com run includes both IDs and the `refs/heads/main` branch context. C grants the job permission to request the token and configures Entra to trust the exact claims shown. Azure resource access is governed separately by the application's role assignments.

## Question 8

Type: single\_choice
Knowledge point: Design and implement authentication and authorization methods / part 1

On November 14, 2026, you are restoring secretless Azure sign-in for `northwind-platform/inventory-api` on GitHub.com. The repository was created on May 12, 2026, under `northwind-build` (owner ID `418502`) and transferred on October 28, 2026, to `northwind-platform` (owner ID `731944`). The repository ID is `896201`. The repository uses GitHub's default OIDC subject settings and has a GitHub environment named `production`.

The repository variables identify the intended Microsoft Entra app registration, tenant, and Azure subscription. The app's service principal already has the required role on the target resource group. The workflow uses Azure Login v2.

```yaml
name: Verify deployment identity
on:
  push:
    branches: [main]
jobs:
  login:
    runs-on: ubuntu-latest
    permissions:
      id-token: write
    steps:
      - uses: azure/login@v2
        with:
          client-id: ${{ vars.AZURE_CLIENT_ID }}
          tenant-id: ${{ vars.AZURE_TENANT_ID }}
          subscription-id: ${{ vars.AZURE_SUBSCRIPTION_ID }}
          audience: api://AzureADTokenExchange
```

The app registration has this standard federated identity credential from before the transfer.

```json
{
  "name": "inventory-api-main",
  "issuer": "https://token.actions.githubusercontent.com",
  "subject": "repo:northwind-build/inventory-api:ref:refs/heads/main",
  "audiences": ["api://AzureADTokenExchange"]
}
```

The failed run on `main` has the following diagnostic summary.

```text
GitHub OIDC token request: succeeded
iss: https://token.actions.githubusercontent.com
aud: api://AzureADTokenExchange
Microsoft Entra token exchange: rejected because no federated identity credential matched
```

Which value should replace `subject` to restore token exchange and keep the trust scoped to the transferred repository's `main` branch? Choose ONE.

### Options

**A**

`repo:northwind-platform@731944/inventory-api@896201:environment:production`

**B**

`repo:northwind-platform@418502/inventory-api@896201:ref:refs/heads/main`

**C**

`repo:northwind-platform/inventory-api:ref:refs/heads/main`

**D**

`repo:northwind-platform@731944/inventory-api@896201:ref:refs/heads/main`

Correct answer: D

### Explanation

On GitHub.com, a repository transfer after July 15, 2026, moves the repository to the immutable default OIDC subject format even when it was created before the cutoff. The October 28 transfer means the subject uses the destination owner `northwind-platform@731944` and the repository `inventory-api@896201`. The workflow runs on a push to `main` and its login job declares no environment, so the subject ends with `:ref:refs/heads/main`. [GitHub OIDC reference](https://docs.github.com/en/actions/reference/security/oidc#immutable-subject-claims)

The standard Microsoft Entra federated identity credential matches `iss`, `aud`, and `sub` exactly. The run already obtained an OIDC token, and its issuer and audience match the credential. Changing the credential's `subject` to the immutable branch subject addresses the failed exchange. GitHub's `id-token: write` permission lets the job request the assertion. The service principal's Azure role authorizes access to the target resource group. [GitHub OIDC configuration for Azure](https://docs.github.com/en/actions/how-tos/secure-your-work/security-harden-deployments/oidc-in-azure), [Microsoft Entra federated identity credential matching](https://learn.microsoft.com/graph/api/resources/federatedidentitycredentials-overview?view=graph-rest-1.0)

## Question 9

Type: single\_choice
Knowledge point: Design and implement authentication and authorization methods / part 1

On November 14, 2026, a platform team uses a simulated GitHub.com workflow run to validate Azure sign-in with `azure/login@v2`. The repository uses GitHub's default OIDC subject template. The `Production` environment allows deployments only from `main`, and the run has cleared its environment protection rules. The variables identify the intended Microsoft Entra app, tenant, and Azure subscription.

The team dispatches this workflow from `refs/heads/main`.

```yaml
name: Check production Azure sign-in
on: workflow_dispatch
jobs:
  sign-in:
    runs-on: ubuntu-24.04
    environment: Production
    permissions:
      id-token: write
    steps:
      - uses: azure/login@v2
        with:
          client-id: ${{ vars.AZURE_CLIENT_ID }}
          tenant-id: ${{ vars.AZURE_TENANT_ID }}
          subscription-id: ${{ vars.AZURE_SUBSCRIPTION_ID }}
          audience: api://AzureADTokenExchange
```

The app's current federated identity credential has these settings.

```json
{
  "name": "github-production",
  "issuer": "https://token.actions.githubusercontent.com",
  "subject": "repo:northwind-labs@431205/delivery@782640:ref:refs/heads/main",
  "audiences": ["api://AzureADTokenExchange"]
}
```

The diagnostic output contains the following observations. Both probes ran in the same repository on `refs/heads/main`.

```text
Probe without an environment
  sub: repo:northwind-labs@431205/delivery@782640:ref:refs/heads/main
Probe using the Staging environment
  sub: repo:northwind-labs@431205/delivery@782640:environment:Staging
Production sign-in job
  OIDC token request: succeeded
  iss: https://token.actions.githubusercontent.com
  aud: api://AzureADTokenExchange
  Entra token exchange: no matching federated identity credential
```

Which subject should the team configure on the app's federated identity credential to let the `Production` job exchange its token? Choose ONE.

### Options

**A**

`repo:northwind-labs@431205/delivery@782640:environment:Production:ref:refs/heads/main`

**B**

`repo:northwind-labs/delivery:environment:Production`

**C**

`repo:northwind-labs@431205/delivery@782640:ref:refs/heads/main`

**D**

`repo:northwind-labs@431205/delivery@782640:environment:Production`

Correct answer: D

### Explanation

The issuer and audience in the production diagnostic match the credential. The probes show how the default GitHub.com subject changes for the same repository and ref. A job without an environment uses the branch context. A job that references an environment uses the environment context and retains the owner and repository IDs. Since the sign-in job references `Production`, the subject must be `repo:northwind-labs@431205/delivery@782640:environment:Production`. GitHub enforces the `main` restriction through the environment's deployment rules. The token request already succeeded with `id-token: write`. Azure resource access is a separate authorization decision after token exchange.

## Question 10

Type: single\_choice
Knowledge point: Design and implement authentication and authorization methods / part 1

On November 14, 2026, you are setting up a production Azure Resource Manager service connection in Azure DevOps Services. The pipeline deploys to one resource group in public Azure. The deployment task version you plan to use has already signed in through workload identity federation using a test connection. Azure DevOps shows a different federated subject for the production connection. You can create service connections and authorize pipelines in the Azure DevOps project. You lack the Owner role on the Azure subscription, and automatic app registration stops during setup before a pipeline runs. An existing user-assigned managed identity already has the Azure permissions needed to deploy to the resource group. An identity administrator can add a federated credential to that identity. Azure role assignments are frozen for the rollout. Which setup lets the production pipeline deploy without a stored secret? Choose ONE.

### Options

**A**

Configure federation manually with the existing managed identity. Copy the test connection's federated credential settings and authorize the production pipeline.

**B**

Configure federation manually with the existing managed identity. Add a federated credential that matches the production connection and authorize the production pipeline.

**C**

Use automatic app registration with federation at resource-group scope. Complete setup with your Azure DevOps project permissions and authorize the production pipeline.

**D**

Configure federation manually with a new app registration. Add trust for the production connection and use pipeline authorization to grant the new identity access to the resource group.

Correct answer: B

### Explanation

The documented automatic app-registration route in Azure DevOps Services requires the setup user to have the Owner role on the Azure subscription, even when the service connection targets a resource group. The manual route works with the available permissions. Configure the production connection to use the existing user-assigned managed identity and have the identity administrator add a federated credential that matches the production issuer, subject, and audience. Authorize the production pipeline to use the connection. The matching credential enables token exchange, and the identity's existing Azure role assignment permits the deployment. The test run establishes federation support for the selected task version. Verify both sign-in and an authorized operation in the target resource group using the production connection.

## Question 11

Type: single\_choice
Knowledge point: Design and implement authentication and authorization methods / part 1

You administer the Billing-Prod Azure Resource Manager service connection in an Azure DevOps Services project that uses YAML pipelines. The connection allows only individually authorized pipelines. Billing-Hotfix is the only authorized pipeline and used the connection successfully in its last run. The Billing-Release maintainers already have permission to use the connection when configuring pipeline tasks, but the first Billing-Release run stopped because the pipeline itself was not authorized to use it. Billing-Release has a deployment stage that targets the billing-prod Azure Pipelines environment and a maintenance stage that references no environment. Both stages use Billing-Prod. Only Billing-Hotfix and Billing-Release should be able to use the connection. Release Control must approve stages that use the connection before they can start. Which configuration meets both requirements? Choose ONE.

### Options

**A**

Keep the existing connection roles. Authorize Billing-Release in the connection's Pipeline permissions. Add a Release Control approval under the connection's Approvals and checks.

**B**

Keep the existing connection roles. Allow all project pipelines in the connection's Pipeline permissions. Add a Release Control approval to the connection.

**C**

Give the Billing-Release maintainers the Administrator role on the connection. Keep the existing pipeline permissions. Add a Release Control approval to the connection.

**D**

Keep the existing connection roles. Authorize Billing-Release in the connection's Pipeline permissions. Add a Release Control approval to the billing-prod environment.

Correct answer: A

### Explanation

The run identifies a pipeline authorization failure. Add Billing-Release to the service connection's restricted Pipeline permissions alongside Billing-Hotfix. The maintainers already have the connection role they need to configure tasks. In Azure DevOps Services YAML pipelines, as documented on November 14, 2026, checks on a connection apply to stages that consume it. Attach the Release Control approval to Billing-Prod so both Billing-Release stages are covered, including the maintenance stage that does not reference the billing-prod environment.

## Question 12

Type: single\_choice
Knowledge point: Design and implement authentication and authorization methods / part 1

At 09:10 UTC on November 14, 2026, a scheduled exporter fails to fetch the `ledger` repository in the `Payments` project of the Delivery organization on Azure DevOps Services (`dev.azure.com`). The exporter supports only personal access token (PAT) authentication and must continue using the `repo-export` account.

The saved Delivery-scoped PAT has repository-read scope and expired at 09:00 UTC. The same account has an unexpired PAT with the same scope issued for the Test organization. A trial fetch with that PAT succeeds against the Test copy of `Payments/ledger`. In Delivery, an effective permissions check shows that `repo-export` lost Read permission on `ledger` after a team membership change. Either reinstating the previous team membership or granting Read directly on `ledger` would restore effective Read. Delivery policy allows the account to create an organization-scoped PAT with the required scope.

Which plan restores the scheduled export from Delivery? Choose ONE.

### Options

**A**

Keep the account’s current repository access and configure the exporter with a new PAT for Delivery with repository-read scope.

**B**

Grant the account Read directly on Delivery’s `ledger` repository and configure the exporter with a new PAT for Delivery with repository-read scope.

**C**

Reinstate the account’s previous team membership and configure the exporter to use the PAT from the successful Test fetch.

**D**

Reinstate the account’s previous team membership and reload the saved Delivery PAT from the credential store.

Correct answer: B

### Explanation

The export requires a valid PAT whose organization scope covers Delivery and whose token scope permits repository reads. The token owner also needs effective Read permission on Delivery’s `ledger` repository. The saved PAT expired before the failed run, and the successful fetch in Test only demonstrated access within Test. Granting Read directly restores the account’s access. Configuring the exporter with a new Delivery-scoped PAT for repository reads supplies a valid credential under Delivery policy.

## Question 13

Type: single\_choice
Knowledge point: Design and implement authentication and authorization methods / part 1

Version 3.4 of an internal reporting collector runs on a Linux VM. It lists build results from one project in each of two Azure DevOps Services organizations, Harbor and Ridge. Both organizations use the same Microsoft Entra tenant. This collector version supports only personal access token (PAT) authentication and can use a different stored secret for each organization. The PAT owner can view builds in both projects, and both organizations allow the owner to create Build (Read) PATs. On January 14, 2027, the collector successfully reads from both projects using one PAT. Its access scope is listed as All accessible organizations, and its displayed expiration date is March 10\. The collector is the token's only consumer. January 20 is the last configuration window before the January 29 release report. The next window is February 5, when a collector upgrade can first be considered. The January 29 report must read from both projects without granting build write or execute permissions. Microsoft's retirement schedule as of November 14, 2026 sets January 27, 2027 as the cutoff for global PATs in Azure DevOps Services. Which migration plan meets these requirements? Choose ONE.

### Options

**A**

Create a Build (Read) PAT for each organization. Use the current PAT for the January 29 report, then switch both endpoints on February 5 and verify both project reads.

**B**

Create a Build (Read) PAT scoped to Harbor. Switch both endpoints to that PAT on January 20, verify both project reads from the collector, and revoke the global PAT.

**C**

Grant a Microsoft Entra service principal build-read access in both projects. Switch the collector to Entra authentication on January 20, verify both project reads, and revoke the global PAT.

**D**

Create a Build (Read) PAT for each organization. Switch each endpoint to its matching PAT on January 20, verify both project reads from the collector, and revoke the global PAT.

Correct answer: D

### Explanation

The January 14 run shows that the global PAT still works at that point. Its March 10 expiration is the lifetime shown for that specific token. Azure DevOps Services has a separate January 27 retirement cutoff for the global token type, so the January 29 report must use replacement credentials. January 20 is the available cutover window. The installed collector supports separate PATs, so give each endpoint a Build (Read) PAT scoped to its own organization. The owner's project permissions allow the requested reads, and the organizations' policies allow the tokens to be issued. Confirm that the collector retrieves build results from both projects using the new credentials before revoking the global PAT. [Microsoft's global PAT retirement announcement](https://devblogs.microsoft.com/devops/retirement-of-global-personal-access-tokens-in-azure-devops/) and [Microsoft Learn guidance on PATs](https://learn.microsoft.com/en-us/azure/devops/organizations/accounts/use-personal-access-tokens-to-authenticate?view=azure-devops).

## Question 14

Type: single\_choice
Knowledge point: Design and implement authentication and authorization methods / part 2

A release engineer has Basic access in an Azure DevOps Services organization. Two operations fail in the same private project. The engineer cannot create a test plan in the Releases area. A permissions check confirms that the engineer and a teammate both have the effective object permissions required for the operation. The teammate has Basic + Test Plans access and successfully creates a test plan in that area. The engineer can browse another repository in the project but cannot browse Payments. At the Payments repository scope, the Payments Readers group grants the engineer Read, and the Restricted Contractors group explicitly denies Read. The engineer was added to Restricted Contractors by mistake. The engineer's project membership and required Releases area permissions come from assignments independent of Restricted Contractors. The Read denial must stay in effect for the other members of that group. Which plan restores both operations while preserving the restriction? Choose ONE.

### Options

**A**

Keep Basic, grant the engineer an explicit Allow to create test plans in Releases, and remove the engineer from Restricted Contractors.

**B**

Assign Basic + Test Plans and add the engineer to another group that grants Read on Payments.

**C**

Assign Basic + Test Plans and change the Restricted Contractors group's Read setting on Payments from Deny to Not set.

**D**

Assign Basic + Test Plans and remove the engineer from Restricted Contractors while retaining their Payments Readers membership.

Correct answer: D

### Explanation

Azure DevOps Services evaluates feature entitlement and effective object permissions separately. The engineer already has the required Releases area permissions, and the teammate's success with those permissions and Basic + Test Plans identifies the access-level change needed to create a test plan. For Payments, the explicit Read Deny takes precedence over the Read Allow at the same repository scope. Removing the engineer from Restricted Contractors lets the existing Payments Readers grant take effect and preserves the Deny for the other group members. The engineer keeps project membership and the required Releases area permissions through independent assignments. Verify both operations as the engineer after applying the changes.

## Question 15

Type: single\_choice
Knowledge point: Design and implement authentication and authorization methods / part 2

In a private Azure DevOps Services project, an analyst with Basic access belongs to the Support Analysts and Regional Operations security groups and has no administrator role. The analyst can open work items in the East, Central, and West areas in Azure Boards, but attempts to save otherwise valid State changes currently fail with a permissions error.

East, Central, and West are direct children of the Service Desk area. For the permission **Edit work items in this node**, Support Analysts has an explicit Deny at Service Desk. The project administrator proposes the following child-area settings:

* East — Support Analysts: Allow. Regional Operations: Not set.
* Central — Support Analysts: Allow. Regional Operations: Deny.
* West — Support Analysts: Allow. Regional Operations: Allow.

Inheritance stays enabled, the parent Deny stays in place, and no other assignments affect this edit permission for the analyst. Once the proposed settings take effect, in which areas can the analyst save a valid State change to an existing work item? Choose ONE.

### Options

**A**

East and West only.

**B**

East, Central, and West.

**C**

None of the three areas.

**D**

West only.

Correct answer: A

### Explanation

Evaluate the area hierarchy for each group before combining the analyst's group permissions. At each child, the explicit Allow for Support Analysts replaces the Deny that the same group would inherit from Service Desk. At East, Regional Operations is Not set, so the Support Analysts grant is sufficient. At West, both groups grant the permission. At Central, the explicit Deny for Regional Operations takes precedence over the Allow for Support Analysts because both apply at Central. The analyst can therefore save at East and West. [Microsoft Learn — Permission inheritance](https://learn.microsoft.com/en-us/azure/devops/organizations/security/about-permissions?view=azure-devops#permission-inheritance)

## Question 16

Type: single\_choice
Knowledge point: Design and implement authentication and authorization methods / part 2

On GitHub.com, a release coordination team tracks issues from a private repository in an organization-owned project. During an access check on November 14, 2026, team members can open the project and change labels on the underlying issues, but they cannot change the Status field on those items in the project. A coordinator with project edit access can change Status on the same items. Which permission change gives the team the missing capability at the appropriate scope? Choose ONE.

### Options

**A**

Grant the affected coordinators direct Write access to the repository.

**B**

Grant the team Write access to the repository that contains the issues.

**C**

Give the affected coordinators a higher role within their GitHub team.

**D**

Grant the team edit access to the organization-owned project.

Correct answer: D

### Explanation

The labels belong to the repository issues. The Status field belongs to the organization-owned GitHub project, even when its items are linked to those issues. The access check shows that team members can already update issue labels and that a coordinator with project edit access can update Status on the same items. Grant project edit access to the team so its members can perform the required operation.

## Question 17

Type: single\_choice
Knowledge point: Design and implement authentication and authorization methods / part 2

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.

### Options

**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.

Correct answer: D

### Explanation

Creating Billing requires collection-level project creation permission, which Priya holds. Creating Release inside Storefront requires membership in that project's Project Administrators group, which Mateo holds. Both Mateo and Erin can configure the existing Support team, but Erin's team administrator grant is scoped to Support and is sufficient for the area change. After Erin changes the selected area to Storefront\\Operations, verify that the intended work appears in the Support team's backlog.

## Question 18

Type: single\_choice
Knowledge point: Design and implement authentication and authorization methods / part 2

Your organization is provisioning an Azure DevOps Services project for the Payments team. The migration script must run unchanged. It pushes Git history to the project’s initial repository and creates Azure Boards work items of type User Story. The provisioning account can create the project in the organization and will be a Project Administrator in the new project. In a November 14, 2026 pilot, the built-in Agile process offered User Story for backlog requirements, and the built-in Scrum process offered Product Backlog Item. With the project root area and its subareas selected, both Payments and Billing items appeared on the Payments backlog. Sprint 24 existed in the project’s iteration list but was absent from the team’s sprint selector. Which configuration supports the unchanged migration, limits the team backlog to Payments work, and makes Sprint 24 available to the team? Choose ONE.

### Options

**A**

Create the project with Git and Agile. Select Payments as the team’s only area, and add Sprint 24 to the team’s iterations.

**B**

Create the project with Git and Agile. Keep the project root and its subareas selected for the team, and add Sprint 24 to the team’s iterations.

**C**

Create the project with Git and Scrum. Select Payments as the team’s only area, and add Sprint 24 to the team’s iterations.

**D**

Create the project with TFVC and Agile. Keep the project root and its subareas selected for the team, and leave Sprint 24 defined at the project level only.

Correct answer: A

### Explanation

Select Git for the initial repository so the migration script can push its history. Select the built-in Agile process because the script creates work items by the exact type name User Story, which Agile offered in the November 14, 2026 Azure DevOps Services pilot. In the Payments team settings, select only the Payments area to exclude Billing work from the backlog. Add the existing Sprint 24 to the team’s selected iterations so it appears in the sprint selector. The account has organization-level permission to create the project and Project Administrator rights to configure the team.

## Question 19

Type: single\_choice
Knowledge point: Design and implement authentication and authorization methods / part 2

On GitHub.com, you administer an organization-owned project used as a public release roadmap. You can manage access to the project and to the private repository that contains one of its linked issues. You can open that issue from the roadmap. A signed-in release reviewer who belongs to the organization can read the roadmap and its public items, but the reviewer cannot open the private issue even with its direct URL. The reviewer has no access to the private repository. The reviewer is approved for repository read access. Keep the roadmap public and the repository private. Which action lets the reviewer open the issue with the fewest changes to permission settings? Choose ONE.

### Options

**A**

Set the project's organization base role to Read.

**B**

Grant the reviewer the Read role on the project.

**C**

Grant the reviewer the project's Read role and read access to the private repository.

**D**

Grant the reviewer read access to the private repository.

Correct answer: D

### Explanation

GitHub.com applies project visibility and repository permissions independently. The reviewer can already read the public roadmap, so the failure to open the issue through its direct URL points to the missing repository permission. Granting the reviewer read access to the private repository lets them open the issue while preserving both visibility settings. A separate project grant adds a permission change to a roadmap the reviewer can already read.

