How to Use This Lesson
Say each answer in your own words. A strong answer is short, correct and has one example and one trade-off.
Fundamentals
Q1. What are regions and zones?
A region is a geographic area. A zone is a deployment area inside a region and counts as one failure domain. Use at least two zones for high availability and a second region for disaster recovery.
Q2. Explain the resource hierarchy.
Organization at the top, then folders, then projects, then resources. IAM and organization policies are inherited downward. Projects are the unit for billing, APIs and resource ownership.
Q3. What is special about a Google VPC?
A VPC network is global and its subnets are regional. VMs in different regions of one VPC can talk over private IPs on Google's backbone.
Q4. What is the shared responsibility model?
Google secures the infrastructure. You secure identities, data, configuration and application code. Managed services shift more of the work to Google.
IAM and Security
Q1. How does IAM work?
A policy binds principals to roles on a resource. A role is a set of permissions. Policies inherit down the hierarchy, so grant at the lowest level that works.
Q2. Basic, predefined and custom roles?
Basic roles (Owner, Editor, Viewer) are very broad and should be avoided in production. Predefined roles are product-specific and preferred. Custom roles contain exact permissions you choose.
Q3. How should applications authenticate?
Attach a service account to the workload so it receives short-lived credentials. Use Workload Identity on GKE and Workload Identity Federation for outside systems. Avoid downloaded key files.
Q4. What is an organization policy?
A guardrail on what is allowed regardless of IAM, such as restricting regions, blocking external IPs or disabling service account keys. It is inherited like IAM.
Q5. How do you prevent data exfiltration?
Use VPC Service Controls perimeters around sensitive services, private access paths, tight IAM, DLP and audit logging.
Q6. What is Cloud KMS and CMEK?
Cloud KMS manages encryption keys. CMEK means you control the key that encrypts a service's data, including rotation and disabling.
Compute
Q1. How do you choose between Compute Engine, GKE and Cloud Run?
Compute Engine for full VM control and lift-and-shift. GKE for many microservices and Kubernetes needs. Cloud Run for stateless containers with minimal operations and scale to zero.
Q2. What is a managed instance group?
A group of identical VMs created from an instance template with autoscaling, autohealing and rolling updates. Regional MIGs spread VMs across zones.
Q3. Autopilot or Standard GKE?
Autopilot is fully managed per pod with secure defaults and is the usual starting point. Standard gives node-level control for special cases such as custom node setups.
Q4. What are Spot VMs good for?
Fault-tolerant, interruptible work such as batch jobs, CI and rendering. Google can stop them at any time, so use checkpoints.
Q5. How do you reduce cold starts in Cloud Run?
Set minimum instances, keep images small, do lazy initialization and use startup CPU boost.
Networking
Q1. Which load balancer for a global public web app?
The global external Application Load Balancer. It has one anycast IP, routes by URL, supports CDN and Cloud Armor, and sends users to the nearest healthy backend.
Q2. Which load balancer for a private TCP service?
The internal passthrough Network Load Balancer, or an internal Application Load Balancer for HTTP.
Q3. How do private VMs access the internet?
Through Cloud NAT. Private Google Access lets them reach Google APIs without external IPs.
Q4. VPN or Interconnect?
HA VPN is quick and encrypted over the internet. Interconnect is private, with higher bandwidth and steadier latency. Use VPN as a backup path.
Q5. Shared VPC or VPC Peering?
Shared VPC gives central network control across many projects in one organization. Peering joins two VPCs, is not transitive and needs non-overlapping ranges.
Q6. What is Private Service Connect?
A way to reach Google APIs or a published service through a private endpoint in your VPC, even when IP ranges overlap.
Storage
Q1. Cloud Storage classes?
Standard, Nearline (30 days), Coldline (90 days) and Archive (365 days). Choose by access frequency. Autoclass can move objects automatically.
Q2. How do you give temporary access to a private object?
Create a signed URL with an expiry time.
Q3. Persistent Disk, Local SSD or Filestore?
Persistent Disk for durable VM disks, Local SSD for fast temporary data, Filestore for a shared NFS file system.
Q4. How do you protect against accidental deletion in Cloud Storage?
Enable object versioning and soft delete, set retention policies and limit delete permissions.
Conclusion
Know hierarchy, IAM, compute choices, load balancer types, hybrid options and storage classes. Give short answers with an example and a trade-off.

