Question

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

An organization wants to establish an automated CI/CD pipeline on Google Cloud. The pipeline must trigger automatically upon code commits, build container images from source files, and store the compiled images in a secure, fully managed Google Cloud repository. Which combination of Google Cloud services best fulfills these requirements?

  1. Cloud Build to execute automated container builds and Artifact Registry to securely store and manage container images.Answer
  2. B
    Cloud Build configured with a service account granted the primitive Owner role to eliminate permission barriers during artifact creation.
  3. C
    Cloud Build configured with a service account granted the Service Account Admin role so build steps can manage pipeline identity permissions.
  4. D
    Cloud Build to compile container artifacts while maintaining build state and image outputs in unversioned local storage.

Answer

Cloud Build to execute automated container builds and Artifact Registry to securely store and manage container images.
Combining Cloud Build and Artifact Registry forms the foundation of a GCP-native CI/CD pipeline. Cloud Build handles continuous integration by executing build triggers upon code commits, and Artifact Registry acts as the centralized management tool for storing, scanning, and serving container images.

Step-by-Step Solution

1
Identify the CI/CD execution tool
Cloud Build provides automated continuous integration capabilities triggered by repository events.
Google Cloud Build natively integrates with source repositories to compile code and build container images without managing infrastructure.
2
Identify the artifact storage service
Artifact Registry provides secure, version-controlled storage for container images.
Artifact Registry is the standard Google Cloud service for managing build artifacts and container images used in deployment pipelines.

Key Concept

Continuous Integration and Continuous Delivery (CI/CD) Pipeline Design
Rate this question