exam questions

Exam AZ-400 All Questions

View all questions & answers for the AZ-400 exam

Exam AZ-400 topic 7 question 11 discussion

Actual exam question from Microsoft's AZ-400
Question #: 11
Topic #: 7
[All AZ-400 Questions]

Your company uses a Git repository in Azure Repos to manage the source code of a web application. The master branch is protected from direct updates.
Developers work on new features in the topic branches.
Because of the high volume of requested features, it is difficult to follow the history of the changes to the master branch.
You need to enforce a pull request merge strategy. The strategy must meet the following requirements:
✑ Consolidate commit histories.
✑ Merge the changes into a single commit.
Which merge strategy should you use in the branch policy?

  • A. squash merge
  • B. fast-forward merge
  • C. Git fetch
  • D. no-fast-forward merge
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
AS007
Highly Voted 4 years, 5 months ago
correct answer - verified
upvoted 36 times
...
Yusho
Highly Voted 4 years, 2 months ago
I agree
upvoted 6 times
...
ozbonny
Most Recent 8 months, 1 week ago
Selected Answer: A
A. squash merge
upvoted 1 times
...
vsvaid
10 months, 1 week ago
Selected Answer: A
Correct answer
upvoted 1 times
...
yana_b
1 year, 2 months ago
Selected Answer: A
correct answer
upvoted 1 times
...
xRiot007
1 year, 3 months ago
squash merge will merge all those commits into one single commit that will be pushed. Squashing can be good when you have a lot of commits and you want to "condense" things.
upvoted 1 times
...
syu31svc
2 years, 2 months ago
Selected Answer: A
Squash merging is a merge option that allows you to condense the Git history of topic branches when you complete a pull request From https://docs.microsoft.com/en-us/azure/devops/repos/git/merging-with-squash?view=azure-devops A is the answer
upvoted 3 times
...
UnknowMan
2 years, 5 months ago
Selected Answer: A
Correct => with "squash merge" you can merge all commit together
upvoted 1 times
shash_ank
2 years, 4 months ago
and the commit history of the topic branch gets omitted too
upvoted 1 times
...
...
rdemontis
2 years, 7 months ago
Selected Answer: A
correct answer
upvoted 2 times
...
lugospod
2 years, 8 months ago
Got this January 2022. Squash (got 100% on that part)
upvoted 3 times
...
Surda
2 years, 9 months ago
Selected Answer: A
Answer is correct
upvoted 2 times
...
DrewL
3 years, 2 months ago
correct answer, through squash, you can merge multi commits to a single commit
upvoted 4 times
...
Fred64
4 years, 5 months ago
I agree
upvoted 4 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago