GCP Google Cloud Platform (GCP) Skills 2 — Questions and Answers
Question 1: Which GCP service provides a fully managed, serverless data warehouse for analytics at scale?
- Cloud Spanner
- BigQuery (Correct answer)
- Cloud SQL
- Bigtable
Correct answer: BigQuery
BigQuery is GCP's fully managed, serverless data warehouse designed for large-scale analytics with built-in ML capabilities.
Question 2: What is the default maximum duration for a Cloud Run job before it times out?
- 10 minutes
- 1 hour
- 24 hours (Correct answer)
- 60 minutes
Correct answer: 24 hours
Cloud Run jobs have a maximum timeout of 24 hours, allowing long-running batch workloads to complete.
Question 3: Which networking feature allows GCP VMs in different regions to communicate using Google's internal network rather than the public internet?
- Cloud CDN
- Cloud Interconnect
- VPC Global Routing (Correct answer)
- Cloud NAT
Correct answer: VPC Global Routing
VPC Global Routing (global mode) allows VM instances in different regions to communicate across Google's private backbone using internal IP addresses.
Question 4: In Cloud IAM, what is the difference between a 'role' and a 'permission'?
- Permissions are assigned to users; roles are assigned to resources
- Roles are collections of permissions; permissions are individual API actions (Correct answer)
- Roles apply at project level; permissions apply at resource level
- Permissions are hierarchical; roles are flat
Correct answer: Roles are collections of permissions; permissions are individual API actions
A role is a named collection of permissions (e.g., roles/storage.objectViewer), while a permission is an individual action like storage.objects.get.
Question 5: Which GCP tool allows you to define infrastructure as code using declarative configuration files?
- Cloud Build
- Deployment Manager (Correct answer)
- Cloud Composer
- Config Connector
Correct answer: Deployment Manager
Cloud Deployment Manager lets you define, deploy, and manage GCP resources using YAML, Python, or Jinja2 templates in an infrastructure-as-code model.
Question 6: What does the Cloud Storage 'Nearline' storage class optimize for?
- Frequently accessed data requiring sub-millisecond latency
- Data accessed less than once per month with lower storage cost (Correct answer)
- Data that must be retained for regulatory compliance indefinitely
- Real-time streaming data ingestion
Correct answer: Data accessed less than once per month with lower storage cost
Nearline storage is designed for infrequently accessed data (about once a month), offering lower storage costs with a minimum 30-day storage duration.
Question 7: Which GCP service is best suited for running containerized microservices with automatic scaling and no cluster management?
- Google Kubernetes Engine
- Cloud Run (Correct answer)
- Compute Engine
- App Engine Flexible
Correct answer: Cloud Run
Cloud Run is a fully managed serverless platform that runs containers without requiring cluster management, scaling automatically to zero.
Which GCP service provides a fully managed, serverless data warehouse for analytics at scale?