- A
Revert the commit on main and do nothing else.
Why wrong: The fix would be lost from the feature branch.
- B
Cherry-pick the bug fix commit to the feature branch, then revert the commit on main.
Cherry-pick applies the fix to feature, revert removes it from main cleanly.
- C
Merge main into feature to include the bug fix.
Why wrong: Merging main into feature would bring other changes and create a messy history.
- D
Reset main to the commit before the bug fix, then force push.
Why wrong: Force push after reset can disrupt other collaborators.
Quick Answer
The correct answer is to cherry-pick the bug fix commit to the feature branch, then revert the commit on main. This approach is correct because cherry-picking applies the specific commit to the intended feature branch without altering the main branch’s history, while reverting creates a new commit that undoes the accidental change on main, preserving a linear, traceable project history. On the Project Management Professional PMP exam, this scenario tests your understanding of version control best practices under the “Quality Management” and “Communications Management” knowledge areas, where maintaining a clean audit trail is critical. A common trap is to reset or force-push, which rewrites history and disrupts collaboration; instead, remember that revert is safe for shared branches. Memory tip: “Cherry-pick the fix, revert the mistake—keep history clean for history’s sake.”
PMP Process — Managing Technical Aspects Practice Question
This PMP practice question tests your understanding of process — managing technical aspects. Read the scenario carefully and evaluate each option against the stated constraints before committing to an answer. After answering, compare your reasoning against the explanation and wrong-answer breakdown below. Once you have made your selection, read the full explanation to reinforce the concept and understand why each distractor is designed to mislead on exam day.
Refer to the exhibit. The project team uses Git for version control. The lead developer accidentally committed a bug fix directly to the main branch instead of the feature branch. What is the best course of action to maintain a clean history?
Clue words in this question
Noticing these words before you look at the options changes how you read each choice.
Clue:
"best"Why it matters: Signals that multiple options may be partially correct. Choose the option that most directly solves the exact problem described, not the one that sounds most complete.
Answer choices
Why each option matters
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
Cherry-pick the bug fix commit to the feature branch, then revert the commit on main.
Option B is correct because it preserves a clean Git history by first cherry-picking the bug fix commit from main to the feature branch (ensuring the fix is applied where intended), then reverting the commit on main to remove the accidental change without rewriting history. This avoids merge commits or destructive operations, maintaining a linear and traceable project history.
Key principle: Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
Revert the commit on main and do nothing else.
Why it's wrong here
The fix would be lost from the feature branch.
- ✓
Cherry-pick the bug fix commit to the feature branch, then revert the commit on main.
Why this is correct
Cherry-pick applies the fix to feature, revert removes it from main cleanly.
Clue confirmation
The clue word "best" in the question point toward this answer.
Related concept
Read the scenario before looking for a memorised answer.
- ✗
Merge main into feature to include the bug fix.
Why it's wrong here
Merging main into feature would bring other changes and create a messy history.
- ✗
Reset main to the commit before the bug fix, then force push.
Why it's wrong here
Force push after reset can disrupt other collaborators.
Common exam traps
Common exam trap: answer the scenario, not the keyword
The trap here is that candidates may confuse 'revert' with 'reset' or assume merging is always safe, overlooking that cherry-picking is the precise tool to move a single commit to another branch without altering the source branch's history.
Detailed technical explanation
How to think about this question
Cherry-picking applies a specific commit's changes as a new commit on the target branch, preserving the original commit's diff but generating a new SHA-1 hash, which avoids duplicating the exact commit object. Reverting creates a new commit that undoes the changes of the target commit, leaving the original commit in the log for auditability. In a real-world scenario, if other developers have already pulled the accidental commit on main, a force push (Option D) would cause divergent histories and require them to rebase or re-clone, disrupting the team.
KKey Concepts to Remember
- Read the scenario before looking for a memorised answer.
- Find the constraint that changes the correct option.
- Eliminate answers that are true in general but not in this case.
TExam Day Tips
- Watch for words such as best, first, most likely and least administrative effort.
- Review why wrong options are wrong, not only why the correct option is correct.
Key takeaway
Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option.
Real-world example
How this comes up in practice
A practitioner preparing for the PMP exam encounters this exact type of scenario on the job. The correct answer here is not the most general option — it is the best answer for the specific constraint described. Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option. Real exam questions reward reading the full scenario before eliminating options, because the constraint defines which answer fits.
What to study next
Got this wrong? Here's your next step.
Identify which exam domain this question belongs to, review the core concept, then practise similar questions from the same domain.
- →
Process — Managing Technical Aspects — study guide chapter
Learn the concepts, then practise the questions
- →
Process — Managing Technical Aspects practice questions
Targeted practice on this topic area only
- →
All PMP questions
892 questions across all exam domains
- →
Project Management Professional PMP study guide
Full concept coverage aligned to exam objectives
- →
PMP practice test guide
How to use practice tests most effectively before exam day
Related practice questions
Related PMP practice-question pages
Use these pages to review the topic behind this question. This is how one missed question becomes focused revision.
People — Leading Projects practice questions
Practise PMP questions linked to People — Leading Projects.
Process — Managing Technical Aspects practice questions
Practise PMP questions linked to Process — Managing Technical Aspects.
Business Environment — Strategy and Value practice questions
Practise PMP questions linked to Business Environment — Strategy and Value.
Business Environment: strategy and project benefits practice questions
Practise PMP questions linked to Business Environment: strategy and project benefits.
PMP fundamentals practice questions
Practise PMP questions linked to PMP fundamentals.
PMP scenario practice questions
Practise PMP questions linked to PMP scenario.
PMP troubleshooting practice questions
Practise PMP questions linked to PMP troubleshooting.
Practice this exam
Start a free PMP practice session
Short sessions build daily habit. Longer sessions build exam-day stamina. Try a timed session to simulate real conditions.
FAQ
Questions learners often ask
What does this PMP question test?
Process — Managing Technical Aspects — This question tests Process — Managing Technical Aspects — Read the scenario before looking for a memorised answer..
What is the correct answer to this question?
The correct answer is: Cherry-pick the bug fix commit to the feature branch, then revert the commit on main. — Option B is correct because it preserves a clean Git history by first cherry-picking the bug fix commit from main to the feature branch (ensuring the fix is applied where intended), then reverting the commit on main to remove the accidental change without rewriting history. This avoids merge commits or destructive operations, maintaining a linear and traceable project history.
What should I do if I get this PMP question wrong?
Identify which exam domain this question belongs to, review the core concept, then practise similar questions from the same domain.
Are there clue words in this question I should notice?
Yes — watch for: "best". Signals that multiple options may be partially correct. Choose the option that most directly solves the exact problem described, not the one that sounds most complete.
What is the key concept behind this question?
Read the scenario before looking for a memorised answer.
About these practice questions
Courseiva creates original exam-style practice questions with explanations and wrong-answer analysis. It does not publish real exam questions, exam dumps, or protected exam content. Learn why practice questions differ from exam dumps →
Keep practising
More PMP practice questions
- A project manager is leading a digital transformation initiative. Midway through the project, a new regulation is introd…
- Order the steps for closing a project or phase.
- Sequence the steps for performing a qualitative risk analysis.
- Arrange the steps for controlling project changes.
- Order the steps for performing project quality assurance.
- Order the steps for creating a Work Breakdown Structure (WBS).
Last reviewed: Jun 11, 2026
This PMP practice question is part of Courseiva's free PMI certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the PMP exam.
Question Discussion
Share a tip, memory trick, or ask about the reasoning behind this question. Do not post real exam questions, leaked content, braindumps, or copyrighted exam material. Comments are moderated and may be removed without notice.
Sign in to join the discussion.