GCP Google Cloud Platform (GCP) CE 3 — Questions and Answers
Question 1: Which GCP service enables real-time stream processing using Apache Beam pipelines?
- Cloud Composer
- Dataflow (Correct answer)
- Dataproc
- Pub/Sub
Correct answer: Dataflow
Dataflow is GCP's fully managed service for executing Apache Beam pipelines in both batch and streaming modes.
Question 2: A GCP project is approaching its Compute Engine quota limit. What is the correct way to request a quota increase?
- Submit a support ticket to Google Cloud Support
- Upgrade to a higher billing tier automatically
- Request an increase through the IAM & Admin > Quotas page in the Cloud Console (Correct answer)
- Delete unused resources and wait for the quota to reset
Correct answer: Request an increase through the IAM & Admin > Quotas page in the Cloud Console
Quota increases are requested directly through the IAM & Admin > Quotas page in the Cloud Console by selecting the specific quota and clicking 'Edit Quotas'.
Question 3: Which IAM role grants read-only access to all GCP resources within a project?
- roles/viewer (Correct answer)
- roles/browser
- roles/iam.securityReviewer
- roles/resourcemanager.projectViewer
Correct answer: roles/viewer
The roles/viewer (Viewer) primitive role grants read-only access to all resources within the project it is assigned.
Question 4: What is the function of a GCP 'Shared VPC'?
- Peers two VPCs in different organizations
- Allows multiple service projects to use a network defined in a host project (Correct answer)
- Provides a global anycast IP for Cloud Load Balancing
- Encrypts traffic between VPCs automatically
Correct answer: Allows multiple service projects to use a network defined in a host project
Shared VPC lets an organization share a single VPC network (defined in a host project) across multiple service projects, centralizing network administration.
Question 5: Which GCP database service is best suited for globally distributed ACID transactions with horizontal scaling?
- Cloud SQL
- Firestore
- Cloud Spanner (Correct answer)
- Cloud Bigtable
Correct answer: Cloud Spanner
Cloud Spanner provides globally distributed, strongly consistent ACID transactions with horizontal scaling, unique among relational databases.
Question 6: When using Google Kubernetes Engine, what is the difference between a node pool and a cluster?
- A cluster is a single VM; a node pool is a group of clusters
- A cluster is the overall GKE environment containing one or more node pools of Compute Engine VMs (Correct answer)
- A node pool is managed by Autopilot; a cluster is managed by Standard mode only
- They are interchangeable terms in GKE documentation
Correct answer: A cluster is the overall GKE environment containing one or more node pools of Compute Engine VMs
A GKE cluster is the top-level GKE resource, and a node pool is a group of nodes within that cluster sharing the same configuration (machine type, image, etc.).
Question 7: Which GCP service provides managed Apache Kafka-compatible messaging with horizontal scalability?
- Cloud Tasks
- Cloud Pub/Sub
- Managed Service for Apache Kafka (Correct answer)
- Eventarc
Correct answer: Managed Service for Apache Kafka
GCP's Managed Service for Apache Kafka offers a fully managed, Kafka-compatible streaming service without requiring manual cluster operations.
Which GCP service enables real-time stream processing using Apache Beam pipelines?