MyInternships.in
41 QUESTIONS · JUNIOR TO SENIOR · WITH ANSWERS

GCP Troubleshooting & Scenario Questions Interview Questions and Answers

The round where the interviewer describes a broken system and watches how you think. These are the real symptoms GCP engineers debug — 502s, cold starts, quota errors, IAM denials, cost spikes — with the diagnostic path for each.

0 junior7 mid-level34 senior

How to use this set

Every question below is written the way an interviewer actually phrases it, followed by a model answer you could say out loud in 30–60 seconds, and — where it helps — the reason the question is asked and the trap most candidates fall into. Questions are tagged Junior, Mid or Senior so you can skip to your level.

This is one of 25 topic sets in the complete GCP interview questions guide. Work through the fundamentals first, then the services your target role actually uses.

1
Mid level

How do you approach a production incident you have never seen before?

Answer: Stabilise first, diagnose second. Check the scope — which users, which region, which service. Look for a recent change, because most incidents follow a deployment or configuration change, and roll back if one correlates. Then work down the stack from user symptom to component, using dashboards and traces rather than guessing, and communicate status while you work.

Why interviewers ask this: The single most valuable habit is "what changed?" — it resolves the majority of incidents faster than root-cause analysis does. Interviewers are listening for whether you restore service before understanding it, which is the correct priority order.

2
Senior level

Your load balancer returns 502 but the backend responds fine when you curl it directly. What is wrong?

Answer: Almost always health checks. Verify the firewall allows 130.211.0.0/22 and 35.191.0.0/16 to the health-check port, that the check path returns 200, and that the backend service port and protocol match. Also check the backend service timeout against actual response time, and whether the backend closes idle connections faster than the load balancer expects, which causes intermittent 502s.

Why interviewers ask this: Reciting the health-check source ranges immediately is the strongest possible signal here. The keepalive mismatch is the subtle second cause and is worth naming because it produces intermittent rather than total failure, which is much harder to diagnose.

3
Mid level

A GKE pod is stuck in Pending. Walk me through the diagnosis.

Answer: kubectl describe pod and read the Events. The usual causes are insufficient CPU or memory on any node, a node selector, affinity rule or taint no node satisfies, an unbound PersistentVolumeClaim, or pod IP range exhaustion in a VPC-native cluster. If cluster autoscaling is on, check its events — it logs precisely why it did or did not add a node.

Why interviewers ask this: Going to Events first rather than guessing is what is being assessed. The autoscaler detail that impresses is that it will not add a node if the pod could never fit on the largest node in any pool, and it says so explicitly in its events.

4
Mid level

Pods are in CrashLoopBackOff. What do you check?

Answer: kubectl logs --previous for the crashed container's output, then kubectl describe for the exit code. Exit code 137 means OOM-killed, so the memory limit is too low or there is a leak. Other common causes are a liveness probe with too short an initial delay, a missing ConfigMap or Secret, a bad entrypoint, or a dependency unreachable at startup.

Why interviewers ask this: Naming exit code 137 and the initialDelaySeconds mistake specifically is what makes this read as operational experience. Startup probes exist precisely to handle slow-starting applications without weakening the liveness check.

5
Senior level

A user reports "permission denied" but you can see they have the right role. What are the possibilities?

Answer: The role is granted on a different project or resource; an IAM condition on the binding is not satisfied; a VPC Service Controls perimeter blocks access from their location; an organisation policy or deny policy overrides it; the resource uses CMEK and they lack the KMS key permission; the change has not propagated yet; or a service account access scope on a VM is blocking the API despite correct IAM.

Why interviewers ask this: The CMEK case is the one that separates strong candidates — Storage Admin alone is not enough when a customer-managed key is involved. Naming Policy Troubleshooter as the tool that decides between these hypotheses definitively is the right close.

6
Senior level

A deployment succeeded but users see errors. How do you investigate?

Answer: Confirm the scope — all users or a subset, all regions or one. Check Error Reporting for new error groups introduced by this version, compare metrics split by revision, and look at Cloud Trace for a changed span breakdown. If it correlates with the deploy, roll back first and diagnose afterwards. Check whether a database migration accompanied the release.

Why interviewers ask this: Rolling back before completing diagnosis is the correct instinct and interviewers watch for it. The migration question matters because a rollback that leaves a changed schema may not restore service, which is the failure mode people discover mid-incident.

7
Senior level

Cloud Run latency spiked but CPU is low. What is happening?

Answer: Likely cold starts or downstream blocking. Check instance count churn against request rate for cold starts, then check concurrency — if requests are queueing on instances at their concurrency limit, latency rises without CPU saturation. Also check downstream dependency latency, database connection pool exhaustion, and whether CPU is being throttled between requests.

Why interviewers ask this: Low CPU with high latency almost always means waiting rather than computing, so the diagnosis should go to queueing and downstream dependencies rather than scaling up. Recognising that pattern immediately is the point of the question.

8
Senior level

A Cloud SQL instance is at 100% CPU. What do you do?

Answer: Open Query Insights to find the queries contributing most load, look for missing indexes and full scans, check for lock contention and long-running transactions, and correlate with recent deployments or batch jobs. Short term, scale up or throttle the offending workload; long term, fix the query or index. Also check whether the load is connection churn rather than query cost.

Why interviewers ask this: Diagnosing before scaling is what interviewers assess — scaling a badly-indexed query just makes the same problem more expensive. Naming Query Insights specifically, rather than describing generic database debugging, is the GCP-flavoured answer.

9
Senior level

A BigQuery dashboard query that took 3 seconds now takes 90. What changed?

Answer: Compare job execution details between runs. Check whether partition pruning was lost because a filter now wraps the partition column in a function or filters a different column; whether the table grew significantly; whether slot availability dropped because another workload is consuming the reservation; whether caching stopped applying; or whether a schema or clustering change altered the plan.

Why interviewers ask this: The lost-pruning case is the subtle and most common one — the query still returns correct results, just after scanning everything. Naming CAST or DATE() applied to the partition column as the specific pattern is a strong practical detail.

10
Senior level

A Pub/Sub subscription backlog is growing. How do you diagnose it?

Answer: Look at oldest unacknowledged message age and undelivered message count. Determine whether consumers are erroring, too slow, or too few; whether ack deadlines are expiring and causing redelivery that makes throughput worse; whether ordering keys are causing head-of-line blocking; and whether the publish rate genuinely increased.

Why interviewers ask this: Alerting on oldest_unacked_message_age rather than backlog count is the operational point, because a large backlog during a legitimate spike is fine while a growing age means you are permanently behind. The ack-deadline death spiral is the non-obvious cause worth naming.

11
Senior level

The bill doubled this month with no traffic increase. Where do you look?

Answer: Query the billing export in BigQuery, grouping by service and SKU for both months and computing the delta, then drill into project, label and resource. Common causes are a new always-on resource, a recursive function or pipeline, log or flow-log volume, BigQuery scan growth from a new dashboard, storage class or versioning accumulation, and cross-region egress introduced by a deployment change.

Why interviewers ask this: SKU-level delta analysis rather than service-level totals is the method, because service totals rarely explain the change. Naming recursive triggers as a specific cause shows awareness of the serverless failure mode that produces exactly this symptom.

12
Mid level

A VM cannot reach the internet. What do you check?

Answer: Whether it has an external IP or a Cloud NAT configured for its subnet; whether a route to the internet gateway exists; whether an egress firewall rule denies the traffic; whether DNS resolution works; and whether the guest OS firewall or routing table is the problem. Network Intelligence Center Connectivity Tests will trace the path and name the blocking rule.

Why interviewers ask this: The most common real cause on a private cluster or VM is simply missing Cloud NAT, which manifests as failing package installs and ImagePullBackOff. Naming Connectivity Tests turns a list of hypotheses into a definitive one-step answer.

Preparing for a GCP role?

Browse live GCP cloud internships and fresher jobs hiring across India right now.

Cloud Engineer Jobs
13
Mid level

You get "Quota exceeded" during a deployment. What do you do?

Answer: Identify which quota from the error — commonly regional CPU, in-use IP addresses, or an API rate limit. Check current usage against the limit in the quotas page, free capacity by removing unused resources, deploy to another region or a smaller shape as an immediate workaround, and request an increase, which can take days. Then add quota headroom checks to your pre-launch process.

Why interviewers ask this: The lead-time point is the practical one: quota increases are not instant, so discovering the limit during a launch is already too late. Adding quota review to capacity planning is the preventive answer interviewers want after the immediate fix.

14
Senior level

A GKE cluster stops adding nodes even though pods are pending. Why?

Answer: Most likely IP exhaustion in the VPC-native cluster's pod secondary range — each node consumes a pod CIDR block, so the range size caps the node count. Other causes are hitting the node pool maximum, regional CPU or quota limits, or the pending pod requesting more resources than the largest available machine type.

Why interviewers ask this: The pod-range limit is a genuinely non-obvious constraint decided at cluster creation and hard to change later. Naming the mitigation — reducing maximum pods per node to shrink the per-node block — shows you understand the mechanism rather than just the symptom.

15
Senior level

An application intermittently fails with connection errors to Cloud SQL. What is likely?

Answer: Connection exhaustion. Calculate maximum instances multiplied by pool size against the instance connection limit — an autoscaling event multiplies connections. Other causes are a failover dropping connections without client retry, missing connection recycling so stale connections are used, or Cloud NAT port exhaustion if traffic goes through NAT.

Why interviewers ask this: The arithmetic is what makes this answer concrete: 100 Cloud Run instances with a pool of 10 is 1,000 connections, which exhausts most instances. Cloud NAT port exhaustion is the second-order cause that catches people because it looks identical from the application side.

16
Senior level

Cloud Function invocations are being retried forever. What happened?

Answer: Retry is enabled on an event-driven function and the function fails deterministically on a particular message, so it is redelivered with backoff for up to seven days. The fix is a guard on event age inside the function, a dead-letter configuration on the underlying subscription, and making the function distinguish transient failures from permanent ones.

Why interviewers ask this: The event-age guard is the specific idiom: check the event timestamp and acknowledge instead of failing once it exceeds a threshold. Without it, a poison message consumes resources and generates cost for a week.

17
Senior level

A Terraform apply failed halfway. What is the state of the world and what do you do?

Answer: Terraform recorded the resources it created, so re-running continues from there. If a resource was created but the state write failed, it is orphaned — it exists in GCP but not in state — so the next apply tries to create it again and fails on a name conflict. Import the orphan, or delete it manually if it is safe, then re-run.

Why interviewers ask this: Recognising the orphaned-resource symptom from a name-conflict error is the practical skill. The other check is whether a lock was left behind by the killed process, requiring force-unlock — which must only be done when no apply is genuinely running.

18
Senior level

Users in one region report slowness while others are fine. How do you investigate?

Answer: Check whether the global load balancer is routing them to a distant region because their nearest region is unhealthy or at capacity; check backend health and capacity settings in that region; look at regional dependency latency such as a database in another region; and check Performance Dashboard for packet loss between zones. Uptime checks from multiple locations confirm whether it is regional.

Why interviewers ask this: Capacity spillover is the specific cause worth naming, because a region at its configured maximum silently sends traffic elsewhere, which looks like a network problem and is actually a configuration one.

19
Senior level

A batch job that normally takes 30 minutes has been running for 4 hours. What do you check?

Answer: Look at the execution graph for a stage consuming disproportionate time, check for data skew where one worker does most of the work, check whether input data volume grew or the small-file count exploded, check whether autoscaling is constrained by quota, and check for a downstream dependency that is throttling writes.

Why interviewers ask this: Skew shows as a large gap between median and maximum worker time in a stage, which is the specific diagnostic signature. The small-file problem is the other frequent cause and is invisible unless you look at input file counts rather than total bytes.

20
Senior level

You are paged that a service is down but all your metrics look healthy. What now?

Answer: Trust the user report over your instrumentation. Check from outside with an uptime check or a manual request from a different network — the failure may be DNS, certificate expiry, load balancer configuration, or a CDN issue, none of which your server-side metrics see. Check whether the metrics pipeline itself is broken.

Why interviewers ask this: The insight is that internal metrics are collected by the system that may be broken, which is why black-box monitoring exists. Certificate expiry is the classic cause of a service that is perfectly healthy and completely unreachable.

21
Senior level

A newly created private GKE cluster cannot pull images. Why?

Answer: Private nodes have no external IP, so without Cloud NAT they cannot reach public registries. The fixes are configuring Cloud NAT for outbound access, or better, using Artifact Registry with Private Google Access enabled on the subnet so image pulls stay on Google's network entirely.

Why interviewers ask this: This is the single most common first-day problem on a private cluster and the symptom is ImagePullBackOff on every pod. Preferring Private Google Access with Artifact Registry over Cloud NAT is the better answer because it avoids the internet path altogether.

22
Senior level

Cloud Storage uploads from your application are intermittently slow. What do you investigate?

Answer: Check whether the bucket is in the same region as the compute, since cross-region writes add latency and egress; whether uploads are resumable and correctly chunked for large objects; whether many small objects are being written sequentially rather than in parallel; and whether a very high sustained write rate with sequential key prefixes is limiting distribution.

Why interviewers ask this: Bucket and compute co-location is the most frequent real cause and is easy to get wrong when a bucket was created earlier for a different purpose. The sequential-prefix issue only matters at very high rates, and saying so rather than treating it as universal is the accurate answer.

23
Senior level

Your Dataflow streaming job is falling behind. What do you do?

Answer: Check system lag and data freshness to confirm, then look at the execution graph for the bottleneck stage. Common causes are skew on a key, an expensive per-element operation such as a synchronous external call, insufficient workers or a maximum-worker cap, an undersized sink, or a side input that has grown too large for worker memory.

Why interviewers ask this: The synchronous external call inside a DoFn is a frequent and fixable cause — batching those calls or caching the results transforms throughput. Enabling Streaming Engine so autoscaling responds properly is the platform-level fix.

24
Senior level

An engineer accidentally deleted a production Cloud Storage bucket. What now?

Answer: If soft delete is enabled, restore within the retention window. If not, check whether the bucket name has been reclaimed, look for cross-region or cross-project backups, and check whether any consumer has a cached copy. Then fix the systemic issue: soft delete, versioning, deny policies on delete permissions, and separate backups in another project.

Why interviewers ask this: The honest part of the answer is that without soft delete or an independent backup the data is gone, and saying so rather than implying magic recovery is correct. The systemic remediation is what the interviewer is really assessing.

Preparing for a GCP role?

Browse live GCP cloud internships and fresher jobs hiring across India right now.

Cloud Engineer Jobs
25
Senior level

A Cloud Run service is returning 429 errors. What is happening?

Answer: The service has hit its maximum instance limit and requests are being rejected, or Cloud Armor rate limiting is throttling the client, or a downstream API is returning 429 and the service is propagating it. Check instance count against the configured maximum first, then Cloud Armor logs, then downstream dependency responses.

Why interviewers ask this: Hitting the max-instances cap is the most common cause and it is a deliberate configuration, so the fix is deciding whether to raise it or whether the cap is correctly protecting a downstream database. That trade-off is the real answer.

26
Senior level

A service works for some users and not others, with no regional pattern. What could it be?

Answer: A partial rollout — a canary revision serving a percentage of traffic; a feature flag enabled for a segment; session affinity pinning some users to a broken instance; a cache serving stale content to some users; data-dependent failure affecting particular accounts; or a client-version difference. Correlate failures by user attribute rather than by infrastructure.

Why interviewers ask this: The instinct to correlate by user attribute rather than by server is what solves these, and it requires logging user, tenant and version identifiers on every request. That is the observability design decision that makes this debuggable at all.

27
Senior level

The Terraform plan shows changes you did not make. What does that mean and what do you do?

Answer: It is drift — someone changed the resource outside Terraform, or another controller manages that attribute. Determine which by checking audit logs for who changed it. If it was an unauthorised manual change, apply to revert and remove the access that allowed it. If another system legitimately owns the attribute, add ignore_changes.

Why interviewers ask this: Checking audit logs to identify the actor before deciding is the step that distinguishes a considered response from reflexively applying. Blindly reverting a change another controller manages produces a plan that never converges.

28
Senior level

A scheduled job silently stopped running and nobody noticed for a week. How do you prevent that class of failure?

Answer: Alert on absence, not just on failure — a heartbeat or dead-man's-switch that fires when an expected completion signal does not arrive within a window. Monitor data freshness downstream so a stale output triggers an alert regardless of why. Track job success as a metric with an expected rate rather than relying on error notifications.

Why interviewers ask this: Alerting on absence is the key concept, because a job that never starts produces no errors to alert on. Data-freshness monitoring is the complementary control that catches the failure from the consumer's perspective rather than the producer's.

29
Mid level

A Cloud Function that worked in testing fails in production with permission errors. Why?

Answer: Locally it ran with your developer credentials, which are far broader than the runtime service account it uses in production. Check the function's service account roles against the APIs it calls, and whether an access scope, VPC Service Controls perimeter or organisation policy is blocking it.

Why interviewers ask this: The credentials delta between local and deployed is the most common cause of this exact symptom, and naming it immediately shows you understand how serverless identity works rather than only how to write the function.

30
Senior level

Latency is fine at p50 but terrible at p99. What causes that and how do you find it?

Answer: Tail latency usually comes from cold starts, garbage collection pauses, lock contention, a slow dependency affecting a subset of requests, cache misses, or one overloaded backend. Find it with distributed tracing filtered to slow traces, and by comparing the span breakdown of a slow request against a fast one.

Why interviewers ask this: Filtering traces to the slow tail rather than looking at averages is the technique, because the p99 requests are structurally different from the p50 ones. Naming garbage collection and cold starts as specific candidates shows you have chased this before.

31
Senior level

A deployment is stuck and will not complete on GKE. What do you check?

Answer: kubectl rollout status and describe the deployment for the reason. Common causes are new pods failing readiness so the rollout never progresses, a PodDisruptionBudget too strict to allow eviction, insufficient cluster capacity for the surge, an image that cannot be pulled, or progressDeadlineSeconds not yet reached.

Why interviewers ask this: The over-strict PodDisruptionBudget is the non-obvious cause and it blocks node drains and cluster upgrades too. Naming it shows you understand that the same mechanism protecting availability can also prevent all progress.

32
Senior level

How would you debug a slow API call that passes through five services?

Answer: Use distributed tracing to see the span breakdown across all five and identify where time is actually spent — that single view usually answers it. If tracing is missing, add correlation identifiers to logs and reconstruct the path, then instrument properly. Check each hop for serial calls that could be parallel and for retries amplifying latency.

Why interviewers ask this: The requirement that makes tracing work is context propagation through every service, and a broken propagation chain is the usual reason traces are useless when you need them. Retry amplification is the second cause worth naming — three services each retrying three times is nine attempts.

33
Senior level

A VM is unreachable over SSH. Walk through the diagnosis.

Answer: Confirm the instance is RUNNING; read the serial console output for boot or disk errors; verify a firewall rule allows port 22 from your source or from IAP's 35.235.240.0/20; check the route to the internet or on-premises; verify OS Login IAM roles or metadata keys; and check whether sshd is running inside the guest, using the serial console to get in if it is not.

Why interviewers ask this: The serial console is the strongest single move because it is the only way in when the network stack or sshd is broken, and it works when nothing else does. A candidate who names it first has clearly recovered a broken VM before.

34
Senior level

You suspect a service account has been compromised. What is your first action?

Answer: Contain — disable the service account or remove its role bindings and disable its keys — then preserve evidence before anything is deleted. Investigate with audit logs to see what it did, from where, and over what period, using Cloud Asset Inventory time travel for state changes. Rotate everything it could reach, then remediate the root cause.

Why interviewers ask this: Preserving evidence before deleting is the step people skip under pressure, and deleting the service account outright destroys the binding history you need to scope the blast radius. Contain, preserve, investigate, remediate is the order.

35
Senior level

A GKE node keeps going NotReady. What are the likely causes?

Answer: Resource pressure — memory or disk exhaustion on the node, often from log files or images filling the boot disk; kubelet crashing; network issues preventing heartbeats; or an underlying VM problem. Check node conditions with kubectl describe node, node logs in Cloud Logging, and disk utilisation.

Why interviewers ask this: Disk pressure from accumulated images and logs is a common and easily-missed cause, and it manifests as pods being evicted before the node goes fully NotReady. Node auto-repair handles the symptom; finding what fills the disk handles the cause.

36
Senior level

Your CDN hit rate is very low. What do you investigate?

Answer: Check origin Cache-Control headers, since Cloud CDN follows them by default and a missing or no-store header prevents caching entirely. Check the cache key for unnecessary query parameters or headers that fragment the cache. Check whether responses vary by cookie, and whether content is being invalidated too frequently.

Why interviewers ask this: Tracking query parameters in the cache key is the most common specific cause, creating a separate cache entry per user for identical content. Excluding them can transform hit rate, which makes it a satisfying and concrete fix.

Preparing for a GCP role?

Browse live GCP cloud internships and fresher jobs hiring across India right now.

Cloud Engineer Jobs
37
Senior level

A BigQuery scheduled query has been failing silently. How would you have caught it?

Answer: Scheduled queries have limited failure notification, so the robust approach is monitoring the freshness of the output table and alerting when it is stale, plus a log-based alert on job failure events from INFORMATION_SCHEMA.JOBS or Cloud Logging. Better still, move dependent transformations to an orchestrator that alerts on task failure.

Why interviewers ask this: Monitoring the output rather than the job is the general principle — it catches every reason the data is stale, not just an error the job reported. That reframing applies to any pipeline component and is what the question is teaching.

38
Senior level

How do you handle an incident where you cannot find the root cause quickly?

Answer: Restore service by whatever safe means — roll back, fail over, shed load, disable the feature — and continue investigating afterwards with the pressure off. Preserve logs, metrics and any affected state for analysis. Communicate that service is restored while investigation continues, and follow with a blameless postmortem.

Why interviewers ask this: The priority order is what is being tested: mitigation before understanding. Engineers who keep debugging a live outage because they want to know why are optimising for curiosity over users, and interviewers watch for exactly that.

39
Mid level

What would you check if a GCP API call intermittently returns 503?

Answer: Transient service errors are expected in any distributed system, so the first question is whether the client retries with exponential backoff and jitter — most client libraries do, but hand-written HTTP calls often do not. Then check for a quota or rate limit being hit, and check the service health dashboard for an actual incident.

Why interviewers ask this: The expectation that clients handle transient errors is the substance: a design that treats every 503 as an outage will report constant failures. Naming jitter alongside exponential backoff matters because synchronised retries cause the thundering herd that prolongs the problem.

40
Senior level

You inherit a GCP project with no documentation. How do you understand what is running?

Answer: Cloud Asset Inventory to list every resource and its IAM policy; billing export to see what actually costs money, which reveals what matters; Cloud Monitoring for what receives traffic; audit logs for who has been changing things; and network topology in Network Intelligence Center. Then map resources to owners and start documenting.

Why interviewers ask this: Following the money is the practical shortcut — the expensive resources are almost always the important ones, and idle resources with no traffic are candidates for removal. That heuristic gets you oriented faster than reading configuration.

41
Senior level

Describe a production incident you handled and what you learned.

Answer: A strong answer states the symptom and user impact, how you detected it, the diagnostic steps and what you eliminated, the mitigation and its timing, the actual root cause, and — most importantly — the systemic change that prevents recurrence, whether that is a code fix, a guardrail, an alert or a process change.

Why interviewers ask this: Interviewers are assessing whether you distinguish mitigation from root cause and whether you drive follow-through. An answer ending at "we restarted it and it worked" with no preventive action is the weak version, regardless of how dramatic the incident was.

Continue your GCP interview prep

See all 25 GCP topics →

Ready to apply for GCP roles?

Cloud internships and fresher jobs across India — filtered to roles that actually name GCP in the requirements.

Cloud Engineer Jobs

Canonical: https://myinternships.in/gcp-interview-questions/troubleshooting-scenarios