XK0-005 · Question #674
XK0-005 Question #674: Real Exam Question with Answer & Explanation
The correct answer is C: Create a git pull request to merge into main.. {"question_number": 9, "question": "After fixing code issues, what is the next step to deploy to production?", "correct_answer": "C", "explanation": "In a proper Git workflow, a developer works on a feature or fix branch and then opens a pull request (PR) to merge those changes i
Question
A technician just fixed a few issues in some code and is ready to deploy the code into production. Which of the following steps should the technician take next?
Options
- ACreate a new branch using git checkout.
- BPerform a git clone to pull main down.
- CCreate a git pull request to merge into main.
- DPerform a git pull to update the local copy of the code.
Explanation
{"question_number": 9, "question": "After fixing code issues, what is the next step to deploy to production?", "correct_answer": "C", "explanation": "In a proper Git workflow, a developer works on a feature or fix branch and then opens a pull request (PR) to merge those changes into the main branch. This allows for code review, automated CI checks, and controlled merging before production deployment. Creating a new branch (A) would be done at the start of work, not the end. 'git clone' (B) copies a remote repository and is not part of the deployment step. 'git pull' (D) updates the local branch from the remote but does not initiate the merge-to-production process.", "generated_by": "claude-sonnet", "llm_judge_score": 4}
Topics
Community Discussion
No community discussion yet for this question.