AZ-400 Question 213
Select 2You are working for a fintech company that uses Azure DevOps to build and release several microservices. Some components are highly regulated and require artifacts to be stored for up to one year, while other components can have artifacts deleted after 30 days to control costs. Which two configurations should you implement to meet these varying retention requirements?
- A
A. Modify the organization-wide default retention policy to 365 days for all pipelines.
- B
B. Define custom retention policies for specific pipelines to store artifacts for 365 days where needed.
- C
C. Use pipeline YAML to enable Keep Forever for runs that require extended retention.
- D
D. Rely solely on manually deleting artifacts from the pipeline runs page when space is low.
- E
E. Configure a daily scheduled run that forces deletion of any artifact older than 30 days, regardless of pipeline policies.
Show answer and explanation
Correct answers: B, C
Explanation
In Azure DevOps, you can configure retention policies at both the organization and the pipeline level. For components that need extended artifact storage, defining longer retention settings in the pipeline or marking runs with Keep Forever/Retain Indefinitely ensures compliance. Other pipelines can follow a shorter default retention to control storage costs. Refer to Microsoft� documentation for more details on how to configure and manage retention policies effectively (https://learn.microsoft.com/azure/devops/pipelines/policies/retention).
- A. Incorrect.
A. Incorrect. Applying a 365-day policy organization-wide will unnecessarily store artifacts for less critical components, leading to increased storage costs and doesn't address varying requirements.
- B. Correct.
B. Correct. Custom retention policies allow you to extend or shorten retention periods based on pipeline-specific requirements, a common best practice in Azure DevOps.
- C. Correct.
C. Correct. Keep Forever (or Retain indefinitely) is a flag in Azure DevOps that can be set on critical or compliance-required artifacts to ensure they are not prematurely deleted.
- D. Incorrect.
D. Incorrect. Manually deleting artifacts is error-prone and not scalable. It does not address regulatory needs or automatically manage long-term storage requirements.
- E. Incorrect.
E. Incorrect. A blanket rule that deletes all artifacts older than 30 days will fail compliance requirements for components needing longer retention.