Q69 — AWS DVA-C02 Ch.1
Question 69 of 100 | ← Chapter 1
A developer uses AWS CodePipeline to provide continuous integration and continuous delivery (CI/CD) for a Java application. The developer needs to update the pipeline to support ingestion of new application dependency JAR files. The pipeline must trigger a build whenever a new version of a JAR file becomes available. Which solution satisfies these requirements?
- A. Create an Amazon S3 bucket to store dependency JAR files. Publish dependency JAR files to the S3 bucket. Use Amazon Simple Notification Service (Amazon SNS) to notify and trigger the CodePipeline build.
- B. Create an Amazon Elastic Container Registry (Amazon ECR) private repository. Publish dependency JAR files to the repository. Use an ECR source action to trigger the CodePipeline build.
- C. Create an Amazon Elastic Container Registry (Amazon ECR) private repository. Publish dependency JAR files to the repository. Use Amazon Simple Notification Service (Amazon SNS) to notify and trigger the CodePipeline build.
- D. Create an AWS CodeArtifact repository. Publish dependency JAR files to the repository. Use an Amazon EventBridge (Amazon CloudWatch Events) rule to trigger the CodePipeline build. ✓
Correct Answer: D. Create an AWS CodeArtifact repository. Publish dependency JAR files to the repository. Use an Amazon EventBridge (Amazon CloudWatch Events) rule to trigger the CodePipeline build.
Explanation
AWS CodeArtifact is purpose-built for managing software packages and dependencies—including Java JARs—and integrates natively with CI/CD workflows. Using an Amazon EventBridge rule to detect new package versions and trigger CodePipeline ensures reliable, event-driven automation. S3 (Option A) lacks native dependency versioning and pipeline integration. ECR (Options B and C) is designed for container images—not JAR artifacts—and offers no direct pipeline triggering capability. Thus, Option D is the correct, most appropriate solution. 【Lantern Certification: swufelp1999】