Bird
Raised Fist0
GCPcloud~20 mins

GCP global infrastructure (regions, zones) - Practice Problems & Coding Challenges

Choose your learning style10 modes available

Start learning this pattern below

Jump into concepts and practice - no test required

or
Recommended
Test this pattern10 questions across easy, medium, and hard to know if this pattern is strong
Challenge - 5 Problems
🎖️
GCP Global Infrastructure Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate
2:00remaining
Understanding GCP Regions and Zones

Which statement correctly describes the relationship between GCP regions and zones?

AZones are global locations, and regions are subdivisions within zones.
BA region is a specific data center, and zones are multiple regions grouped together.
CA zone is a deployment area within a region, and each region contains multiple zones.
DRegions and zones are the same and can be used interchangeably.
Attempts:
2 left
💡 Hint

Think about how Google organizes its data centers geographically.

Architecture
intermediate
2:00remaining
Designing for High Availability Across Zones

You want to deploy a web application on GCP to ensure it remains available even if one zone fails. Which deployment strategy best achieves this?

ADeploy all instances in a single zone within one region.
BDeploy instances across multiple zones within the same region.
CDeploy instances in multiple regions but only one zone per region.
DDeploy all instances in a single region without specifying zones.
Attempts:
2 left
💡 Hint

Consider how zones provide isolation within a region.

service_behavior
advanced
2:00remaining
Impact of Zone Failure on GCP Services

What happens to Compute Engine virtual machines (VMs) when the zone they are running in experiences an outage?

AVMs automatically restart in another zone without user intervention.
BVMs are automatically backed up and restored in a different region.
CVMs continue running unaffected because zones share resources transparently.
DVMs stop running and remain unavailable until the zone recovers or user manually migrates them.
Attempts:
2 left
💡 Hint

Think about the isolation between zones and what automatic features GCP provides.

security
advanced
2:00remaining
Data Residency and Compliance in GCP Regions

Your company must ensure that data stays within a specific country due to compliance rules. Which GCP infrastructure choice best supports this requirement?

ASelect a region located within the required country or jurisdiction.
BUse zones in different regions to replicate data globally.
CDeploy resources across multiple regions to improve availability without restrictions.
DUse any region closest to the users regardless of country boundaries.
Attempts:
2 left
💡 Hint

Consider how GCP regions relate to geographic and legal boundaries.

Best Practice
expert
2:00remaining
Optimizing Latency with GCP Global Infrastructure

You want to minimize latency for users worldwide accessing your application hosted on GCP. Which architecture best achieves this?

ADeploy your application in multiple regions close to user clusters and use global load balancing.
BDeploy in multiple zones within one region and use internal load balancing.
CDeploy your application in a single region and rely on global load balancing.
DDeploy in a single zone and use Cloud CDN to cache content globally.
Attempts:
2 left
💡 Hint

Think about how geographic proximity affects latency and how GCP supports global traffic management.

Practice

(1/5)
1. What is a region in Google Cloud Platform (GCP)?
easy
A. A single data center
B. A network service
C. A large area that contains multiple zones
D. A type of virtual machine

Solution

  1. Step 1: Understand GCP infrastructure terms

    Regions are geographic areas that group several zones together.
  2. Step 2: Differentiate region from zones and services

    Zones are smaller isolated locations inside regions, not the entire region itself.
  3. Final Answer:

    A large area that contains multiple zones -> Option C
  4. Quick Check:

    Region = multiple zones [OK]
Hint: Regions group zones; zones are smaller parts inside [OK]
Common Mistakes:
  • Confusing zones with regions
  • Thinking region is a single data center
  • Mixing regions with services
2. Which of the following is the correct way to specify a zone in GCP?
easy
A. us-central1-a
B. us-central1
C. us-central
D. central1-us

Solution

  1. Step 1: Recall GCP zone naming format

    Zones are named by region plus a letter, like us-central1-a.
  2. Step 2: Check each option

    us-central1-a matches the correct format: region + dash + letter.
  3. Final Answer:

    us-central1-a -> Option A
  4. Quick Check:

    Zone format = region-letter [OK]
Hint: Zones end with a letter after region code [OK]
Common Mistakes:
  • Using region name without zone letter
  • Mixing order of region and zone letter
  • Using incomplete region codes
3. If you deploy a VM in europe-west1-b zone, which region is it located in?
medium
A. europe-west
B. europe-west1-b
C. europe
D. europe-west1

Solution

  1. Step 1: Identify zone and region parts

    The zone europe-west1-b includes the region europe-west1 plus the zone letter b.
  2. Step 2: Extract the region from the zone name

    Removing the last dash and letter gives the region europe-west1.
  3. Final Answer:

    europe-west1 -> Option D
  4. Quick Check:

    Zone minus letter = region [OK]
Hint: Region is zone name without last dash and letter [OK]
Common Mistakes:
  • Choosing full zone name as region
  • Picking incomplete region name
  • Confusing region with continent
4. You want to deploy resources in a zone but accidentally specify asia-east1 instead of asia-east1-a. What is the likely result?
medium
A. Deployment succeeds in the default zone
B. Deployment fails due to missing zone letter
C. Deployment happens in all zones of the region
D. Deployment happens in a random zone

Solution

  1. Step 1: Understand zone specification requirements

    GCP requires full zone names including the letter, e.g., asia-east1-a.
  2. Step 2: Analyze the effect of missing zone letter

    Specifying only the region asia-east1 without a zone letter is invalid for zone-specific deployment.
  3. Final Answer:

    Deployment fails due to missing zone letter -> Option B
  4. Quick Check:

    Zone name must include letter [OK]
Hint: Zone must have letter; region alone causes failure [OK]
Common Mistakes:
  • Assuming region name works as zone
  • Thinking deployment defaults to a zone
  • Believing deployment spreads automatically
5. You want your app to be highly available and fast for users in the US. Which strategy is best?
hard
A. Deploy in multiple zones within us-central1 region
B. Deploy in a single zone in europe-west1 region
C. Deploy in zones across different regions worldwide
D. Deploy in one zone in us-central1 region

Solution

  1. Step 1: Consider availability and latency needs

    Multiple zones in the same region protect against zone failure and keep latency low.
  2. Step 2: Evaluate options for US users

    Deploying in multiple zones in us-central1 balances availability and speed better than single zone or distant regions.
  3. Final Answer:

    Deploy in multiple zones within us-central1 region -> Option A
  4. Quick Check:

    Multi-zone in region = high availability + low latency [OK]
Hint: Use multiple zones in one region for best US availability [OK]
Common Mistakes:
  • Using only one zone risking downtime
  • Choosing distant regions increasing latency
  • Deploying worldwide without need