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
Recall & Review
beginner
What is a Custom VPC in Google Cloud Platform?
A Custom VPC is a Virtual Private Cloud network where you manually create and control subnets, IP ranges, and routing. It gives you full control over your network layout.
Click to reveal answer
beginner
Why would you choose a Custom VPC over an Auto mode VPC?
You choose a Custom VPC to control subnet IP ranges, regions, and routing. It helps avoid IP conflicts and tailor the network to your needs.
Click to reveal answer
beginner
What is a subnet in a Custom VPC?
A subnet is a range of IP addresses in a specific region inside your VPC. It helps organize and isolate resources by location.
Click to reveal answer
intermediate
How do firewall rules relate to a Custom VPC?
Firewall rules control which traffic is allowed in and out of your VPC. They protect your resources by allowing only trusted connections.
Click to reveal answer
intermediate
What is the purpose of routing in a Custom VPC?
Routing directs network traffic between subnets, the internet, and other networks. It ensures data reaches the right destination.
Click to reveal answer
What must you define when creating a Custom VPC in GCP?
ASubnets with IP ranges and regions
BOnly the VPC name
CFirewall rules automatically
DDefault internet gateway
✗ Incorrect
In a Custom VPC, you manually define subnets with specific IP ranges and regions.
Which of these is NOT a benefit of using a Custom VPC?
AFull control over IP address ranges
BCustom routing rules
CAutomatic subnet creation in all regions
DBetter network isolation
✗ Incorrect
Automatic subnet creation in all regions is a feature of Auto mode VPCs, not Custom VPCs.
What does a subnet represent in a Custom VPC?
AA firewall rule
BA group of IP addresses in a region
CA virtual machine
DA storage bucket
✗ Incorrect
A subnet is a range of IP addresses within a specific region in your VPC.
How do firewall rules affect a Custom VPC?
AThey manage billing
BThey create subnets automatically
CThey assign IP addresses
DThey control allowed network traffic
✗ Incorrect
Firewall rules control which network traffic is allowed to enter or leave your VPC.
What is the role of routing in a Custom VPC?
ADirect traffic between subnets and networks
BCreate firewall rules
CAssign IP addresses to VMs
DMonitor network usage
✗ Incorrect
Routing directs network traffic to the correct destination within or outside the VPC.
Explain the key steps to create a Custom VPC in Google Cloud Platform.
Think about how you organize your home network with rooms and rules.
You got /4 concepts.
Describe why controlling IP ranges and subnets is important in a Custom VPC.
Imagine assigning house addresses carefully to avoid confusion.
You got /4 concepts.
Practice
(1/5)
1. What is the main advantage of creating a Custom VPC in Google Cloud Platform?
easy
A. You can define your own IP address ranges and subnets.
B. It automatically creates default firewall rules.
C. It provides free internet access without configuration.
D. It disables all network traffic by default.
Solution
Step 1: Understand Custom VPC purpose
A Custom VPC allows you to design your network with your own IP ranges and subnets, unlike default VPCs which have preset ranges.
Step 2: Eliminate wrong options
Custom VPC does not disable traffic, default firewall rules exist regardless, free internet requires configuration.
Final Answer:
You can define your own IP address ranges and subnets. -> Option A
Quick Check:
Custom VPC = Custom IP ranges [OK]
Hint: Custom VPC means you pick your IP ranges [OK]
Common Mistakes:
Confusing default VPC with custom VPC
Thinking firewall rules are auto-created
Assuming internet access is automatic
2. Which gcloud command correctly creates a custom VPC named my-vpc with no automatic subnet creation?
easy
A. gcloud compute networks create my-vpc --subnet-mode=auto
B. gcloud compute networks create my-vpc --auto-create-subnetworks
C. gcloud compute networks create my-vpc --no-subnet-mode
D. gcloud compute networks create my-vpc --subnet-mode=custom
Solution
Step 1: Identify subnet mode for custom VPC
Custom VPC requires the flag --subnet-mode=custom to avoid automatic subnet creation.
Step 2: Evaluate options
--subnet-mode=auto creates automatic subnets. --auto-create-subnetworks uses invalid syntax. --no-subnet-mode does not exist.
Final Answer:
gcloud compute networks create my-vpc --subnet-mode=custom -> Option D
Quick Check:
Custom VPC uses --subnet-mode=custom [OK]
Hint: Use --subnet-mode=custom to create custom VPC [OK]
Hint: Check subnet CIDR overlaps before creating [OK]
Common Mistakes:
Assuming region is invalid without checking
Confusing network creation flags with subnet flags
Ignoring existing subnet CIDR ranges
5. You want to create a custom VPC named prod-vpc with two subnets: - subnet-a in us-west1 with range 10.10.1.0/24 - subnet-b in us-east1 with range 10.10.2.0/24 Which sequence of gcloud commands correctly creates this setup?