Home › Interview questions › GCP
GCP Interview Questions & Answers
68 GCP interview questions in 4 levels — junior to senior, plus 13 production scenarios. Read 3 free answers with real-world analogies.
Free sample answers
What is GCP, and what are its main service categories at a high level?
One-liner
GCP (Google Cloud Platform) is Google's cloud computing platform, offering compute, storage, networking, and managed services that let you build and run applications without owning physical hardware.
Real-world analogy
It's like renting fully equipped office space and utilities from a large provider, rather than needing to own and maintain your own building, power supply, and internet connection just to run your business.
Detailed explanation
- Compute services (like Compute Engine and GKE) let you run your actual application code on virtual machines or containers.
- Storage services (like Cloud Storage and Cloud SQL) let you store files and structured data reliably, without managing the underlying physical disks yourself.
- Networking services (like VPC and Cloud Load Balancing) let you control how your resources connect to each other and to the outside world.
Scenario
A team building a new application evaluates GCP and finds they can provision a virtual machine, a managed database, and a load balancer all within the same platform, rather than needing to separately source and integrate each piece from a different provider.
Best practices
- Learn the core services (Compute Engine, Cloud Storage, VPC, IAM) deeply before trying to learn every single GCP service.
- Use the GCP Free Tier to actually practice hands-on rather than only reading about services conceptually.
- Understand that GCP, like other cloud providers, charges based on actual usage, not a flat fee.
What are IAM conditions, and what genuinely more precise access control do they let you actually express?
One-liner
IAM conditions let you add a specific condition (like a time window or a resource attribute) to an IAM role grant, so a permission only actually applies when that condition is genuinely met, rather than being unconditionally always active.
Real-world analogy
It's like a temporary access badge that only actually works during specific business hours, rather than a badge that works at absolutely any time of day regardless of when it's genuinely actually needed.
Detailed explanation
- A condition can be based on things like the current date and time, a specific resource name pattern, or other request attributes.
- This lets you grant a role that only actually applies under specific circumstances, like temporary elevated access for a specific limited time window.
- Without conditions, a granted role applies unconditionally at all times, which is fine for most everyday needs but genuinely insufficient for a more precise, time-limited access requirement.
Scenario
A team needs to grant a contractor temporary elevated access for a two-week project, and using an IAM condition that automatically expires the grant after that specific date means nobody needs to remember to manually revoke it later.
Best practices
- Use IAM conditions for genuinely time-limited or context-specific access needs, rather than granting broad, permanent access for a temporary situation.
- Set an explicit expiration condition for any genuinely temporary access grant.
- Review conditional grants periodically to confirm they're still actually behaving as intended.
An application suddenly gets 'access denied' trying to read from a Cloud Storage bucket that was working fine before. What do you check?
One-liner
Check whether the bucket's own IAM policy was recently changed, whether the specific service account being used has actually changed or its role was revoked, and whether an organization policy now restricts access in a way it didn't before.
Real-world analogy
It's like a keycard that used to work at a specific door suddenly being rejected — you'd check whether the door's own access list was recently changed, whether the specific keycard itself has expired, and whether a broader building-wide policy now restricts that door.
Detailed explanation
- Checking the bucket's own IAM policy for a recent change is a common first step, since a security tightening effort elsewhere can inadvertently affect access that used to work.
- Confirming the application's service account still has the expected role, and that role wasn't accidentally revoked or replaced, is a reasonable next check.
- Checking for a recently applied organization policy restricting cross-project or public access can also explain a sudden change in behavior that isn't visible just from looking at the bucket's own IAM policy alone.
Scenario
An application suddenly can't read from a Cloud Storage bucket it's accessed successfully for months. Investigation reveals the bucket's IAM policy was recently tightened as part of an unrelated security improvement, removing a role binding the application's service account actually depended on. Restoring the correct binding resolves the access issue.
Best practices
- Check the bucket's own IAM policy first when access suddenly breaks.
- Confirm the application's service account still has its expected role, rather than assuming it hasn't changed.
- Check for a recently applied organization policy that might explain a sudden restriction not visible in the bucket's own IAM policy alone.
A preview of the 68 questions in the GCP guide
Junior (20)
- What is GCP, and what are its main service categories at a high level?
- What is a GCP project, and why is it the fundamental organizing unit for almost everything in GCP?
- What is Compute Engine, and what are the basic decisions you make when creating a virtual machine instance?
- What is a VPC in GCP, and how is it actually different from a VPC in AWS or Azure in one key way?
+ 16 more Junior questions, with full answers, in the guide.
Mid-level (20)
- What is GKE, and how does it actually relate to standard, open-source Kubernetes?
- What is a managed instance group, and how does it actually provide autoscaling for Compute Engine?
- How would you decide between Cloud Functions, Cloud Run, and App Engine for deploying an application?
- What is VPC peering in GCP, and what's a genuine limitation to be aware of when using it?
+ 16 more Mid-level questions, with full answers, in the guide.
Senior (15)
- How would you design a multi-project GCP architecture (a landing zone equivalent) for a large organization?
- What's the difference between GKE Autopilot and GKE Standard, and how would you decide between them?
- How would you design for high availability across zones and regions in GCP?
- What cost optimization strategies are actually available in GCP, beyond just right-sizing individual instances?
+ 11 more Senior questions, with full answers, in the guide.
Scenario (13)
- You can't SSH into a Compute Engine instance that was working fine before. How do you troubleshoot it?
- An application suddenly gets 'access denied' trying to read from a Cloud Storage bucket that was working fine before. What do you check?
- A GKE Pod is stuck in Pending state and never actually gets scheduled. How do you troubleshoot it?
- A load balancer's health check keeps marking your backend as unhealthy, even though the application seems to be running fine. How do you troubleshoot it?
+ 9 more Scenario questions, with full answers, in the guide.
Get the full DevOps / SRE Interview Guide