0
0
GCPcloud~20 mins

Custom VPC creation in GCP - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Custom VPC Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
Architecture
intermediate
2:00remaining
VPC Subnet Allocation Strategy

You create a custom VPC in Google Cloud with three subnets in different regions. Each subnet has a CIDR block:

  • Subnet A: 10.0.1.0/24
  • Subnet B: 10.0.2.0/24
  • Subnet C: 10.0.3.0/24

What is the total number of usable IP addresses across all subnets?

A1024 usable IP addresses
B753 usable IP addresses
C765 usable IP addresses
D750 usable IP addresses
Attempts:
2 left
💡 Hint

Each /24 subnet has 256 IP addresses, but some are reserved by Google Cloud.

Configuration
intermediate
2:00remaining
Firewall Rule Priority Impact

You create two firewall rules in a custom VPC:

  • Rule 1: Priority 1000, allows TCP port 22 from any source
  • Rule 2: Priority 500, denies all ingress traffic

What will happen when a VM in this VPC receives a TCP connection on port 22?

AThe connection is denied because deny rule has lower priority number
BThe connection is allowed because allow rule has higher priority number
CThe connection is denied because deny rule has higher priority number
DThe connection is allowed because allow rule has lower priority number
Attempts:
2 left
💡 Hint

Lower priority number means higher priority in firewall rules.

security
advanced
2:00remaining
Private Google Access Configuration

You have a custom VPC with private subnets that do not have external IP addresses. You want VMs in these subnets to access Google APIs securely without using public IPs.

Which configuration enables this?

ACreate a Cloud NAT gateway and route traffic through it
BAssign external IPs to the VMs
CEnable Private Google Access on the subnet
DUse a VPN to connect to Google APIs
Attempts:
2 left
💡 Hint

Private Google Access allows VMs without external IPs to reach Google APIs.

service_behavior
advanced
2:00remaining
Impact of Overlapping CIDR Blocks

You create two custom VPCs in the same project with overlapping CIDR blocks: 10.0.0.0/16 for both.

You try to create a VPC peering connection between them. What will happen?

APeering connection fails due to overlapping IP ranges
BPeering connection is created successfully without issues
CPeering connection is created but traffic is blocked
DPeering connection is created but only one VPC can route traffic
Attempts:
2 left
💡 Hint

VPC peering requires non-overlapping IP ranges.

Best Practice
expert
3:00remaining
Designing a Highly Available Custom VPC

You need to design a custom VPC for a critical application that must remain available even if one region fails. Which design approach best supports this requirement?

ACreate multiple VPCs in different regions and connect them with VPN
BCreate a single subnet in one region with multiple zones
CUse a single region with a large subnet and rely on Cloud Load Balancing
DCreate subnets in multiple regions and deploy resources redundantly
Attempts:
2 left
💡 Hint

High availability across regions requires resources in multiple regions.