XK0-005 · Question #1669
XK0-005 Question #1669: Real Exam Question with Answer & Explanation
The correct answer is C: Create a git pull request to merge into main.. {"question_number": 5, "correct_answer": "C", "explanation": "In a standard Git workflow, after fixing code on a feature or fix branch, the developer opens a pull request (PR) to request that the changes be reviewed and merged into the main (production) branch. This allows for co
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": 5, "correct_answer": "C", "explanation": "In a standard Git workflow, after fixing code on a feature or fix branch, the developer opens a pull request (PR) to request that the changes be reviewed and merged into the main (production) branch. This allows for code review and approval before deployment. Option A (creating a new branch) is done before starting work, not after. Option B (git clone) creates a full copy of the repository and is not used mid-workflow. Option D (git pull) updates a local branch from the remote, which was relevant at the start, not after fixes are ready.", "generated_by": "claude-sonnet", "llm_judge_score": 4}
Topics
Community Discussion
No community discussion yet for this question.