Quick Answer
CI/CD versioning: tag Docker images with Git commit SHA (not just "latest"). Store the deployed version in a manifest. When promoting across environments (dev -> staging -> prod), promote the same image by SHA. API versioning in CI/CD: maintain old API version branches, run both in parallel, use feature flags to control rollout of breaking changes.
Answer
Container images and APIs are versioned using semantic versioning. Allows rollback and compatibility management. Ensures controlled deployment lifecycle.
S
SugharaIQ Editorial Team
Verified Answer
This answer has been peer-reviewed by industry experts holding senior engineering roles to ensure technical accuracy and relevance for modern interview standards.