nerdexam
CompTIA

XK0-005 · Question #507

An administrator needs to make some changes in the IaC declaration templates. Which of the following commands would maintain version control?

The correct answer is D. git clone https://github.com/comptia/linuxt+-.git. The command that will maintain version control while making some changes in the IaC declaration templates is git checkout -b <new-branch>. This command uses the git tool, which is a distributed version control system that tracks changes in source code and enables collaboration…

Scripting, Containers, and Automation

Question

An administrator needs to make some changes in the IaC declaration templates. Which of the following commands would maintain version control?

Options

How the community answered

(35 responses)
  • A
    3% (1)
  • B
    6% (2)
  • C
    3% (1)
  • D
    89% (31)

Explanation

The command that will maintain version control while making some changes in the IaC declaration templates is git checkout -b <new-branch>. This command uses the git tool, which is a distributed version control system that tracks changes in source code and enables collaboration among developers. The checkout option switches to a different branch in the git repository, where a branch is a pointer to a specific commit in the history. The -b option creates a new branch with the given name, and switches to it. This way, the administrator can make changes in the new branch without affecting the main branch, and later merge them if needed.

Topics

#Git#Version Control#IaC#Automation

Community Discussion

No community discussion yet for this question.

Full XK0-005 Practice