New Year Sale 2026! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

CompTIA XK0-005 Exam - Topic 3 Question 48 Discussion

Actual exam question for CompTIA's XK0-005 exam
Question #: 48
Topic #: 3
[All XK0-005 Questions]

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?

Show Suggested Answer Hide Answer
Suggested Answer: D

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 reference or deployment. Reference: CompTIA Linux+ Study Guide.


Contribute your Thoughts:

0/2000 characters
Lorean
3 months ago
I agree with D, it's the best way to mark a specific point in time.
upvoted 0 times
...
Galen
3 months ago
Wait, can you really use git tag for snapshots? Sounds odd.
upvoted 0 times
...
Matthew
3 months ago
C just creates a new branch, not a snapshot.
upvoted 0 times
...
Shawna
4 months ago
I think D is the right choice for tagging a snapshot!
upvoted 0 times
...
Mammie
4 months ago
Definitely not A, that's for pulling changes.
upvoted 0 times
...
Evette
4 months ago
I'm a bit confused. I thought git push was for sending changes to a remote repo, not for taking a snapshot.
upvoted 0 times
...
Jacklyn
4 months ago
I feel like git branch is about creating new branches, not really about snapshots. Could it be git pull after all?
upvoted 0 times
...
Jina
4 months ago
I remember practicing with similar questions, and I think git tag is used for marking specific points in history, so that might not be it.
upvoted 0 times
...
Hershel
5 months ago
I think we might need to use a command that retrieves the latest changes, so maybe it's git pull? But I'm not entirely sure.
upvoted 0 times
...
Flo
5 months ago
I'm a bit confused by this question. Wouldn't git pull or git push be more for updating or syncing the repository, rather than creating a snapshot? I'm not sure, but I'll guess option C, git branch .
upvoted 0 times
...
Glory
5 months ago
Okay, let me think this through. We want to create a snapshot of the infrastructure as code configuration, so I'm guessing we need to use a Git command that creates a tag or a branch. I'll go with option D, git tag .
upvoted 0 times
...
Bobbie
5 months ago
Hmm, I'm not sure about this one. I was thinking maybe git branch would work, but I'm not confident that's the right answer.
upvoted 0 times
...
King
5 months ago
This looks like a straightforward Git question. I think the answer is git tag , since that would create a snapshot of the current state of the repository.
upvoted 0 times
...
Patria
1 year ago
I'm not sure, but I think D) git tag could also be a possibility.
upvoted 0 times
...
Edgar
1 year ago
I disagree, I believe the correct answer is C) git branch .
upvoted 0 times
...
Sue
1 year ago
I bet the engineer is already regretting their career choice. Git tags are great, but they don't solve world hunger. Or do they? *scratches head*
upvoted 0 times
Lino
11 months ago
D) git tag
upvoted 0 times
...
Janna
12 months ago
C) git branch
upvoted 0 times
...
Sheridan
12 months ago
B) git push
upvoted 0 times
...
Leslie
12 months ago
A) git pull
upvoted 0 times
...
...
Laurene
1 year ago
Hold on, is this a trick question? What if the engineer wants to, you know, actually work on the code? Shouldn't they be using git branch?
upvoted 0 times
...
Cecilia
1 year ago
D all the way! Tagging the infrastructure is like putting a bow on a present. It's the perfect way to wrap up the snapshot.
upvoted 0 times
...
Bettina
1 year ago
I was just about to suggest D, but now I'm second-guessing myself. Maybe I should git push the changes instead?
upvoted 0 times
Claudio
12 months ago
No, I believe git branch would be the correct command to work on a snapshot of the infrastructure as code configuration.
upvoted 0 times
...
Dorothea
1 year ago
I think git tag is the right command to use in this situation.
upvoted 0 times
...
...
Delbert
1 year ago
Hmm, I think D is the right choice. Gotta love those git tags to capture the infrastructure state!
upvoted 0 times
Terina
1 year ago
I think git tag is the correct command to use in this situation.
upvoted 0 times
...
Alva
1 year ago
I agree, git tags are perfect for capturing the state of the infrastructure.
upvoted 0 times
...
...
Kati
1 year ago
I think the answer is A) git pull .
upvoted 0 times
...

Save Cancel