nerdexam
CompTIACompTIA

XK0-005 · Question #745

XK0-005 Question #745: Real Exam Question with Answer & Explanation

The correct answer is A: git pull. {"question_number": 2, "correct_answer": "A", "explanation": "git pull is correct because it both fetches the latest commits from the remote repository AND merges (or rebases) them into the current local branch in a single step, which is what is needed to obtain and apply the con

Scripting, Containers, and Automation

Question

A DevOps engineer pushed the updated configuration to an existing branch of a remote Git repository. Which of the following commands should the Linux administrator use to obtain these configuration changes?

Options

  • Agit pull
  • Bgit log
  • Cgit fetch
  • Dgit checkout main

Explanation

{"question_number": 2, "correct_answer": "A", "explanation": "git pull is correct because it both fetches the latest commits from the remote repository AND merges (or rebases) them into the current local branch in a single step, which is what is needed to obtain and apply the configuration changes. 'git log' (B) only displays commit history and downloads nothing. 'git fetch' (C) downloads remote changes but leaves them unmerged, so the working files are not updated. 'git checkout main' (D) only switches the local branch and does not retrieve remote changes.", "generated_by": "claude-sonnet", "llm_judge_score": 4}

Topics

#Git#Version Control#Remote Repository#DevOps

Community Discussion

No community discussion yet for this question.

Full XK0-005 PracticeBrowse All XK0-005 Questions