Microsoft DevOps Engineer Expert AZ-400 Practice Question
You manage an Azure Repos Git repository for a mission-critical application. For each successful production deployment, you must add an immutable marker that stores the deployment date and the build pipeline ID and that is queryable by downstream dashboards. The marker must be pushed to the remote repository and must prevent accidental overwriting. Which Git command accomplishes this goal after you have checked out the deployed commit?
git push origin :refs/tags/release-2023.08.15
git tag -l release-2023.08.15 && git push origin --tags
git tag -f release-2023.08.15 && git push --force origin release-2023.08.15
git tag -a release-2023.08.15 -m "Prod deploy build 257" && git push origin release-2023.08.15
Annotated tags (-a) create a dedicated Git object that stores the tagger, timestamp, and a message, so they can carry the required deployment metadata. Pushing the tag by name sends only that tag to the remote without altering history, preserving immutability. The forced tag operation would allow accidental overwrites, the list operation merely enumerates existing tags, and the refspec with an empty value deletes the tag from the remote.
Ask Bash
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.
What are Git annotated tags, and how are they different from lightweight tags?
Open an interactive chat with Bash
Why is immutability important when using Git tags for production deployments?
Open an interactive chat with Bash
How does `git push origin <tag-name>` work in ensuring tags are safely pushed to the remote repository?
Open an interactive chat with Bash
Microsoft DevOps Engineer Expert AZ-400
Design and implement a source control strategy
Your Score:
Report Issue
Bash, the Crucial Exams Chat Bot
AI Bot
Loading...
Loading...
Loading...
Pass with Confidence.
IT & Cybersecurity Package
You have hit the limits of our free tier, become a Premium Member today for unlimited access.
Military, Healthcare worker, Gov. employee or Teacher? See if you qualify for a Community Discount.
Monthly
$19.99
$19.99/mo
Billed monthly, Cancel any time.
3 Month Pass
$44.99
$14.99/mo
One time purchase of $44.99, Does not auto-renew.
MOST POPULAR
Annual Pass
$119.99
$9.99/mo
One time purchase of $119.99, Does not auto-renew.
BEST DEAL
Lifetime Pass
$189.99
One time purchase, Good for life.
What You Get
All IT & Cybersecurity Package plans include the following perks and exams .