Microsoft DevOps Engineer Expert AZ-400 Practice Question
Your company hosts internal NuGet packages in Azure Artifacts. All packages follow semantic versioning. Consumer projects should automatically restore the newest non-breaking release of a dependency (including new minor and patch numbers) as soon as it is published, but must never pick up a major release until the team explicitly updates the project file. Which combination of versioning approach and version constraint should you recommend?
Semantic versioning and a floating minor constraint such as 1.* in the PackageReference element
Semantic versioning and a floating patch constraint such as 1.0.* in the PackageReference element
Calendar versioning and a floating Year.Month constraint such as 2023.* in the PackageReference element
Semantic versioning and an unbounded wildcard constraint such as * in the PackageReference element
Semantic versioning guarantees that breaking changes are introduced only when the major component increases. Specifying the dependency as 1.* in a PackageReference tells NuGet to float to any version that starts with major version 1, picking up newer minor or patch versions automatically. Version 2.0.0 and later will not be matched, so builds are protected from unexpected breaking changes. A 1.0.* constraint would limit updates to patch versions only, CalVer does not encode compatibility in the version number, and the unbounded * wildcard would pull in major versions that can break consumers.
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 is semantic versioning?
Open an interactive chat with Bash
What is a floating minor constraint?
Open an interactive chat with Bash
How does Azure Artifacts support versioning and constraints?
Open an interactive chat with Bash
Microsoft DevOps Engineer Expert AZ-400
Design and implement build and release pipelines
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 .