Real-Time Google Cloud DevOps Interview Questions (2027)

28 real-time GCP DevOps interview scenarios: Cloud Build IAM, Artifact Registry pulls, GKE, Cloud Run rollbacks, Cloud Deploy, Workload Identity.

Sep 12, 2025 - 16:41
Nov 15, 2026 - 06:28
 0  55
Real-Time Google Cloud DevOps Interview Questions (2027)

Real-time Google Cloud DevOps interview questions describe a live problem and ask how you would fix it: a Cloud Build step denied permission, a GKE pod stuck in ImagePullBackOff from Artifact Registry, a Cloud Run revision that never becomes ready, a rollout to production that must be reversed, or an alert that fires with no cause. You are judged on the order of your checks and the commands you name.

This page is the troubleshooting companion to our 95 Google Cloud DevOps interview questions, which cover the concepts. Service names and commands were checked against the Google Cloud documentation in November 2026.

Key takeaways

  • Most real-time questions are about identity. Know which service account runs Cloud Build, GKE nodes, Cloud Run services and pipeline jobs, and which roles each needs.
  • Artifact Registry is the place for container images and packages on Google Cloud. Pull failures usually mean a missing reader role or a wrong repository path.
  • For keys, the expected answer is Workload Identity Federation, both for GKE workloads and for external CI systems such as GitHub Actions, rather than downloaded JSON keys.
  • Cloud Deploy handles promotion and rollback between targets. Cloud Run keeps revisions, so traffic can move back to an older revision quickly.
  • Cloud Logging and Cloud Monitoring are where every investigation starts. Learn a few Logging query filters by heart.
  • Answer each scenario as: symptom, first check, likely cause, fix, prevention.

How to answer a real-time question

StepWhat you sayExample
SymptomRestate what fails and where"The build fails at the deploy step"
First checkName the log or command"I open the build log and the error text"
CauseNarrow it down"Permission denied means the build service account lacks a role"
FixSmallest safe change"Grant the specific role on that resource only"
PreventionStop it recurring"Manage IAM in Terraform and review it in pull requests"

Cloud Build scenarios

1. A Cloud Build deploy step fails with a permission denied error. What do you do?

Read the error in the build log to see which API call and resource failed. Find which service account the build runs as, which is shown in the build details and can be set per trigger. Grant that account the narrowest role needed on the target, such as Cloud Run Developer plus permission to act as the runtime service account. Avoid giving the build account Editor.

2. A build cannot push an image to Artifact Registry. Why?

Check that the repository exists in the region in the image path, for example asia-south1-docker.pkg.dev/PROJECT/REPO/app:tag. Then check the build service account has Artifact Registry Writer on that repository. A typo in the region or repository name gives a confusing not-found or denied error.

3. Builds are slow because dependencies download every time. How do you speed them up?

Use a larger machine type for heavy builds, pull a previous image and use it as a cache source for Docker layers, or store dependency caches in Cloud Storage between builds. Also split slow tests into parallel steps using waitFor.

4. A trigger does not fire on a pull request. What do you check?

Confirm the trigger type is for pull requests, that the branch pattern matches, and that the repository connection is healthy. For GitHub repositories, check that the Cloud Build GitHub app still has access to the repository. Look at the trigger's event history.

5. A secret appears in build logs. How do you stop it?

Store the value in Secret Manager and reference it through availableSecrets and secretEnv in cloudbuild.yaml instead of plain substitutions. Rotate the exposed secret immediately, because a value that reached logs must be treated as leaked.

steps:
- name: gcr.io/cloud-builders/gcloud
  entrypoint: bash
  args: ['-c', 'deploy.sh']
  secretEnv: ['API_TOKEN']
availableSecrets:
  secretManager:
  - versionName: projects/PROJECT_ID/secrets/api-token/versions/latest
    env: API_TOKEN

GKE scenarios

6. Pods show ImagePullBackOff for an image in Artifact Registry. What is wrong?

Run kubectl describe pod and read the event. If it says unauthorised or forbidden, the node service account lacks Artifact Registry Reader on the repository. If it says not found, check the image path and tag. For images in another project, grant the reader role in that project.

7. A pod needs to read from a Cloud Storage bucket. How do you give it access?

Use Workload Identity Federation for GKE. Grant the IAM role to the Kubernetes service account's principal identifier, or link the Kubernetes service account to an IAM service account. Do not mount a JSON key as a secret.

8. Pods are Pending with "Insufficient cpu". What do you do?

Check requests against node capacity with kubectl describe node. On Standard clusters, enable or tune the cluster autoscaler on the node pool, or add a node pool with larger machines. On Autopilot, check the pod requests are within supported ranges, since Autopilot provisions capacity for you.

9. A node pool upgrade is stuck. What do you check?

Look for pod disruption budgets that prevent draining, pods without controllers and long termination grace periods. GKE respects PDBs for a limited time during upgrades, so an overly strict PDB slows everything down. Check the operation in gcloud container operations list.

10. An internal service is reachable from pods but not from a VM in the same VPC. Why?

A ClusterIP Service is only reachable inside the cluster. Expose it with an internal passthrough Network Load Balancer by annotating a LoadBalancer Service, or use an internal Gateway. Then check firewall rules for the VM's source range.

11. Your cluster API endpoint should not be on the internet. What do you set up?

Create the cluster with a private endpoint or restrict the public endpoint with authorised networks. Reach it from a bastion, Cloud Shell through authorised access, or a CI runner inside the VPC.

Cloud Run scenarios

12. A new Cloud Run revision never becomes ready. What do you look at?

Open the revision's logs. A common cause is the container not listening on the port given in the PORT environment variable, which defaults to 8080. Others are a crash at startup from a missing environment variable or secret, or a startup that takes longer than the startup probe allows.

13. A release has a bug. How do you roll back quickly?

Move all traffic back to the previous healthy revision:

gcloud run services update-traffic my-service \
  --to-revisions=my-service-00041-abc=100 --region=asia-south1

Then fix forward through the pipeline. For safer releases, deploy with no traffic and shift a small percentage first.

14. Cold starts hurt latency. What can you change?

Set a minimum number of instances so some stay warm, reduce container start time, and enable startup CPU boost. Explain the cost trade-off of keeping instances warm.

15. Cloud Run must reach a private database in a VPC. How?

Use Direct VPC egress or a Serverless VPC Access connector, and connect to the database's private IP. For Cloud SQL, the Cloud SQL connection support with IAM authentication is another option.

Release and pipeline scenarios

16. How would you promote one build from dev to staging to production?

Build the image once in Cloud Build, then create a Cloud Deploy release that targets dev, staging and prod in order. Add an approval requirement on the prod target. Promotion moves the same release forward, so the artefact does not change between environments.

17. A production rollout in Cloud Deploy caused errors. What do you do?

Roll back the target to the previous successful release with gcloud deploy targets rollback. Then compare the two releases' rendered manifests to find the change.

18. GitHub Actions deploys to Google Cloud with a JSON key stored as a secret. How do you improve it?

Set up Workload Identity Federation with a workload identity pool and an OIDC provider for GitHub. Restrict it with an attribute condition to your repository and branch, then let the workflow exchange its OIDC token for short-lived credentials. Delete the old key.

19. Only signed and scanned images may run in production. What do you use?

Binary Authorization on GKE or Cloud Run, with a policy that requires attestations created after your build passes scanning. Artifact Analysis can scan images in Artifact Registry for known vulnerabilities.

20. Terraform state is corrupted after two pipelines ran at once. How do you prevent it?

Store state in a Cloud Storage backend, which supports state locking, and enable object versioning on the bucket so you can recover an earlier state. Make the pipelines serialise applies per environment.

Observability scenarios

21. An alert says error rate is high but the service looks fine. How do you check?

Open the alerting policy and its chart to see the exact metric and filter. Check whether the errors come from one route, such as a health check or a bot, and whether the threshold matches normal traffic. Fix the filter or the threshold rather than muting the alert.

22. How do you find all errors for one service in the last hour?

resource.type="cloud_run_revision"
resource.labels.service_name="my-service"
severity>=ERROR

Set the time range in Logs Explorer, then create a log-based metric if you need to alert on it.

23. How do you define reliability targets on Google Cloud?

Create SLOs in Cloud Monitoring for request-based or window-based indicators, then alert on error budget burn rate instead of raw thresholds. This pages people only when the target is at risk.

24. A latency spike appears every night at 2 am. What do you investigate?

Look for scheduled jobs: backups, batch Cloud Scheduler jobs, database maintenance windows or a large export. Correlate with Cloud Monitoring charts for the database and nodes at that time.

Security and cost scenarios

25. An auditor finds service accounts with Owner. How do you fix it?

Use IAM Recommender to see which permissions each account actually used, then replace Owner with predefined or custom roles that cover only those. Make the change through infrastructure as code and monitor for denied calls afterwards.

26. How do you stop anyone from creating public buckets?

Apply the organisation policy constraint that enforces public access prevention on Cloud Storage at the organisation or folder level.

27. The monthly bill jumped. Where do you start?

Export billing data to BigQuery and group by service and project. Check for idle GKE node pools, unattached persistent disks, high log ingestion and network egress. Set budgets with alert thresholds so the next jump is caught early.

28. Logging costs are growing fast. What do you do?

Find the noisiest log sources, then add exclusion filters on the sinks for logs you do not need, such as successful health checks, and lower application log levels in production.

Practice and next steps

Recreate five of these failures in a free-tier project: remove a role, break an image path, change the container port, add a strict PDB and push a bad Cloud Run revision. Fix each one while explaining aloud. For more, see the scenario-based GCP DevOps questions, the advanced Google Cloud DevOps questions and the Google Cloud DevOps preparation guide. Our Google Cloud Associate Cloud Engineer training runs in Kharadi, Pune and live online across India.

Frequently asked questions

What are real-time GCP DevOps interview questions?

They describe a live failure, such as a denied build, a pod that cannot pull an image or a broken release, and ask how you would diagnose and fix it on Google Cloud.

Which Google Cloud services matter most for DevOps interviews?

IAM, Cloud Build, Artifact Registry, GKE, Cloud Run, Cloud Deploy, Cloud Logging, Cloud Monitoring, Secret Manager and Terraform on Google Cloud.

How should a GKE pod access Google Cloud APIs?

Through Workload Identity Federation for GKE, so the pod gets short-lived credentials tied to its Kubernetes service account. Avoid JSON keys stored as secrets.

How do I roll back a Cloud Run deployment?

Send 100 percent of traffic to the previous revision with gcloud run services update-traffic, then fix the problem through your normal pipeline.

Where should container images be stored on Google Cloud?

Artifact Registry. Give writers to the build service account and readers to the runtime service accounts that pull images.

How can GitHub Actions deploy without a service account key?

Configure Workload Identity Federation with a GitHub OIDC provider and an attribute condition for your repository, then exchange the workflow token for short-lived credentials.

Official references

What's Your Reaction?

Like Like 0
Dislike Dislike 0
Love Love 0
Funny Funny 0
Angry Angry 0
Sad Sad 0
Wow Wow 0
Mridul I am a passionate technology enthusiast with a strong focus on DevOps, Cloud Computing, and Cybersecurity. Through my blogs at DevOps Training Institute, I aim to simplify complex concepts and share practical insights for learners and professionals. My goal is to empower readers with knowledge, hands-on tips, and industry best practices to stay ahead in the ever-evolving world of DevOps.