Microsoft DevOps Engineer Expert AZ-400 Practice Question
Your Azure DevOps project uses an Azure Repos Git repository. You need to ensure that developers can read the release branch and submit pull requests that target that branch, but they must be prevented from pushing commits directly to it. Which branch-level permission configuration meets this requirement for the Developers security group on the release branch?
Read: Allow, Contribute: Deny, Contribute to pull requests: Allow
Leave all permissions at their inherited values and enable a branch policy that requires one approval
To stop direct pushes to a branch, the Contribute permission for that branch must be denied. Denying Contribute prevents users from pushing commits or merging directly. Developers still need Read to fetch the branch and Contribute to pull requests to submit pull-requests that target the branch. Setting Contribute to pull requests to Allow (or leaving it Inherited when it is Allow) lets them create PRs even though Contribute is denied. Denying Create branch would block them from creating feature branches, and denying Read would block all access. Simply relying on branch policies without changing permissions would still allow a user who has Contribute to bypass the policy by pushing directly from the command line. Therefore, the correct configuration is: Read = Allow (or Inherited), Contribute = Deny, Contribute to pull requests = Allow.
Ask Bash
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.
What is the Contribute permission in Azure Repos Git?
Open an interactive chat with Bash
What happens when Contribute is denied but Contribute to pull requests is allowed?
Open an interactive chat with Bash
How does enabling branch policies differ from modifying branch-level permissions?
Open an interactive chat with Bash
Microsoft DevOps Engineer Expert AZ-400
Design and implement a source control strategy
Your Score:
Report Issue
Bash, the Crucial Exams Chat Bot
AI Bot
Loading...
Loading...
Loading...
Pass with Confidence.
IT & Cybersecurity Package
You have hit the limits of our free tier, become a Premium Member today for unlimited access.
Military, Healthcare worker, Gov. employee or Teacher? See if you qualify for a Community Discount.
Monthly
$19.99
$19.99/mo
Billed monthly, Cancel any time.
3 Month Pass
$44.99
$14.99/mo
One time purchase of $44.99, Does not auto-renew.
MOST POPULAR
Annual Pass
$119.99
$9.99/mo
One time purchase of $119.99, Does not auto-renew.
BEST DEAL
Lifetime Pass
$189.99
One time purchase, Good for life.
What You Get
All IT & Cybersecurity Package plans include the following perks and exams .