Google Cloud Associate Cloud Engineer Domain 2: Planning and Implementing a Cloud Solution
61 free practice questions for Planning and Implementing a Cloud Solution in the Google Cloud Certified Associate Cloud Engineer exam. Try each question first, then open "Show answer" for the correct option and explanation.
Planning and Implementing a Cloud Solution practice questions
-
Question 1. A team wants to run a stateless containerized web app that scales to zero when idle, without managing clusters. Which service fits BEST?
Show answer
Answer: B. Cloud Run
Cloud Run runs containers serverlessly, scales on requests, and can scale to zero.
-
Question 2. Which service runs a small piece of code in response to a Cloud Storage upload event with no infrastructure to manage?
Show answer
Answer: D. Cloud Run functions (Cloud Functions)
Functions are event-driven and serverless, which suits lightweight event processing.
-
Question 3. An application needs full control of the operating system and a custom kernel module. Which compute option should be used?
Show answer
Answer: C. Compute Engine
Compute Engine VMs give OS-level control. Serverless platforms don't allow kernel changes.
-
Question 4. Which GKE mode has Google manage the nodes, with billing based on the resources Pods request?
Show answer
Answer: A. Autopilot
In Autopilot, Google provisions and manages nodes. In Standard, you manage node pools.
-
Question 5. A batch job can tolerate interruptions and must run as cheaply as possible on VMs. What should be used?
Show answer
Answer: D. Spot VMs
Spot VMs are heavily discounted but can be preempted at any time, which suits fault-tolerant batch work.
-
Question 6. What defines the machine type, image, and metadata used by a managed instance group to create VMs?
Show answer
Answer: A. An instance template
Instance templates are immutable definitions. To change a MIG's VMs, create a new template and roll it out.
-
Question 7. Which feature of a managed instance group recreates a VM that fails an application health check?
Show answer
Answer: C. Autohealing
Autohealing uses a health check to detect unhealthy instances and recreate them.
-
Question 8. A MIG should add VMs when average CPU exceeds 60%. What should be configured?
Show answer
Answer: D. An autoscaling policy targeting 60% CPU utilization
The autoscaler adds or removes instances to keep the target metric near the set value.
-
Question 9. Which MIG type distributes instances across several zones in a region for higher availability?
Show answer
Answer: D. A regional managed instance group
Regional MIGs spread VMs across zones so a zone outage doesn't take down the whole group.
-
Question 10. Which command creates a GKE Autopilot cluster?
Show answer
Answer: B. gcloud container clusters create-auto my-cluster --region=us-central1
create-auto creates an Autopilot cluster. Standard clusters use gcloud container clusters create.
-
Question 11. After creating a GKE cluster, which command configures kubectl to use it?
Show answer
Answer: D. gcloud container clusters get-credentials my-cluster
get-credentials writes the cluster endpoint and authentication details into kubeconfig.
-
Question 12. Which command deploys a container image to Cloud Run?
Show answer
Answer: C. gcloud run deploy my-service --image=IMAGE_URL --region=us-central1
gcloud run deploy creates or updates a Cloud Run service with a new revision.
-
Question 13. Where should a team store its private container images for GKE and Cloud Run?
Show answer
Answer: A. Artifact Registry
Artifact Registry stores container images and language packages with IAM access control. It replaces Container Registry.
-
Question 14. A globally distributed application needs a relational database with strong consistency and horizontal scaling. Which service fits?
Show answer
Answer: C. Cloud Spanner
Spanner is a globally scalable, strongly consistent relational database.
-
Question 15. A team needs a managed MySQL database for a regional web app with standard SQL features. Which service is MOST appropriate?
Show answer
Answer: C. Cloud SQL
Cloud SQL provides managed MySQL, PostgreSQL, and SQL Server for typical transactional workloads.
-
Question 16. Which service is best for petabyte-scale analytical SQL queries over large datasets?
Show answer
Answer: C. BigQuery
BigQuery is a serverless data warehouse for analytics.
-
Question 17. An IoT system writes millions of time-series readings per second and needs low-latency key lookups. Which database fits?
Show answer
Answer: C. Bigtable
Bigtable is a wide-column NoSQL database built for high-throughput, low-latency workloads such as time series.
-
Question 18. A mobile app needs a serverless NoSQL document database with real-time synchronization. Which service fits?
Show answer
Answer: B. Firestore
Firestore stores JSON-like documents and supports real-time listeners and offline mobile sync.
-
Question 19. Which Cloud Storage class is cheapest for data accessed less than once a year and kept for compliance?
Show answer
Answer: D. Archive
Archive has the lowest storage cost but the highest retrieval costs and a 365-day minimum storage duration.
-
Question 20. Data is read about once a month for reports. Which Cloud Storage class is MOST cost-effective?
Show answer
Answer: D. Nearline
Nearline suits data accessed about monthly (30-day minimum). Coldline suits quarterly access.
-
Question 21. Which Cloud Storage location type stores data redundantly across two specific regions?
Show answer
Answer: B. Dual-region
Dual-region stores data in two chosen regions for high availability and performance.
-
Question 22. How can objects move automatically from Standard to Coldline after 90 days?
Show answer
Answer: C. An Object Lifecycle Management rule on the bucket
Lifecycle rules can change storage class or delete objects based on age and other conditions.
-
Question 23. Which command copies a local file to a Cloud Storage bucket?
Show answer
Answer: C. gcloud storage cp report.csv gs://my-bucket/
gcloud storage cp (or the older gsutil cp) copies files to and from buckets.
-
Question 24. A company must move 500 TB from its data center to Cloud Storage and has limited bandwidth. What should it use?
Show answer
Answer: A. Transfer Appliance
Transfer Appliance is a physical device shipped to the customer, loaded with data, and returned to Google.
-
Question 25. Which service schedules recurring transfers from Amazon S3 into Cloud Storage?
Show answer
Answer: D. Storage Transfer Service
Storage Transfer Service moves data from other clouds, HTTP sources, or other buckets, on a schedule.
-
Question 26. Which command loads a CSV file from Cloud Storage into a BigQuery table?
Show answer
Answer: A. bq load --source_format=CSV dataset.table gs://bucket/file.csv
bq load imports data into a table and can infer or accept a schema.
-
Question 27. What is the difference between auto mode and custom mode VPC networks?
Show answer
Answer: A. Auto mode adds a subnet per region; custom lets you choose
Custom mode is recommended for production because you control subnet ranges and regions.
-
Question 28. Which command creates a custom mode VPC network?
Show answer
Answer: D. gcloud compute networks create my-vpc --subnet-mode=custom
After creating the network, add subnets with gcloud compute networks subnets create.
-
Question 29. A subnet is running out of addresses. What can be done without recreating it?
Show answer
Answer: A. Expand its primary IP range with expand-ip-range
Subnet primary ranges can be expanded (not shrunk) as long as they don't overlap other ranges.
-
Question 30. What are the implied firewall rules in every VPC network?
Show answer
Answer: D. Allow all egress and deny all ingress
The implied rules have the lowest priority, so you add higher-priority rules to allow required ingress.
-
Question 31. A firewall rule should allow HTTP only to web servers. How should the web servers be targeted?
Show answer
Answer: B. With a network tag or service account on the rule's targets
Firewall rule targets can be all instances, instances with a network tag, or instances using a service account.
-
Question 32. Which firewall rule priority value takes precedence?
Show answer
Answer: D. The lowest number, such as 100 over 1000
Priorities range from 0 (highest) to 65535 (lowest).
-
Question 33. Several projects must use subnets in one central network managed by the network team. What should be used?
Show answer
Answer: C. Shared VPC with a host project and service projects
Shared VPC lets service projects use subnets from a host project while network admins keep control.
-
Question 34. Two VPC networks in different organizations need private connectivity using internal IPs. Which option fits?
Show answer
Answer: A. VPC Network Peering
VPC peering works across projects and organizations. Peering isn't transitive.
-
Question 35. VMs without external IPs need to download OS updates from the internet. What should be configured?
Show answer
Answer: D. Cloud NAT on a Cloud Router in the region
Cloud NAT provides outbound internet access without exposing VMs to inbound connections.
-
Question 36. VMs without external IPs must reach Cloud Storage APIs. Which setting enables this?
Show answer
Answer: B. Private Google Access on the subnet
Private Google Access lets internal-only VMs reach Google APIs and services.
-
Question 37. A company needs an encrypted connection from its data center to its VPC over the internet quickly and cheaply. What should it use?
Show answer
Answer: A. Cloud VPN
Cloud VPN (HA VPN) creates IPsec tunnels over the internet. Interconnect gives private, higher-bandwidth links.
-
Question 38. A company needs a private 10 Gbps connection to Google Cloud that doesn't traverse the public internet, from a colocation facility where Google is present. What should it choose?
Show answer
Answer: B. Dedicated Interconnect
Dedicated Interconnect provides direct physical connections in 10 or 100 Gbps circuits.
-
Question 39. Which service exchanges routes dynamically with on-premises routers over BGP for VPN and Interconnect?
Show answer
Answer: B. Cloud Router
Cloud Router uses BGP so routes update automatically when networks change.
-
Question 40. A global HTTPS web app needs a single anycast IP and routing to the nearest healthy backend. Which load balancer fits?
Show answer
Answer: C. Global external Application Load Balancer
The global external Application Load Balancer (layer 7) uses one anycast IP and routes users to the closest backends.
-
Question 41. An application needs to load-balance TCP traffic between internal services in one region, preserving client IPs. Which load balancer fits?
Show answer
Answer: A. Internal passthrough Network Load Balancer
Internal passthrough load balancers distribute TCP/UDP traffic within a VPC without proxying.
-
Question 42. Which service hosts authoritative DNS zones, including private zones visible only inside VPC networks?
Show answer
Answer: C. Cloud DNS
Cloud DNS supports public and private managed zones.
-
Question 43. A team wants to define VPC networks, VMs, and buckets in code and apply changes consistently across environments. What should it use?
Show answer
Answer: A. Terraform with the Google provider
Terraform is a common IaC tool for Google Cloud. Infrastructure Manager can run Terraform as a managed service.
-
Question 44. Which Google Cloud service deploys and manages infrastructure using Terraform configurations as a managed service?
Show answer
Answer: D. Infrastructure Manager
Infrastructure Manager runs Terraform for you. Deployment Manager is the older, template-based service.
-
Question 45. Where can a team quickly deploy prebuilt third-party solutions, such as a WordPress stack, onto Google Cloud?
Show answer
Answer: C. Google Cloud Marketplace
Marketplace offers ready-to-deploy software, some billed through Cloud Billing.
-
Question 46. What is a key benefit of a custom machine type in Compute Engine?
Show answer
Answer: A. Choosing exact vCPU and memory amounts to fit a workload
Custom machine types avoid paying for resources a predefined type would over-provision.
-
Question 47. Which disk type is backed by a replicated persistent disk in two zones of a region?
Show answer
Answer: A. Regional persistent disk
Regional persistent disks replicate synchronously across two zones for high availability.
-
Question 48. What happens to data on a Local SSD when the VM is stopped?
Show answer
Answer: A. It is lost, because Local SSDs are ephemeral
Local SSDs give very high performance but don't persist when a VM stops or is deleted.
-
Question 49. Which Cloud Run setting keeps some instances ready to avoid cold starts?
Show answer
Answer: C. Minimum instances
Setting minimum instances above zero keeps instances warm, at extra cost.
-
Question 50. Cloud Run's concurrency setting controls what?
Show answer
Answer: B. The number of requests one container instance handles at once
Higher concurrency means fewer instances for the same traffic. Set it to 1 for workloads that can't handle parallel requests.
-
Question 51. Which App Engine environment runs applications in containers on Compute Engine VMs and supports custom runtimes?
Show answer
Answer: A. Flexible environment
The flexible environment runs Docker containers on VMs. The standard environment runs specific runtimes in a sandbox and can scale to zero.
-
Question 52. A company wants a managed in-memory cache for Redis. Which service should it use?
Show answer
Answer: B. Memorystore
Memorystore provides managed Redis and Memcached.
-
Question 53. Several VMs need a shared NFS file system. Which service fits?
Show answer
Answer: B. Filestore
Filestore is managed NFS storage that multiple clients can mount.
-
Question 54. Which Google Cloud product is designed for running Apache Spark and Hadoop jobs?
Show answer
Answer: D. Dataproc
Dataproc runs managed Spark and Hadoop clusters. Dataflow runs Apache Beam pipelines.
-
Question 55. Which service provides asynchronous messaging between decoupled services?
Show answer
Answer: C. Pub/Sub
Pub/Sub delivers messages from publishers to subscribers, supporting fan-out and buffering.
-
Question 56. Which service runs managed stream and batch data processing pipelines written with Apache Beam?
Show answer
Answer: D. Dataflow
Dataflow autoscales Apache Beam pipelines for batch and streaming.
-
Question 57. Which statement about GKE Standard node pools is correct?
Show answer
Answer: B. Each node pool is a group of nodes with the same configuration
Node pools let one cluster mix machine types, such as GPU and general-purpose nodes.
-
Question 58. Which kubectl command creates or updates resources from a YAML file?
Show answer
Answer: D. kubectl apply -f deployment.yaml
kubectl apply is declarative and updates existing resources to match the file.
-
Question 59. Which Kubernetes object exposes a Deployment inside the cluster with a stable IP and DNS name?
Show answer
Answer: A. A Service of type ClusterIP
Services give Pods a stable endpoint. LoadBalancer type Services add an external load balancer on GKE.
-
Question 60. Which BigQuery pricing model charges based on the amount of data scanned by queries?
Show answer
Answer: B. On-demand pricing
On-demand pricing bills per TB processed. Capacity pricing reserves slots for predictable costs.
-
Question 61. Which Cloud SQL feature provides automatic failover to a standby instance in another zone?
Show answer
Answer: B. High availability (regional) configuration
HA configuration keeps a synchronous standby in another zone. Read replicas serve reads and aren't automatic failover targets.
Google Cloud is a trademark of Google LLC. These questions are original study material, not questions from the real exam.