Microsoft DevOps Engineer Expert AZ-400 Practice Question
You are managing an Azure DevOps project with a default retention policy to keep runs for 30 days. For a single YAML pipeline named 'webapp-ci', you must implement a more granular policy:
Build records must be retained for 90 days for auditing.
Published pipeline artifacts must be deleted after 14 days to conserve storage.
The last 10 successful runs on the 'main' branch must be kept regardless of age.
A team member attempts to configure this in the azure-pipelines.yml file, but you inform them that not all requirements can be met directly in YAML. Which requirement must be configured outside of the pipeline's YAML file, in the pipeline's settings UI?
Deleting artifacts after 14 days while keeping the build record for 90 days.
Keeping the last 10 successful runs on the main branch.
While Azure Pipelines YAML files support several retention settings, they do not provide a way to set a separate, shorter retention period for artifacts compared to the build record itself. The days and minimumToKeep settings in the YAML retention block control the retention of the entire run record. To delete artifacts on a different schedule than the run, you must configure the 'Days to keep artifacts' setting in the pipeline's specific settings through the web UI. The other requirements, such as setting the number of days to keep the run, the minimum number of runs to keep, and scoping the policy to a specific branch, are all configurable within the YAML file.
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.
Why can't Azure Pipelines YAML files set different retention periods for artifacts and build records?
Open an interactive chat with Bash
How do you configure 'Days to keep artifacts' in Azure DevOps pipeline settings UI?
Open an interactive chat with Bash
What other retention settings can be configured in an Azure Pipelines YAML file?
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 .