GCP Google Cloud Platform (GCP) 4 — Questions and Answers
Question 1: Which GCP feature automatically scales a managed instance group based on custom metrics from Cloud Monitoring?
- Vertical Pod Autoscaler
- Managed Instance Group Autoscaler (Correct answer)
- Cloud Scheduler
- Instance Templates
Correct answer: Managed Instance Group Autoscaler
The MIG Autoscaler can scale instances based on CPU utilization, HTTP load balancing serving capacity, Cloud Monitoring metrics, or Cloud Pub/Sub queue depth.
Question 2: What is the primary use case for Cloud Spanner compared to Cloud SQL?
- Cloud Spanner is serverless; Cloud SQL requires manual server management
- Cloud Spanner provides globally distributed, horizontally scalable relational databases with strong consistency (Correct answer)
- Cloud Spanner is NoSQL; Cloud SQL is relational
- Cloud Spanner is cheaper for small workloads
Correct answer: Cloud Spanner provides globally distributed, horizontally scalable relational databases with strong consistency
Cloud Spanner offers a globally distributed relational database with external consistency and horizontal scaling, whereas Cloud SQL is a regional managed relational database.
Question 3: In GCP VPC, what is the purpose of Private Google Access?
- Allows VMs without external IPs to reach Google APIs and services (Correct answer)
- Creates a private peering connection between two VPCs
- Encrypts traffic between VMs within the same subnet
- Restricts public internet access for all VMs
Correct answer: Allows VMs without external IPs to reach Google APIs and services
Private Google Access allows VM instances without external IP addresses to access Google APIs and services using internal IPs through Google's network.
Question 4: Which GCP Dataflow concept represents a parallel collection of data elements that can be processed in a pipeline?
- Transform
- PCollection (Correct answer)
- Sink
- ParDo
Correct answer: PCollection
A PCollection is Dataflow's distributed dataset abstraction representing a potentially unbounded, immutable collection of data elements processed by the pipeline.
Question 5: What is the function of Cloud Endpoints in GCP?
- Manages private endpoints for VPC services
- Provides API management with monitoring, authentication, and rate limiting (Correct answer)
- Routes traffic between Cloud Run services
- Terminates SSL for HTTP load balancers
Correct answer: Provides API management with monitoring, authentication, and rate limiting
Cloud Endpoints is a distributed API management system that provides authentication, monitoring, logging, and rate limiting for APIs deployed on GCP.
Question 6: Which GCP service should you use to detect anomalies and threats using machine learning on Cloud Logging data?
- Cloud Trace
- Security Command Center (Correct answer)
- Chronicle SIEM
- Error Reporting
Correct answer: Security Command Center
Security Command Center provides threat detection, vulnerability scanning, and security analytics for GCP resources, integrating with Cloud Logging data.
Question 7: What happens to data stored in a regional Cloud Storage bucket if the entire region experiences an outage?
- Data is automatically replicated to the nearest region
- Data is unavailable until the region recovers, but is not lost (Correct answer)
- Data is lost unless a backup was configured
- Data is automatically promoted to a multi-region bucket
Correct answer: Data is unavailable until the region recovers, but is not lost
Regional buckets store data redundantly across multiple zones within a region, so data persists after recovery but is inaccessible during a full regional outage.
Which GCP feature automatically scales a managed instance group based on custom metrics from Cloud Monitoring?