Google Cloud Certified Compute and Container Services 1 — Questions and Answers
Question 1: A team wants to run stateless containerized workloads on GCP without managing any infrastructure or Kubernetes clusters. Which service is best?
- GKE Standard
- Cloud Run (Correct answer)
- GCE Managed Instance Groups
- GKE Autopilot
Correct answer: Cloud Run
Cloud Run is a fully managed serverless platform for stateless containers that abstracts all infrastructure management.
Question 2: What is the key difference between GKE Standard and GKE Autopilot?
- Autopilot supports GPU nodes; Standard does not
- Autopilot manages node provisioning and scaling automatically; Standard requires manual node management (Correct answer)
- Standard is serverless; Autopilot requires cluster setup
- Autopilot only supports Windows containers
Correct answer: Autopilot manages node provisioning and scaling automatically; Standard requires manual node management
GKE Autopilot fully manages node infrastructure including provisioning and scaling, while GKE Standard gives you direct control over nodes.
Question 3: Which Compute Engine feature allows you to automatically add or remove VM instances based on load?
- Managed Instance Groups with Autoscaling (Correct answer)
- Unmanaged Instance Groups
- Persistent Disk snapshots
- Cloud Scheduler
Correct answer: Managed Instance Groups with Autoscaling
Managed Instance Groups (MIGs) with autoscaling automatically adjust the number of VM instances based on CPU utilization, load balancing metrics, or custom signals.
Question 4: A company wants to run a batch data processing job on GCP that needs to start quickly and complete within a few hours at lowest cost. Which VM option is most appropriate?
- Standard VMs with on-demand pricing
- Preemptible VMs (Spot VMs) (Correct answer)
- Sole-tenant nodes
- Committed Use Discounts
Correct answer: Preemptible VMs (Spot VMs)
Preemptible (Spot) VMs offer significant discounts (up to 91%) for short-lived workloads that can tolerate interruption, ideal for batch processing.
Question 5: Which GKE feature automatically adjusts pod CPU and memory requests based on historical usage?
- Horizontal Pod Autoscaler
- Vertical Pod Autoscaler (Correct answer)
- Cluster Autoscaler
- Node Auto-Provisioner
Correct answer: Vertical Pod Autoscaler
Vertical Pod Autoscaler (VPA) recommends and optionally applies CPU and memory request adjustments based on actual pod usage history.
Question 6: What is the purpose of a GCE Instance Template?
- Store persistent disk snapshots
- Define a reusable VM configuration for Managed Instance Groups (Correct answer)
- Configure network firewall rules
- Set IAM permissions for VM access
Correct answer: Define a reusable VM configuration for Managed Instance Groups
Instance templates define the machine type, boot disk image, network settings, and labels used to create VMs in a Managed Instance Group.
A team wants to run stateless containerized workloads on GCP without managing any infrastructure or Kubernetes clusters.
Which service is best?