AWS Certified Developer – Associate (DVA-C02) — Question 493

A developer must cache dependent artifacts from Maven Central, a public package repository, as part of an application’s build pipeline. The build pipeline has an AWS CodeArtifact repository where artifacts of the build are published. The developer needs a solution that requires minimum changes to the build pipeline.

Which solution meets these requirements?

Answer options

Correct answer: A

Explanation

Associating the existing AWS CodeArtifact repository with an upstream repository that connects to Maven Central allows the build pipeline to fetch and cache public dependencies without changing its repository endpoint. Creating a new repository or domain would require updating the build tools' configuration in the pipeline, which goes against the requirement of minimal changes. Modifying resource policies does not enable external repository connections or dependency caching.