exam questions

Exam AZ-400 All Questions

View all questions & answers for the AZ-400 exam

Exam AZ-400 topic 8 question 9 discussion

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

Your company uses Azure DevOps to manage the build and release processes for applications.
You use a Git repository for applications source control.
You plan to create a new branch from an existing pull request. Later, you plan to merge the new branch and the target branch of the pull request.
You need to use a pull request action to create the new branch. The solution must ensure that the branch uses only a portion of the code in the pull request.
Which pull request action should you use?

  • A. Set as default branch
  • B. Approve with suggestions
  • C. Cherry-pick
  • D. Reactivate
  • E. Revert
Show Suggested Answer Hide Answer
Suggested Answer: C 🗳️

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
Hooters
Highly Voted 4 years ago
The solution must ensure that the branch uses "only a portion of the code" in the pull request C. Cherry-Pick
upvoted 14 times
...
vsvaid
Most Recent 10 months, 2 weeks ago
Correct answer
upvoted 1 times
...
yana_b
1 year, 3 months ago
Selected Answer: C
Correct answer
upvoted 1 times
...
xRiot007
1 year, 3 months ago
C - cherry pick. In real projects, please do not do such a thing. If a file needs to be ignored from being commited, add it to the ignore list, if a feature is too big and created too many commits, you should break it down and have multiple branches, or if you insist on a single branch, develop in such a way that it's easy to understand the progression of things. Rebase and cherry picking should be highly discouraged because they break the history.
upvoted 1 times
...
syu31svc
2 years, 3 months ago
Selected Answer: C
https://docs.microsoft.com/en-us/azure/devops/repos/git/pull-requests?view=azure-devops&tabs=browser "Unlike a merge or rebase, cherry-pick only brings the changes from the commits you select, instead of all the changes in a branch" From the question, "The solution must ensure that the branch uses only a portion of the code" Answer is C
upvoted 1 times
...
mclovin
2 years, 3 months ago
Selected Answer: C
as the name suggests!
upvoted 1 times
...
Eltooth
2 years, 5 months ago
Selected Answer: C
C is correct answer.
upvoted 2 times
...
UnknowMan
2 years, 6 months ago
Correct
upvoted 1 times
...
rdemontis
2 years, 7 months ago
Selected Answer: C
correct
upvoted 1 times
...
Sant25
3 years, 1 month ago
ANS - C https://www.git-tower.com/learn/git/faq/cherry-pick/
upvoted 1 times
...
moota
3 years, 4 months ago
Bad question - cherry pick must be discouraged
upvoted 3 times
...
kumardeb
3 years, 11 months ago
C. Cherry-pick
upvoted 2 times
...
27close
4 years ago
Cherry-pick only brings the changes from the commits you select, instead of all the changes in a branch.
upvoted 2 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