Courseiva
Knowledge + Practice
CertificationsVendorsCareer RoadmapsLabs & ToolsStudy GuidesGlossaryPractice Questions
C
Courseiva

Free IT certification practice questions with explained answers for CCNA, CompTIA, AWS, Azure, Google Cloud, and more.

Certification Practice Questions

CCNA practice questionsSecurity+ SY0-701 practice questionsAWS SAA-C03 practice questionsAZ-104 practice questionsAZ-900 practice questionsCLF-C02 practice questionsA+ Core 1 practice questionsGoogle Cloud ACE practice questionsCySA+ CS0-003 practice questionsNetwork+ N10-009 practice questions
View all certifications →

Product

CertificationsCertification PathsExam TopicsPractice TestsExam Dumps vs Practice TestsStudy HubComparisons

Company

AboutContactEditorial PolicyQuestion Writing PolicyTrust Center

Legal

Privacy PolicyTerms of Service

Courseiva is a free IT certification practice platform offering original exam-style practice questions, detailed explanations, topic-based practice, mock exams, readiness tracking, and study analytics for Cisco, CompTIA, Microsoft, AWS, and other technology certifications.

© 2026 Courseiva. Courseiva is operated by JTNetSolutions Ltd. All rights reserved.

Courseiva is an independent certification practice platform and is not affiliated with, endorsed by, or sponsored by Cisco, Microsoft, AWS, CompTIA, Google, ISC2, ISACA, or any other certification vendor. Vendor names and certification marks are used only to identify the exams learners are preparing for.

← Design and implement a source control strategy practice sets

AZ-400 Design and implement a source control strategy • Complete Question Bank

AZ-400 Design and implement a source control strategy — All Questions With Answers

Complete AZ-400 Design and implement a source control strategy question bank — all 0 questions with answers and detailed explanations.

95
Questions
Free
No signup
Certifications/AZ-400/Practice Test/Design and implement a source control strategy/All Questions
Question 1mediummultiple choice
Read the full Design and implement a source control strategy explanation →

Your team uses a monorepo in Azure Repos with multiple feature branches. You notice that merge conflicts frequently occur because developers are working on the same files. You want to reduce conflicts and improve collaboration. Which branching strategy should you recommend?

Question 2hardmultiple choice
Read the full Design and implement a source control strategy explanation →

Your company is migrating from TFVC to Git in Azure Repos. The repository contains a large number of binary files (e.g., .dll, .exe) that are frequently updated. You need to minimize repository size and clone time. What should you include in your migration plan?

Question 3easymultiple choice
Read the full Design and implement a source control strategy explanation →

You have a GitHub repository with a GitHub Actions workflow that builds a .NET application. The workflow should only run when changes are pushed to the main branch, but it currently runs on every push to any branch. How should you fix the workflow trigger?

Question 4mediummultiple choice
Read the full Design and implement a source control strategy explanation →

You are reviewing a webhook payload from Azure Repos. The payload indicates that a new branch named 'feature-123' was created. Which event type triggered this webhook?

Exhibit

Refer to the exhibit.
```json
{
  "branch": "refs/heads/feature-123",
  "before": "0000000000000000000000000000000000000000",
  "after": "abc123def456abc123def456abc123def456abc1",
  "commits": [
    {
      "id": "abc123def456abc123def456abc123def456abc1",
      "message": "Add new feature"
    }
  ]
}
```
Question 5hardmultiple choice
Read the full Design and implement a source control strategy explanation →

You see the above git log output. The team has a policy requiring linear history on the main branch. Which command should be used next time to integrate the feature branch?

Network Topology
$ git logonelinegraphallRefer to the exhibit.```bash|/* 9a8b7c6 Initial commit```
Question 6easymultiple choice
Read the full Design and implement a source control strategy explanation →

Your team uses GitHub and wants to enforce that all commits to the main branch are signed with a GPG key. Which branch protection rule should you configure?

Question 7mediummultiple choice
Read the full Design and implement a source control strategy explanation →

Your Azure DevOps project contains a Git repository with multiple branches. You need to ensure that code reviews are mandatory for all pull requests targeting the 'release' branch. Additionally, the build pipeline must pass before merging. How should you configure branch policies?

Question 8hardmultiple choice
Read the full Design and implement a source control strategy explanation →

Your organization has multiple GitHub repositories that use shared workflows. You want to centrally manage these workflows and ensure they are always up to date. What is the recommended approach?

Question 9easymultiple choice
Read the full Design and implement a source control strategy explanation →

You are setting up a new GitHub repository for a project that requires strict access control. Only specific team members should be able to push to the main branch, but all team members should be able to create branches and open pull requests. What is the best way to achieve this?

Question 10mediummulti select
Read the full Design and implement a source control strategy explanation →

Which TWO actions help reduce the size of a Git repository over time?

Question 11hardmulti select
Read the full Design and implement a source control strategy explanation →

Which THREE are best practices for managing secrets in GitHub Actions workflows?

Question 12easymulti select
Read the full Design and implement a source control strategy explanation →

Which TWO are valid reasons to use a monorepo?

Question 13mediummultiple choice
Read the full Design and implement a source control strategy explanation →

You receive a webhook notification from Azure Pipelines with the above payload. The build for the 'feature/logging' branch failed. You want to automatically create a work item to track the fix. What should you configure in Azure DevOps?

Exhibit

Refer to the exhibit.
```json
{
  "status": "completed",
  "result": "failed",
  "ref": "refs/heads/feature/logging",
  "repository": {
    "name": "myapp",
    "url": "https://dev.azure.com/myorg/myapp/_apis/git/repositories/myapp"
  },
  "pipeline": {
    "name": "CI Pipeline",
    "id": 123
  }
}
```
Question 14hardmultiple choice
Read the full Design and implement a source control strategy explanation →

You have the above branch policy configuration for the main branch. A developer pushes a new commit to an existing pull request. What happens?

Network Topology
org https://dev.azure.com/myorgproject myprojectrepository myrepobranch mainoutput jsonRefer to the exhibit.```bash"type": "MinimumNumberOfReviewers","settings": {"minimumApproverCount": 2,"creatorVoteCounts": false,"resetOnSourcePush": true},"type": "Build","buildDefinitionId": 1,"queueOnSourceUpdateOnly": true```
Question 15easymultiple choice
Read the full Design and implement a source control strategy explanation →

Your team uses GitHub and wants to automate the creation of a new release branch (e.g., release/v1.2.3) whenever a tag starting with 'v' is pushed. Which GitHub Actions trigger should you use?

Question 16mediummultiple choice
Read the full Design and implement a source control strategy explanation →

Your team uses Git for source control. A developer accidentally committed a large binary file (500 MB) to the main branch. The push succeeded but other team members are now complaining about slow fetch times. What is the most efficient way to remove the file from the repository history?

Question 17easymultiple choice
Open the full VLAN trunking answer →

Your organization is adopting a trunk-based development strategy with short-lived feature branches. Which branch policy should you enforce to ensure that code is integrated frequently and conflicts are minimized?

Question 18hardmultiple choice
Read the full Design and implement a source control strategy explanation →

Your team uses GitHub and wants to enforce a policy that all commits to the main branch must be signed with a GPG key that is associated with the author's GitHub account. Which method should you use to enforce this?

Question 19mediummultiple choice
Read the full Design and implement a source control strategy explanation →

Your organization uses Azure Repos and has multiple Git repositories that share common code. You want to enable code reuse across these repositories without duplicating code. Which strategy should you use?

Question 20easymultiple choice
Read the full Design and implement a source control strategy explanation →

Your team uses GitHub Flow and wants to ensure that every pull request is reviewed by at least one team member. Which branch protection rule should you enable?

Question 21hardmultiple choice
Read the full Design and implement a source control strategy explanation →

Your company uses Azure DevOps and has a large monorepo with multiple teams. Developers report that Git operations are slow due to the repository size. Which approach should you recommend to improve performance while maintaining a single repository?

Question 22mediummultiple choice
Read the full Design and implement a source control strategy explanation →

Your team uses GitHub and wants to automatically link pull requests to work items in Azure Boards. What should you configure?

Question 23easymultiple choice
Read the full Design and implement a source control strategy explanation →

Your team uses Git and wants to ensure that all commits follow a consistent message format. Which approach should you use?

Question 24hardmultiple choice
Read the full Design and implement a source control strategy explanation →

Your organization uses GitHub Enterprise and wants to enforce that all repositories have a consistent CODEOWNERS file. Which approach should you use to centrally manage this?

Question 25mediummulti select
Read the full Design and implement a source control strategy explanation →

Which TWO options are benefits of using Git LFS (Large File Storage) in a team environment? (Select TWO.)

Question 26hardmulti select
Read the full Design and implement a source control strategy explanation →

Which THREE practices are recommended for managing secrets in a Git repository? (Select THREE.)

Question 27easymulti select
Read the full Design and implement a source control strategy explanation →

Which TWO Git operations are considered dangerous and should be used with caution because they rewrite history? (Select TWO.)

Question 28mediummultiple choice
Read the full Design and implement a source control strategy explanation →

Refer to the exhibit. An Azure DevOps administrator has configured the branch policy for the main branch as shown. A developer attempts to push a commit directly to the main branch. What will happen?

Exhibit

Refer to the exhibit.

```json
{
  "repositorySettings": {
    "defaultBranch": "main",
    "requireLinearHistory": false,
    "allowForcePush": false,
    "branchPolicies": [
      {
        "branchName": "main",
        "requiredReviewers": 2,
        "checkForLinkedWorkItems": true,
        "buildValidation": {
          "buildDefinitionId": 123,
          "displayName": "CI Build",
          "manualQueueOnly": false
        }
      }
    ]
  }
}
```
Question 29hardmultiple choice
Read the full Design and implement a source control strategy explanation →

Refer to the exhibit. A developer runs 'git log --oneline --graph --decorate' and sees the output. Which Git workflow does this history most closely represent?

Network Topology
$ git logonelinegraphdecorateRefer to the exhibit.```|/* m2n3o4p Initial commit
Question 30mediummultiple choice
Read the full Design and implement a source control strategy explanation →

Refer to the exhibit. An Azure DevOps pipeline has the YAML configuration shown. A developer creates a pull request from a feature branch to the develop branch. What will happen?

Exhibit

Refer to the exhibit.

```yaml
# azure-pipelines.yml
trigger:
  branches:
    include:
    - main
    - develop
pr:
  branches:
    include:
    - main

pool:
  vmImage: 'ubuntu-latest'

steps:
- script: echo "Building..."
```
Question 31mediummultiple choice
Read the full Design and implement a source control strategy explanation →

Your team uses GitHub Flow. A developer pushes a feature branch to origin and creates a pull request to main. After review and approval, the pull request is merged. Which branch should the developer delete after the merge to maintain a clean repository?

Question 32hardmultiple choice
Read the full Design and implement a source control strategy explanation →

Your company has multiple teams working on a monorepo in Azure Repos. You need to enforce that changes to the /src/api folder require approval from the API team, while changes to /src/web require approval from the Web team. Which branch policy feature should you use?

Question 33easymultiple choice
Read the full Design and implement a source control strategy explanation →

Your team is using Git with Azure Repos. A developer accidentally committed a large binary file to the main branch. What is the recommended way to permanently remove it from the repository history?

Question 34mediummultiple choice
Read the full Design and implement a source control strategy explanation →

Your organization uses GitHub Enterprise and wants to prevent secrets (e.g., API keys) from being pushed to any repository. Which GitHub feature should you enable?

Question 35hardmultiple choice
Read the full Design and implement a source control strategy explanation →

Your team is migrating from TFVC to Git in Azure Repos. Developers frequently work on the same files simultaneously. Which Git workflow should you recommend to minimize merge conflicts?

Question 36easymultiple choice
Read the full Design and implement a source control strategy explanation →

Your team uses Azure Pipelines to build and test code. You want to automatically trigger a pipeline when a pull request is created targeting the main branch. Which trigger should you configure?

Question 37mediummultiple choice
Read the full Design and implement a source control strategy explanation →

Your organization uses GitHub Copilot for pull request summaries. A developer notices that the AI-generated summary is inaccurate. Which step should the developer take to improve the quality of future summaries?

Question 38hardmultiple choice
Read the full Design and implement a source control strategy explanation →

Your team uses Azure Repos and wants to enforce that all commits to the release branch must be signed using GPG. Which branch policy should you enable?

Question 39mediummultiple choice
Read the full Design and implement a source control strategy explanation →

Your team uses GitHub and wants to prevent direct pushes to the main branch. Only pull requests with at least one approval should be allowed to merge. Which GitHub feature should you use?

Question 40hardmulti select
Read the full Design and implement a source control strategy explanation →

Which TWO actions should you take to implement Git-based source control for a large enterprise with multiple teams and a single repository (monorepo)? (Select TWO.)

Question 41easymulti select
Read the full Design and implement a source control strategy explanation →

Which THREE are common Git branching strategies used by development teams? (Select THREE.)

Question 42mediummulti select
Read the full Design and implement a source control strategy explanation →

Which TWO benefits does using Git LFS (Large File Storage) provide? (Select TWO.)

Question 43mediummultiple choice
Read the full Design and implement a source control strategy explanation →

Your team uses a monorepo in Azure Repos with multiple microservices. Developers frequently report merge conflicts due to long-lived feature branches. Which branching strategy minimizes merge conflicts while supporting continuous integration?

Question 44hardmultiple choice
Read the full Design and implement a source control strategy explanation →

You are designing a source control strategy for a global team of 200 developers working on a single large .NET solution. The solution takes 45 minutes to build. You need to reduce build times and enable independent versioning of components. What should you do?

Question 45easymultiple choice
Read the full Design and implement a source control strategy explanation →

Your organization uses GitHub for source control. You need to enforce that all pull requests require at least one approval and that branches must be up to date with the base branch before merging. Which branch protection rule settings should you enable?

Question 46mediummultiple choice
Read the full Design and implement a source control strategy explanation →

Your team uses Git with Azure Repos. You notice that the commit history on the main branch contains many merge commits and commit messages like 'fix merge conflict'. You want a linear history for better traceability. What should you change?

Question 47hardmultiple choice
Read the full Design and implement a source control strategy explanation →

Your organization uses Azure Repos and requires that all code changes pass a security scan before merging. The scan is run as a build validation policy. However, the scan takes 30 minutes and developers often bypass it by pushing directly to main. How can you enforce the policy for all changes?

Question 48easymultiple choice
Read the full Design and implement a source control strategy explanation →

Your team uses GitHub for source control. You need to ensure that sensitive data, such as connection strings, is never committed to the repository. Which tool should you use?

Question 49mediummultiple choice
Read the full NAT/PAT explanation →

You work for a multinational company that uses Azure Repos. The compliance team requires that all code changes include a work item reference in the commit message. What is the most effective way to enforce this?

Question 50hardmultiple choice
Read the full Design and implement a source control strategy explanation →

Your organization is migrating from Azure Repos to GitHub. You have 200 repositories with complex branching strategies and build policies. You need to preserve the commit history and branch policies. What is the best migration approach?

Question 51easymultiple choice
Read the full Design and implement a source control strategy explanation →

Your development team uses GitHub for source control. You want to automatically run a set of tests every time a pull request is opened against the main branch. What should you configure?

Question 52mediummulti select
Read the full Design and implement a source control strategy explanation →

Your team uses Azure Repos with a Git branching strategy. You need to ensure that all changes to the release branch are reviewed by at least two approvers and that builds succeed before merging. Which TWO branch policy settings should you enable?

Question 53hardmulti select
Read the full Design and implement a source control strategy explanation →

Your organization uses GitHub for source control. You need to implement a secure source control strategy that prevents secrets from being exposed and ensures code quality. Which THREE practices should you implement?

Question 54easymulti select
Read the full Design and implement a source control strategy explanation →

Your team uses Git for source control. You want to maintain a clean commit history on the main branch by avoiding merge commits. Which TWO merge strategies in a pull request achieve this?

Question 55mediummultiple choice
Read the full Design and implement a source control strategy explanation →

Your team uses GitHub for source control and wants to enforce that all pull requests into the main branch require at least two reviewers and must pass a status check from a CI pipeline. Which branch protection rule configurations should you apply?

Question 56hardmultiple choice
Read the full Design and implement a source control strategy explanation →

You are designing a branching strategy for a microservices application with independent deployment cadences. The team wants to support continuous deployment to production from the main branch while allowing feature work to be isolated and tested. Which branching strategy best meets these requirements?

Question 57easymultiple choice
Read the full Design and implement a source control strategy explanation →

Your Azure DevOps repository contains a large binary file that is slowing down clone operations. Which Git feature should you use to reduce the clone time?

Question 58mediummultiple choice
Read the full Design and implement a source control strategy explanation →

Your team uses Azure Repos and needs to prevent secrets from being committed to the repository. Which built-in feature should you enable?

Question 59hardmultiple choice
Read the full Design and implement a source control strategy explanation →

Your organization uses GitHub and wants to implement a monorepo strategy for multiple related projects. Which approach best optimizes CI/CD pipeline performance by only building projects that have changed?

Question 60easymultiple choice
Read the full Design and implement a source control strategy explanation →

You need to enforce that every commit in your repository is associated with a work item in Azure Boards. Which mechanism should you use?

Question 61mediummultiple choice
Read the full Design and implement a source control strategy explanation →

Your team is migrating from TFVC to Git in Azure Repos. They want to preserve the history of all branches. Which migration tool should you use?

Question 62hardmultiple choice
Read the full Design and implement a source control strategy explanation →

You are designing a source control strategy for a team that uses GitHub Copilot. The team wants to ensure that code suggestions do not include sensitive data. Which approach should you recommend?

Question 63mediummultiple choice
Read the full Design and implement a source control strategy explanation →

Your team uses GitHub and wants to automatically close stale branches that have not been updated in 90 days. Which GitHub feature should you configure?

Question 64easymulti select
Read the full Design and implement a source control strategy explanation →

Which TWO actions should you take to proactively protect your repository from accidentally committing secrets? (Choose two.)

Question 65mediummulti select
Read the full Design and implement a source control strategy explanation →

Which THREE practices are recommended for effective source control in a GitHub monorepo? (Choose three.)

Question 66hardmulti select
Read the full Design and implement a source control strategy explanation →

Which TWO approaches can you use to enforce consistent commit message formatting across your organization? (Choose two.)

Question 67mediummultiple choice
Read the full Design and implement a source control strategy explanation →

You are reviewing the branch protection policy for the main branch in an Azure DevOps repository. Based on the exhibit, what happens when a stale review exists on a pull request after new changes are pushed?

Exhibit

Refer to the exhibit.
```json
{
  "branchProtectionRules": [
    {
      "branch": "main",
      "requiredStatusChecks": ["build", "test"],
      "enforceAdmins": true,
      "requiredPullRequestReviews": {
        "requiredApprovingReviewCount": 2,
        "dismissStaleReviews": true
      }
    }
  ]
}
```
Question 68hardmultiple choice
Read the full Design and implement a source control strategy explanation →

Your Azure Pipeline is configured as shown in the exhibit. A developer pushes a commit to a feature branch named 'feature/new-login' and creates a pull request targeting the main branch. Which pipeline runs will be triggered?

Exhibit

Refer to the exhibit.
```yaml
# azure-pipelines.yml
trigger:
  branches:
    include:
      - main
      - release/*
pr:
  branches:
    include:
      - main
```
Question 69hardmultiple choice
Read the full Design and implement a source control strategy explanation →

You are debugging a recent issue introduced in the main branch. Based on the exhibit, which command would you run to revert the 'Fix login bug' commit while preserving the merge commit?

Network Topology
$ git logoneline -5Refer to the exhibit.```5a4b3c2 Implement OAuth support1a2b3c4 Update README9z8y7x6 Initial commit$ git reflog show main@{0}1a2b3c4 main@{3}: commit: Update README9z8y7x6 main@{4}: commit: Initial commit
Question 70mediummultiple choice
Read the full Design and implement a source control strategy explanation →

Your team is using GitHub Flow for a web application. Developers create feature branches from main, make changes, and open pull requests. Recently, several pull requests were merged without required reviews because the branch protection rules were not enforced on the main branch. What should you do to ensure all pull requests to main require at least one reviewer?

Question 71hardmultiple choice
Read the full NAT/PAT explanation →

Your company uses Azure Repos with a Git branching strategy that includes a main branch, a develop branch, and feature branches. You need to enforce that only designated release managers can merge changes from develop into main, while developers can create feature branches off develop and merge pull requests into develop. What is the best way to implement this?

Question 72easymultiple choice
Read the full Design and implement a source control strategy explanation →

Your development team uses GitHub Enterprise and wants to automatically synchronize code from a public GitHub repository to their private repository every morning. What feature should they use?

Question 73mediummultiple choice
Read the full Design and implement a source control strategy explanation →

Your team uses a monorepo in Azure Repos containing multiple projects. You want to set up CI/CD so that only the projects affected by a commit are built and deployed. Which approach should you use?

Question 74hardmultiple choice
Read the full Design and implement a source control strategy explanation →

Your organization uses GitHub Advanced Security. A developer accidentally committed a file containing production database connection strings to a feature branch. The push was not yet merged into main. What is the best way to remove the secrets from the branch history while minimizing disruption?

Question 75easymultiple choice
Open the full VLAN trunking answer →

Your team uses Git with a trunk-based development strategy. They want to ensure that all code changes are integrated into the main branch at least once a day, and that branch lifetimes are short. Which practice best supports this?

Question 76mediummultiple choice
Read the full Design and implement a source control strategy explanation →

Your organization needs to enforce that every commit to the main branch in Azure Repos is associated with a work item from Azure Boards. What should you configure?

Question 77hardmultiple choice
Read the full Design and implement a source control strategy explanation →

Your team uses GitHub and wants to automatically label pull requests based on the content of the changes (e.g., 'frontend' for changes in /frontend folder, 'backend' for /backend). Which approach should you use?

Question 78easymultiple choice
Read the full Design and implement a source control strategy explanation →

Your team uses Azure DevOps and wants to enforce that all changes to the main branch go through a pull request process with at least two approvals. They also want to prevent contributors from approving their own pull requests. Which branch policy settings should they use?

Question 79mediummulti select
Read the full Design and implement a source control strategy explanation →

Your team is migrating from TFVC to Git in Azure Repos. Which TWO actions should you take to ensure a smooth migration?

Question 80hardmulti select
Read the full Design and implement a source control strategy explanation →

Your GitHub organization has multiple repositories that share common CI/CD workflows. You want to centralize these workflows to reduce duplication. Which TWO approaches are valid?

Question 81mediummulti select
Read the full Design and implement a source control strategy explanation →

Your organization uses Azure Repos and wants to implement a Git branching strategy that supports continuous delivery with hotfix capabilities. Which THREE practices should be part of the strategy?

Question 82hardmultiple choice
Read the full Design and implement a source control strategy explanation →

Refer to the exhibit. You are reviewing a branch protection rule for the main branch of a GitHub repository. A developer complains that after pushing new commits to an existing pull request, the existing approvals from two reviewers are dismissed, and the pull request cannot be merged even though the CI checks pass. What is the most likely cause?

Exhibit

{
  "policy": {
    "rules": [
      {
        "type": "required_pull_request_review",
        "parameters": {
          "required_approving_review_count": 2,
          "dismiss_stale_reviews": true,
          "require_code_owner_review": true
        }
      },
      {
        "type": "required_status_checks",
        "parameters": {
          "strict": true,
          "contexts": ["continuous-integration/jenkins/pr-merge", "Azure Policy Check"]
        }
      }
    ]
  }
}
Question 83hardmultiple choice
Read the full Design and implement a source control strategy explanation →

Your organization uses Azure DevOps for a large-scale e-commerce platform. The source code is stored in a single Azure Repos Git repository with over 100 contributors. The current branching strategy is a modified GitFlow with main, develop, release, and hotfix branches. However, the team is experiencing frequent merge conflicts and long integration periods. You have been asked to redesign the branching strategy to support continuous integration and deployment (CI/CD) while ensuring high-quality releases. The new strategy must reduce merge conflicts, enable fast feedback, and support hotfixes. The team uses feature flags to manage incomplete features. Which branching strategy should you recommend?

Question 84mediummultiple choice
Read the full Design and implement a source control strategy explanation →

Your company is a startup developing a mobile application with a small team of 5 developers. You use GitHub Free and want to implement a simple but effective branching strategy that supports continuous delivery. The team wants to release new features every week and be able to hotfix critical bugs quickly. They currently have a main branch and feature branches, but sometimes features are merged to main before they are fully tested, causing issues. You need to recommend a strategy that minimizes risk while keeping the process lightweight. The team does not want to use long-lived branches. What should you recommend?

Question 85mediummultiple choice
Read the full Design and implement a source control strategy explanation →

Your team uses a monorepo in Azure Repos. Developers frequently commit directly to the main branch, causing build failures. You need to enforce a policy that requires all changes to go through pull requests with at least one reviewer. What should you configure?

Question 86hardmultiple choice
Read the full Design and implement a source control strategy explanation →

Your team is adopting GitFlow with a main and develop branch. You need to ensure that hotfix branches are merged into both main and develop, but feature branches only into develop. What branch policy configuration should you implement?

Question 87easymulti select
Read the full Design and implement a source control strategy explanation →

Which TWO Git commands are commonly used to incorporate changes from a remote repository into your local branch while keeping history linear?

Question 88hardmulti select
Read the full Design and implement a source control strategy explanation →

Which THREE practices are recommended when implementing a Git branching strategy for a team using Azure Repos?

Question 89mediummultiple choice
Read the full Design and implement a source control strategy explanation →

Refer to the exhibit. You have a branch policy JSON for Azure Repos. Which statement about this policy is correct?

Exhibit

{"isDisabled":false,"isLocked":false,"isFrozen":false,"branch":"refs/heads/main","settings":{"scope":[{"refName":"refs/heads/main","matchKind":"Exact","repositoryId":"e6d5f8a1-..."}],"isBlocking":true,"isDeleted":false,"isEnabled":true,"isCommentRequired":true,"isResetOnSourcePush":false,"allowDeletions":false,"allowForcePush":false,"blockLastPusherReview":true,"requireApprovalCount":2,"requireMandatoryReviewers":true,"requireNoMergeConflict":true,"requireSquashMerge":false,"requireTransitionToApproved":true,"requiredReviewerIds":["a1b2c3d4-..."],"buildDefinitionId":1234,"queueOnSourceUpdateOnly":false,"manualQueueOnly":false,"triggeredBuilds":[],"automaticallyLinkedWorkItems":false,"displayName":"Main branch policy"}}
Question 90mediummultiple choice
Read the full NAT/PAT explanation →

Your organization uses GitHub Enterprise with a monorepo containing multiple microservices. Developers work on feature branches and create pull requests to merge into main. You need to implement a policy that ensures all pull requests have at least one review from a code owner, pass required status checks (CI build and unit tests), and are up-to-date with the latest main branch before merging. Additionally, you want to prevent direct pushes to main. Which combination of branch protection rules should you configure?

Question 91hardmultiple choice
Read the full Design and implement a source control strategy explanation →

You are designing a Git branching strategy for a large enterprise with multiple Azure DevOps projects. The strategy must support hotfixes for production releases, feature development in isolated branches, and release branches for stabilization. The team uses CI/CD pipelines that trigger on branch creation. You need to minimize merge conflicts and ensure that hotfix changes are propagated to all active branches. Which branching model should you recommend and how should you configure branch policies?

Question 92mediummultiple choice
Read the full Design and implement a source control strategy explanation →

Your team uses Azure Repos and has a repository with a large number of binary files (e.g., images, compiled libraries) that bloat the repository size. You want to reduce clone times and storage usage while still maintaining version history for those files. Which approach should you recommend?

Question 93hardmultiple choice
Read the full NAT/PAT explanation →

Your company uses GitHub for source control. The security team requires that all commits to the main branch be signed with an approved GPG key. Additionally, developers must use their corporate email for commits. You need to configure branch protection rules and repository settings to enforce these requirements. Which combination of settings should you use?

Question 94easymultiple choice
Read the full Design and implement a source control strategy explanation →

Your team is migrating from TFVC to Git in Azure Repos. You need to preserve the full history of the TFVC repository, including all branches and changesets. The TFVC repository is large (over 10 GB). Which tool should you use to perform the migration?

Question 95mediummultiple choice
Read the full Design and implement a source control strategy explanation →

Your team uses GitHub with a monorepo containing frontend and backend code. You need to implement a strategy where changes to the frontend folder trigger a frontend CI pipeline, changes to the backend folder trigger a backend CI pipeline, and changes to both trigger both. You also want to ensure that pull requests include changes only to one area to reduce complexity. What should you do?

Practice tests

Scored 10-question sessions with instant feedback and explanations.

AZ-400 Practice Test 1 — 10 Questions→AZ-400 Practice Test 2 — 10 Questions→AZ-400 Practice Test 3 — 10 Questions→AZ-400 Practice Test 4 — 10 Questions→AZ-400 Practice Test 5 — 10 Questions→AZ-400 Practice Exam 1 — 20 Questions→AZ-400 Practice Exam 2 — 20 Questions→AZ-400 Practice Exam 3 — 20 Questions→AZ-400 Practice Exam 4 — 20 Questions→Free AZ-400 Practice Test 1 — 30 Questions→Free AZ-400 Practice Test 2 — 30 Questions→Free AZ-400 Practice Test 3 — 30 Questions→AZ-400 Practice Questions 1 — 50 Questions→AZ-400 Practice Questions 2 — 50 Questions→AZ-400 Exam Simulation 1 — 100 Questions→

Practice by domain

Each domain maps to a weighted exam section. Focus on the domain where you are weakest.

Configure processes and communicationsDesign and implement source controlDesign and implement build and release pipelinesDevelop a security and compliance planImplement an instrumentation strategyDesign and implement a DevOps infrastructureDesign and implement a source control strategy

Practice by scenario

Filter questions by type — troubleshooting, exhibit, drag-and-drop, PBQ, ACLs, OSPF, and more.

Browse scenarios→

Continue studying

All Design and implement a source control strategy setsAll Design and implement a source control strategy questionsAZ-400 Practice Hub