GCP Google Cloud Platform (GCP) CE 5 — Questions and Answers
Question 1: Which GCP service provides distributed, low-latency caching compatible with the Memcached and Redis APIs?
- Cloud SQL read replicas
- Memorystore (Correct answer)
- Cloud Bigtable
- Firestore offline cache
Correct answer: Memorystore
Memorystore is GCP's fully managed in-memory data store service offering compatibility with both Redis and Memcached APIs.
Question 2: A GCP audit requires proof of who accessed a specific Cloud Storage bucket over the last 90 days. Which service provides this information?
- Cloud Monitoring metrics
- Cloud Trace
- Cloud Audit Logs (Data Access logs) (Correct answer)
- VPC Flow Logs
Correct answer: Cloud Audit Logs (Data Access logs)
Cloud Audit Logs Data Access logs record API calls that read resource configurations or metadata and access user-provided data, including Cloud Storage bucket access.
Question 3: 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 and remains accessible
- Data becomes inaccessible until the region recovers (Correct answer)
- Google automatically migrates the bucket to an available region
- Data is served from the CDN cache indefinitely
Correct answer: Data becomes inaccessible until the region recovers
Regional buckets store data in a single region, so a full regional outage makes that data inaccessible until the region is restored.
Question 4: Which GCP networking feature allows a VM without an external IP address to access the internet for outbound connections?
- Cloud NAT (Correct answer)
- Cloud Armor
- Identity-Aware Proxy (IAP)
- Private Google Access
Correct answer: Cloud NAT
Cloud NAT provides outbound internet connectivity for VM instances that only have internal IP addresses, without exposing them to inbound connections.
Question 5: Which GCP Compute Engine feature allows you to maintain a consistent IP address even when a VM is stopped and restarted?
- Alias IP ranges
- Static external IP address reservation (Correct answer)
- Cloud DNS A record pinning
- Ephemeral IP with DNS auto-update
Correct answer: Static external IP address reservation
Reserving a static external IP address in GCP ensures the same IP is assigned to the VM across stop/start cycles, unlike ephemeral IPs that are released on stop.
Question 6: What is the primary advantage of using GKE Autopilot mode over GKE Standard mode?
- Autopilot allows direct SSH access to nodes for debugging
- Autopilot manages node provisioning, scaling, and security, billing per Pod rather than per node (Correct answer)
- Autopilot supports more machine types than Standard mode
- Autopilot enables multi-cluster federation automatically
Correct answer: Autopilot manages node provisioning, scaling, and security, billing per Pod rather than per node
GKE Autopilot fully manages node infrastructure and bills per Pod resource request, reducing operational overhead compared to Standard mode where you manage node pools.
Question 7: Which Cloud Logging feature lets you route specific log entries to destinations like Cloud Storage, BigQuery, or Pub/Sub?
- Log-based metrics
- Log sinks (Log Router) (Correct answer)
- Log exclusion filters
- Error Reporting
Correct answer: Log sinks (Log Router)
Log sinks (configured in the Log Router) use inclusion/exclusion filters to route matching log entries to Cloud Storage, BigQuery, Pub/Sub, or other supported destinations.
Which GCP service provides distributed, low-latency caching compatible with the Memcached and Redis APIs?