exam questions

Exam 350-901 All Questions

View all questions & answers for the 350-901 exam

Exam 350-901 topic 1 question 22 discussion

Actual exam question from Cisco's 350-901
Question #: 22
Topic #: 1
[All 350-901 Questions]

A developer plans to create a new bugfix branch to fix a bug that was found on the release branch.
Which command completes the task?

  • A. git checkout -t RELEASE BUGFIX
  • B. git checkout -b RELEASE BUGFIX
  • C. git checkout -t BUGFIX RELEASE
  • D. git checkout -b BUGFIX RELEASE
Show Suggested Answer Hide Answer
Suggested Answer: D 🗳️

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
lente_kriebels
Highly Voted 1 year, 9 months ago
D is correctt
upvoted 11 times
...
tartarus23
Most Recent 1 week, 1 day ago
Selected Answer: D
The correct answer is: D. git checkout -b BUGFIX RELEASE Explanation: The command git checkout -b BUGFIX RELEASE creates a new branch called "BUGFIX" that branches off from the "RELEASE" branch. The "-b" option is used with "git checkout" to create a new branch.
upvoted 1 times
...
tartarus23
1 month, 2 weeks ago
Selected Answer: D
The correct answer is D. git checkout -b BUGFIX RELEASE This command creates a new branch named "BUGFIX" and checks it out, starting from the commit at the tip of the "RELEASE" branch. The developer can then make the necessary bugfix changes on this new branch and later merge it back into the "RELEASE" branch.
upvoted 1 times
...
__al__
1 year, 2 months ago
git checkout -b will create a new branch. How the branch is named is irrelevante. So what's the difference between B and D here? What am I missing?
upvoted 2 times
eairl
1 year, 2 months ago
You are correct that from syntax perspective, it is irrelevant. But per naming convention, you should be able to easily identify what the branch is about.
upvoted 3 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