Question

Difficulty: EasyContinuous Integration and Continuous Delivery (CI/CD) Pipeline Design

Place the standard stages of a Google Cloud native CI/CD deployment pipeline for containerized applications in the correct sequential order, starting from the developer code commit to the final application deployment.

  1. 1A developer commits code changes to the source code repository, executing a trigger in Cloud Build.
  2. 2Cloud Build compiles the source code, runs automated unit tests, and builds the container image.
  3. 3Cloud Build pushes the validated container image to Google Artifact Registry.
  4. 4Cloud Deploy promotes and deploys the container image from Artifact Registry to the target Google Kubernetes Engine (GKE) cluster.

Answer

The correct sequential flow for a GCP containerized CI/CD pipeline is: 1) A developer commits code changes to trigger Cloud Build; 2) Cloud Build compiles source code and builds the container image; 3) Cloud Build pushes the container image to Artifact Registry; 4) Cloud Deploy deploys the container image to the target GKE cluster.
The standard sequence follows continuous integration to continuous delivery practices: source repository updates trigger Cloud Build to compile and test code, the resulting artifact is registered in Artifact Registry, and Cloud Deploy manages release promotion to the target compute environment.

Step-by-Step Solution

1
Identify the event that initiates the CI/CD pipeline
Code commitment to the repository acts as the entry trigger.
CI/CD automation begins with source code changes.
2
Determine the artifact build and testing phase
Cloud Build executes compilation, testing, and container packaging.
Source code must be converted into a runnable container image.
3
Identify artifact storage management
The compiled container image is uploaded to Artifact Registry.
Deployment services require a centralized, versioned registry to pull deployment images.
4
Determine the release deployment phase
Cloud Deploy orchestrates rolling out the stored image to GKE.
The final stage of CD is runtime deployment to operational infrastructure.

Key Concept

Google Cloud CI/CD Pipeline Execution Flow
Estimated Time:1m 0s
Rate this question