CompTIA Linux+ (XK0-005) — Question 306

A DevOps engineer wants to work on a snapshot of the infrastructure as code configuration. Which of the following commands should the engineer use to accomplish this task?

Answer options

Correct answer: D

Explanation

The correct answer is D, git tag, as it is specifically used to create a snapshot of a commit in the repository, marking a specific point in the project’s history. The other options do not serve this purpose: git pull updates the local repository, git push uploads changes, and git branch manages branches.