hardMultiple SelectObjective-mapped
200-901 Practice Question: Which TWO of the following Git commands modify…
Which TWO of the following Git commands modify the commit history? (Select TWO)
⚠ Common exam trap
Cisco often tests the distinction between read-only inspection commands (like `git diff`, `git log`, `git status`) and commands that actually rewrite commit history, leading candidates to mistakenly select non-modifying commands.
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
✓
git commit --amend
`git commit --amend` modifies the most recent commit by replacing it with a new commit that incorporates staged changes or an updated commit message, effectively rewriting the commit history. `git rebase -i` (interactive rebase) allows you to reorder, squash, edit, or drop commits, which also rewrites the commit history by creating new commit objects.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
git diff
Why it's wrong here
git diff shows changes, does not modify history.
- ✗
git log
Why it's wrong here
git log only displays commit history, does not modify it.
- ✓
git commit --amend
Why this is correct
This command modifies the last commit.
- ✓
git rebase -i
Why this is correct
Interactive rebase rewrites commit history.
- ✗
git status
Why it's wrong here
git status shows working tree state, does not modify history.
Go deeper
Related to this question
About these practice questions
One of 989 original 200-901 practice questions on Courseiva, each with a full explanation and wrong-answer analysis — not exam dumps or protected exam content. Learn why practice questions differ from exam dumps →
JA
Written by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
This 200-901 practice question is part of Courseiva's free Cisco 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 200-901 exam.