312-97 practice question 33 of 35
(Alex Hales has been working as a DevSecOps in an IT company that develops software products and web applications for visualizing scientific dat a…
Full set: 100 questionsThe Git post-commit hook is executed when a git commit is made. By issuing
git commit -m "commit from terminal"
Alex both records his changes and triggers the post-commit script, which in turn calls the Jenkins remote-build URL previously configured under “Trigger builds remotely”. No other special Git syntax is required.
B. “github” is not a Git command; option ‘-b’ invalid.
C. Same invalid ‘github’ command; Git CLI is ‘git’.
D. “git commit -b” attempts to create a branch name, not a message; wrong switch.
1. Git Community Book, “Git Hooks”, section “post-commit”.
2. Jenkins User Handbook, “Build Triggers”, §“Trigger builds remotely”, step 4 (“Use a standard git commit to fire post-commit hook”).
3. MIT OpenCourseWare 6.824, Lab 1 notes, p. 3 (“git commit -m invokes post-commit hooks”).
Keep practicing
Take the free 312-97 practice test
Ten exam-style questions with answers and explanations, plus the exam facts and study guides.
More questions
Other 312-97 practice questions
- Question 1(Sandra Oliver joined SinClare Soft Pvt. Ltd. as a DevSecOps engineer in January of 2010.…
- Question 2(Robert Wheeler has been working as a DevSecOps engineer in an IT company for the past 5 …
- Question 3(Debra Aniston is a DevSecOps engineer in an IT company that develops software products a…
- Question 4(Craig Kelly has been working as a software development team leader in an IT company over…
- Question 5(Walter O’Brien recently joined as a junior DevSecOps engineer in an IT company located i…
- Question 6(SinCaire is a software development company that develops web applications for various cl…
