Courseiva

Google Cloud Digital Leader (GCDL) — Questions 676–750

848 questions total · 12 pages · All types, answers revealed

Page 9

Page 10 of 12

Page 11
676
MCQmedium

A Virtual Private Cloud (VPC) in Google Cloud provides network isolation. What does 'network isolation' mean in this context, and why is it important?

A.Network isolation means the VPC blocks all internet access — resources cannot communicate with external services.
B.VPC provides a logically isolated private network where resources are separated from other customers' networks by default, preventing unauthorized cross-customer traffic.
C.Network isolation means all traffic within the VPC is automatically encrypted.
D.A VPC requires dedicated physical hardware separate from other customers to ensure isolation.
AnswerB

A VPC provides a logically isolated private network that is carved out of the provider's shared infrastructure, giving each customer a virtual address space, subnets, and routing domains that are invisible to other customers. By default, resources in a VPC cannot be reached from or send traffic to another customer's VPC because the provider enforces isolation at the network layer, rejecting any cross-tenant packets. This default-deny posture prevents unauthorized cross-customer traffic while still allowing controlled external connectivity through explicitly configured gateways.

Why this answer

A Google Cloud VPC provides a logically isolated private network within the shared Google Cloud infrastructure. This isolation ensures that resources in one customer's VPC cannot directly communicate with resources in another customer's VPC by default, preventing unauthorized cross-customer traffic. This is achieved through software-defined networking (SDN) constructs like virtual firewalls and routing tables, not through physical separation.

Exam trap

The GCDL exam often tests the misconception that 'network isolation' implies physical separation or automatic encryption, leading candidates to choose options D or C, when in fact it refers to logical isolation via software-defined networking.

How to eliminate wrong answers

Option A is wrong because network isolation does not block all internet access; VPCs can be configured with Cloud NAT, external IP addresses, or VPNs to allow controlled outbound or inbound internet connectivity. Option C is wrong because network isolation does not automatically encrypt traffic; encryption requires additional measures like TLS/SSL or VPC Flow Logs with encryption at rest, and traffic within a VPC is not encrypted by default. Option D is wrong because a VPC does not require dedicated physical hardware; it uses logical isolation via software-defined networking on shared physical infrastructure, as per Google Cloud's multi-tenant design.

677
Multi-Selecthard

A company needs to run a Hadoop/Spark workload on Google Cloud. They must use existing YARN applications and need to optimise for cost by using preemptible VMs for task nodes. Which three services should they use?

Select 3 answers
A.Compute Engine
B.Cloud Dataproc
C.Cloud Storage
D.BigQuery
E.Dataflow
AnswersA, B, C

Compute Engine provides the virtual machines that form the worker and master nodes of a Cloud Dataproc cluster. When you run a Hadoop/Spark workload on Google Cloud, Cloud Dataproc orchestrates the deployment, but the actual CPU, memory, and local storage attached to each cluster node are Compute Engine instances. You can also run Hadoop/Spark directly on your own Compute Engine VMs without Dataproc, making Compute Engine the fundamental compute infrastructure for such workloads.

Why this answer

Cloud Dataproc (B) is the right managed service because it natively runs Hadoop/Spark clusters on Google Cloud and supports existing YARN applications, including the ability to designate preemptible VMs specifically as secondary worker (task) nodes to reduce cost. Compute Engine (A) is correct because Dataproc clusters are provisioned on Compute Engine VM instances, so the underlying compute for master, primary, and preemptible secondary workers is Compute Engine. Cloud Storage (C) is correct because Dataproc uses Cloud Storage (gs://) as its default Hadoop-compatible file system (via the Cloud Storage connector), letting the workload store input/output data durably and cheaply instead of HDFS on persistent disks.

BigQuery (D) is not appropriate here because it is a serverless analytics data warehouse, not a platform for running YARN/Spark applications. Dataflow (E) is also not appropriate because it is a managed Apache Beam runner for data pipelines, not a Hadoop/Spark YARN cluster environment.

Exam trap

GCDL often tests the trap of selecting BigQuery or Dataflow for Hadoop/Spark workloads, when only Dataproc (with Compute Engine and Cloud Storage) supports YARN-based Spark/Hadoop jobs.

678
MCQeasy

Which Google Cloud service allows you to run code in response to events (e.g., file upload to Cloud Storage) without provisioning servers?

A.Cloud Functions
B.App Engine
C.Compute Engine
D.Google Kubernetes Engine
AnswerA

Cloud Functions is a serverless, event-driven compute service that executes code in response to specific triggers. It natively integrates with Google Cloud services such as Cloud Storage, Pub/Sub, and HTTP calls, automatically scaling the function instances as needed. You write and deploy a single-purpose function, and the platform handles the underlying infrastructure, so no server provisioning or cluster management is required. This makes it the direct answer for running code in response to events like a file upload or a message published to a topic.

Why this answer

Cloud Functions is Google Cloud's serverless Functions-as-a-Service (FaaS) platform. It executes small, single-purpose code snippets in response to events from sources like Cloud Storage object finalization, Pub/Sub messages, or HTTP requests, with no server provisioning or management required. The service automatically scales based on event volume and bills only for execution time, making it the canonical answer for event-driven, serverless compute.

Exam trap

The trap here is confusing serverless compute services: candidates may pick App Engine because it is also serverless, but App Engine is for long-running web apps, not event-driven functions; or they may pick GKE because it can run containers, but it requires cluster management.

How to eliminate wrong answers

Option B is wrong because App Engine is a Platform-as-a-Service (PaaS) for deploying full web applications and services; while it is serverless in the sense that it abstracts infrastructure, it is not designed for small, event-triggered functions and does not natively bind to Cloud Storage events as a trigger. Option C is wrong because Compute Engine provides Infrastructure-as-a-Service (IaaS) virtual machines, which require you to provision, configure, and manage the underlying VMs and their operating systems. Option D is wrong because Google Kubernetes Engine is a managed Kubernetes container orchestration service; it requires you to define clusters, nodes, and workloads, and it is not a serverless event-driven function platform.

679
MCQmedium

A company runs a web application on Compute Engine instances behind a managed instance group with autoscaling based on CPU utilization. After a marketing campaign, traffic spikes and the autoscaler adds instances quickly, but the application becomes slow. What is the most likely cause?

A.Autoscaler uses CPU utilization but the application is memory-bound
B.Instances are in different zones causing inter-zone latency
C.Autoscaling cooldown period is too short
D.Health check interval is too long
AnswerA

The autoscaler adds instances based on CPU utilization, but if the application is memory-bound, additional instances will still contend for the same memory resources, and each new instance adds per-instance memory overhead. The bottleneck remains, so scaling horizontally on a mismatched metric does not address the root cause; memory stays saturated, and the application continues to experience slowness.

Why this answer

The autoscaler adds instances based on CPU utilization, but if the application is memory-bound, adding more instances does not alleviate memory pressure. Each new instance still runs the same memory-intensive workload, so CPU may remain low while memory is exhausted, causing slowdowns. The autoscaler fails to address the actual bottleneck, leading to poor performance despite scaling out.

Exam trap

The trap here is that candidates assume CPU utilization is always the correct metric for scaling, but the question tests the understanding that autoscaling only works well when the chosen metric matches the actual bottleneck of the application.

How to eliminate wrong answers

Option B is wrong because managed instance groups with autoscaling can span multiple zones, but inter-zone latency within the same region is negligible (typically <1ms) and would not cause significant slowdowns. Option C is wrong because a cooldown period that is too short would cause the autoscaler to add instances too aggressively, not make the application slow; it might lead to over-provisioning or thrashing, but not directly to performance degradation. Option D is wrong because a health check interval that is too long delays detection of unhealthy instances, but does not cause the application to become slow; it affects availability, not performance under load.

680
MCQeasy

A large online retailer operates a microservices-based e-commerce platform on Google Kubernetes Engine (GKE) across multiple zones. The application consists of several stateless services that handle customer traffic, inventory, and order processing. Recently, the company migrated its relational database to Cloud Spanner to achieve global scalability and strong consistency. After the migration, during peak shopping periods (e.g., Black Friday), the application experiences significant performance degradation. The operations team monitors CPU utilization of the pods and finds it consistently below 60% even under heavy load. However, Cloud Spanner metrics show high query latency and increased number of transactions waiting for lock conflicts. The team suspects that the bottleneck is now the database, not the compute. The application is designed to scale horizontally by adding more pod replicas. The team wants to ensure that scaling decisions are based on the actual performance bottleneck. What should they do?

A.Scale the GKE cluster to use larger node instances.
B.Increase the CPU request limit for the pods to allow higher CPU usage.
C.Reduce the number of pods to decrease Spanner load.
D.Modify the Horizontal Pod Autoscaler (HPA) to scale based on a custom metric that reflects Cloud Spanner query latency.
AnswerD

Configuring the Horizontal Pod Autoscaler to use a custom metric based on Cloud Spanner query latency ensures that the number of pods scales in direct response to the real bottleneck. You can expose a metric such as the 99th percentile query latency from Spanner via Google Cloud Monitoring, and the HPA can use this via the Kubernetes Metrics API. When Spanner latency increases, the autoscaler adds more pods to distribute outstanding queries, reducing per-pod concurrency and preventing timeouts. This is preferable to CPU-based autoscaling because it captures database-side health and aligns scaling decisions with the actual user-facing performance.

Why this answer

The Horizontal Pod Autoscaler (HPA) can be configured to scale based on custom metrics, such as Cloud Spanner query latency. Since the bottleneck is the database, scaling pods based on CPU utilization (which remains low) would not resolve the issue; instead, scaling based on Spanner latency ensures that the application adds replicas only when the database can handle more connections, reducing lock contention and improving overall performance.

Exam trap

Google Cloud often tests the misconception that CPU utilization is always the correct metric for scaling, but in this scenario, the bottleneck is the database, so candidates must recognize that custom metrics (like Spanner latency) are needed to scale the application appropriately.

How to eliminate wrong answers

Option A is wrong because scaling the GKE cluster to use larger node instances increases compute resources, but the bottleneck is the database (Cloud Spanner), not CPU or memory; larger nodes would not reduce Spanner query latency or lock conflicts. Option B is wrong because increasing the CPU request limit for pods does not address the database bottleneck; it would allow pods to consume more CPU, but CPU utilization is already below 60%, so this change would not improve Spanner performance and could waste resources. Option C is wrong because reducing the number of pods would decrease the load on Spanner, but it would also reduce the application's ability to handle customer traffic, potentially causing service degradation; the goal is to scale based on the actual bottleneck, not to arbitrarily reduce capacity.

681
MCQeasy

A team uses Terraform to create a VPC as shown. They now need to add a Compute Engine instance in the subnet. Which of the following correctly references the subnet?

A.Set `network = google_compute_subnetwork.subnet.self_link`
B.Set `subnetwork = google_compute_subnetwork.subnet.self_link`
C.Set `subnetwork = google_compute_subnetwork.subnet.name`
D.Set `network = google_compute_network.vpc.name` and `subnetwork = google_compute_network.vpc.self_link`
AnswerB

The `subnetwork` attribute on a `google_compute_instance` accepts the self-link of a subnet, which uniquely identifies it across projects and regions. Using the full URL returned by `self_link` (e.g., `https://www.googleapis.com/compute/v1/projects/PROJECT/regions/REGION/subnetworks/SUBNET`) ensures Terraform and the GCP API resolve the exact subnetwork, even in shared VPC or multi-region deployments. This is the recommended and most explicit configuration; the self-link is the resource's canonical identifier.

Why this answer

When adding a Compute Engine instance to a subnet in Terraform, you must use the `subnetwork` argument (not `network`) and reference the subnet's `self_link` attribute. The `google_compute_subnetwork` resource's `self_link` provides the full URI required by the instance resource to attach to the correct subnet within the VPC.

Exam trap

Google Cloud often tests the distinction between `network` and `subnetwork` arguments, and the trap here is that candidates confuse the subnet's `name` attribute with its `self_link`, or mistakenly think the `network` argument can accept a subnet reference.

How to eliminate wrong answers

Option A is wrong because it sets `network = google_compute_subnetwork.subnet.self_link`, but the `network` argument expects a VPC network resource (e.g., `google_compute_network.vpc.self_link`), not a subnet self_link; this would cause a configuration error. Option C is wrong because `subnetwork = google_compute_subnetwork.subnet.name` uses only the subnet name, but the instance resource requires the full self_link URI to uniquely identify the subnet across projects or regions. Option D is wrong because it sets `network = google_compute_network.vpc.name` (which is a string name, not a self_link) and `subnetwork = google_compute_network.vpc.self_link` (which is a VPC self_link, not a subnet self_link); both arguments are incorrectly assigned, leading to a mismatch.

682
Multi-Selectmedium

A company wants to reduce its cloud spending by optimizing storage costs for infrequently accessed data. Which THREE Google Cloud storage classes should they consider? (Choose three.)

Select 3 answers
A.Standard
B.Regional
C.Archive
D.Coldline
E.Nearline
AnswersC, D, E

The Archive storage class is the lowest-cost option in Google Cloud, specifically designed for data accessed less than once per year, making it the ideal choice for long-term archival data. It has a 365-day minimum storage duration and higher retrieval fees than other classes, but for data that is rarely accessed, the dramatic reduction in storage cost offers the greatest overall savings, which is why it is the correct answer.

Why this answer

The scenario asks for storage classes suited to infrequently accessed data to cut costs, and the three marked options fit that profile. C (Archive) is correct because it is the lowest-cost class for data accessed less than once a year, with a 365-day minimum storage duration, ideal for long-term retention. D (Coldline) is correct because it targets data accessed less than once a quarter, offering low cost with a 90-day minimum storage duration.

E (Nearline) is correct because it is designed for data accessed less than once a month, providing lower cost than hotter classes with a 30-day minimum storage duration. A (Standard) is not appropriate because it is the highest-cost class for frequently accessed data, and B (Regional) is not a storage class but a location type that can apply to Standard, Nearline, Coldline, or Archive, so neither reduces cost for infrequent access.

Exam trap

GCDL often tests the confusion between storage class (access frequency tier) and storage location (Regional/Multi-regional), causing candidates to select Regional as if it were a cold tier.

683
MCQmedium

A media company needs to stream live video to global viewers with low latency. They also want to protect against DDoS attacks. Which combination of Google Cloud networking services should they use?

A.Cloud Interconnect and Cloud VPN
B.Cloud CDN and Cloud Armor
C.Cloud DNS and Cloud Armor
D.Cloud Load Balancing and Cloud NAT
AnswerB

Cloud CDN accelerates live video by caching video segments at Google's hundreds of edge PoPs, minimizing latency for global viewers even during stream spikes. Cloud Armor complements this by enforcing DDoS protection and security policies at the edge, blocking malicious traffic before it reaches the origin. This pairing delivers both performance and security, making it the correct solution for global live streaming.

Why this answer

Cloud CDN and Cloud Armor together provide low-latency global content delivery and DDoS protection. Cloud CDN caches content at edge locations to reduce latency for global viewers, while Cloud Armor provides WAF and DDoS protection at the edge. This combination directly addresses the requirements.

Exam trap

GCDL often tests the confusion between services for private connectivity (Interconnect/VPN) and services for public content delivery and security (CDN/Armor).

How to eliminate wrong answers

Option A is wrong because Cloud Interconnect and Cloud VPN are for private connectivity between on-premises and GCP, not for global content delivery or DDoS protection. Option C is wrong because Cloud DNS and Cloud Armor provide DNS and DDoS protection but do not accelerate content delivery for live video. Option D is wrong because Cloud Load Balancing and Cloud NAT provide load balancing and outbound NAT, but not CDN caching or DDoS protection.

684
MCQhard

A media company stores video files on-premises and wants to migrate them to Google Cloud for processing and transcoding. The files are accessed by a legacy on-premises application that cannot be modified. Which migration strategy should they use?

A.Use Transfer Appliance to ship data to Google Cloud and set up a VPN for the application to access Cloud Storage via private IP.
B.Migrate the application to run on Compute Engine and access Cloud Storage natively.
C.Use Storage Transfer Service to move data to Cloud Storage, then mount the bucket using Cloud Storage FUSE on the on-premises server.
D.Use gsutil rsync to copy files to Cloud Storage and update the application to use Cloud Storage URLs.
AnswerC

Storage Transfer Service provides a fully managed, one-time bulk copy of the existing video files into Cloud Storage, efficiently handling the initial data migration. Once the files are in a bucket, Cloud Storage FUSE (gcsfuse) mounts that bucket as a file system on the on-premises server, allowing the unmodified application to read and write files using standard local file paths. This combination satisfies both the need to move data to Google Cloud and the requirement of zero code changes.

Why this answer

Storage Transfer Service allows transferring data from on-premises to Cloud Storage, while using Cloud Storage FUSE or a VPN can keep the on-premises application accessing the files. The best approach is to use Storage Transfer Service for bulk migration and then configure hybrid access.

685
Multi-Selecteasy

A company wants to monitor the health and performance of their applications running on Google Cloud. Which two Google Cloud services should they use together for comprehensive observability?

Select 2 answers
A.Cloud Monitoring
B.Cloud Profiler
C.Cloud Logging
D.Cloud Debugger
E.Cloud Trace
AnswersA, C

Cloud Monitoring is the core Google Cloud service for observing infrastructure and application health, collecting time-series metrics such as CPU utilization, memory usage, and custom application metrics. It provides uptime checks, dashboards, and alerting policies, making it the primary tool for detecting performance degradation and availability issues in real time. Its built-in integrations with Google Cloud services and custom metrics make it the definitive choice for monitoring health and performance.

Why this answer

Cloud Monitoring and Cloud Logging together form the core of Google Cloud's observability stack. Cloud Monitoring collects metrics, uptime checks, and alerting policies, while Cloud Logging ingests, stores, and analyzes log data. Combined, they provide the metrics, logs, and alerting needed to comprehensively monitor application health and performance.

Exam trap

Google Cloud often tests the distinction between observability services (Monitoring + Logging) and specialized tools (Profiler, Debugger, Trace), leading candidates to select all five options or mix debugging/profiling tools with core monitoring.

686
Multi-Selectmedium

A financial services company must comply with strict data residency regulations. Which cloud feature helps meet compliance requirements?

Select 1 answer
A.Data location controls
B.Open source software
C.Public internet access
D.Single data center footprint
E.Customer-managed encryption keys
AnswersA

Data location controls are a fundamental compliance feature, as they allow an organization to explicitly choose the geographic region where its data is stored. This ensures data residency and sovereignty requirements are met, such as those imposed by GDPR, PCI-DSS, or local banking regulations. By restricting data to approved jurisdictions, enterprises can avoid violating laws that mandate data stay within national borders, and auditors can verify that data never leaves those boundaries.

Why this answer

Data location controls (Option A) allow explicit geographic restrictions, directly meeting data residency requirements. Customer-managed encryption keys (Option E) address data confidentiality and access control, not where data resides. The other options are irrelevant or misleading.

Exam trap

A common mistake is confusing data residency (where data is stored) with data encryption (who can read it). Even with customer-managed keys, data may reside in any region, so encryption alone does not satisfy residency requirements.

687
MCQmedium

A DevOps team wants to automate their software build, test, and deployment process on Google Cloud. They need a service that triggers automatically when code is pushed to a repository, builds container images, runs tests, and deploys to production. Which Google Cloud product orchestrates this CI/CD pipeline?

A.Cloud Composer, Google Cloud's managed Apache Airflow service
B.Cloud Build, Google Cloud's managed CI/CD service that triggers on code pushes, builds images, runs tests, and deploys automatically
C.Cloud Scheduler, which triggers periodic jobs on a cron schedule
D.Eventarc, which routes events from Google Cloud services to Cloud Run functions
AnswerB

Cloud Build is the correct answer. It natively integrates with source repositories, executes multi-step build pipelines (test, build, deploy), builds container images, and deploys to Cloud Run, GKE, or App Engine. It's the primary Google Cloud CI/CD service.

Why this answer

Cloud Build is Google Cloud's managed CI/CD service that directly supports the described workflow: it can be triggered automatically by code pushes to a repository (e.g., Cloud Source Repositories, GitHub, Bitbucket), then execute a series of steps defined in a build configuration file (cloudbuild.yaml) to build container images, run tests, and deploy to production environments such as Google Kubernetes Engine, Cloud Run, or Compute Engine. This makes it the correct choice for orchestrating the entire CI/CD pipeline.

Exam trap

Google Cloud often tests the distinction between event-driven orchestration (Cloud Build) and general-purpose workflow schedulers (Cloud Composer) or event routers (Eventarc), leading candidates to confuse a CI/CD pipeline tool with a scheduling or event-routing service.

How to eliminate wrong answers

Option A is wrong because Cloud Composer is a managed Apache Airflow service designed for workflow orchestration and scheduling of complex pipelines, not for CI/CD triggered by code pushes; it lacks native integration for building container images or deploying to production as part of a code-push event. Option C is wrong because Cloud Scheduler is a cron-based job scheduler that triggers tasks on a time-based schedule, not on code repository events, and it does not provide CI/CD capabilities like building, testing, or deploying. Option D is wrong because Eventarc is an event routing service that delivers events from Google Cloud sources to targets like Cloud Run, but it does not itself build images, run tests, or deploy applications; it is a transport layer, not a CI/CD orchestrator.

688
Multi-Selectmedium

A company needs to reduce costs on Compute Engine instances that run batch jobs for varying durations. They can tolerate interruptions and do not require a specific uptime guarantee. Which TWO instance types or purchasing options should they consider? (Choose 2)

Select 2 answers
A.Sole-tenant nodes
B.Spot VMs
C.Preemptible VMs
D.Committed use discounts
E.Sustained use discounts
AnswersB, C

Spot VMs are the modern replacement for preemptible VMs, offering discounts of 60-91% without a maximum runtime cap. They can be terminated by Compute Engine at any time (with a 30-second warning) when capacity is needed, making them ideal for fault-tolerant and batch workloads that can be checkpointed and resumed, directly reducing costs.

Why this answer

Preemptible VMs can be terminated at any time but are significantly cheaper, suitable for fault-tolerant batch jobs. Spot VMs are similar to preemptible but with no maximum runtime and often lower price. Both are ideal for batch workloads that can handle interruptions.

689
MCQeasy

A business wants to reduce the time to market for new features by enabling developers to provision infrastructure without waiting for IT. Which cloud attribute supports this?

A.Disaster recovery
B.Broad network access
C.High availability
D.On-demand self-service
AnswerD

On-demand self-service is a defining NIST cloud essential characteristic where a consumer can unilaterally provision computing capabilities—such as server time and network storage—automatically without requiring human interaction with the provider. In practice, this means developers can call APIs (e.g., EC2 RunInstances) to spin up environments in minutes, eliminating IT request queues and manual setup delays. This directly reduces time to market for new features by enabling continuous integration and delivery pipelines to create and destroy test environments instantaneously. Without self-service, feature teams would wait for days for infrastructure, undermining the business's agility goal.

Why this answer

On-demand self-service (Option D) is the correct answer because it allows developers to provision infrastructure automatically without requiring human interaction from IT. This cloud attribute, defined by NIST SP 800-145, enables users to unilaterally provision computing resources as needed, directly reducing time to market by eliminating manual approval and setup delays.

Exam trap

Google Cloud often tests the distinction between 'on-demand self-service' and 'broad network access' by presenting scenarios where remote access is confused with automated provisioning, leading candidates to incorrectly choose broad network access.

How to eliminate wrong answers

Option A is wrong because disaster recovery focuses on restoring services after failures, not on enabling rapid provisioning for new features. Option B is wrong because broad network access refers to resource availability over the network via standard protocols (e.g., HTTPS, SSH), not the ability to self-provision infrastructure. Option C is wrong because high availability ensures uptime and fault tolerance through redundancy, but does not address the self-service provisioning workflow that accelerates feature delivery.

690
Multi-Selecthard

A business is considering moving to Google Cloud to accelerate innovation. Which THREE factors contribute to faster innovation in the cloud?

Select 3 answers
A.Access to advanced technologies like AI
B.Global scale for experiments
C.Longer procurement cycles
D.Rapid prototyping with managed services
E.Dedicated physical servers
AnswersA, B, D

Google Cloud integrates AI/ML capabilities directly into its data and analytics services. For example, Vertex AI offers unified tooling for building, deploying, and scaling ML models, while pre-trained APIs like Vision, Speech, and Natural Language allow developers to incorporate AI features with minimal expertise. This eliminates the need for specialized hardware and large data science teams, accelerating time-to-market for intelligent applications.

Why this answer

Option A is correct because Google Cloud provides immediate access to advanced technologies such as AI, machine learning, and data analytics services (e.g., Vertex AI, BigQuery ML), letting teams build innovative solutions without building these capabilities from scratch. Option B is correct because Google Cloud's global infrastructure lets organizations run experiments and scale them worldwide quickly, so successful innovations can reach users in many regions without lengthy capacity planning. Option D is correct because managed services (e.g., Cloud Run, GKE, Cloud SQL) enable rapid prototyping by removing undifferentiated infrastructure work, shortening the time from idea to working prototype.

Option C is incorrect because longer procurement cycles slow innovation by delaying access to resources, the opposite of what cloud accelerates. Option E is incorrect because dedicated physical servers represent a traditional, capital-intensive model that reduces agility and elasticity rather than speeding innovation.

Exam trap

Google Cloud often tests the misconception that 'dedicated physical servers' or 'longer procurement cycles' are benefits of cloud, when in fact they are inhibitors to innovation that cloud specifically eliminates.

691
MCQeasy

Which characteristic of cloud computing allows a user to provision virtual machines without needing to interact with Google Cloud support or create a ticket?

A.Broad network access
B.Measured service
C.Resource pooling
D.On-demand self-service
AnswerD

On-demand self-service is the cloud characteristic that lets a user directly provision and configure computing resources—such as virtual machines, storage, and applications—through a web portal or API, without requiring manual approval or interaction with the provider's staff. This unmediated, automated provisioning is the fundamental enabler of the question's described action, as it gives the user immediate control over resource creation and scaling. It is the defining feature that differentiates cloud computing from traditional IT procurement, where human intervention and long lead times are common.

Why this answer

On-demand self-service means users can provision resources automatically without human interaction. The other options are also NIST characteristics but do not specifically address provisioning without manual intervention.

692
MCQeasy

A developer wants to run a small piece of code that resizes images whenever a new image is uploaded to Cloud Storage. The code runs for less than a second and should only be triggered by the upload event. No always-on server is needed. Which Google Cloud service is ideal?

A.A Compute Engine VM that runs continuously, checking for new uploads every minute.
B.Cloud Functions triggered by Cloud Storage object creation events.
C.Cloud Run with a permanent container that listens for uploads.
D.BigQuery scheduled query that processes new uploads daily.
AnswerB

Cloud Functions triggered by Cloud Storage object creation events are the correct solution because they implement an event-driven, serverless architecture. Each upload to the bucket emits a notification that automatically invokes the function, which resizes the image and returns—no server runs between events. Costs are incurred only for the actual compute time during execution, and the function scales instantly with every individual upload, providing synchronous, low-latency processing.

Why this answer

Cloud Functions is the ideal serverless compute service for event-driven, short-lived tasks like image resizing triggered by Cloud Storage uploads. It automatically scales to zero when idle, charges only for execution time (sub-second in this case), and natively binds to Cloud Storage object creation events via the `google.storage.object.finalize` trigger, eliminating the need for any always-on infrastructure.

Exam trap

Google Cloud often tests the distinction between event-driven serverless (Cloud Functions) and container-based serverless (Cloud Run), where candidates mistakenly choose Cloud Run because it 'can run code' without realizing it requires an HTTP endpoint and cannot be directly triggered by Cloud Storage events without an intermediary like Eventarc.

How to eliminate wrong answers

Option A is wrong because a continuously running Compute Engine VM is overkill and cost-inefficient for a sub-second task; it requires manual polling or a custom listener, defeating the serverless, event-driven requirement. Option C is wrong because Cloud Run with a permanent container implies a continuously running service that listens for uploads, which contradicts the 'no always-on server' requirement and incurs idle costs; Cloud Run is designed for HTTP requests, not direct event triggers from Cloud Storage. Option D is wrong because BigQuery scheduled queries are for batch analytics on data already in BigQuery, not for real-time event-driven image processing triggered by Cloud Storage uploads.

693
MCQhard

A data engineer needs to process a continuous stream of clickstream events from multiple sources, aggregate them into 1-minute windows, and write the results to BigQuery for real-time dashboarding. The solution must handle exactly-once processing semantics. Which combination of services should they use?

A.Pub/Sub -> Dataflow -> BigQuery
B.Pub/Sub -> Cloud Functions -> BigQuery
C.Cloud Storage -> Dataflow -> BigQuery
D.Pub/Sub -> Cloud Dataproc -> BigQuery
AnswerA

Dataflow's unified streaming engine natively supports exactly-once processing via commit-and-finish plus its shuffle, and it provides event-time windowing and trigger strategies for late data. Its built-in BigQuery sink batches streaming records into load jobs, making this pipeline the recommended way to continuously ingest Pub/Sub events into BigQuery for clickstream analytics.

Why this answer

Dataflow (Apache Beam) provides exactly-once processing semantics and can read from Pub/Sub, apply windowed aggregations, and write to BigQuery. Pub/Sub is the ingestion layer for streaming events. Cloud Functions and Cloud Run are not designed for stateful windowed aggregations at scale, and Cloud Dataproc (Hadoop/Spark) would require more overhead.

694
MCQmedium

A company uses service accounts to allow their application running on a Compute Engine VM to access Cloud Storage. Which is the most secure way to configure this service account access?

A.Download the service account key JSON file and store it in the application's source code repository.
B.Attach the service account to the Compute Engine VM; the application obtains credentials automatically via the metadata server with no key files needed.
C.Grant all users the Storage Admin role so the application can access Cloud Storage through their credentials.
D.Create a shared service account key file accessible to all VMs via a Cloud Storage bucket.
AnswerB

Attaching a service account to a Compute Engine VM is the recommended pattern for Google Cloud workloads. The metadata server automatically provides short-lived OAuth2 access tokens to the VM, and Application Default Credentials (ADC) discovers these tokens without any key file, secret, or environment variable. This approach eliminates the need to create, distribute, or rotate long-lived service account key files, reducing the attack surface and administrative overhead. Because credentials are obtained automatically from the metadata server, the application can also transparently run on any VM with the attached identity.

Why this answer

Attaching a service account to a Compute Engine VM allows the application to automatically obtain short-lived OAuth 2.0 access tokens from the instance metadata server (http://169.254.169.254). This eliminates the need to download, store, or manage any long-lived service account key files, which are a significant security risk. The metadata server provides credentials that are automatically rotated and scoped to the service account's IAM roles, making this the most secure method for accessing Cloud Storage from a VM.

Exam trap

The GCDL exam often tests the misconception that storing keys in a repository or bucket is acceptable for automation, but the trap here is that any long-lived key file, even if stored in a bucket, is less secure than the automatic, short-lived credentials provided by the Compute Engine metadata server.

How to eliminate wrong answers

Option A is wrong because storing a service account key JSON file in the application's source code repository exposes the private key to anyone with repository access, violating the principle of least privilege and creating a persistent credential that can be leaked. Option C is wrong because granting all users the Storage Admin role is a gross over-privilege that violates the principle of least privilege and does not provide a service account for the application; it relies on user credentials which are not designed for automated workloads and introduces unnecessary security exposure. Option D is wrong because placing a shared service account key file in a Cloud Storage bucket still requires managing long-lived private keys, and any VM or user with read access to that bucket can exfiltrate the key, negating the security benefits of using service accounts on Compute Engine.

695
MCQeasy

A company has a stateful application running on Compute Engine. They want to scale horizontally while preserving state. Which configuration should they use?

A.Use Cloud Run with volumes.
B.Unmanaged instance group.
C.Managed instance group with stateful configuration.
D.Managed instance group with autoscaling and no stateful configuration.
AnswerC

A managed instance group with stateful configuration is the correct choice because it combines autoscaling with per-instance preservation of boot disks, data disks, and instance names. Through per-instance configs, you can mark certain VMs as stateful, preventing the autoscaler from deleting them during scale-in while still allowing scale-out. This keeps the application's persistent state intact across the group's lifecycle, enabling horizontal scaling without losing data.

Why this answer

A managed instance group (MIG) with stateful configuration preserves instance-specific state (such as disks, hostnames, and metadata) across autohealing and rolling updates. This allows the stateful application to scale horizontally while maintaining its persistent data, as each instance retains its unique state even when the group is resized or instances are recreated.

Exam trap

The trap here is that candidates often assume all managed instance groups automatically preserve state, but without explicit stateful configuration, MIGs treat instances as ephemeral and will delete persistent disks on instance deletion or during rolling updates.

How to eliminate wrong answers

Option A is wrong because Cloud Run is a serverless platform designed for stateless containers; while it supports volumes, they are ephemeral or read-only (e.g., Cloud Storage FUSE or NFS), and Cloud Run does not natively preserve instance-level state across scaling events or container restarts. Option B is wrong because an unmanaged instance group does not provide autohealing, autoscaling, or stateful configuration; it requires manual management and cannot automatically preserve state during horizontal scaling. Option D is wrong because a managed instance group with autoscaling and no stateful configuration treats all instances as stateless; when instances are terminated or recreated, any local state (e.g., data on persistent disks) is lost, making it unsuitable for stateful applications.

696
MCQmedium

A company wants to connect its on-premises data center to Google Cloud with a reliable, lower-latency connection that doesn't traverse the public internet, but doesn't need the bandwidth of a full Dedicated Interconnect. Which Google Cloud connectivity product is most appropriate?

A.Cloud VPN, which creates an encrypted IPsec tunnel over the public internet
B.Partner Interconnect, which provides private connectivity through a service provider partner's network — supporting lower bandwidth tiers without requiring a direct physical fiber connection
C.Dedicated Interconnect, which requires provisioning a 10 Gbps or 100 Gbps dedicated physical fiber connection
D.Cloud CDN, which caches content at edge locations close to the on-premises data center
AnswerB

Partner Interconnect is the right solution. It provides the private connectivity (no public internet) and lower latency characteristics of Dedicated Interconnect, but at lower bandwidth tiers (50 Mbps–50 Gbps) through a service provider partner — appropriate for organizations that don't need or justify a full Dedicated Interconnect circuit.

Why this answer

Partner Interconnect is the correct choice because it provides private connectivity between an on-premises data center and Google Cloud via a service provider partner's network, offering lower bandwidth tiers (e.g., 50 Mbps to 10 Gbps) without requiring a direct physical fiber connection. This meets the requirements for a reliable, lower-latency connection that avoids the public internet, while Dedicated Interconnect would be overkill for bandwidth needs below 10 Gbps.

Exam trap

The trap here is that candidates often confuse Partner Interconnect with Cloud VPN, assuming that any private connection must be encrypted or that VPN is sufficient for low-latency needs, but the key differentiator is that Partner Interconnect avoids the public internet entirely, providing consistent latency and SLA-backed reliability that IPsec VPNs cannot guarantee.

How to eliminate wrong answers

Option A is wrong because Cloud VPN creates an encrypted IPsec tunnel over the public internet, which does not provide a private connection that avoids the public internet and may introduce higher latency and variability. Option C is wrong because Dedicated Interconnect requires provisioning a minimum of 10 Gbps or 100 Gbps dedicated physical fiber connection, which exceeds the stated need for lower bandwidth and does not fit the 'doesn't need the bandwidth of a full Dedicated Interconnect' requirement. Option D is wrong because Cloud CDN is a content delivery network that caches content at edge locations for improved performance of web content, not a connectivity product for linking an on-premises data center to Google Cloud.

697
MCQhard

A security team wants to ensure that only container images built by their approved CI/CD pipeline can run in their GKE cluster. Images built outside the approved process — even by internal engineers — should be blocked. Which Google Cloud security feature enforces this?

A.Cloud Armor — it blocks unauthorized container images at the load balancer.
B.Binary Authorization — requiring cryptographic attestations for container images before they can be deployed to GKE.
C.Cloud IAM — restricting `container.pods.create` permission to only the CI/CD service account.
D.Artifact Registry vulnerability scanning — blocking images with CVEs from being deployed.
AnswerB

Binary Authorization integrates with GKE admission control to require that every container image deployed carries a valid cryptographic attestation, typically issued by your CI/CD pipeline using Cloud KMS keys. If an image lacks a signed attestation, or the attestor isn't authorized, the deployment is rejected at admission time—before the pod is created. This is specifically build provenance enforcement, not vulnerability checking.

Why this answer

Binary Authorization is the correct answer because it enforces deployment-time policy by requiring that container images have a valid cryptographic attestation (e.g., from a trusted CI/CD pipeline) before they can be scheduled on GKE. This ensures that only images built and signed by the approved process are allowed to run, blocking all others regardless of who built them.

Exam trap

The trap here is that candidates confuse access control (IAM) with image provenance enforcement, mistakenly thinking that restricting who can create pods (Option C) is sufficient to block unauthorized images, when in reality a CI/CD service account could still deploy an unsigned image if not prevented by Binary Authorization.

How to eliminate wrong answers

Option A is wrong because Cloud Armor is a web application firewall and DDoS protection service that operates at the load balancer layer, not a container image admission controller; it cannot inspect or block container images at the pod-creation level. Option C is wrong because restricting `container.pods.create` permission to only the CI/CD service account would prevent engineers from directly creating pods, but it would not block images built outside the approved pipeline if those images were pushed to a registry and referenced by a pod created by the CI/CD service account; it controls who can create pods, not which images can be used. Option D is wrong because Artifact Registry vulnerability scanning identifies CVEs in images but does not enforce admission policies; it provides security insights but does not block deployment of images lacking attestations.

698
MCQhard

A large enterprise has 200+ applications and is developing its cloud migration strategy. A cloud architect argues that not all applications should be migrated the same way. Which migration strategy framework best organizes the different approaches for moving applications to cloud?

A.All applications should be completely rewritten as cloud-native microservices for maximum cloud benefit
B.A portfolio-based migration framework (such as the 6 Rs: Rehost, Replatform, Refactor, Repurchase, Retire, Retain) that applies the right migration strategy to each application based on its business value and cloud-readiness
C.Migrate all applications simultaneously during a single weekend cutover to minimize the total migration duration
D.Keep all applications on-premises until a complete cloud-native replacement is built for each one
AnswerB

The 6 Rs framework is the industry-standard answer for enterprise migration portfolio management. Simple internal apps: rehost (lift-and-shift). Commercially available replacements: repurchase. End-of-life apps: retire. Mission-critical legacy: retain. The right strategy for each application maximizes value while managing risk and cost.

Why this answer

A portfolio-based migration framework like the 6 Rs (Rehost, Replatform, Refactor, Repurchase, Retire, Retain) provides a structured, risk-aware approach to cloud migration. It recognizes that each application has unique business value, technical debt, and cloud-readiness, so a one-size-fits-all strategy would be inefficient or disruptive. This framework aligns migration tactics with business objectives, enabling the enterprise to optimize cost, performance, and operational continuity across a diverse application portfolio.

Exam trap

Google Cloud often tests the misconception that all applications must be fully re-architected (Refactor) to gain cloud benefits, when in reality a balanced portfolio approach using the 6 Rs is more practical and cost-effective for large-scale migrations.

How to eliminate wrong answers

Option A is wrong because completely rewriting all 200+ applications as cloud-native microservices is impractical, costly, and time-consuming; it ignores the reality that many legacy applications may not benefit from microservices and can be migrated more efficiently via rehosting or replatforming. Option C is wrong because migrating all applications simultaneously during a single weekend cutover is extremely high-risk, likely causing widespread outages, data loss, and failed migrations due to the lack of testing and rollback capability; it violates the principle of incremental, validated migration. Option D is wrong because keeping all applications on-premises until a complete cloud-native replacement is built for each one defeats the purpose of cloud migration, delays benefits, and incurs unnecessary maintenance costs; it ignores the possibility of using lift-and-shift (Rehost) or other intermediate strategies to gain immediate cloud advantages.

699
MCQeasy

A company is concerned that employees might accidentally or maliciously upload sensitive personal data (such as credit card numbers or Social Security Numbers) to Cloud Storage buckets. Which Google Cloud product can automatically scan uploaded files and identify sensitive data patterns?

A.Cloud Armor, which inspects incoming HTTP requests for sensitive data patterns
B.Cloud DLP (Data Loss Prevention), which scans Cloud Storage objects for sensitive data types like credit card numbers and SSNs using built-in pattern detection
C.Cloud Logging, which records all file upload events to Cloud Storage
D.Security Command Center, which audits Cloud Storage bucket permissions
AnswerB

Cloud DLP is the correct answer. It has 150+ built-in infoTypes for detecting sensitive data patterns (credit card numbers matching Luhn algorithm, SSN format detection, etc.) and can scan Cloud Storage objects on a scheduled or triggered basis, flagging or de-identifying findings.

Why this answer

Cloud DLP (Data Loss Prevention) is the correct service because it is specifically designed to inspect and classify sensitive data within Cloud Storage objects. It uses built-in detectors (infoTypes) to identify patterns like credit card numbers (Luhn check) and Social Security Numbers, and can trigger automated actions such as redaction or logging when sensitive data is found.

Exam trap

The trap here is confusing a security monitoring or perimeter defense service (Cloud Armor, Security Command Center) with a content-aware data classification service (Cloud DLP), leading candidates to pick a service that audits permissions or logs events rather than one that inspects file contents for sensitive patterns.

How to eliminate wrong answers

Option A is wrong because Cloud Armor is a web application firewall (WAF) that protects against DDoS and OWASP Top 10 threats by inspecting HTTP/S traffic at the edge, not by scanning stored files for sensitive data patterns. Option C is wrong because Cloud Logging captures and stores audit logs of events (e.g., object uploads) but does not perform content inspection or pattern matching on the uploaded data. Option D is wrong because Security Command Center provides a centralized view of security risks and misconfigurations (e.g., public bucket permissions) but does not scan object contents for sensitive data patterns.

700
MCQhard

A company has a requirement to rotate encryption keys every 90 days. They are using Cloud KMS to manage keys for Cloud Storage. What is the correct way to achieve key rotation with minimal impact to existing encrypted objects?

A.Manually rotate the key every 90 days by generating a new key version.
B.Enable automatic rotation on the key with a 90-day period.
C.Use Cloud HSM to generate a new key and update the bucket default encryption.
D.Create a new key and re-encrypt all existing objects using the new key.
AnswerB

Enabling automatic rotation with a 90-day period configures Cloud KMS to create a new primary key version every 90 days. All future Cloud Storage objects encrypted with this CMEK will use the new primary version, while older objects remain readable via their original key versions, which stay enabled for decryption. This satisfies the rotation requirement without forcing a rewrite or copy of existing data, since each key version is cryptographic material that can be retired on a future schedule.

Why this answer

Cloud KMS supports automatic rotation based on a schedule. When a key is rotated, a new version is created, and new data is encrypted with the new version while old data remains decryptable with the old version.

701
MCQeasy

A company wants to store archival data that must be retained for 10 years. The data is accessed less than once a year. Which Cloud Storage class is the most cost-effective?

A.Standard Storage
B.Nearline Storage
C.Coldline Storage
D.Archive Storage
AnswerD

Archive Storage is the correct choice for archival data because it is the cheapest storage class in Google Cloud for data accessed less than once per year. It offers the same global durability and redundancy as other classes, while its very low storage cost makes it ideal for long-term retention, even though it incurs the highest retrieval latency and a 365-day minimum storage duration.

Why this answer

Archive Storage is the most cost-effective option for data that must be retained for 10 years and is accessed less than once a year. This class offers the lowest storage cost among Google Cloud Storage classes, specifically designed for long-term preservation of data that is rarely accessed, with a minimum storage duration of 365 days and higher retrieval costs that are acceptable given the infrequent access pattern.

Exam trap

Google Cloud often tests the misconception that 'Coldline' is the cheapest storage class, but Archive Storage is actually the lowest-cost option for long-term retention with very infrequent access, and candidates may overlook the minimum storage duration and retrieval cost trade-offs.

How to eliminate wrong answers

Option A is wrong because Standard Storage is optimized for frequently accessed data with no minimum storage duration and higher per-GB storage costs, making it cost-prohibitive for 10-year archival retention. Option B is wrong because Nearline Storage is designed for data accessed less than once a month, with a 30-day minimum storage duration and higher storage costs than Archive Storage, making it less cost-effective for data accessed less than once a year. Option C is wrong because Coldline Storage is intended for data accessed less than once a quarter, with a 90-day minimum storage duration and storage costs that are still higher than Archive Storage, so it is not the most cost-effective for 10-year archival with annual access.

702
Drag & Dropmedium

Drag and drop the steps to deploy a containerized application to Google Kubernetes Engine (GKE) into the correct order.

Drag or tap steps into the slots.

Steps
Order
1Step 1
2Step 2
3Step 3
4Step 4

Why this order

The correct sequence starts with containerizing the app, creating a cluster, defining the deployment, applying it, and exposing it as a service.

703
MCQmedium

A startup wants to minimize upfront costs and shift from capital expenditure to operational expenditure. Which cloud pricing model enables this transformation?

A.Pay-as-you-go
B.Reserved instances
C.Committed use discounts
D.Sustained use discounts
AnswerA

Pay-as-you-go bills consumption hourly, so no capital outlay is required for hardware or reserved capacity. This directly satisfies the startup's constraint of minimising upfront costs while converting spend into operational expenditure, since charges accrue only for resources actually consumed and scale down when demand falls.

Why this answer

Pay-as-you-go (option A) is correct because it charges only for the resources consumed, with no upfront commitment or long-term contract, which directly converts capital expenditure into operational expenditure and minimizes upfront costs for a startup. Reserved instances (B) and committed use discounts (C) require a one- or three-year commitment in exchange for a discount, which reintroduces upfront or committed spend and reduces flexibility. Sustained use discounts (D) are automatic discounts for running resources for a large portion of the billing month, but they still assume ongoing usage rather than eliminating upfront costs, so they do not best fit the stated goal.

704
MCQeasy

A company wants to innovate quickly by leveraging machine learning without building models from scratch. Which Google Cloud service allows them to use pre-trained models via APIs?

A.BigQuery ML
B.AI Platform
C.Cloud Vision API
D.AutoML
AnswerC

Cloud Vision API is a fully managed, pre-trained machine learning service that exposes image analysis capabilities through a simple REST or gRPC API. It can detect labels, faces, explicit content, optical characters, and landmarks without any training on custom data, making it ideal for rapid innovation in image-based applications. The absence of a training step and the ability to call it directly from application code allow developers to integrate advanced vision features within minutes rather than weeks.

Why this answer

Cloud Vision API is correct because it provides pre-trained machine learning models via REST APIs, allowing the company to integrate image recognition capabilities (e.g., label detection, OCR, face detection) without building or training any models. This directly meets the requirement of leveraging ML without building from scratch, as the API abstracts all model training and deployment.

Exam trap

Google Cloud often tests the distinction between 'pre-trained APIs' and 'custom model training services'—candidates mistakenly choose AutoML because they think 'no building from scratch' means no coding, but AutoML still requires training a custom model, not using a pre-trained one.

How to eliminate wrong answers

Option A is wrong because BigQuery ML enables users to create and train custom ML models using SQL queries on data in BigQuery, but it does not provide pre-trained models via APIs—it requires building models from scratch. Option B is wrong because AI Platform is a managed service for training, deploying, and scaling custom ML models, but it does not offer pre-trained models via APIs; it is designed for custom model workflows. Option D is wrong because AutoML allows users to train custom models on their own data with minimal ML expertise, but it still requires training a model from scratch rather than using pre-trained models via APIs.

705
MCQeasy

A startup's website becomes unexpectedly popular and traffic spikes 50x within minutes. The application is hosted on Google Cloud. Which Google Cloud product automatically increases the number of application instances in response to this traffic spike without manual intervention?

A.Cloud Monitoring, which detects the traffic spike and sends an alert to the operations team to manually scale up
B.Managed Instance Groups with autoscaling (for VMs) or Cloud Run (for containers), which automatically provision additional instances based on traffic load without manual intervention
C.Cloud Load Balancing, which distributes traffic evenly across existing instances to handle the spike
D.Cloud Billing, which automatically increases the spending limit when traffic spikes occur
AnswerB

This is correct. MIG autoscaling monitors CPU/request metrics and automatically adds instances when load increases, then removes them when load drops. Cloud Run scales automatically to any number of container instances in seconds. Both handle the 50x spike scenario automatically.

Why this answer

Managed Instance Groups (MIGs) with autoscaling and Cloud Run both automatically adjust the number of running instances or container replicas based on real-time metrics like CPU utilization, request rate, or latency. When traffic spikes 50x, the autoscaler detects the increased load and provisions new VMs or container instances without any manual intervention, ensuring the application remains responsive. This is the only option that provides automatic, infrastructure-level scaling in response to load.

Exam trap

The GCDL exam often tests the misconception that load balancing alone handles spikes, but candidates must remember that load balancers distribute traffic only to existing instances — autoscaling is required to add capacity.

How to eliminate wrong answers

Option A is wrong because Cloud Monitoring only collects metrics and sends alerts; it does not automatically scale instances — scaling requires a separate service like MIG autoscaler or Cloud Run. Option C is wrong because Cloud Load Balancing distributes traffic across existing instances but does not create new instances; it relies on an autoscaler to add capacity. Option D is wrong because Cloud Billing manages budgets and spending limits, not instance provisioning; it has no mechanism to scale application instances.

706
MCQeasy

A developer wants to deploy a containerized web application that can scale to zero when not in use, and only pay for actual request processing time. Which Google Cloud compute service should the developer use?

A.Cloud Functions
B.Cloud Run
C.Compute Engine
D.Google Kubernetes Engine (GKE)
AnswerB

Cloud Run is the correct service because it directly executes any OCI-compliant container image on a fully managed, serverless infrastructure, eliminating the need to manage servers or clusters. It scales from zero to thousands of active instances in response to inbound HTTP requests, and charges only for the compute resources used while each request is being processed, plus a brief instance-startup window. This makes it ideal for a containerized web application: you retain portability and control over the runtime environment while benefiting from automatic TLS termination, revision traffic splitting, and the ability to scale down to literally zero when idle.

Why this answer

Cloud Run is a serverless container runtime that scales to zero and charges per request, ideal for containerized apps with variable traffic. Cloud Functions is for smaller code snippets, not containers. Compute Engine runs VMs continuously, and GKE requires at least one node.

707
MCQeasy

A company wants to optimize Cloud Storage costs for a bucket containing 100 TB of access logs. The logs from the last 7 days are frequently analyzed; logs from 8–90 days are occasionally reviewed; logs older than 90 days are archived for compliance but rarely accessed. What is the most cost-effective storage class configuration?

A.Store all 100 TB in Standard storage for consistent access performance.
B.Configure lifecycle rules: Standard (0-7 days) → Nearline (8-90 days) → Archive (90+ days).
C.Delete all logs older than 7 days to minimize storage costs.
D.Store all logs in Archive storage since most are rarely accessed.
AnswerB

This is the correct approach because Cloud Storage lifecycle rules automate the transition of objects based on age, letting you match storage costs to real access patterns. The 0-7 day window in Standard supports immediate diagnosis and troubleshooting, the 8-90 day window in Nearline provides a low-cost option for occasional review, and the 90+ day window in Archive satisfies long-term compliance retention at the lowest possible storage price. Each class has different retrieval costs and minimum durations, and these boundaries align the cost structure with the operational and regulatory requirements.

Why this answer

It aligns the storage class with the access patterns of the logs: Standard for frequently accessed recent data, Nearline for occasional access, and Archive for rarely accessed compliance data. This minimizes costs by using cheaper storage for older data while maintaining performance for active analysis. Lifecycle rules automate the transition, ensuring no manual intervention is needed.

Exam trap

Google Cloud often tests the misconception that Archive storage is always the cheapest option, ignoring the retrieval costs and latency for frequently accessed data, leading candidates to choose Option D.

How to eliminate wrong answers

Option A is wrong because storing all 100 TB in Standard storage is unnecessarily expensive for logs older than 7 days that are rarely accessed. Option C is wrong because deleting logs older than 7 days violates compliance requirements and loses data that may be needed for audits or occasional review. Option D is wrong because storing all logs in Archive storage would cause high retrieval costs and latency for the frequently accessed last 7 days of logs, making it impractical for active analysis.

708
MCQmedium

A company runs a batch processing workload every night that can tolerate interruptions. The workload runs on Compute Engine VMs and takes 2 hours to complete. They want to reduce costs. Which VM pricing model should they use?

A.Preemptible VMs
B.Committed use discounts
C.Sole-tenant nodes
D.Sustained use discounts
AnswerA

Preemptible VMs run on Google's surplus compute capacity and are available at up to 60–80% lower per-second cost than standard VMs. They can be reclaimed at any time and have a maximum runtime of 24 hours, making them ideal for idempotent, fault-tolerant batch processing. A nightly job can simply be restarted or resumed from a checkpoint if interrupted.

Why this answer

Preemptible VMs offer significant cost savings (up to 80% discount) but can be terminated at any time. Since the workload is batch and can tolerate interruptions, this is the most cost-effective choice.

709
Multi-Selecthard

Which THREE are required to achieve HIPAA compliance on Google Cloud?

Select 3 answers
A.Sign a Business Associate Agreement (BAA) with Google
B.Enable Cloud Audit Logs for tracking access to ePHI
C.Use only GCP services that are covered under the BAA
D.Use a dedicated project for all PHI workloads
E.Configure multi-factor authentication for all users
AnswersA, B, C

HIPAA mandates that covered entities and business associates enter into a Business Associate Agreement that guarantees the business associate will safeguard PHI. Google Cloud provides a BAA for covered services, making it a contractual prerequisite for any ePHI processing. Without a signed BAA, the legal liability for a breach remains with the covered entity, and Google's protected health information processing terms do not apply.

Why this answer

HIPAA requires covered entities and their business associates to have a written agreement that establishes the permitted and required uses of protected health information (PHI). Google Cloud provides a standard Business Associate Agreement (BAA) that customers must sign to contractually bind Google to HIPAA obligations, including safeguarding ePHI and reporting breaches. Without a signed BAA, Google is not legally liable as a business associate under HIPAA, making this a foundational requirement for compliance.

Exam trap

Google Cloud often tests the misconception that HIPAA requires dedicated infrastructure (like a separate project) or specific security controls (like MFA), when in fact HIPAA focuses on contractual agreements (BAA), data access logging, and using only services that are contractually covered under the BAA.

710
MCQmedium

A startup is deploying a containerised web application on Google Cloud. They want to minimise operational overhead and only pay for the resources consumed when requests are being processed. The application should automatically scale to zero when idle. Which compute service should they choose?

A.App Engine Standard
B.Cloud Run
C.Google Kubernetes Engine (GKE)
D.Compute Engine
AnswerB

Cloud Run is a serverless container execution service that automatically scales to zero instances when no requests are in-flight. You are billed only for the exact time your container processes a request, down to 100-millisecond increments, with no cost for idle periods. Its HTTP-triggered, pull-based model makes it ideal for a containerized web application that experiences variable or low traffic.

Why this answer

Cloud Run is a fully managed serverless container platform that scales to zero when idle and charges only for request processing time. App Engine is also serverless but requires a runtime environment and does not scale to zero as gracefully. Compute Engine and GKE require provisioning instances even if idle.

711
MCQeasy

Which cloud computing characteristic is defined by the NIST as the ability for a consumer to provision computing capabilities automatically without requiring human interaction with each service provider?

A.Measured service
B.Resource pooling
C.Rapid elasticity
D.On-demand self-service
AnswerD

This is exactly the NIST characteristic in question: a consumer can unilaterally provision computing capabilities, such as server time and network storage, automatically without requiring human interaction with each service provider. This means the user accesses a self-service interface or API, supplies the configuration, and receives the resource immediately — no phone call, ticket, or manual approval needed. It is the defining trait that distinguishes cloud computing from traditional IT procurement and is the answer to the question.

Why this answer

On-demand self-service, as defined by NIST SP 800-145, is the capability for a consumer to unilaterally provision computing capabilities such as server time and network storage automatically, without requiring human interaction with each service provider. This is the defining characteristic that enables users to spin up resources via portals or APIs instantly.

Exam trap

The trap is confusing on-demand self-service with rapid elasticity, since both involve automatic provisioning; the key differentiator is 'without human interaction with the provider' versus 'scaling rapidly'.

How to eliminate wrong answers

Option A is wrong because measured service refers to automatic control and optimization of resource use via metering, providing transparency for both provider and consumer. Option B is wrong because resource pooling describes the provider's multi-tenant model where resources are pooled to serve multiple consumers dynamically. Option C is wrong because rapid elasticity refers to capabilities appearing unlimited and being scaled out/in rapidly, not the automatic provisioning without human interaction.

712
MCQeasy

A global e-commerce platform needs to serve content with low latency to users worldwide. They want to cache static content at edge locations near users. Which Google Cloud service should they use?

A.Cloud DNS
B.Cloud CDN
C.Cloud Armor
D.Cloud Storage
AnswerB

Cloud CDN uses Google's globally distributed edge points of presence (PoPs) to cache static and dynamic content close to users. It accelerates delivery by serving requests from the nearest edge instead of the origin, significantly reducing round-trip time. It supports TTL-based caching, cache invalidation, and signed URLs, making it the direct solution for low-latency global content delivery.

Why this answer

Cloud CDN caches static content at Google's globally distributed edge locations, bringing content closer to users and reducing latency for worldwide audiences. It integrates with external HTTP(S) load balancing and Cloud Storage or Compute Engine backends, making it the correct choice for edge caching of static assets.

Exam trap

The trap is confusing Cloud DNS with Cloud CDN because both have 'Cloud' and relate to global delivery — but DNS resolves names while CDN caches and serves content at the edge.

How to eliminate wrong answers

Option A is wrong because Cloud DNS is a scalable authoritative DNS service — it resolves names but does not cache or serve content. Option C is wrong because Cloud Armor is a WAF and DDoS protection service that filters malicious traffic; it does not cache content. Option D is wrong because Cloud Storage is an object storage service that holds origin content but does not itself provide edge caching or global low-latency delivery.

713
MCQeasy

A web application's homepage loads user-specific data (shopping cart, recent orders) on every visit. The data changes frequently. An engineer suggests caching this data in a Redis cache between the web tier and the database. What is the primary benefit of this caching layer?

A.Caching encrypts data in transit between the web tier and database.
B.Caching reduces database load and improves response times by serving frequently accessed data from fast in-memory storage.
C.Caching permanently stores user data so the database can be deleted.
D.Caching automatically synchronizes data between multiple database replicas.
AnswerB

Caching improves performance by placing frequently accessed data (such as product details or user sessions) into an in-memory data store like Redis or Memorystore, which can serve cache hits in microseconds. This offloads repeated read queries from the database, reducing its CPU and I/O load, lowering query latency, and enabling the app to handle more concurrent users. The cache is a throughput multiplier because only cache misses fall through to the database, which is the durable source of truth.

Why this answer

Caching user-specific data like shopping carts and recent orders in Redis reduces the load on the primary database by serving frequently accessed data from fast in-memory storage. This improves response times for the web application, as Redis can deliver data in microseconds compared to the millisecond latency of a typical relational database query. The caching layer acts as a temporary, high-speed buffer that offloads read-heavy traffic from the database, which is especially beneficial for data that changes frequently but is read often.

Exam trap

Google Cloud often tests the misconception that caching provides permanent storage or replaces the database, leading candidates to incorrectly select Option C, but the trap here is that caching is a temporary, performance-enhancing layer, not a durable storage solution.

How to eliminate wrong answers

Option A is wrong because caching does not inherently encrypt data in transit; encryption is a separate concern typically handled by TLS/SSL between the web tier and the database, not by the caching layer itself. Option C is wrong because caching is not a permanent storage solution; Redis is an in-memory store that can lose data on restart unless persistence is configured, and the database remains the authoritative source of truth for user data. Option D is wrong because caching does not automatically synchronize data between database replicas; that is the role of database replication mechanisms (e.g., MySQL Group Replication or PostgreSQL streaming replication), not a cache layer.

714
MCQhard

A financial services company must comply with strict data residency regulations. They need to store customer data in a specific geographic region and ensure it never leaves that region. Which Google Cloud feature should they use?

A.VPC Service Controls
B.Cloud IAM
C.Organization Policy with location restrictions
D.Cloud Key Management Service
AnswerC

Organization policies using the `constraints/gcp.resource-locations` constraint (Resource Location Restriction) allow administrators to define an allowlist of regions where resources may be created. This policy is inherited across folders and projects and is enforced at resource creation time, so services such as Compute Engine, GKE, and Cloud Storage can only deploy in approved locations. This directly enforces data residency by blocking resource creation outside specified regions.

Why this answer

Organization Policy with location restrictions allows admins to restrict resource creation to specific regions, preventing data from being stored elsewhere. VPC Service Controls provide data exfiltration prevention but do not restrict region. IAM controls access, not location.

Cloud KMS manages keys.

715
MCQeasy

A startup wants to run a containerized web application that scales to zero when not in use, and only pay for the time the container is processing requests. Which Google Cloud compute service should they choose?

A.Google Kubernetes Engine (GKE)
B.App Engine Standard Environment
C.Cloud Run
D.Compute Engine with autoscaling
AnswerC

Cloud Run is a fully managed, serverless compute platform that executes stateless HTTP-driven containers on top of the Knative serving layer. It dynamically scales containers from zero up to a maximum based on incoming requests, so you only pay for CPU, memory, and requests consumed during active processing, making it ideal for intermittent startup workloads. Because it abstracts the underlying machines and cluster, there is no idle infrastructure cost and no node management overhead.

Why this answer

Cloud Run is the correct choice because it is a fully managed serverless compute platform that automatically scales your containerized application to zero when there are no incoming requests. You are billed only for the resources consumed during request processing, measured in 100-millisecond increments, which aligns perfectly with the requirement to pay only for active processing time.

Exam trap

The trap here is that candidates often confuse 'scaling to zero' with 'autoscaling' and choose Compute Engine or GKE, not realizing that those services require at least one running instance or node, whereas Cloud Run is the only option that can truly scale down to zero instances when idle.

How to eliminate wrong answers

Option A is wrong because Google Kubernetes Engine (GKE) requires at least one node to run your containers, even if the application is idle, and does not scale to zero; you pay for the underlying node VMs regardless of usage. Option B is wrong because App Engine Standard Environment does not support arbitrary containerized applications; it runs only in a sandboxed runtime environment with specific language runtimes and does not allow you to bring your own Docker container. Option D is wrong because Compute Engine with autoscaling still requires a minimum number of running VM instances (even if set to 1) and does not scale to zero; you are billed for the provisioned VM instances even when no requests are being processed.

716
MCQmedium

A data analytics team uses BigQuery for large-scale queries. They notice that queries are scanning more data than necessary, leading to high costs. Which feature should they implement to reduce the amount of data scanned per query?

A.Materialized views
B.Streaming inserts
C.Partitioning
D.Clustering
AnswerC

Partitioning divides a table into separate storage segments based on a specified column, commonly a date or timestamp, and BigQuery performs partition pruning during query execution. When a query's WHERE clause filters on the partition column, the engine avoids scanning partitions that fall outside the filter, directly reducing the bytes processed and thereby lowering query cost. This is a native, deterministic way to limit scan size and is especially effective for large, time-series tables.

Why this answer

Partitioning divides a table into segments based on a column (e.g., date), allowing BigQuery to prune partitions during query execution. When a query includes a filter on the partitioning column, BigQuery scans only the relevant partitions, significantly reducing the bytes processed and lowering costs.

Exam trap

Google Cloud often tests the distinction between partitioning (which reduces data scanned by pruning entire segments) and clustering (which only reorganizes data within partitions for better compression and filtering, but does not reduce the total data scanned unless combined with partitioning).

How to eliminate wrong answers

Option A is wrong because materialized views precompute and cache query results for faster performance, but they do not reduce the amount of raw data scanned per query; they may even increase storage costs. Option B is wrong because streaming inserts are used for real-time data ingestion into BigQuery, not for controlling data scan volume during queries. Option D is wrong because clustering sorts data within partitions based on column values, improving query performance and reducing costs only after partitioning is applied; without partitioning, clustering alone does not limit the total data scanned.

717
MCQeasy

A company's cloud environment has grown rapidly and the team is struggling to understand what cloud resources exist across dozens of projects. Which Google Cloud product provides a unified inventory of all cloud assets across an organization's projects and folders?

A.Cloud Billing console, which lists all resources that have incurred charges
B.Cloud Asset Inventory, which provides a searchable, unified inventory of all resources and IAM policies across an organization's projects and folders
C.Google Cloud Console project dashboard, which shows resources within a single project
D.Security Command Center, which lists security vulnerabilities in cloud resources
AnswerB

Cloud Asset Inventory is the correct service. It maintains a complete, searchable catalog of all resources (and their configurations) across the entire organization, supports historical queries, and integrates with policy analysis tools. This is the purpose-built service for organizational resource visibility.

Why this answer

Cloud Asset Inventory is the correct answer because it is the Google Cloud service specifically designed to provide a unified, searchable inventory of all cloud assets (resources and IAM policies) across an organization's projects, folders, and organization nodes. It supports real-time and historical snapshots, enabling teams to discover and track resources as the environment scales. This directly addresses the need to understand what resources exist across dozens of projects.

Exam trap

The GCDL exam often tests the distinction between a unified inventory service (Cloud Asset Inventory) and a security-focused tool (Security Command Center), leading candidates to mistakenly choose the latter because they associate 'inventory' with security asset management.

How to eliminate wrong answers

Option A is wrong because the Cloud Billing console only lists resources that have incurred charges, not a comprehensive inventory of all assets (including free-tier or non-billable resources), and it does not provide a unified view across projects and folders. Option C is wrong because the Google Cloud Console project dashboard shows resources only within a single project, not across dozens of projects and folders as required. Option D is wrong because Security Command Center focuses on security vulnerabilities and threats, not on providing a unified inventory of all cloud assets.

718
MCQmedium

A company's IT team is planning its network architecture for a Google Cloud deployment. They want to ensure that their development, staging, and production environments are completely isolated from each other at the network level. What is the most effective way to achieve this isolation in Google Cloud?

A.Using separate subnets within the same VPC for each environment, with firewall rules blocking cross-subnet traffic
B.Deploying each environment (dev, staging, prod) in separate VPC networks — optionally in separate Google Cloud projects — to achieve complete network isolation with no default connectivity between environments
C.Using different IP address ranges for each environment within the same network
D.Using Cloud IAM to restrict developers from accessing production resources, which achieves the same isolation as network separation
AnswerB

Separate VPCs provide true network isolation. By default, separate VPCs have no connectivity. Traffic between them requires explicit peering, VPN, or Shared VPC configuration. Using separate projects adds IAM-level access control on top of network isolation.

Why this answer

Deploying each environment in separate VPC networks (optionally in separate projects) provides complete network isolation by default. In Google Cloud, VPC networks are isolated entities with no inherent peering or connectivity; traffic between them requires explicit VPC peering or VPN configurations. This ensures that development, staging, and production environments cannot communicate at the network layer unless intentionally connected, meeting the requirement for complete isolation.

Exam trap

The trap here is that candidates assume firewall rules or IAM can achieve the same level of isolation as separate VPCs, but network-level isolation requires separate routing domains, not just access controls or IP address segmentation.

How to eliminate wrong answers

Option A is wrong because using separate subnets within the same VPC still allows routing between subnets by default; firewall rules can block traffic, but they are not a guarantee of complete network isolation (e.g., misconfigurations or implicit routes can bypass them). Option C is wrong because using different IP address ranges within the same network does not provide isolation; all subnets in a VPC can communicate via internal routes unless explicitly blocked, and the network itself is a single broadcast domain. Option D is wrong because Cloud IAM controls access at the identity and resource level, not at the network layer; it cannot prevent network-level connectivity between environments, such as direct IP traffic or lateral movement within the same VPC.

719
MCQhard

A financial services company needs a managed data warehouse that can ingest streaming transaction data in real time AND support complex SQL analytics across years of historical data — all without managing any infrastructure. Which Google Cloud product meets both streaming ingest and analytical query requirements in a single serverless service?

A.Cloud Bigtable for streaming ingest and BigQuery for historical analytics — two separate services
B.BigQuery, which supports real-time streaming ingest via its Storage Write API and large-scale analytical SQL queries across petabytes of data in a single fully managed, serverless service
C.Cloud SQL with read replicas — one instance for streaming writes, read replicas for analytical queries
D.Cloud Dataflow running continuously to process the stream and load to Persistent Disk for SQL queries
AnswerB

BigQuery meets both requirements natively. The Storage Write API (and legacy streaming API) enables sub-minute data availability for analytics. BigQuery's distributed query engine handles analytical SQL across petabytes. No infrastructure to manage, no separate streaming and analytical systems to maintain.

Why this answer

BigQuery is a fully managed, serverless data warehouse that supports real-time streaming ingest via the Storage Write API and enables complex SQL analytics across petabytes of historical data. This single service meets both requirements without any infrastructure management, unlike the other options that require separate services or manual orchestration.

Exam trap

Google Cloud often tests the misconception that streaming ingest and analytical querying require separate services, leading candidates to overlook BigQuery's unified serverless capability in favor of multi-service architectures like Cloud Bigtable plus BigQuery.

How to eliminate wrong answers

Option A is wrong because it proposes two separate services (Cloud Bigtable for streaming and BigQuery for analytics), which violates the requirement for a single serverless service and introduces operational complexity. Option C is wrong because Cloud SQL is a relational database not designed for petabyte-scale analytics or real-time streaming ingest at high throughput, and read replicas do not provide serverless, managed data warehousing. Option D is wrong because Cloud Dataflow is a stream processing service, not a data warehouse, and Persistent Disk is block storage that cannot natively support SQL analytics without additional compute and query engines.

720
MCQhard

An online retailer stores product images in a Cloud Storage bucket. Current access patterns: images uploaded once and read frequently for 30 days, then accessed rarely after 90 days, and must be retained for 7 years for compliance. Which storage class transition strategy minimizes cost while meeting requirements?

A.Upload to Nearline, lifecycle rule to Archive at 30 days
B.Upload to Standard, lifecycle rule to Nearline at 30 days, then to Archive at 90 days
C.Upload to Standard, lifecycle rule to Nearline at 30 days, then to Coldline at 90 days
D.Upload to Standard, lifecycle rule to Coldline at 30 days, then to Archive at 90 days
AnswerB

This plan matches lifecycle costs to actual access patterns. Product images are updated and viewed frequently in the first month, making Standard the low-cost choice; between day 30 and day 90, access drops to occasional reporting or past-order lookups, so Nearline reduces storage price while keeping retrieval fees reasonable; after 90 days, images become archival and rarely accessed, and Archive's roughly $0.0012/GB pricing is the cheapest option. Lifecycle rules automate both transitions, minimizing operational overhead.

Why this answer

The optimal strategy is to upload to Standard (for frequent access in the first 30 days), then transition to Nearline at 30 days (for infrequent access but still low latency), and finally to Archive at 90 days (for long-term retention at lowest cost). This matches the access pattern: frequent reads for 30 days, rare access after 90 days, and 7-year retention. Archive is the cheapest storage class for long-term retention, and transitioning at 90 days aligns with the change in access frequency.

Exam trap

GCDL often tests lifecycle transition strategies, and candidates may choose the cheapest storage class immediately without considering access patterns and minimum storage durations.

How to eliminate wrong answers

Option A is wrong because uploading directly to Nearline would incur higher access costs during the first 30 days when images are read frequently; Nearline has lower storage cost but higher access cost and is designed for data accessed less than once per month. Option C is wrong because transitioning to Coldline at 90 days instead of Archive would be more expensive for long-term storage; Coldline is for data accessed less than once per year, but Archive is cheaper for 7-year retention. Option D is wrong because transitioning to Coldline at 30 days would be premature since data is still accessed frequently until 30 days, and Coldline has higher access costs; also, the subsequent transition to Archive at 90 days is not specified, but the initial transition to Coldline at 30 days is suboptimal.

721
MCQeasy

A developer needs to add machine learning capabilities to their application without training models from scratch. Which Google Cloud service provides pre-trained models via API?

A.Vertex AI
B.AI Platform Training
C.Cloud Vision API
D.Cloud AutoML
AnswerC

Cloud Vision API is exactly what this developer needs: a managed service that exposes pre-trained machine learning models for image recognition via a simple REST or gRPC API. It can detect labels, objects, faces, OCR text, landmarks, and even explicit content, without requiring the user to train or host any models. The API returns structured JSON predictions, making it trivial to add ML capabilities to any application in a matter of minutes. It is the canonical example of Google Cloud's pre-trained AI services.

Why this answer

Cloud Vision API offers pre-trained models for image analysis accessible via API, allowing developers to integrate ML without training.

722
MCQhard

An organization wants to ensure that Google Cloud services used by its employees cannot be used to exfiltrate data to a competitor's Google Cloud project. For example, they want to prevent copying data from their Cloud Storage bucket to a Storage bucket owned by a competitor. Which Google Cloud security control most directly prevents this type of insider data exfiltration?

A.IAM permissions that restrict users from accessing competitor projects
B.Cloud DLP, by scanning and redacting sensitive data before it can be stored
C.VPC Service Controls, which create a security perimeter around Google Cloud APIs so data cannot be moved to projects outside the defined perimeter
D.Organization Policy constraints that prevent resource creation in competitor accounts
AnswerC

VPC Service Controls are precisely designed for this. A service perimeter defines which projects can exchange data with each other. Even if a user has valid credentials, the API enforces that data cannot be read from inside the perimeter and written outside it — blocking the insider exfiltration pattern described.

Why this answer

VPC Service Controls (C) directly prevent data exfiltration by creating a security perimeter around Google Cloud APIs. This perimeter blocks any data movement to resources outside the defined perimeter, such as a competitor's Cloud Storage bucket, regardless of the user's IAM permissions. It works at the API layer, intercepting requests that attempt to copy data to an unauthorized project.

Exam trap

The trap here is that candidates often confuse IAM permissions with network-level controls, assuming that restricting IAM access to competitor projects is sufficient, but VPC Service Controls are the only mechanism that enforces a boundary at the API layer regardless of user identity.

How to eliminate wrong answers

Option A is wrong because IAM permissions control access to resources within a project, but they do not prevent a user with legitimate access to a source bucket from copying data to a destination bucket in a different project if the user has permissions on that destination. Option B is wrong because Cloud DLP scans and redacts sensitive data but does not block the transfer of data to an external project; it only modifies the content. Option D is wrong because Organization Policy constraints can restrict resource creation in competitor accounts, but they do not prevent data exfiltration from existing resources to already-created competitor projects.

723
MCQeasy

A developer wants to estimate the monthly cost of running a Kubernetes cluster with 3 nodes of n1-standard-4 in the us-central1 region before provisioning. Which tool should the developer use?

A.Billing export to BigQuery
B.Active Assist recommendations
C.Google Cloud Pricing Calculator
D.Cost Management dashboard
AnswerC

The Google Cloud Pricing Calculator lets users assemble a custom configuration of services—compute, storage, networking, and managed offerings—by selecting SKUs, regions, usage quantities, and optional commitment or sustained-use assumptions, and then outputs an itemized monthly cost estimate. It is purpose-built for pre-deployment financial planning and does not require existing billing data or live resources. This makes it the correct tool for estimating monthly cost before any cloud resources are provisioned.

Why this answer

The Google Cloud Pricing Calculator is a web-based tool that lets you estimate costs for GCP services before provisioning any resources. It supports Compute Engine instance types like n1-standard-4, allows you to specify region (us-central1), quantity (3 nodes), and even add Kubernetes Engine management fees. This is the only option designed for pre-provisioning cost estimation.

Exam trap

GCDL often tests the distinction between pre-provisioning estimation (Pricing Calculator) and post-provisioning analysis (Cost Management, Billing export, Active Assist), so candidates who focus on 'cost tools' generically pick the wrong one.

How to eliminate wrong answers

Option A is wrong because Billing export to BigQuery exports actual incurred costs after resources are running, not estimates for future deployments. Option B is wrong because Active Assist provides optimization recommendations for existing resources, not pre-deployment cost estimates. Option D is wrong because the Cost Management dashboard shows historical and current spend, not forward-looking estimates for unprovisioned infrastructure.

724
MCQmedium

A data analytics team needs to process streaming data from thousands of IoT devices in real time. They want to ingest the data, process it (e.g., windowed aggregations), and then load it into BigQuery for analysis. Which Google Cloud service should they use for the stream processing step?

A.BigQuery
B.Cloud Pub/Sub
C.Cloud Dataproc
D.Cloud Dataflow
AnswerD

Dataflow is Google's fully managed, unified programming model for batch and stream processing, built on Apache Beam. It provides exactly-once processing guarantees, intelligent watermarks, and automatic handling of out-of-order data, along with built-in windowing and triggering for time-based aggregations. Its native connectors to BigQuery and Pub/Sub allow the team to read streaming events, transform them in real time, and write results directly into BigQuery for analysis without managing any infrastructure.

Why this answer

Cloud Dataflow is Google Cloud's fully managed, serverless service for both batch and stream processing, built on Apache Beam. It natively supports windowed aggregations, exactly-once processing, and autoscaling, making it ideal for real-time IoT data pipelines. Dataflow can read from Pub/Sub, apply transformations (e.g., fixed/sliding windows), and write to BigQuery with built-in connectors.

Unlike Dataproc, it abstracts away cluster management, so the team can focus on pipeline logic rather than infrastructure.

Exam trap

GCDL often tests the confusion between ingestion (Pub/Sub), processing (Dataflow), and storage/analytics (BigQuery), so candidates may incorrectly select Pub/Sub for stream processing or Dataproc for serverless processing.

How to eliminate wrong answers

Option A is wrong because BigQuery is a data warehouse for analytics, not a stream processing engine; it can ingest streaming data via the Storage Write API or legacy streaming inserts, but it does not perform windowed aggregations or complex transformations in-flight. Option B is wrong because Cloud Pub/Sub is a messaging service for ingesting and distributing streams, not for processing them; it lacks built-in windowing, stateful transformations, or exactly-once processing semantics for aggregations. Option C is wrong because Cloud Dataproc is a managed Hadoop/Spark service that requires cluster provisioning and management, and while Spark Streaming can process data, it is not serverless and is less integrated with BigQuery for this use case compared to Dataflow.

725
MCQhard

A company's application is composed of 15 microservices. When a performance issue occurs, the team struggles to determine which service is causing latency since request traces span multiple services. Which Google Cloud service helps identify which specific service in a microservices chain is causing slowdowns?

A.Cloud Logging — search logs for error messages across all 15 services.
B.Cloud Trace — captures distributed request traces showing end-to-end latency across all microservices.
C.Cloud Monitoring dashboards — create per-service CPU utilization graphs.
D.Security Command Center — scan for misconfigurations causing performance issues.
AnswerB

Cloud Trace is purpose-built for distributed performance debugging: it captures an end-to-end trace for each sampled request, recording each service call as a span with parent-child relationships to reconstruct the exact request path across your 15 microservices. The Gantt chart view shows the duration of every span, the critical path, and the service-to-service latency, so you can immediately spot which service added the most time to a slow request. Cloud Trace also correlates with Cloud Logging via trace IDs, letting you inspect error logs within the same trace. This makes it the only option that directly answers 'which service is the latency culprit?' for a specific request flow.

Why this answer

Cloud Trace is designed specifically for distributed tracing in microservices architectures. It captures end-to-end latency data for each request as it traverses multiple services, allowing you to pinpoint which service in the chain is introducing the most delay. This directly addresses the problem of identifying the specific service causing slowdowns in a 15-service application.

Exam trap

The trap here is that candidates confuse Cloud Logging (which shows error messages) with Cloud Trace (which shows latency timing), or assume CPU utilization graphs (Cloud Monitoring) can pinpoint request-level slowdowns, when only distributed tracing can reveal the exact service in the chain causing the delay.

How to eliminate wrong answers

Option A is wrong because Cloud Logging is for aggregating and searching log entries, not for tracing request latency across services; it cannot show the per-service timing breakdown needed to identify the slowest service. Option C is wrong because Cloud Monitoring dashboards showing per-service CPU utilization can indicate resource pressure but do not trace individual requests across services, so they cannot reveal which service in a specific request chain is causing latency. Option D is wrong because Security Command Center focuses on security misconfigurations and vulnerabilities, not on performance latency or distributed tracing.

726
MCQeasy

What does 'high availability' mean in the context of cloud services, and how is it typically measured?

A.High availability means a system is fast — it responds to requests in under 100 milliseconds.
B.High availability means a system is operational for a very high percentage of time, typically measured as a percentage (e.g., 99.9% uptime).
C.High availability means a system stores data in multiple geographic locations for disaster recovery.
D.High availability requires manual intervention to restart failed services within 30 minutes.
AnswerB

High availability describes a system remaining operational for a very high proportion of time, expressed as an uptime percentage such as 99.9%, which directly matches the stem's request for both the definition and its typical measurement.

Why this answer

High availability (HA) refers to a system's ability to remain operational and accessible for an exceptionally high proportion of time, minimizing downtime. It is typically quantified as a percentage of uptime over a defined period, such as 99.9% ('three nines'), which corresponds to approximately 8.76 hours of downtime per year. This metric is fundamental in cloud service level agreements (SLAs) to guarantee service continuity.

Exam trap

Google Cloud often tests the distinction between high availability (uptime percentage) and related but distinct concepts like disaster recovery (geographic redundancy) or performance (latency), so candidates must focus on the precise definition of availability as operational uptime rather than other operational characteristics.

How to eliminate wrong answers

Option A is wrong because high availability is not about raw speed or low latency; it is about uptime and reliability, not performance metrics like sub-100ms response times. Option C is wrong because while geographic data replication supports disaster recovery, it is a specific strategy for data resilience, not the definition or measurement of high availability itself. Option D is wrong because high availability is designed to be automatic, often using failover clusters or load balancers, and requiring manual intervention within 30 minutes contradicts the goal of minimizing downtime without human action.

727
MCQeasy

A company wants to connect its on-premises data center to Google Cloud securely and with low latency. Which Google Cloud service should they use?

A.Cloud Interconnect
B.Cloud NAT
C.Cloud VPN
D.Cloud CDN
AnswerA

Cloud Interconnect provides direct, private connectivity between your on-premises network and Google Cloud through either Dedicated Interconnect (a physical cross-connect at a colocation facility) or Partner Interconnect (via a service provider). This bypasses the public internet, offering lower latency, higher bandwidth, and more consistent performance. It also delivers a Google Cloud SLA, making it the correct choice for production-grade hybrid connectivity.

Why this answer

Cloud Interconnect provides a dedicated, private physical connection between an on-premises data center and Google Cloud, bypassing the public internet. This results in lower latency, higher throughput, and more consistent performance than internet-based options. It is the recommended service for secure, low-latency hybrid connectivity at enterprise scale.

Exam trap

GCDL often tests the misconception that Cloud VPN can provide low latency because it is secure, but the exam expects you to recognize that dedicated private connectivity (Interconnect) is required for low-latency, high-throughput hybrid connections.

How to eliminate wrong answers

Option B is wrong because Cloud NAT is a service that allows outbound internet access for resources without public IPs; it does not provide connectivity from on-premises to Google Cloud. Option C is wrong because Cloud VPN uses IPsec tunnels over the public internet, which introduces variable latency and is not suitable for low-latency requirements. Option D is wrong because Cloud CDN caches content at edge locations to accelerate delivery to users; it does not connect on-premises networks to Google Cloud.

728
MCQmedium

A company wants to automatically receive a discount for running Compute Engine instances for more than 25% of a month without any upfront commitment. Which discount type applies?

A.Committed use discount
B.CUD (Committed Use Discount)
C.Sustained use discount
D.Preemptible VM discount
AnswerC

Sustained use discounts are automatically applied to eligible Compute Engine VM resources when you run a VM for more than 25% of a billing month. For every additional minute of usage beyond that threshold, the discount ramps up incrementally, reaching up to 30% off the base price for instance usage for the full month. No commitment or upfront action is needed, which exactly matches the company's requirement for an automatic discount based on monthly runtime.

Why this answer

Sustained use discounts (SUDs) are automatically applied to Compute Engine instances that run for a significant portion of the billing month (specifically, more than 25% of the month). They require no upfront commitment and are applied automatically to eligible instances. This matches the scenario described.

Exam trap

GCDL often tests the distinction between automatic discounts (sustained use) and commitment-based discounts (committed use), and candidates may confuse the two or overlook that sustained use discounts require no upfront commitment.

How to eliminate wrong answers

Option A is wrong because committed use discounts require an upfront commitment (1 or 3 years) in exchange for discounted rates; they are not automatic and do not apply to instances run for just over 25% of a month without commitment. Option B is wrong because CUD is the same as committed use discount, so it shares the same flaw: it requires a commitment. Option D is wrong because preemptible VM discounts are not a discount type; preemptible VMs are a separate instance type that offers lower prices but can be terminated at any time, and they are not automatically applied based on usage duration.

729
MCQeasy

A company needs to audit all actions performed by administrators on their Google Cloud project, including who accessed what resource and when. Which logging feature should they enable?

A.Cloud Monitoring
B.Access Transparency
C.VPC Flow Logs
D.Cloud Audit Logs
AnswerD

Cloud Audit Logs are the native audit trail for Google Cloud, capturing Admin Activity, Data Access, and System Event records that answer who performed an action, on what resource, when, and from where. Admin Activity logs are enabled by default and include all control-plane API calls, such as creating a project, updating IAM policies, or deleting a service — exactly the 'all actions performed by administrators' requirement. These logs are immutable and can be exported to Cloud Storage or BigQuery for long-term retention and compliance analysis.

Why this answer

Cloud Audit Logs record all administrative and data access activities in Google Cloud, including who did what, where, and when. They are specifically designed for auditing and compliance, capturing Admin Activity, Data Access, System Event, and Policy Denied logs. Enabling Cloud Audit Logs provides the detailed trail needed to audit administrator actions across the project.

Exam trap

GCDL often tests the confusion between monitoring and auditing; candidates may pick Cloud Monitoring because it sounds like it tracks activity, but it does not provide the granular audit trail of Cloud Audit Logs.

How to eliminate wrong answers

Option A is wrong because Cloud Monitoring is for collecting metrics and creating dashboards/alerts, not for auditing user actions. Option B is wrong because Access Transparency logs are for Google personnel access, not customer administrator actions. Option C is wrong because VPC Flow Logs capture network traffic metadata for subnets, not user activity or resource access.

730
MCQhard

A team is using Cloud Build to build container images and push them to Artifact Registry. The build process involves sensitive dependencies that should not be exposed to the internet. The team wants to ensure that all builds execute on a private network without public IP addresses. What should the team configure?

A.Set up Cloud NAT for the Cloud Build workers
B.Configure Artifact Registry with VPC Service Controls
C.Use a private pool in Cloud Build
D.Connect the Cloud Build service account to a shared VPC
AnswerC

A private pool in Cloud Build runs workers in a VPC network that you control, and these worker instances are provisioned without public IP addresses. Because they are internal-only, builds can pull source code from private repositories and push images to Artifact Registry without ever traversing the public internet or exposing the workers. This directly satisfies the requirement to remove public IPs while still allowing secure access to private resources.

Why this answer

Cloud Build supports private pools that provide workers in a customer-managed VPC network, allowing builds to run without public IP addresses and access internal resources. Connecting the project to a shared VPC only enables network access but workers still have public IPs unless private pools are used. Using Artifact Registry VPC-SC perimeters helps secure the registry but not the build workers.

Cloud NAT provides outbound internet but does not remove public IPs from workers.

731
MCQmedium

A company runs a video processing application that triggers a function each time a new video is uploaded to Cloud Storage. The function transcodes the video and stores the result. Which compute service is BEST suited for this event-driven workload?

A.Compute Engine
B.Google Kubernetes Engine (GKE)
C.Cloud Functions
D.Cloud Run
AnswerC

Cloud Functions is a serverless Functions-as-a-Service platform with first-class support for Cloud Storage triggers (e.g., object finalize). When a video file is uploaded, a function is invoked automatically, scales from zero to handle the event, and charges only for execution time. No infrastructure provisioning or 24/7 VM is needed, making it the ideal lightweight, event-driven compute choice for this exact use case.

Why this answer

Cloud Functions is Google Cloud's event-driven FaaS product, natively integrated with Cloud Storage object-finalize events via Eventarc, making it the canonical choice for 'run code when a file lands in a bucket.' It handles the trigger wiring, retries, and scaling automatically, so the developer only writes the transcoding logic. Cloud Run can also be event-driven via Eventarc, but Cloud Functions is the purpose-built, lowest-friction option for this pattern.

Exam trap

The trap here is that Cloud Run also supports event triggers via Eventarc, so candidates who know that fact may second-guess the obvious Cloud Functions answer — but the exam asks for the BEST fit, and Cloud Functions is the purpose-built FaaS for Cloud Storage events.

How to eliminate wrong answers

Option A is wrong because Compute Engine VMs are not event-driven; you would have to build your own polling or webhook listener and manage the OS, which is overkill for a simple object-created trigger. Option B is wrong because GKE is a container orchestration platform that requires you to deploy and manage workloads, node pools, and event plumbing — far more operational overhead than the workload warrants. Option D is wrong because although Cloud Run supports Eventarc triggers, it is a container-based service that requires packaging the function into a container image and is not the 'best' fit when a first-class FaaS trigger already exists.

732
Multi-Selecthard

A company uses Cloud Spanner for a global application. They need to ensure high availability and disaster recovery across regions. Which TWO actions should they take? (Choose 2)

Select 2 answers
A.Deploy the database in a single region with backups
B.Schedule regular backups using Cloud Spanner backup feature
C.Configure read replicas in a different region
D.Use Cloud Memorystore to cache database queries
E.Use a multi-region instance configuration
AnswersB, E

Scheduling regular backups with the Cloud Spanner backup feature is essential for disaster recovery because it protects against logical corruption, accidental deletion, or application errors that replication cannot mitigate. These backups are consistent and exportable to another instance, enabling point-in-time recovery within the backup's retention window (e.g., up to 35 days). Although backups do not provide immediate failover, they are a fundamental component of a data durability strategy and satisfy the specific ask in this scenario.

Why this answer

Cloud Spanner's built-in backup feature allows you to create consistent backups of your database without impacting performance, and these backups can be restored to a different region for disaster recovery. This provides a reliable way to recover from regional failures or data corruption, ensuring high availability and DR across regions.

Exam trap

Google Cloud often tests the misconception that read replicas or caching services like Memorystore can provide cross-region disaster recovery, but Cloud Spanner's architecture relies on synchronous multi-region replication and backups, not asynchronous replicas or external caches.

733
Matchingmedium

Match each Google Cloud data service to its primary function.

Drag a concept onto its matching description — or click a concept then click the description.

Concepts
Matches

Managed relational database (MySQL, PostgreSQL, SQL Server)

Globally distributed, strongly consistent relational database

NoSQL document database for mobile and web apps

NoSQL wide-column database for large analytical workloads

Managed in-memory cache (Redis/Memcached)

Why these pairings

Cloud SQL is for traditional relational databases, Cloud Spanner for globally distributed ones, BigQuery for analytics, and Firestore for NoSQL document storage.

734
MCQmedium

A power utility company collects electricity meter readings from 10 million smart meters every 15 minutes — generating billions of rows of time-series data per year. They need to query this data to detect anomalies and patterns. Which Google Cloud database is optimized for this massive-scale time-series IoT data?

A.Cloud SQL (PostgreSQL)
B.Cloud Bigtable
C.Firestore
D.Cloud Storage (CSV files)
AnswerB

Cloud Bigtable is a fully managed, wide-column NoSQL database purpose-built for massive time-series workloads just like this—10 million meters × 96 readings/day yields ~960 million rows per day, and Bigtable can ingest millions of writes per second. By designing the row key as `meter_id` + `timestamp`, all readings for a meter are stored contiguously, enabling sub-millisecond range scans for anomaly detection. It stores data as unstructured key-value pairs, scales to petabytes seamlessly, and integrates with BigQuery for analytics, making it the clear choice.

Why this answer

Cloud Bigtable is a fully managed, scalable NoSQL database designed for large analytical and operational workloads, making it ideal for ingesting and querying high-throughput time-series data from millions of IoT devices. It supports sub-10ms latency on queries, automatic sharding, and seamless integration with Google Cloud's data analytics ecosystem (e.g., BigQuery, Dataflow), which is critical for detecting anomalies and patterns across billions of rows of meter readings.

Exam trap

The trap here is that candidates confuse 'time-series data' with 'relational data' and choose Cloud SQL (PostgreSQL) for its SQL familiarity, overlooking the need for massive horizontal scalability and high write throughput that only Bigtable provides.

How to eliminate wrong answers

Option A is wrong because Cloud SQL (PostgreSQL) is a relational OLTP database not optimized for the extreme write throughput and horizontal scaling required for billions of time-series rows; it would hit performance bottlenecks and storage limits. Option C is wrong because Firestore is a document-oriented NoSQL database designed for real-time mobile/web apps with moderate write rates, not for massive-scale IoT time-series ingestion and analytical queries. Option D is wrong because Cloud Storage with CSV files lacks native querying capabilities, indexing, and low-latency access needed for real-time anomaly detection; it would require additional services like BigQuery for analysis, adding latency and complexity.

735
MCQmedium

An engineer needs to distribute incoming HTTP traffic across multiple backend VM instances in different regions, with automatic failover and SSL termination. Which load balancing product should they use?

A.Cloud CDN
B.Cloud Load Balancing
C.Cloud NAT
D.Cloud Armor
AnswerB

Cloud Load Balancing is the correct choice for distributing incoming HTTP traffic across backend instances or services. It provides global, anycast-based HTTP(S) load balancing with a single virtual IP, enabling traffic to be routed to the nearest healthy backend across regions. It also offers SSL/TLS offloading, autoscaling, health checks, and failover, making it the appropriate service for high-availability traffic distribution.

Why this answer

Cloud Load Balancing is Google Cloud's fully managed, software-defined load balancing service that supports global anycast IPs, cross-region backend distribution, automatic failover via health checks, and SSL/TLS termination at the load balancer. It handles HTTP(S) traffic across VM instances in multiple regions with a single global IP, which matches every requirement in the scenario.

Exam trap

The trap here is confusing adjacent networking services — candidates pick Cloud CDN or Cloud Armor because they sound like traffic services, but only Cloud Load Balancing actually distributes and terminates traffic.

How to eliminate wrong answers

Option A is wrong because Cloud CDN is a content delivery/caching layer that sits in front of a load balancer; it does not itself distribute traffic across backends or perform failover. Option C is wrong because Cloud NAT provides outbound internet access for private instances and does not handle inbound HTTP load balancing. Option D is wrong because Cloud Armor is a WAF/DDoS protection service that attaches to a load balancer; it filters traffic but does not balance or terminate SSL.

736
MCQeasy

A traditional taxi company is losing market share to ride-sharing apps built on cloud platforms. A digital transformation consultant explains that the ride-sharing companies have a fundamental advantage rooted in their technology architecture. Which cloud-enabled capability most directly explains the ride-sharing companies' competitive advantage?

A.Ride-sharing companies own more vehicles than taxi companies, giving them greater fleet capacity
B.Cloud-enabled real-time matching, dynamic ML-driven pricing, and elastic mobile platforms create an operating model that taxi companies' legacy systems cannot replicate
C.Ride-sharing companies pay lower taxes, giving them a cost advantage over regulated taxi companies
D.Ride-sharing apps are available on smartphones, while taxis require phone calls
AnswerB

The competitive advantage is entirely cloud-powered: real-time GPS matching at scale (impossible without cloud compute), surge pricing driven by ML demand prediction, and mobile apps that create a seamless customer experience. These capabilities require cloud infrastructure and cloud-native development practices.

Why this answer

Ride-sharing companies leverage cloud-native architectures—specifically real-time matching algorithms, machine learning (ML) for dynamic pricing, and elastic mobile platforms—to create an operating model that scales instantly with demand. This cloud-enabled capability allows them to optimize driver-rider pairing and pricing in milliseconds, a level of agility that traditional taxi companies with on-premises legacy systems cannot replicate. The fundamental advantage is not about asset ownership or tax structure but about the architectural ability to process massive real-time data streams and adjust operations dynamically.

Exam trap

The GCDL exam often tests the misconception that a simple frontend feature (like a smartphone app) is the core advantage, when in fact the cloud-native backend—real-time matching, ML pricing, and elastic scaling—is the transformative differentiator.

How to eliminate wrong answers

Option A is wrong because ride-sharing companies typically do not own vehicles; they rely on independent drivers using their own cars, so greater fleet capacity is not a cloud-enabled advantage but a business model choice. Option C is wrong because ride-sharing companies do not inherently pay lower taxes; tax advantages vary by jurisdiction and are not a technology architecture feature, nor do they stem from cloud platforms. Option D is wrong because while smartphone availability is a factor, it is not a cloud-enabled capability—it is a device-level feature; the competitive advantage lies in the cloud backend that processes real-time data, not merely the frontend app.

737
MCQeasy

A data analytics team needs to analyze petabytes of structured data using SQL queries without managing any database infrastructure. Query results must return within seconds for most queries. Which Google Cloud service is designed for this use case?

A.Cloud SQL
B.BigQuery
C.Cloud Bigtable
D.Cloud Spanner
AnswerB

BigQuery is a serverless, petabyte-scale data warehouse that separates storage from compute, enabling independent scaling and on-demand pricing. Its columnar storage and massively parallel query engine, built on Dremel technology, allow fast SQL analytics on massive datasets with zero infrastructure management. This makes it the obvious choice for ad-hoc analysis and business intelligence, not transactional workloads.

Why this answer

BigQuery is a serverless, highly scalable data warehouse designed for analyzing petabytes of data using SQL without any infrastructure management. Its columnar storage and distributed query engine enable sub-second query performance on large datasets, making it ideal for this use case.

Exam trap

The GCDL exam often tests the distinction between OLTP (Cloud SQL, Cloud Spanner) and OLAP (BigQuery) services, and candidates may confuse Bigtable's NoSQL scalability with SQL analytics capabilities.

How to eliminate wrong answers

Option A is wrong because Cloud SQL is a managed relational database for OLTP workloads, not designed for petabyte-scale analytics or sub-second queries on massive datasets. Option C is wrong because Cloud Bigtable is a NoSQL wide-column database optimized for low-latency read/write operations on time-series or IoT data, not for complex SQL analytics on structured data. Option D is wrong because Cloud Spanner is a globally distributed relational database with strong consistency for transactional workloads, not a serverless analytics solution for petabyte-scale SQL queries.

738
Multi-Selectmedium

A company is migrating a legacy application to Google Cloud. The application has variable traffic and requires reliable, low-latency database access. The team wants to minimize operational overhead. Which TWO services should they consider for the database tier? (Choose two.)

Select 2 answers
A.Cloud SQL
B.Cloud Spanner
C.Cloud Bigtable
D.Firestore
E.Self-managed MySQL on Compute Engine
AnswersA, B

Cloud SQL is a fully managed relational database service that supports MySQL, PostgreSQL, and SQL Server with the same SQL dialects and schema capabilities as typical on-premises legacy databases. It automates backups, patch management, and high availability, which dramatically reduces operational overhead. For a legacy relational application, Cloud SQL provides the least-friction migration path because your application code can remain largely unchanged while you hand off infrastructure management to Google Cloud.

Why this answer

Cloud SQL (A) is correct because it is a fully managed relational database service that supports MySQL, PostgreSQL, and SQL Server, offering automatic backups, patching, replication, and scaling with minimal operational overhead, making it suitable for a legacy application needing low-latency access. Cloud Spanner (B) is correct because it is a fully managed, horizontally scalable relational database that provides strong consistency and high availability with low latency even under variable traffic, and it removes operational burden such as sharding and replication management. Cloud Bigtable (C) is not ideal because it is a NoSQL wide-column store optimized for large analytical and high-throughput workloads, not general legacy relational applications.

Firestore (D) is a NoSQL document database better suited for mobile, web, and serverless apps rather than a legacy relational workload. Self-managed MySQL on Compute Engine (E) is incorrect because it requires the team to handle patching, backups, replication, and scaling themselves, which increases operational overhead rather than minimizing it.

Exam trap

The trap is treating 'minimize operational overhead' as compatible with self-managed options — candidates sometimes pick Compute Engine-hosted MySQL thinking it gives more control, but the question explicitly penalizes operational burden.

739
MCQmedium

A company's analytics team wants to enable business users to create their own reports and dashboards from a governed set of BigQuery data, without writing SQL. At the same time, the data engineering team must maintain centralized control over how key metrics (like 'revenue' or 'active users') are defined. Which Google Cloud product architecture best meets both requirements?

A.Looker Studio connected directly to BigQuery, allowing each business user to create their own metric definitions
B.Looker with LookML semantic layer: data engineers centrally govern metric definitions in LookML, business users create self-service reports through Looker's interface using those governed definitions — no SQL required
C.Sharing BigQuery query templates with business users and training them to modify them for their reports
D.Building a custom web application that wraps BigQuery APIs and presents data to business users
AnswerB

Looker's LookML semantic layer is precisely designed for this dual requirement. Engineers write LookML once; it becomes the source of truth for metric definitions. Business users explore and report using a visual interface that always queries through LookML — guaranteed consistency, no SQL needed.

Why this answer

Looker with LookML provides a semantic layer where data engineers centrally define governed metric definitions (e.g., 'revenue' as SUM(price * quantity) with specific filters). Business users can then create self-service reports and dashboards via Looker's drag-and-drop interface without writing SQL, ensuring consistency and control over key metrics.

Exam trap

The trap here is that candidates may think Looker Studio (formerly Data Studio) is sufficient for self-service reporting, but they overlook the critical requirement for a governed semantic layer (LookML) to enforce centralized metric definitions, which Looker Studio alone does not provide.

How to eliminate wrong answers

Option A is wrong because Looker Studio connected directly to BigQuery allows each business user to create their own metric definitions, which violates the requirement for centralized control over how key metrics are defined. Option C is wrong because sharing BigQuery query templates and training users to modify them still requires users to write or edit SQL, and it does not provide a governed semantic layer to enforce consistent metric definitions. Option D is wrong because building a custom web application that wraps BigQuery APIs is a heavy engineering effort that duplicates functionality already provided by Looker's semantic layer, and it does not inherently enforce centralized metric governance without additional custom logic.

740
MCQhard

A developer tries to create a new Compute Engine instance in the us-central1 region but receives an error 'Quota 'CPUS' exceeded. Limit: 24.0'. What should the developer do to resolve this?

A.Wait for the quota to reset automatically
B.Use a different machine family with lower CPU count
C.Delete unused instances in other regions
D.Request a quota increase for CPUs in us-central1
AnswerD

Requesting a quota increase is the correct action because it raises the regional vCPU cap for your project. In the Google Cloud Console, navigate to IAM & Admin > Quotas, filter by the 'Compute Engine API' service and 'CPUs' metric, select the 'us-central1' region, and click 'Edit' to request a higher limit. This permanently increases the allowed number of vCPUs, and for standard adjustments it is often approved immediately or after a short review. This addresses the root cause directly and allows you to provision the instance as intended.

Why this answer

The error indicates a resource quota (CPU limit) has been reached. The correct action is to request a quota increase in the Cloud Console for the specific region and resource type (CPUs).

741
MCQmedium

A company currently runs its applications in a co-location data centre with a 5-year contract for hardware. They are considering migrating to Google Cloud to avoid the upcoming hardware refresh cycle. Which business driver is most directly addressed by this migration?

A.Scalability
B.Cost optimisation (avoiding CAPEX)
C.Agility
D.Innovation (AI/ML access)
AnswerB

Migrating these workloads to the cloud converts the need to buy new servers, switches, and storage arrays for your colocation (a capital expenditure) into a predictable operating expense for cloud services. Since the colocation gear has reached the point where it would need to be refreshed, moving now avoids that upfront CAPEX and instead pays for only the compute you actually consume, which is a direct cost-optimization benefit.

Why this answer

The company faces an upcoming hardware refresh cycle mandated by their 5-year co-location contract, which would require significant capital expenditure (CAPEX) on new servers, storage, and networking. Migrating to Google Cloud converts that CAPEX into operational expenditure (OPEX) on a pay-as-you-go basis, directly addressing the cost optimization driver of avoiding a large upfront hardware investment.

Exam trap

GCDL often tests business drivers by presenting multiple plausible cloud benefits — candidates must identify the one that matches the specific scenario (hardware refresh = CAPEX avoidance), not the most general cloud advantage.

How to eliminate wrong answers

Option A is wrong because scalability — the ability to elastically grow and shrink capacity — is a cloud benefit but is not the driver described; the scenario is about avoiding a hardware refresh, not handling variable demand. Option C is wrong because agility refers to faster development and deployment cycles, which is not the stated motivation. Option D is wrong because innovation via AI/ML access is a cloud capability but is unrelated to the hardware refresh cost problem described.

742
MCQeasy

A developer wants to deploy a containerized web application that automatically scales to zero when not in use, and they want to minimize operational overhead. Which compute service should they use?

A.Google Kubernetes Engine (GKE)
B.Compute Engine
C.Cloud Run
D.App Engine Flexible Environment
AnswerC

Cloud Run is a fully managed, serverless compute platform that executes stateless containers in response to HTTP requests. It automatically scales instances from zero up to handle traffic spikes and back down to zero when idle, so you pay only for the CPU and memory consumed during request processing—with no charge for idle-time zero-instance periods. Because Cloud Run abstracts away all infrastructure, you don't need to manage clusters, nodes, or virtual machines; you simply deploy a container image and let the service handle scaling, availability, and load balancing. This makes Cloud Run the ideal choice for a containerized web application with variable or intermittent traffic, providing minimal operational overhead and granular per-request billing.

Why this answer

Cloud Run is a fully managed serverless container platform that runs containers on demand, scales automatically including to zero when there is no traffic, and requires no cluster or infrastructure management. This directly satisfies the requirements of automatic scale-to-zero and minimal operational overhead. It is the only option purpose-built for serverless container execution.

Exam trap

GCDL often tests the distinction between serverless container platforms and managed Kubernetes, tempting candidates toward GKE because it also runs containers, while overlooking that GKE does not scale to zero and carries significant operational overhead.

How to eliminate wrong answers

Option A is wrong because GKE is a managed Kubernetes service that requires cluster configuration, node pool management, and does not scale to zero by default — it incurs cost and operational overhead even when idle. Option B is wrong because Compute Engine provides raw virtual machines that run continuously, require OS patching and capacity management, and do not scale to zero automatically. Option D is wrong because App Engine Flexible Environment runs containers on managed VMs that do not scale to zero and carry higher baseline cost and slower scaling than the standard serverless model.

743
Multi-Selecthard

An organization wants to ensure that all projects in their GCP organization have consistent IAM policies. They also need to restrict the use of external IP addresses on Compute Engine instances for security. Which TWO tools should they use? (Choose TWO.)

Select 2 answers
A.Use an organization policy constraint 'compute.vmExternalIpAccess' at the organization level
B.Apply a deny IAM policy to each project individually
C.Set a quota for external IP addresses per project
D.Use network tags to block external IPs
E.Define IAM policies at the organization level
AnswersA, E

The organization policy constraint 'compute.vmExternalIpAccess' is a list constraint that can be applied at the organization, folder, or project level. When set at the organization level, it is inherited by all child resources, allowing you to centrally deny or restrict the assignment of external IP addresses to VM instances across every project. This is the correct approach because it is a hard enforcement mechanism that cannot be bypassed by project-level IAM or quota changes, and it provides a consistent, organization-wide security guardrail.

Why this answer

Organization policies can enforce restrictions like disabling external IP addresses across the entire organization. IAM policies at the organization level can set baseline access controls inherited by all projects.

744
MCQmedium

A company uses Google Cloud and wants to understand their monthly cloud spend before the invoice arrives, track spending trends, and identify the top cost drivers across all services. Which built-in Google Cloud tool provides this visibility?

A.Cloud Monitoring dashboards with cost metrics.
B.Cloud Billing reports and cost breakdown in the Billing console.
C.Cloud Asset Inventory — it lists all resources and their costs.
D.Google Cloud pricing calculator — it shows estimated costs.
AnswerB

Cloud Billing reports and cost breakdown in the Billing console are the system of record for actual spend. These pre-built reports show cost by service, project, SKU, and labels using metered usage data, and they also provide spend forecasts. For deeper custom analysis, you can export billing data to BigQuery, but the console itself already gives a native, authoritative view of incurred charges.

Why this answer

Cloud Billing reports and cost breakdown in the Billing console provide built-in, out-of-the-box visibility into monthly spend before the invoice arrives, spending trends, and top cost drivers across all services. This tool aggregates billing data from all projects and services, allowing you to filter by time range, project, service, or SKU, and view cost trends and breakdowns without additional configuration.

Exam trap

The GCDL exam often tests the misconception that Cloud Monitoring can natively show cost metrics, but in reality, cost metrics require billing export to BigQuery and custom dashboard setup, whereas Cloud Billing reports provide this visibility immediately without additional configuration.

How to eliminate wrong answers

Option A is wrong because Cloud Monitoring dashboards with cost metrics require you to export billing data to BigQuery and then create custom dashboards, which is not a built-in, out-of-the-box solution for immediate cost visibility. Option C is wrong because Cloud Asset Inventory lists all resources and their metadata, but it does not provide cost data or spending trends; it is designed for asset discovery and governance, not cost analysis. Option D is wrong because the Google Cloud pricing calculator is a planning tool used to estimate costs before deployment, not a tool for viewing actual incurred spend or tracking trends.

745
MCQmedium

A developer is deploying a web application on Compute Engine and needs to distribute traffic across multiple VM instances in different regions. They also need SSL termination and health checks. Which Google Cloud networking service should they use?

A.Cloud Load Balancing
B.VPC peering
C.Cloud Armor
D.Cloud CDN
AnswerA

Cloud Load Balancing, specifically the HTTP(S) Load Balancer, is a global Layer 7 solution that terminates SSL/TLS at Google's edge, distributes traffic across managed instance groups, and performs regular health checks to automatically route around failed backends. It supports content-based routing, autoscaling, and is a fully managed service.

Why this answer

Cloud Load Balancing (HTTP(S) Load Balancer) is a global, scalable load balancing service that distributes traffic across instance groups in multiple regions, provides SSL termination, and performs health checks. Cloud CDN is for caching content; Cloud Armor is for security policies; VPC peering connects networks.

746
MCQhard

A healthcare organization needs to store and analyze large volumes of patient diagnostic imaging data (e.g., DICOM files) in Google Cloud. The data must be stored in a cost-effective manner for long-term retention, with the ability to query metadata and run analytics using SQL-like queries. Which combination of Google Cloud services best meets these requirements?

A.Cloud Storage (Standard) for images, Datastore for metadata
B.Cloud Storage (Archive) for images, Cloud Spanner for metadata
C.Cloud Storage (Nearline) for images, BigQuery for metadata analytics
D.Cloud Filestore for images, Cloud SQL for metadata
AnswerC

Cloud Storage Nearline offers a low storage price for data accessed less than once per quarter, with no minimum retention duration and reasonable retrieval costs, making it ideal for storing long-term medical images that are rarely retrieved but must be retained for compliance. BigQuery is a serverless, columnar data warehouse that supports standard SQL, enabling fast aggregation, JOINs, and full scans of metadata like accession numbers and timestamps without managing infrastructure. Its pay-per-query pricing and separation of storage from compute keep costs aligned with actual analytical usage, making this combination both cost-effective and analytically powerful.

Why this answer

Cloud Storage Nearline provides cost-effective long-term storage for large imaging files with retrieval flexibility, while BigQuery enables SQL-based analytics on metadata extracted from DICOM headers, meeting both retention and query requirements without the cost of standard storage or the complexity of transactional databases.

Exam trap

Google Cloud often tests the misconception that 'cost-effective long-term storage' must use Archive storage, ignoring that Nearline is sufficient for data accessed occasionally (e.g., quarterly analytics) and that BigQuery is the only service listed that provides native SQL analytics on metadata at scale.

How to eliminate wrong answers

Option A is wrong because Cloud Storage Standard is not cost-effective for long-term retention (higher per-GB cost than Nearline/Archive) and Datastore is a NoSQL document database optimized for transactional workloads, not for SQL-like analytics on large metadata sets. Option B is wrong because Cloud Storage Archive has the lowest storage cost but imposes retrieval delays (minutes to hours) unsuitable for frequent analytics, and Cloud Spanner is a globally distributed relational database designed for high-availability transactions, overkill and expensive for metadata querying. Option D is wrong because Cloud Filestore is a network-attached file system for high-performance computing workloads (e.g., NFSv3), not designed for object storage of DICOM files, and Cloud SQL is a relational database for OLTP, not for scalable analytics on large metadata volumes.

747
MCQhard

A platform engineering team is designing a self-service cloud environment for development teams. They want developers to be able to provision approved cloud resources quickly without waiting for central IT approval for every request, while still ensuring compliance with security and cost policies. Which architectural approach best balances developer agility with governance?

A.Require all resource provisioning requests to be submitted as tickets to the central IT team for manual review and approval before any resources are created
B.Give all developers Owner access to all Google Cloud projects so they can provision any resources without delays
C.Provide a self-service catalog of pre-approved, policy-compliant infrastructure templates with automated provisioning, budget alerts, and org policy guardrails — enabling developer agility while enforcing compliance automatically
D.Allow developers to provision resources freely in a shared sandbox project only, keeping production entirely controlled by central IT
AnswerC

This is the platform engineering approach: build the rails, not the roads. Pre-approved templates (Terraform modules, Config Connector blueprints) let developers self-serve within defined boundaries. Org policies prevent non-compliant configurations. Budget alerts enforce cost controls. Developers move fast; governance is automated, not manual.

Why this answer

It uses a self-service catalog with pre-approved, policy-compliant templates (e.g., Deployment Manager or Terraform configurations) combined with Organization Policy Service guardrails and automated budget alerts. This approach allows developers to provision resources on demand while enforcing security and cost policies automatically, balancing agility with governance without manual bottlenecks.

Exam trap

Google Cloud often tests the misconception that giving developers full access (Option B) or restricting them to a sandbox (Option D) are acceptable trade-offs, when in fact the correct answer requires a policy-as-code approach that enforces guardrails automatically without manual intervention.

How to eliminate wrong answers

Option A is wrong because requiring manual ticket-based approval for every request creates a central IT bottleneck that destroys developer agility, contradicting the goal of self-service provisioning. Option B is wrong because giving all developers Owner access to all projects violates the principle of least privilege, bypasses all governance controls, and creates severe security and compliance risks. Option D is wrong because restricting developers to a shared sandbox project only does not address their need to provision approved resources in production-like environments; it still forces central IT control for production, failing to balance agility with governance across the full lifecycle.

748
MCQeasy

A startup wants to organize its Google Cloud resources by separating development, staging, and production environments. They also need to apply common IAM policies across all projects in each environment. Which resource hierarchy component should they use to group projects per environment?

A.Organization node
B.Tags
C.Folders
D.Labels
AnswerC

Folders are nodes in the resource hierarchy that sit between the organization node and projects, and they can contain both projects and other folders, enabling a flexible, nested structure. You can create separate folders for dev, staging, and production, and IAM policies assigned to a folder are inherited by every project inside it, which centralizes access control. This is the correct choice because it gives you a hierarchical grouping with policy inheritance, exactly what an environment-based organization needs.

Why this answer

Folders allow grouping of projects and are used to reflect organizational structure or environment separation. IAM policies applied at the folder level are inherited by all projects within that folder.

749
MCQeasy

A company wants to automatically scale their Compute Engine managed instance group based on the number of requests per second. Which metric should they use?

A.CPU utilization
B.HTTP load balancing serving capacity
C.Instance group size
D.custom metric from Cloud Monitoring
AnswerD

A custom metric from Cloud Monitoring can capture application-level signals like requests per second or queue depth, which are directly proportional to user demand. Exporting such a metric via the Cloud Monitoring API and configuring an autoscaling policy on it allows precise, workload-aware scaling that reflects the true load pattern rather than relying on incidental infrastructure indicators.

Why this answer

The company needs to scale based on requests per second, which is a custom application-level metric. Cloud Monitoring allows you to create custom metrics from your application, and managed instance groups can use these custom metrics for autoscaling, enabling precise scaling based on actual request throughput rather than proxy indicators.

Exam trap

The trap here is that candidates often confuse 'HTTP load balancing serving capacity' with request rate, but that metric measures the load balancer's backend capacity utilization (a ratio), not the raw number of requests per second, which requires a custom application metric.

How to eliminate wrong answers

Option A is wrong because CPU utilization is a system-level metric that does not directly correlate with requests per second; an instance could be CPU-bound for other reasons, leading to inaccurate scaling. Option B is wrong because HTTP load balancing serving capacity is a metric related to the load balancer's capacity, not the number of requests per second hitting the application; it measures backend capacity utilization, not request rate. Option C is wrong because instance group size is a static count of instances, not a metric that drives scaling decisions; using it as a scaling metric would create a circular dependency.

750
MCQeasy

A company wants its internal applications to be accessible via a custom domain name (e.g., `app.company.com`) that routes to their Google Cloud load balancer. Which Google Cloud service manages DNS records for this?

A.Cloud CDN — it manages domain names for cached content.
B.Cloud DNS
C.Cloud Load Balancing — it automatically assigns domain names.
D.Cloud Armor — it routes traffic based on domain names.
AnswerB

Cloud DNS is GCP's authoritative, managed DNS service that lets you create public or private zones and manage records like A, AAAA, and CNAME. To route app.company.com to a GCP load balancer, you add an A record mapping that hostname to the load balancer's static IPv4 address. Because Cloud DNS uses anycast routing, it provides fast, reliable resolution and is the correct service for custom domain name mapping.

Why this answer

Cloud DNS is the correct service because it is Google Cloud's managed DNS service that translates human-readable domain names (like app.company.com) into IP addresses. It allows you to create and manage DNS records (such as A, CNAME, or ALIAS records) that point your custom domain to the IP address or hostname of your Google Cloud load balancer, enabling traffic routing to your internal applications.

Exam trap

The trap here is confusing services that handle traffic (like Cloud Load Balancing or Cloud Armor) with the service that manages DNS records, leading candidates to pick a service that operates at a different layer of the network stack.

How to eliminate wrong answers

Option A is wrong because Cloud CDN is a content delivery network that caches content at edge locations to improve latency; it does not manage DNS records or domain name resolution. Option C is wrong because Cloud Load Balancing distributes traffic across backends but does not automatically assign or manage domain names; you must configure DNS separately to point a custom domain to the load balancer's IP or hostname. Option D is wrong because Cloud Armor is a web application firewall that provides security policies (e.g., IP allowlisting/denylisting, OWASP rules) and can filter traffic based on domain names, but it does not manage DNS records or domain name resolution.

Page 9

Page 10 of 12

Page 11