AZ400-Q: set pipeline retention deliberately

A compliance rule requires deployment evidence for 180 days, but large temporary test artifacts need only seven days. Which policy is appropriate?

  • A) Keep everything forever.
  • B) Delete every run after seven days.
  • C) Set retention according to the evidence requirement and manage temporary artifacts separately with the shortest justified retention. ✓
  • D) Store all artifacts in source control.

Answer: C. Retention is a policy decision balancing audit/recovery needs, cost, and exposure. Different evidence classes can have different justified lifetimes.

Why not the others: Indefinite retention creates cost and data risk; deleting proof early violates the requirement. Source control is not an artifact-retention system.

pipeline-retention · build-artifact · compliance-gate