🔥 3-day streak
AWS Certified DevOps Engineer - Professional79 / 204
Question 79 of 204
A development team uses a trunk-based workflow in a CodeCommit repository. Their CodePipeline builds a Java application with CodeBuild and publishes the resulting JAR to CodeArtifact. Currently every merge to main publishes a package with version 1.0.0-SNAPSHOT, which overwrites the previous artifact. QA reports that they cannot reliably reproduce a bug because the artifact tested last week no longer exists in the repository. The team wants each build to publish an immutable, uniquely versioned artifact that can be traced back to the exact source commit, without manual version edits. Which approach best meets this requirement?
Reviewed for accuracy · Report an issueNext question