0
0
GCPcloud~20 mins

High availability configuration in GCP - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
High Availability Mastery
Get all challenges correct to earn this badge!
Test your skills under time pressure!
Architecture
intermediate
2:00remaining
Designing a multi-region high availability setup

You want to design a high availability architecture for a web application on Google Cloud Platform. Which setup ensures the application remains available even if an entire region fails?

ADeploy the application in multiple zones within a single region without load balancing.
BDeploy the application in a single region with multiple zones and use a regional load balancer.
CDeploy the application in multiple regions with global load balancing and health checks.
DDeploy the application in a single zone with autoscaling and use a zonal load balancer.
Attempts:
2 left
💡 Hint

Think about what happens if a whole region goes down. Which option covers multiple regions?

Configuration
intermediate
2:00remaining
Configuring Cloud SQL for high availability

You want to configure a Cloud SQL instance for high availability. Which configuration option correctly enables automatic failover?

ACreate a primary instance with a failover replica in a different zone and enable high availability.
BCreate multiple read replicas in the same zone without failover enabled.
CCreate a single primary instance without replicas and enable backups.
DCreate a primary instance and manually switch to a backup instance when needed.
Attempts:
2 left
💡 Hint

Automatic failover requires a failover replica in a different zone and enabling HA.

security
advanced
2:00remaining
Securing a multi-region high availability setup

In a multi-region high availability setup, which practice best protects your application from unauthorized access while maintaining availability?

AUse a single firewall rule allowing all traffic to all regions.
BDisable all firewalls and rely on network peering for security.
CUse a VPN connection only to one region and allow open access elsewhere.
DUse Identity-Aware Proxy (IAP) with global load balancers and enforce least privilege IAM roles.
Attempts:
2 left
💡 Hint

Think about controlling access securely and limiting permissions.

service_behavior
advanced
2:00remaining
Behavior of global load balancer during regional failure

What happens to user traffic when a Google Cloud global HTTP(S) load balancer detects that the primary region is down?

ATraffic is automatically routed to healthy backend instances in other regions without user impact.
BTraffic continues to be sent to the primary region until manually rerouted.
CTraffic is dropped until the primary region recovers.
DTraffic is routed randomly to any backend regardless of health status.
Attempts:
2 left
💡 Hint

Global load balancers monitor backend health and reroute traffic automatically.

Best Practice
expert
2:00remaining
Optimizing database replication for high availability and latency

You have a multi-region application with a Cloud Spanner database. To optimize for both high availability and low latency, which configuration is best?

AUse a single regional instance with synchronous replication to a failover region.
BUse a multi-region instance with replicas distributed across regions and configure read-write transactions to the closest region.
CUse multiple independent regional instances without replication and synchronize data manually.
DUse a single regional instance with asynchronous replication to multiple regions.
Attempts:
2 left
💡 Hint

Consider how Cloud Spanner handles replication and latency across regions.