DOP-C02 practice question 33 of 35

A company has set up AWS CodeArtifact repositories with public upstream repositories The company's development team consumes open source dependencies…

Full set: 449 questions
A company has set up AWS CodeArtifact repositories with public upstream repositories The company's development team consumes open source dependencies from the repositories in the company's internal network. The company's security team recently discovered a critical vulnerability in the most recent version of a package that the development team consumes. The security team has produced a patched version to fix the vulnerability. The company needs to prevent the vulnerable version from being downloaded. The company also needs to allow the security team to publish the patched version. Which combination of steps will meet these requirements? {Select TWO.)
Answer options
A: Update the status of the affected CodeArtifact package version to unlisted
B: Update the status of the affected CodeArtifact package version to deleted Correct answer
C: Update the status of the affected CodeArtifact package version to archived.
D: Update the CodeArtifact package origin control settings to allow direct publishing and to block upstream operations Correct answer
E: Update the CodeArtifact package origin control settings to block direct publishing and to allow upstream operations.
Correct Answer:
B. Update the status of the affected CodeArtifact package version to deleted; D. Update the CodeArtifact package origin control settings to allow direct publishing and to block upstream operations
Explanation

Update the status of the affected CodeArtifact package version to deleted: Deleting the vulnerable package version prevents it from being available for download by any users or systems, ensuring that the compromised version is not consumed. Update the CodeArtifact package origin control settings to allow direct publishing and to block upstream operations: By allowing direct publishing, the security team can publish the patched version of the package directly to the CodeArtifact repository. Blocking upstream operations prevents the repository from automatically fetching and serving the vulnerable package version from upstream public repositories. By deleting the vulnerable version and configuring the origin control settings to allow direct publishing and block upstream operations, the company ensures that only the patched version is available and the vulnerable version cannot be downloaded.
Reference: Managing Package Versions in CodeArtifact Package Origin Controls in CodeArtifact

Scroll to Top