What is artifact promotion, and why not rebuild between environments?
CI/CD & GitOps · Advanced level
Answer
Artifact promotion means the exact same built artifact moves from dev to staging to production. I do not rebuild between environments because rebuilds can introduce different dependencies, timestamps, base images, or compiler output, breaking reproducibility and weakening auditability.
Technical explanation
Artifacts should be immutable and addressed by version or digest, with metadata linking them to commit SHA and pipeline run.
Jenkins archived artifacts are convenient for diagnostics, but production deployment should consume from a controlled artifact repository or registry.
Security gates should be policy-driven with documented exception handling; otherwise teams will bypass noisy checks.
Provenance should connect repository, commit, workflow identity, artifact digest, signer identity, and deployment environment.
A secure pipeline protects source, build environment, dependencies, artifacts, deployment credentials, and runtime promotion gates as one chain.
Immutable artifacts, SBOMs, signatures, provenance, vulnerability gates, and environment promotion reduce ambiguity about what was built and deployed.
Hands-on example
1. Design an advanced delivery exercise for: What is artifact promotion, and why not rebuild between environments using one service, one Git repository, one artifact registry, and one Kubernetes environment.
2. Build once from a protected branch, generate test reports, SBOM, vulnerability scan results, provenance metadata, and a container image tagged by both semantic version and digest.
3. Sign the image or artifact, verify the signature in the deployment pipeline, and promote the same digest through dev, staging, and production without rebuilding.
4. Use progressive exposure where relevant: feature flag off by default, canary 5%, automated metric check for error rate and latency, then expand or rollback.
5. Record audit evidence: PR, approver, pipeline run, artifact digest, SBOM location, signature verification result, deployment event, and rollback or forward-fix decision.
Check how well your resume matches the role with our free resume checker— match score, ATS check, and the skills you're missing.
More CI/CD & GitOps interview questions
- How do you sign and verify build artifacts or container images?
- Why should the same artifact move through environments rather than rebuilding per stage?
- What is an SBOM, and how would you generate and gate on one in CI?
- How do you implement secrets scanning to prevent credentials in commits?
- How do you secure a CI/CD pipeline against supply-chain attacks?
- How would you integrate SAST and dependency scanning into a pipeline?
- What is a webhook, and how does it connect GitHub to your CI?
- How do you handle database migrations safely within a deployment pipeline?