XK0-005 · Question #1751
XK0-005 Question #1751: Real Exam Question with Answer & Explanation
The correct answer is D: git tag <feature>. Creating a snapshot of the current state of the code in Git is best achieved with the git tag <feature> command, which is often used to mark release points or stable versions in a project. Tags are helpful for referencing points in history without affecting the branch structure.
Question
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?
Options
- Agit pull <feature>
- Bgit push <feature>
- Cgit branch <feature>
- Dgit tag <feature>
Explanation
Creating a snapshot of the current state of the code in Git is best achieved with the git tag <feature> command, which is often used to mark release points or stable versions in a project. Tags are helpful for referencing points in history without affecting the branch structure. Unlike branches, which are for active development, tags are commonly used to mark versions for future
Topics
Community Discussion
No community discussion yet for this question.