A CodePipeline pipeline builds a Java application. A new dependency in a .jar file must trigger a pipeline build when a new version is available. Which solution meets this requirement?
Choose an answer
Tap an option to check your answer.
Correct answer: Create an AWS CodeArtifact repository, publish the dependency .jar to CodeArtifact, and use an Amazon EventBridge rule to trigger the CodePipeline build..
Why this is the answer
The correct solution is to use AWS CodeArtifact. CodeArtifact is a fully managed artifact repository service that supports popular package managers and artifact types like Maven (for .jar files). Publishing the dependency .jar to CodeArtifact is the standard practice for managing application dependencies. An Amazon EventBridge rule can then be configured to detect new package versions published to CodeArtifact and trigger the CodePipeline build. Storing .jar files directly in S3 is possible but less ideal for dependency management as it lacks versioning and package management features. Using ECR is incorrect because ECR is designed for Docker container images, not Java .jar files. SNS notifications alone from S3 or ECR would require custom logic to interpret the event and trigger CodePipeline, whereas EventBridge has direct integrations for CodeArtifact events.
Pass your exam — without the endless answer hunt
Get every verified question and explanation for this exam in one place, and save hours of prep. 1,000+ certifications · 20+ languages · free to start.
Pass your exam faster → No card needed