0
0
GCPcloud~20 mins

Performance optimization in GCP - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Cloud Performance Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
Architecture
intermediate
2:00remaining
Choosing the best GCP service for low-latency data processing

You need to process streaming data with minimal delay for real-time analytics. Which GCP service is best suited to optimize performance for this use case?

AGoogle Cloud Storage with batch Dataflow jobs
BGoogle Cloud Pub/Sub with Dataflow streaming pipelines
CBigQuery batch SQL queries scheduled every hour
DCloud SQL with periodic polling from application
Attempts:
2 left
💡 Hint

Think about services designed for real-time streaming and low latency.

Configuration
intermediate
2:00remaining
Optimizing Compute Engine instance for CPU-intensive workload

You have a CPU-intensive application running on a Compute Engine VM. Which configuration change will most improve performance?

AAdd more persistent disk storage to the VM
BUse a smaller machine type and increase network bandwidth
CEnable preemptible VM instances to reduce cost
DSwitch to a machine type with more vCPUs and enable sustained use discounts
Attempts:
2 left
💡 Hint

Focus on CPU resources for CPU-intensive tasks.

security
advanced
2:00remaining
Impact of enabling VPC Flow Logs on performance

You enable VPC Flow Logs on a high-traffic VPC network. What is the most likely impact on network performance?

ANo impact on network performance as logs are collected asynchronously
BSignificant network downtime during log activation
CSlight increase in latency due to logging overhead on network interfaces
DAutomatic blocking of suspicious traffic to improve security
Attempts:
2 left
💡 Hint

Consider how logging affects network interfaces and processing.

service_behavior
advanced
2:00remaining
Effect of autoscaling configuration on App Engine performance

You configure App Engine standard environment with a minimum of 2 instances and maximum of 10 instances. What happens when traffic suddenly spikes beyond current capacity?

AApp Engine automatically creates more instances up to the max limit to handle the load
BTraffic is queued indefinitely until existing instances free up resources
CApp Engine rejects new requests once the minimum instances are busy
DYou must manually add instances to handle the increased traffic
Attempts:
2 left
💡 Hint

Think about how autoscaling works in App Engine.

Best Practice
expert
3:00remaining
Designing a multi-region architecture for low latency and high availability

You want to design a GCP architecture that serves users globally with low latency and high availability. Which approach best achieves this?

ADeploy application instances in multiple regions and use Cloud Load Balancing with global external HTTP(S) load balancer
BDeploy application in a single region and use Cloud CDN to cache content globally
CDeploy instances in multiple zones within one region and use internal load balancing
DUse Cloud Functions in one region and rely on client-side retries for availability
Attempts:
2 left
💡 Hint

Consider global distribution and load balancing for performance and availability.