1. Which of these is a global resource in Google Cloud?
- A VPC network
- A Compute Engine VM
- A zonal persistent disk
- A single zone
Show answer
Answer: A VPC network
VPC networks are global; their subnets are regional and VMs are zonal.
25 questions from the Google Cloud Platform course, each with the correct answer and an explanation. Try to answer before you open the answer.
Answer: A VPC network
VPC networks are global; their subnets are regional and VMs are zonal.
Answer: On the project
Projects are the unit for enabled APIs, quotas and billing linkage.
Answer: Application Default Credentials from the attached service account
ADC picks up the service account attached to the Cloud Run service, so no key file is needed.
Lesson: Console, gcloud, Cloud Shell and Infrastructure as Code
Answer: Basic roles such as Editor
Basic roles span almost every service in the project; predefined roles are scoped to one service.
Lesson: How IAM Works
Answer: Attach a dedicated service account with narrowly scoped roles
An attached, dedicated service account gets short-lived tokens automatically and limits the blast radius.
Lesson: Service Accounts
Answer: Long-lived service account keys for external workloads
External tokens are exchanged for short-lived Google credentials, so no key file is stored.
Lesson: Workload Identity Federation
Answer: Recreates the VM from the instance template
Autohealing recreates unhealthy instances from the template.
Answer: Set minimum instances to 1 or more
Minimum instances keep warm containers ready, at the cost of paying for them while idle.
Lesson: Cloud Run
Answer: The resources your pods request
Autopilot manages nodes and bills by pod resource requests.
Answer: Because events can be delivered more than once when retries happen
At-least-once delivery and retries mean the same event may arrive twice.
Lesson: Cloud Run Functions and Eventarc
Answer: One topic with a separate subscription per service
Each subscription gets every message; services sharing one subscription would split the messages.
Lesson: Pub/Sub
Answer: Cloud Tasks
Cloud Tasks queues individual tasks to an endpoint with configurable dispatch rate limits.
Answer: Within milliseconds, at a higher per-read cost
All Cloud Storage classes offer millisecond access; colder classes cost more per read and have minimum durations.
Lesson: Cloud Storage
Answer: Availability type REGIONAL (high availability)
A regional (HA) instance keeps a standby in another zone and fails over automatically.
Lesson: Cloud SQL, AlloyDB and Spanner
Answer: Bigtable
Bigtable is designed for huge, high-throughput workloads organised around sorted row keys.
Answer: Selecting only the needed columns instead of SELECT *
BigQuery is columnar; fewer columns means fewer bytes read. LIMIT does not reduce the scan.
Lesson: BigQuery Essentials
Answer: Dataproc
Dataproc runs managed Spark and Hadoop, so existing Spark code moves with little change.
Lesson: Dataflow, Dataproc and Pipelines
Answer: BigQuery ML
BigQuery ML trains and runs models with SQL inside BigQuery.
Lesson: Vertex AI and BigQuery ML
Answer: Nothing beyond firewall rules, because the VPC is global
Subnets of one global VPC route to each other internally; you only need firewall rules allowing the traffic.
Answer: Global external Application Load Balancer
The global external Application Load Balancer is layer 7, global and anycast.
Answer: No, VPC peering is not transitive
VPC Network Peering is non-transitive; A needs its own peering or another connectivity design.
Lesson: Private Connectivity and DNS
Answer: Cloud Audit Logs
Admin Activity audit logs record configuration changes such as IAM policy updates.
Lesson: Delivery and Observability
Answer: An organization policy on resource locations
The resource-locations organization policy constraint limits allowed regions across the hierarchy.
Lesson: Secret Manager, Organization Policies and Security Command Center
Answer: Sustained use discount
Sustained use discounts are applied automatically to eligible machine series based on monthly usage.
Lesson: Cost Management and Discounts
Answer: About the full size of the referenced columns, close to 2 TB
LIMIT does not reduce bytes scanned for such queries; SELECT * reads every column of the table.