Hands-on PBQ labs for the Google Professional Cloud DevOps Engineer exam: configure Cloud Build CI/CD pipelines, deploy to GKE with Deployment Manager, and implement Cloud Monitoring alerting policies with SLO-based dashboards.
These labs cover all DevOps & container certifications including:
KCNADCAKCSATerraform AssociateCKAD
CKACKSAWS DevOps ProfessionalAzure DevOps AZ-400Google Prof. Cloud DevOps
Google Prof. Cloud DevOps Labs - Module 10
Professional GCP DevOps labs with Cloud Build pipelines, GKE deployments, and Cloud Monitoring alerting - aligned to the Google Professional Cloud DevOps Engineer exam.
Lab 28: Cloud Build CI/CD Pipeline
GCP / GUI + Terminal
Scenario: Automated Build + Deploy
Your team needs a Cloud Build pipeline that builds a Docker image from source, pushes it to Artifact Registry, runs unit tests, and deploys to Cloud Run. Configure build triggers on the main branch with substitution variables.
1. Validate to see pipeline checklist. 2. View Architecture for build flow. 3. Reset to re-practice.
0%
Lab Completed!
Lab 29: GKE Deployment + Rolling Updates
GCP / GUI + Terminal
Scenario: Zero-Downtime GKE Rollout
Deploy a containerized application to a GKE cluster using a Deployment with rolling update strategy. Configure health checks, resource limits, and a HorizontalPodAutoscaler. Perform a canary-style rollout and verify zero-downtime.
GCP DevOps Lab
Learning Objectives:
GKE: cluster, deployments, services
Rolling Updates: maxSurge, maxUnavailable
HPA: autoscaling based on CPU
Health Checks: liveness + readiness probes
Step-by-Step Instructions
Step 1: Select cluster + image
In the GKE Console, set:
Cluster = prod-clusterImage = webapp-api:v1
Then click Set Deployment.
Step 2: Configure rolling update
Set:
MaxSurge = 25%MaxUnavailable = 0
Then click Set Strategy.
Step 3: Configure HPA
Set:
Min Replicas = 2Max Replicas = 10CPU Target = 70%
Then click Create HPA.
Step 4: Deploy to cluster
Click Deploy.
Step 5: Trigger rolling update
In Terminal:
kubectl set image deployment/webapp-api webapp-api=webapp-api:v2 --record
Expected: pods updated with zero downtime.
Step 6: Verify rollout
kubectl rollout status deployment/webapp-api
GCP DevOps Lab Environment
GKE Console
Terminal
GKE Deployment ManagerCluster: prod-cluster
Deployment Config
Autoscaling (HPA)
Deployment Status
Cluster--
Image--
Strategy--
DeployedNo
Autoscaler
HPA--
Replicas--
CPU Target--
Rollout--
Activity Log
[system]GKE console ready.
admin@gcp-devops:~$
Progress:0/6
Score: 0/100
After Completing All Steps:
1. Validate to see GKE deployment checklist. 2. View Architecture for rollout flow. 3. Reset to re-practice.
0%
Lab Completed!
Lab 30: Cloud Monitoring + Alerting Policies
GCP / GUI + Terminal
Scenario: SLO Monitoring + Incident Response
Configure Cloud Monitoring alerting policies for your Cloud Run service: create an uptime check, set a latency-based SLO, create an alerting policy on error rate, and verify incident creation when the SLO is breached. Configure notification channels for the ops team.
GCP DevOps Lab
Learning Objectives:
Cloud Monitoring: uptime checks, metrics
SLOs: latency-based service level objectives
Alerting: policies and notification channels
Incidents: automated incident creation
Step-by-Step Instructions
Step 1: Create uptime check
In the Monitoring Console, set:
Service = webapp-apiProtocol = HTTPSInterval = 60s