0
0
GCPcloud~20 mins

Cloud NAT for private instances in GCP - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Cloud NAT Mastery
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate
2:00remaining
Understanding Cloud NAT behavior for private instances

What happens when a private VM instance in Google Cloud tries to access the internet without Cloud NAT configured?

AThe VM can access the internet directly using its internal IP address.
BThe VM accesses the internet through the default gateway automatically.
CThe VM cannot access the internet because it has no external IP and no Cloud NAT is configured.
DThe VM uses a shared public IP from another VM in the same subnet.
Attempts:
2 left
💡 Hint

Think about how private IP addresses work and what is needed to reach the internet.

Architecture
intermediate
2:00remaining
Choosing the right Cloud NAT configuration

You have multiple private VM instances in different subnets within the same VPC. You want all of them to access the internet using Cloud NAT. Which Cloud NAT configuration is best?

ACreate one Cloud NAT gateway per subnet to isolate traffic.
BCreate one Cloud NAT gateway and configure it to serve all subnets in the VPC.
CAssign external IPs to all VMs instead of using Cloud NAT.
DUse a VPN to route traffic through an on-premises NAT device.
Attempts:
2 left
💡 Hint

Cloud NAT can serve multiple subnets from one gateway.

Configuration
advanced
2:00remaining
Cloud NAT IP allocation modes

Which Cloud NAT IP allocation mode allows you to specify a fixed set of external IP addresses for NAT instead of using automatically assigned ones?

AManual IP allocation mode
BAutomatic IP allocation mode
CDynamic IP allocation mode
DStatic IP allocation mode
Attempts:
2 left
💡 Hint

One mode lets you pick your own external IPs.

security
advanced
2:00remaining
Securing Cloud NAT for private instances

Which of the following is a recommended security best practice when configuring Cloud NAT for private instances?

AAssign external IPs to private instances to bypass Cloud NAT.
BAllow all outbound traffic from private instances without restrictions.
CDisable logging on Cloud NAT to avoid storing traffic data.
DUse firewall rules to restrict outbound traffic even when Cloud NAT is enabled.
Attempts:
2 left
💡 Hint

Think about controlling traffic flow even with NAT.

service_behavior
expert
2:00remaining
Cloud NAT behavior during high traffic bursts

During a sudden high volume of outbound connections from private instances using Cloud NAT, what behavior should you expect from Cloud NAT?

ACloud NAT automatically scales to handle the increased connections without dropping packets.
BCloud NAT redirects excess traffic to a backup NAT gateway automatically.
CCloud NAT queues excess connections until capacity is available, causing delays but no drops.
DCloud NAT has a fixed capacity and will drop connections exceeding its limit.
Attempts:
2 left
💡 Hint

Cloud NAT is designed to handle scaling transparently.