Google Cloud (GCP) DevOps and SRE Interview Questions and Answers: GKE, Cloud Build, and Terraform

Google Cloud DevOps and Site Reliability Engineering (SRE) interviews test CI/CD pipelines, Kubernetes security, and reliability practices. Prepare with these top GCP DevOps and SRE interview questions and answers.

1. What is Workload Identity in Google Kubernetes Engine (GKE)?

Answer: GKE Workload Identity binds a Kubernetes Service Account to a Google Cloud IAM Service Account, allowing pods to authenticate securely to GCP APIs (like Cloud Storage or Secret Manager) using short-lived tokens without exporting static JSON key files.

2. How do SLIs, SLOs, and Error Budgets guide SRE decisions?

Answer: An SLI (Service Level Indicator) measures system behavior (such as request latency or availability). An SLO (Service Level Objective) sets the target threshold (for example, 99.9% availability). The Error Budget (0.1% allowed downtime) balances feature velocity against reliability—when exhausted, teams pause risky releases to focus on stability.

3. How do Cloud Build and Artifact Registry work together in CI/CD?

Answer: Cloud Build executes serverless build, test, and containerization steps triggered by Git commits or pull requests. Artifact Registry stores the resulting Docker images, language packages, and Helm charts with built-in vulnerability scanning and IAM access control.

4. What is Binary Authorization on Google Cloud?

Answer: Binary Authorization is a deploy-time security control for GKE and Cloud Run that verifies cryptographic attestations—ensuring only container images built and signed by trusted CI/CD pipelines and passing vulnerability checks can run in production.

5. How do you manage Terraform state securely on GCP?

Answer: Store Terraform state in a dedicated Google Cloud Storage bucket with object versioning enabled, uniform bucket-level IAM access, customer-managed encryption keys (CMEK), and native GCS state locking.

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top