0
0
GCPcloud~20 mins

VPC peering in GCP - Practice Problems & Coding Challenges

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

You have two VPC networks in Google Cloud: VPC-A and VPC-B. You create a VPC peering connection between them. Which statement best describes the connectivity after peering?

AInstances in VPC-A can communicate with instances in VPC-B using internal IPs without additional routes.
BInstances in VPC-A can communicate with instances in VPC-B only if you create custom routes manually.
CVPC peering allows communication only over public IP addresses between VPC-A and VPC-B.
DVPC peering automatically merges both VPCs into a single network with shared IP ranges.
Attempts:
2 left
💡 Hint

Think about how VPC peering connects networks internally.

security
intermediate
2:00remaining
Firewall Rules and VPC Peering

You have two peered VPCs in Google Cloud. You want to allow traffic from VPC-A to VPC-B instances on port 8080. What must you do to allow this traffic?

ACreate a firewall rule in VPC-A allowing egress on port 8080 to VPC-B's IP range.
BCreate a firewall rule in VPC-B allowing ingress on port 8080 from VPC-A's IP range.
CNo firewall rules are needed because VPC peering automatically allows all traffic.
DCreate firewall rules in both VPC-A and VPC-B allowing traffic on port 8080.
Attempts:
2 left
💡 Hint

Remember which side controls incoming traffic.

service_behavior
advanced
2:00remaining
Routing Behavior in VPC Peering

You have three VPCs: VPC-A, VPC-B, and VPC-C. VPC-A is peered with VPC-B, and VPC-B is peered with VPC-C. Can instances in VPC-A communicate directly with instances in VPC-C through VPC-B?

AYes, VPC peering supports transitive routing, so VPC-A can reach VPC-C through VPC-B.
BYes, but only if you configure custom routes in VPC-B to forward traffic.
CNo, VPC peering does not support transitive routing; VPC-A cannot reach VPC-C through VPC-B.
DNo, VPC peering disables all routing between peered networks.
Attempts:
2 left
💡 Hint

Think about whether VPC peering allows traffic to pass through a third VPC.

Configuration
advanced
2:00remaining
VPC Peering IP Range Overlap

You try to create a VPC peering connection between two VPCs, but the request fails. Both VPCs have overlapping IP ranges. What is the reason?

AVPC peering requires non-overlapping IP address ranges between peered VPCs.
BVPC peering requires both VPCs to be in the same region.
CVPC peering requires both VPCs to use the same IP range.
DVPC peering only works if one VPC uses public IPs and the other uses private IPs.
Attempts:
2 left
💡 Hint

Consider IP address conflicts in network connections.

Best Practice
expert
3:00remaining
Managing VPC Peering at Scale

You manage 10 VPCs in Google Cloud and want to enable communication between all of them. What is the best approach to connect all VPCs efficiently?

AUse transitive peering by chaining peering connections through one VPC.
BCreate peering connections between every pair of VPCs (full mesh).
CAssign the same IP range to all VPCs to simplify routing.
DUse a hub-and-spoke model with a shared VPC as the hub and peer all VPCs to it.
Attempts:
2 left
💡 Hint

Think about scalability and manageability of network connections.