# Artifact Versioning

Artifact versioning assigns distinct identities to build outputs so deployments can select, track, and reuse an exact release.

Cloud concept. Updated 2026-11-26. Page: https://blowstack.com/tools/cloud-concepts-hub/artifact-versioning

> Artifact versioning applies to deployable outputs such as VM images, container images, packages, and deployment bundles. Keeping each published version tied to fixed content makes rollouts repeatable, shows what is running, and lets teams return to a known-good release without rebuilding it.

Practice exams covering Artifact Versioning: [DVA-C03 AWS Certified Developer - Associate](https://blowstack.com/practice-exams/aws-certified-developer-associate).

## 5 key aspects of Artifact Versioning

Artifact versioning combines stable identity and build traceability with controlled promotion, tested rollback, and deliberate retirement.

1. **Stable artifact identity**: Assign each published output a unique version and prevent that version from being overwritten. Use a digest to verify content where supported, and treat movable labels such as stable or latest as pointers rather than proof of identity.
2. **Build traceability**: Link each version to its source revision, build run, and dependency or base-image versions. Store available signatures, dependency inventories, and test results against that exact version so approval evidence does not follow a moving tag.
3. **Controlled promotion**: Promote the same tested artifact through validation, pilot, and production stages. Verify that it is available at each target and record the exact version deployed.
4. **Rollback readiness**: Retain a previous approved version and test redeployment before it is needed. Confirm that the older artifact still works with current data, configuration, and external dependencies.
5. **Retention and retirement**: Set rules for how long to keep versions and when to block them from new deployments. Check active deployment references, recovery plans, and audit requirements before deleting an artifact.

## Cloud services for Artifact Versioning

In an Azure VM image pipeline, Azure VM Image Builder produces the image and Azure Compute Gallery stores and replicates the resulting version so deployments can pin it explicitly. Amazon EC2 Image Builder supports a comparable workflow on AWS by building, testing, and distributing machine images whose regional IDs can be recorded in deployment configuration. For containers and packages, Artifact Registry provides the versioned repository rather than the build pipeline. Across these workflows, build tools produce the artifact, repositories or image catalogs make specific versions available, and deployment automation decides which approved version to run and records that choice.

- **[EC2 Image Builder](https://blowstack.com/tools/cloud-services-hub/ec2-image-builder)**: Amazon EC2 Image Builder uses versioned recipes and automated pipelines to build, test, and distribute machine images. Deployments can pin the resulting Amazon Machine Image ID for the target region instead of resolving whichever image is newest.

## What is Artifact Versioning

Artifact versioning identifies the output of a build, not just the source code that produced it. Two builds from the same commit can differ if a base image, dependency, or build tool changes. Give each published output a distinct version and record its source revision, build inputs, and checksum or digest where supported. Use semantic versions when they communicate a real compatibility contract; date-based versions or build numbers can be more useful for regularly patched machine images. Whatever the naming scheme, publish changed content as a new version rather than overwriting an existing one.

Separate the identity of an artifact from its release status. A registry tag such as `stable` can point to whichever version is currently approved, but the tag alone might not establish what a deployment received. Pin production deployments to an immutable reference, such as a container digest or an explicit image version that cannot be overwritten, and record that reference in deployment history. Build once and promote the tested output rather than rebuilding it for each environment. If an artifact must be copied to another registry, account, or region, verify its identity or integrity at the destination before deploying it.

For a fleet of virtual desktop session hosts, publish a new VM image version whenever the base OS, desktop applications, or host agents change. Record the build inputs and validate the candidate on a small group of hosts, including sign-in, profile loading, and application launch. Once the image is available in the target regions, roll it out in batches: provision hosts from the approved version, direct new sessions to them, and drain older hosts before removing them. Publishing the image does not patch existing hosts. If validation fails after rollout begins, keep traffic on healthy hosts or provision replacements from the previous approved image, provided it is still safe and compatible.

Retention is a balance between recovery needs, storage and replication cost, and the risk of leaving obsolete versions deployable. Define approval, deprecation, and deletion rules before automating cleanup. Keep enough known-good versions to cover the rollback window, protect versions still referenced by deployment or scale-out configurations, and block new use of vulnerable versions even if policy requires retaining them for audit. Before deleting a version, check that recovery and provisioning workflows no longer rely on it. An artifact rollback restores deployable content, not data: a previous application version may still fail against a newer database schema. Test rollback with the state and dependencies it will encounter in production.

## Artifact Versioning exam questions

Real practice exam questions on Artifact Versioning, with the correct answer and its explanation.

### Question 1 (DVA-C03)

**Question:**

A developer is investigating whether increasing the memory of an AWS Lambda function reduces the time it takes to generate a report. A CI job must run the same test payloads in parallel against the same code at 512 MB and 1,024 MB. The job must record a separate invocation ARN for each configuration so it can repeat the comparison after other builds deploy new code and change memory settings on the same function. The team cannot create another function. Which solution meets these requirements?

**Correct answer:** Deploy the code, set the memory to 512 MB, and publish a version. Change the memory to 1,024 MB without redeploying the code, and publish another version. Record and invoke the two version-qualified ARNs.

**Explanation:** Each publication snapshots the code and memory setting from $LATEST. Changing the memory is enough to publish a new version, even when the code is unchanged. Invoking each numbered version by its ARN selects that snapshot regardless of later deployments.

## Practice Artifact Versioning in a full exam

Questions on Artifact Versioning in each practice exam, with every answer option and an explanation for each:

- [DVA-C03](https://blowstack.com/practice-exams/aws-certified-developer-associate): 7 questions

## Learn Artifact Versioning in lessons

2 short lessons on Artifact Versioning in 1 certification course.

- DVA-C03: Artifact Immutability vs. Artifact Versioning (Premium), https://app.blowstack.com/lessons/artifact-immutability-vs-artifact-versioning-dva-c03
- DVA-C03: Artifact Versioning: container image references (Premium), https://app.blowstack.com/lessons/artifact-versioning-container-image-references-dva-c03
