DVA-C02 · Question #656
A developer updates an application to use a new version of a critical dependency that is provided by a public repository. The build for the application fails because the public repository is…
The correct answer is B. Deploy AWS CodeArtifact. Update the library references in the application build dependencies to. AWS CodeArtifact can act as a proxy for public repositories and will cache requested packages. By configuring your build to pull dependencies from a CodeArtifact repository that’s connected to the public repo, your builds will still resolve to the latest versions when available…
Question
A developer updates an application to use a new version of a critical dependency that is provided by a public repository. The build for the application fails because the public repository is unavailable. The developer needs a solution that will track and resolve dependencies from the public repository. The solution must resolve to the most current version of dependencies, even when the public repository is unavailable. Which solution will meet these requirements?
Options
- ADeploy Amazon CloudFront as a proxy server. Create an origin for the public repository. Set the
- BDeploy AWS CodeArtifact. Update the library references in the application build dependencies to
- CDeploy an Amazon S3 bucket. Update the library references in the application build
- DDeploy AWS Artifact. Update the library references in the application build dependencies to
How the community answered
(29 responses)- A7% (2)
- B79% (23)
- C10% (3)
- D3% (1)
Explanation
AWS CodeArtifact can act as a proxy for public repositories and will cache requested packages. By configuring your build to pull dependencies from a CodeArtifact repository that’s connected to the public repo, your builds will still resolve to the latest versions when available and use the cached copies if the public repository is down.
Community Discussion
No community discussion yet for this question.