Q41 — AWS DVA-C02 Ch.2
Question 41 of 100 | ← Chapter 2
A developer is using AWS CodePipeline to provide continuous integration and continuous delivery (CI/CD) support for a Java application. The developer wants to update the pipeline to support ingestion of a new application dependency .jar file. The pipeline must trigger a build when a new version of the .jar file becomes available. Which solution meets these requirements?
- A. Create an Amazon S3 bucket to store the dependency .jar file. Publish the dependency .jar file to the S3 bucket. Use Amazon Simple Notification Service (Amazon SNS) notifications to trigger the CodePipeline pipeline build.
- B. Create an Amazon Elastic Container Registry (Amazon ECR) private repository. Publish the dependency .jar file to the repository. Use an ECR source action to trigger the CodePipeline pipeline build.
- C. Create an Amazon Elastic Container Registry (Amazon ECR) private repository. Publish the dependency .jar file to the repository. Use Amazon Simple Notification Service (Amazon SNS) notifications to trigger the CodePipeline pipeline build.
- D. Create an AWS CodeArtifact repository. Publish the dependency .jar file to the repository. Use an Amazon EventBridge rule to trigger the CodePipeline pipeline build. ✓
Correct Answer: D. Create an AWS CodeArtifact repository. Publish the dependency .jar file to the repository. Use an Amazon EventBridge rule to trigger the CodePipeline pipeline build.
Explanation
The developer can create an AWS CodeArtifact repository to store the dependency .jar file and use an Amazon EventBridge rule to monitor the repository for new versions of the .jar file. When a new version becomes available, the EventBridge rule triggers the CodePipeline pipeline build. 【Lantern Certification provided by: swufelp1999】