A cloud engineering team is designing a secure, automated Continuous Integration and Continuous Delivery (CI/CD) pipeline on Google Cloud to deploy containerized microservices to Google Kubernetes Engine (GKE) using Cloud Build, Artifact Registry, Binary Authorization, and Cloud Deploy. Arrange the operational pipeline stages in the correct chronological execution order from initial code commit to production rollout.
- 1Developers push code changes to the source repository, triggering Cloud Build to compile application code, run unit tests, and push the container image to Artifact Registry.
- 2Container Analysis scans the container image for vulnerabilities, and a KMS-backed attestor signs the image digest to generate a Binary Authorization attestation.
- 3Cloud Deploy creates a release referencing the attested image digest and initiates an automated deployment rollout to the staging GKE cluster.
- 4Automated integration tests run successfully in the staging environment, prompting Cloud Deploy to require explicit approval from a release manager before advancing.
- 5Upon receiving authorization, Cloud Deploy executes a progressive canary rollout strategy to deploy the new container release across the production GKE cluster.
Answer
The correct chronological sequence of pipeline stages is: (1) Source code commit triggers Cloud Build to compile code and push the container image to Artifact Registry, (2) Container Analysis scans the image and Cloud KMS signs the digest for Binary Authorization, (3) Cloud Deploy creates a release and deploys the attested image to the staging GKE cluster, (4) Integration tests pass in staging and Cloud Deploy requests explicit manual approval, and (5) Cloud Deploy executes a progressive canary rollout to the production GKE cluster upon approval.
The proper sequence aligns with Google Cloud CI/CD best practice architecture: artifact compilation (Cloud Build to Artifact Registry) -> security vulnerability scanning and attestation (Container Analysis and Binary Authorization) -> non-production deployment (Cloud Deploy to staging GKE) -> automated qualification testing and approval gating -> production rollout (Cloud Deploy progressive canary deployment).
Step-by-Step Solution
Key Concept
Continuous Integration and Continuous Delivery (CI/CD) Pipeline Design
Estimated Time:1m 30s