Question 940
A build task receives a private package token but a Docker RUN command has written that token into retained image history. Which lasting release or operating safeguard most directly reduces recurrence of this specific problem?
Explanation
Correct Answer
This safeguard targets recurrence after the fix: Rotate the exposed token and enforce secret-scanning on image artifacts. It controls the exact risk in A build task receives a private package token but a Docker RUN command has written that token into retained image history. The targeted engineering repair remains Use supported secure build-time secret handling and avoid persisting tokens in image layers or task logs.
Incorrect Answers
The source trigger pattern is broader than the release governance requirement. This is a separate requirement; the current case instead hinges on: This safeguard targets recurrence after the fix: Rotate the exposed token and enforce secret-scanning on image artifacts. The matching answer is: Rotate the exposed token and enforce secret-scanning on image artifacts.
The alternative addresses: Without a tracked base-image trigger the downstream image is not rebuilt automatically. The reported constraint here is different: This safeguard targets recurrence after the fix: Rotate the exposed token and enforce secret-scanning on image artifacts. The case-specific choice is: Rotate the exposed token and enforce secret-scanning on image artifacts.
Independent ad hoc scripts cannot reliably enforce the required build-before-promote dependency. By contrast, the relevant technical condition here is: This safeguard targets recurrence after the fix: Rotate the exposed token and enforce secret-scanning on image artifacts. The appropriate selection is: Rotate the exposed token and enforce secret-scanning on image artifacts.