Courseiva

Google Cloud Digital Leader (GCDL) — Questions 451525

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

Page 6

Page 7 of 12

Page 8
451
MCQeasy

An organization wants to reduce latency for users in Europe. They plan to deploy their application in a Google Cloud region located in Europe. Which region should they choose?

A.us-central1
B.asia-east1
C.australia-southeast1
D.europe-west1
AnswerD

europe-west1 is located in St. Ghislain, Belgium, placing it in close geographic proximity to major European population centers such as London, Paris, and Frankfurt. This region benefits from Google's low-latency European backbone and multiple availability zones, enabling round-trip times in the tens of milliseconds for users across Western Europe. Deploying workloads here minimizes network hops and intercontinental cable crossings, directly addressing the goal of reducing latency for users in Europe.

Why this answer

europe-west1 is located in Belgium, Europe, providing low latency for European users.

452
Multi-Selecthard

Which TWO of the following cloud characteristics directly enable a business to innovate faster than using traditional IT?

Select 2 answers
A.Global infrastructure that allows launching in new regions quickly
B.Vendor lock-in for long-term contracts
C.Capital expenditure model for budgeting
D.Customizable hardware configurations for optimal performance
E.Self-service provisioning of resources in minutes
AnswersA, E

Cloud providers operate globally distributed regions and edge locations, enabling organizations to deploy workloads nearer to end users with low latency. This geographic reach supports compliance with data residency requirements and disaster recovery strategies. It accelerates international expansion by removing the need for physical data center construction, which traditionally takes months or years.

Why this answer

A global infrastructure with multiple regions and edge locations allows businesses to deploy applications and services in new geographic areas rapidly, reducing time-to-market compared to building or leasing physical data centers. Option E is correct because self-service provisioning enables developers to spin up resources like virtual machines, databases, or containers in minutes via APIs or console, eliminating the weeks-long procurement and setup cycles of traditional IT, thus accelerating experimentation and iteration.

Exam trap

Google Cloud often tests the misconception that capital expenditure (CapEx) is more predictable and thus faster for innovation, but the trap is that CapEx actually introduces procurement delays and financial friction, whereas cloud's operational expenditure (OpEx) model enables rapid, on-demand scaling without upfront investment.

453
MCQhard

A company wants to receive near-real-time notifications when spending in a project exceeds 50%, 75%, and 100% of a monthly budget of $50,000. They also want to automatically disable billing for the project if spending exceeds $60,000. Which configuration should they use?

A.Use the Cost Management dashboard to monitor spending and disable billing manually.
B.Create a budget alert at 100% only and manually disable billing when alerted.
C.Create a budget with thresholds at 50%, 75%, 100% and set the 'disable billing' action on the budget.
D.Create a budget with thresholds at 50%, 75%, 100% and set up a Cloud Function that listens to Pub/Sub messages from the budget to automatically disable billing when a 120% threshold is exceeded.
AnswerD

This is the correct architecture: Cloud Billing budgets can send threshold-alert messages to a Pub/Sub topic when spend crosses defined percentages (e.g., 50%, 75%, 100%, 120%). A Cloud Function subscribes to that topic, parses the budget notification payload, and if the cost exceeds the intended final threshold (120%), it invokes the Cloud Billing API to disable the billing account. This provides near-real-time, automated enforcement without manual steps, while the earlier thresholds serve as warnings that can trigger other notifications or actions.

Why this answer

Budgets can be set with multiple threshold rules for notifications. However, automatically disabling billing requires a separate automation (e.g., Cloud Functions triggered by Pub/Sub) because budgets do not perform actions beyond notifications and Pub/Sub messages.

454
MCQhard

A multinational corporation needs to establish a private, low-latency connection between their on-premises data center and Google Cloud. The connection must be consistent, reliable, and support at least 10 Gbps throughput. Which solution should they use?

A.Cloud NAT with static IP addresses
B.Dedicated Interconnect
C.Partner Interconnect via a service provider
D.Cloud VPN using IPsec tunnels over the public internet
AnswerB

Dedicated Interconnect is the correct choice because it establishes one or more direct, physical connections between your on-premises network and Google's edge network using colocation facilities. These private links offer high throughput (10 Gbps or 100 Gbps per connection) and low, consistent latency because traffic does not traverse the public internet. It is ideal for latency-sensitive, bandwidth-heavy workloads that demand a private, reliable, and dedicated network path between a multinational corporation and GCP.

Why this answer

Dedicated Interconnect provides a direct, private physical connection between an on-premises network and Google Cloud, offering consistent, reliable, low-latency connectivity with throughput options of 10 Gbps or 100 Gbps per link. This meets the requirement for a private, low-latency connection with at least 10 Gbps throughput, as it bypasses the public internet entirely and provides a Service Level Agreement (SLA) for uptime and performance.

Exam trap

Google Cloud often tests the distinction between Dedicated and Partner Interconnect, where candidates mistakenly choose Partner Interconnect for higher throughput, but Dedicated Interconnect is the only option that provides direct, private physical links at 10 Gbps or 100 Gbps without a service provider intermediary.

How to eliminate wrong answers

Option A is wrong because Cloud NAT is used for outbound internet access from private instances and does not provide a private, low-latency connection between on-premises and Google Cloud; it is a network address translation service, not a connectivity solution. Option C is wrong because Partner Interconnect relies on a supported service provider and typically offers lower throughput options (e.g., 50 Mbps to 10 Gbps) and may introduce additional latency or dependency on the provider's network, whereas the requirement specifies a direct, private connection with at least 10 Gbps throughput, which Dedicated Interconnect fulfills without a third-party intermediary. Option D is wrong because Cloud VPN uses IPsec tunnels over the public internet, which introduces variable latency, potential packet loss, and lower throughput (typically up to 3 Gbps per tunnel), and does not provide the consistent, reliable, low-latency performance required for a 10 Gbps connection.

455
MCQmedium

A security administrator needs to grant a developer the minimum permissions to create and delete Cloud Storage buckets in a specific project, but NOT allow them to modify the contents of those buckets (e.g., upload or delete objects). Which IAM role should they assign?

A.Storage Admin (roles/storage.admin)
B.Storage Object Admin (roles/storage.objectAdmin)
C.Custom role with storage.buckets.* permissions
D.Project Editor (roles/editor)
AnswerC

A custom role with storage.buckets.* permissions is the correct choice because it allows you to define a precise set of bucket-level operations—such as storage.buckets.create, storage.buckets.get, storage.buckets.update, and storage.buckets.delete—while explicitly excluding all object-related permissions (e.g., storage.objects.*). This granularity enforces least privilege by ensuring the developer can manage the bucket lifecycle but cannot view, upload, or delete any objects stored within those buckets. Unlike predefined roles that couple bucket and object access, this custom role minimizes the attack surface and aligns with security best practices for infrastructure management.

Why this answer

Storage Admin (roles/storage.admin) grants full control over buckets and objects, which is too permissive. The correct approach is to create a custom role with only storage.buckets.* permissions, or use predefined roles like Storage Object Admin? Actually, Storage Object Admin allows object management. The question requires bucket management only.

A custom role with storage.buckets.create and storage.buckets.delete (and maybe storage.buckets.get) is necessary; predefined roles do not separate bucket and object permissions perfectly. But among standard roles, 'Storage Admin' is too broad; there is no predefined role that only allows bucket management without object access. So the answer must be a custom role.

456
MCQmedium

A company wants to use machine learning to analyze customer reviews without building and training models from scratch. They need a pre-trained model that can classify sentiment. Which Google Cloud service should they use?

A.Cloud Natural Language API
B.Vertex AI
C.AutoML Natural Language
D.Dialogflow
AnswerA

Cloud Natural Language API is the correct choice because it offers pre-trained models that can immediately perform sentiment analysis on customer text via a simple REST call. There is no need to build, train, or deploy a custom model, and the API returns sentiment scores and magnitude out of the box. This makes it the fastest and most cost-effective approach for analyzing customer feedback without prior ML expertise.

Why this answer

Cloud Natural Language API provides pre-trained models for sentiment analysis, entity recognition, etc. AutoML Natural Language requires custom training. Vertex AI is a platform for building custom models.

Dialogflow is for conversational interfaces.

457
Multi-Selecthard

A company wants to reduce costs for its batch processing jobs that run nightly on Compute Engine. The jobs are fault-tolerant and can be interrupted. They are considering using preemptible VMs. Which THREE statements about preemptible VMs are true?

Select 3 answers
A.Preemptible VMs can be migrated to regular VMs if preemption occurs.
B.Preemptible VMs do not offer live migration.
C.Preemptible VMs provide the same SLA as standard VMs.
D.Preemptible VMs can run for up to 24 hours before they may be terminated.
E.Preemptible VMs are significantly cheaper than standard VMs.
AnswersB, D, E

Unlike standard Compute Engine VMs, which benefit from live migration during infrastructure maintenance, preemptible VMs are not live-migrated. If the underlying host needs maintenance or Google reclaims capacity, the VM is immediately terminated within 30 seconds of the preemption notice. This means the VM's state is lost unless you have explicitly saved it elsewhere.

Why this answer

Preemptible VMs can be terminated at any time within 24 hours (typical max 24h). They are significantly cheaper than regular VMs. They cannot be migrated to regular VMs; you must recreate them.

They do not offer live migration. They are suitable for fault-tolerant batch jobs.

458
MCQmedium

A solutions architect is explaining why using managed cloud database services (like Cloud SQL or Cloud Spanner) is preferable to running a database on a self-managed virtual machine in most cases. What is the primary operational advantage of managed database services over self-managed databases on VMs?

A.Managed databases are always significantly cheaper than self-managed databases on VMs
B.Managed database services automate operational tasks like backups, patching, HA failover, and scaling — freeing engineering teams to focus on application development rather than database administration
C.Managed databases guarantee better query performance than self-managed databases for all workload types
D.Managed databases provide stronger data encryption than self-managed databases on VMs
AnswerB

This is the core value proposition of managed databases. The cloud provider handles: automated daily backups with point-in-time recovery, OS and database software patching, automatic failover for high availability, and storage scaling. Engineering teams avoid the specialized DBA work required for self-managed databases.

Why this answer

Managed database services like Cloud SQL and Cloud Spanner abstract away the operational overhead of database administration. They automate critical tasks such as automated backups, patch management, high-availability failover, and horizontal scaling, which allows engineering teams to focus on application logic rather than managing database servers, replication, or storage.

Exam trap

The GCDL exam often tests the misconception that managed services are always cheaper or always faster, when the primary advantage is operational automation and reduced administrative burden, not cost or performance guarantees.

How to eliminate wrong answers

Option A is wrong because managed databases are not always significantly cheaper; they often have higher per-hour costs than self-managed VMs, though they can reduce total cost of ownership by eliminating administrative labor and infrastructure overhead. Option C is wrong because managed databases do not guarantee better query performance for all workload types; performance depends on instance size, query optimization, and workload characteristics, and self-managed databases can be tuned more aggressively for specific use cases. Option D is wrong because both managed and self-managed databases can implement strong encryption (e.g., AES-256 at rest, TLS 1.3 in transit); encryption is a configuration choice, not an inherent advantage of managed services.

459
MCQeasy

A developer is troubleshooting a slow response from a Cloud Run service. Which Google Cloud service can they use to trace requests across microservices?

A.Cloud Profiler
B.Cloud Trace
C.Cloud Logging
D.Cloud Debugger
AnswerB

Cloud Trace collects and aggregates latency data (trace spans) from distributed services, allowing developers to view the end-to-end journey of a single request, including delays in each service, RPC calls, and external API calls. It provides a waterfall view, which directly helps diagnose slow responses by identifying the bottleneck span. This makes it the correct tool for troubleshooting response latency.

Why this answer

Cloud Trace is the correct service because it is specifically designed for distributed tracing, collecting latency data from applications and displaying it in a trace timeline. It can trace requests as they propagate across multiple microservices, including Cloud Run services, by using trace context propagation headers (e.g., `X-Cloud-Trace-Context`). This allows the developer to identify bottlenecks and slow components in a request path.

Exam trap

The trap here is that candidates often confuse Cloud Trace with Cloud Logging, thinking that log aggregation alone can reconstruct request paths, but Cloud Trace is the only service that provides distributed tracing with explicit span context propagation across microservices.

How to eliminate wrong answers

Option A is wrong because Cloud Profiler is a statistical, low-overhead profiler that identifies which code paths consume the most CPU or memory, not a tool for tracing individual request flows across microservices. Option C is wrong because Cloud Logging aggregates and stores log entries but does not provide end-to-end request tracing or visualize the path of a single request across services. Option D is wrong because Cloud Debugger allows you to inspect the state of a running application at a specific code point without stopping it, but it does not trace request propagation or measure latency across services.

460
MCQeasy

A company wants to replace its VPN-based remote access with a solution that grants access based on user identity, device security status, and context (e.g., location, IP). Which Google Cloud service should they use?

A.BeyondCorp Enterprise
B.Cloud Armor
C.Identity-Aware Proxy (IAP)
D.Cloud VPN
AnswerA

BeyondCorp Enterprise is Google's zero-trust access solution that fully replaces a VPN-based remote access model. It grants users access to specific applications based on verified identity, device trust, and context (such as location and security posture) rather than opening up network-level connectivity. This eliminates the implicit trust and lateral movement risks inherent in traditional VPNs, while also integrating with Google Cloud's security capabilities like DLP and threat detection.

Why this answer

BeyondCorp Enterprise provides zero-trust remote access without a VPN, using identity and context-aware access policies.

461
Multi-Selecthard

A company is building a microservices architecture on Google Kubernetes Engine (GKE). They need to expose services externally with HTTPS, distribute traffic across the cluster, and protect against DDoS attacks. Which THREE Google Cloud services should they combine? (Choose THREE)

Select 3 answers
A.Cloud DNS
B.VPC firewall rules
C.Cloud CDN
D.Cloud Armor
E.Cloud Load Balancing
AnswersC, D, E

Cloud CDN caches content and helps mitigate DDoS by absorbing traffic.

Why this answer

Cloud Load Balancing distributes external traffic, Cloud Armor provides DDoS and WAF protection, and Cloud CDN caches content and absorbs some DDoS. Cloud DNS resolves names but is not for traffic distribution. VPC firewall rules operate at network layer, not application.

462
MCQhard

A security engineer needs to analyze network traffic for malicious payloads and anomalies in real-time across multiple VPC networks in a project. The solution must be managed and not require deploying third-party appliances. Which service should they use?

A.Security Command Center
B.Cloud Armor
C.Cloud IDS
D.VPC Flow Logs
AnswerC

Cloud IDS is a fully managed intrusion detection service that performs deep packet inspection (DPI) on all network traffic within a VPC, including both east-west and north-south flows. It leverages the industry-leading threat signatures from Palo Alto Networks to detect malicious payloads, command-and-control communications, and other network-based attacks. By comparing packet payloads against known signatures, Cloud IDS provides real-time visibility into actual traffic content, directly meeting the requirement to analyze network traffic for threats.

Why this answer

Cloud IDS provides managed intrusion detection across VPC networks, analyzing traffic for threats like malware and anomalies.

463
MCQhard

A company is using Cloud SQL for MySQL and notices that read queries are becoming slow as the application scales. They want to offload read traffic from the primary instance to improve performance. Which Cloud SQL feature should they enable?

A.Automatic failover replicas
B.Connection pooling
C.Point-in-time recovery
D.Read replicas
AnswerD

Read replicas are asynchronous copies of the primary instance that support only read-only traffic. By routing SELECT queries to read replicas, you reduce the read load on the primary and increase overall scalability. This is the correct approach for offloading reads, though applications must be configured to use the replica endpoints, and data may experience a slight replication lag.

Why this answer

Cloud SQL read replicas are read-only copies of the primary instance that can serve read traffic, reducing load on the primary and improving query performance.

464
MCQmedium

A technology company runs its containerized microservices on Google Kubernetes Engine (GKE). The development team frequently pushes new container images to Container Registry, and those images are deployed to a production cluster. The security team recently discovered that a few running containers have critical vulnerabilities from outdated base images. They want to enforce a policy that only vulnerability-scanned and approved images can be deployed in the production cluster. The team uses Cloud Build for CI/CD and Container Analysis for vulnerability scanning. Which solution should they implement to meet this requirement?

A.Use Cloud Security Scanner to scan the production cluster for vulnerabilities.
B.Enable Cloud Asset Inventory to monitor image vulnerabilities across projects.
C.Configure Cloud Build to run a vulnerability scan step before pushing images to Container Registry.
D.Enable Binary Authorization with a policy that requires attestations from Container Analysis for all deployments in the production cluster.
AnswerD

Binary Authorization enforces a supply-chain policy at deployment time by requiring trusted attestations for every container image deployed to the GKE cluster. You can configure Container Analysis (e.g., on-demand scanning) to generate attestations for images that pass a vulnerability threshold, and an Attestor can be set to require those attestations. Because this is enforced by the Kubernetes admission controller in the cluster, any attempt to deploy an unverified image is blocked — providing the actual enforcement that the other options lack.

Why this answer

Binary Authorization enforces deployment-time policies that require signed attestations from trusted authorities (like Container Analysis) before an image can be deployed on GKE. By configuring a policy that mandates an attestation from Container Analysis (which performs vulnerability scanning), only images that have been scanned and approved can be deployed, directly meeting the requirement to block containers with critical vulnerabilities.

Exam trap

The trap here is that candidates confuse scanning images (which only identifies vulnerabilities) with enforcing a policy that blocks deployment of vulnerable images, leading them to choose a scanning-only option (like C) instead of the policy enforcement mechanism (Binary Authorization).

How to eliminate wrong answers

Option A is wrong because Cloud Security Scanner is designed to find web application vulnerabilities (e.g., XSS, SQLi) in App Engine, Compute Engine, and GKE services, not to enforce deployment policies or scan container images for OS-level vulnerabilities. Option B is wrong because Cloud Asset Inventory provides a historical view of cloud resources and their metadata (including vulnerability findings from Container Analysis), but it cannot enforce a policy that blocks deployments; it is a monitoring and inventory tool, not a policy enforcement mechanism. Option C is wrong because running a vulnerability scan step before pushing images to Container Registry only ensures images are scanned at build time, but it does not prevent a developer from bypassing the scan or deploying an older, unscanned image; it lacks the deployment-time enforcement that Binary Authorization provides.

465
MCQhard

An organization stores sensitive data in BigQuery. They need to restrict access to specific columns based on user role, while allowing analysis at the dataset level. Which feature should they use?

A.BigQuery row-level security
B.Column-level access control using authorized views or taxonomy policies
C.IAM roles at the dataset level with fine-grained permissions
D.Cloud Data Loss Prevention (DLP) to mask data
AnswerB

BigQuery column-level access control can be implemented via authorized views that expose only designated columns while hiding sensitive ones, or via taxonomy policies in Data Catalog that tag columns and enforce fine-grained ACLs. Authorized views allow you to share a filtered projection without granting access to the underlying table, and taxonomies with policy tags enforce column-level restrictions at query time. These mechanisms directly satisfy the need to protect sensitive data in specific columns.

Why this answer

BigQuery column-level access control, implemented through authorized views or taxonomy policies (via Data Catalog), allows restricting access to specific columns while preserving dataset-level analysis permissions. Authorized views use SQL logic to expose only permitted columns, and taxonomy policies apply fine-grained access controls at the column level without requiring separate datasets.

Exam trap

Google Cloud often tests the distinction between row-level and column-level access controls, and the trap here is that candidates confuse row-level security (which filters rows) with column-level security (which restricts columns), or mistakenly think IAM dataset-level roles can achieve fine-grained column restrictions.

How to eliminate wrong answers

Option A is wrong because BigQuery row-level security restricts access to specific rows based on filters, not columns, and does not address column-level restrictions. Option C is wrong because IAM roles at the dataset level provide coarse-grained access to entire tables or datasets, but cannot restrict access to individual columns within a table. Option D is wrong because Cloud Data Loss Prevention (DLP) is used for data discovery, classification, and masking of sensitive data, but it does not enforce persistent column-level access control for ongoing query access; it is a scanning and transformation tool, not an access control mechanism.

466
MCQmedium

A cloud team receives an alert that a critical production service's error rate has spiked. Following incident response best practices, what is the correct first priority action?

A.Identify and fix the root cause before taking any other action to ensure the fix is complete
B.Mitigate user impact immediately (e.g., rollback, traffic rerouting, scaling) while beginning parallel investigation of the root cause
C.Wait to understand the full scope of the issue and inform all stakeholders before taking any technical action
D.Escalate to senior leadership and wait for their approval before making any production changes
AnswerB

Mitigation first is the correct incident response approach. Stop the bleeding before diagnosing the cause. If a recent deployment caused the spike, roll back immediately. If it's a capacity issue, scale up. Investigation into root cause runs in parallel but mitigation is prioritized.

Why this answer

Incident response best practices prioritize reducing user impact first. In Google Cloud, this could involve rolling back a deployment via Cloud Deploy, rerouting traffic with a load balancer, or scaling up instances with Managed Instance Groups, all while a parallel investigation into the root cause begins. This aligns with the SRE principle of 'error budget' and the 'mitigate before diagnose' approach.

Exam trap

The trap here is that candidates confuse 'root cause analysis' with 'first response' — Google Cloud often tests the principle that immediate mitigation (e.g., rollback, scaling) takes precedence over diagnosis, even if the fix is temporary.

How to eliminate wrong answers

Option A is wrong because it violates the incident response principle of 'stop the bleeding' first; waiting to fix the root cause before mitigating impact prolongs user downtime and can violate SLAs. Option C is wrong because waiting to understand the full scope before taking action delays mitigation, increasing user impact and potentially breaching SLOs; parallel investigation is key. Option D is wrong because escalating for approval before acting introduces unnecessary latency; incident response requires immediate technical action to restore service, with post-incident review for leadership.

467
MCQeasy

A retail company wants to migrate its on-premises e-commerce platform to Google Cloud. The application is stateless and runs on virtual machines. The company wants to minimize operational overhead and allow the application to automatically scale based on CPU utilization. Which Google Cloud service should they use?

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

Compute Engine with managed instance groups (MIGs) provides a straightforward lift-and-shift path for existing e-commerce VMs while enabling automatic scaling based on resource utilization such as CPU or memory. MIGs offer managed instance health checks, auto-healing, and autoscaling, allowing the infrastructure to adapt to traffic spikes without requiring any application refactoring. This makes it the most appropriate choice for migrating a legacy workload that needs to retain its VM-based architecture and control over the operating system.

Why this answer

The application runs on virtual machines and is stateless, making Compute Engine with managed instance groups and autoscaling the most direct fit. Managed instance groups automatically handle scaling based on CPU utilization without requiring containerization or code changes, minimizing operational overhead while preserving the existing VM-based architecture.

Exam trap

The trap here is that candidates often choose GKE or Cloud Run because they associate 'autoscaling' with Kubernetes or serverless, but the question specifies 'virtual machines' and 'minimize operational overhead,' which points to a VM-native solution like Compute Engine with MIGs, not containerization or serverless platforms.

How to eliminate wrong answers

Option A is wrong because Google Kubernetes Engine (GKE) requires containerizing the application, which adds operational overhead for managing clusters and containers, contradicting the goal of minimizing overhead. Option B is wrong because Cloud Run is a serverless platform for containerized applications that scales based on HTTP requests, not CPU utilization, and does not support virtual machines. Option D is wrong because App Engine Standard Environment is a fully managed platform for specific runtimes (e.g., Python, Java) and does not support custom virtual machines or CPU-based autoscaling for arbitrary VM images.

468
Multi-Selectmedium

A company is building a real-time analytics pipeline on Google Cloud. They need to ingest streaming data from IoT devices, process it with low latency, and then store the results for real-time querying. Which TWO services should they use? (Choose TWO.)

Select 2 answers
A.Cloud Pub/Sub
B.Cloud Storage
C.Cloud Dataflow
D.Cloud Functions
E.BigQuery
AnswersA, C

Pub/Sub is a scalable messaging service for ingesting streaming data from IoT devices.

Why this answer

Pub/Sub ingests streaming data reliably, and Dataflow processes it with low latency. Other options are not suitable for real-time streaming analytics.

469
MCQeasy

An organization wants to group related projects under a common parent for policy enforcement and cost tracking. Which GCP resource hierarchy level should be used to group several projects that belong to the same business unit?

A.Organization node
B.Folder
C.Project
D.Resource
AnswerB

Folders are hierarchical containers that live beneath an Organization node and above Projects, specifically designed to group related projects. They also support nested sub-folders, enabling you to mirror your company's structure or deployment environments (e.g., dev, staging, prod). Policies and IAM roles assigned to a folder are inherited by all projects and resources inside it, making them a first-class administrative boundary for access control and isolation. This is exactly the correct mechanism for grouping related projects while preserving policy inheritance.

Why this answer

Folders are used to group projects (and other folders) into a hierarchy for applying policies and organizing resources by department, team, or environment.

470
MCQeasy

A company wants to ensure that their customer data stored in BigQuery is encrypted at rest using customer-managed encryption keys (CMEK). Which Google Cloud service should they use to manage these keys?

A.Cloud HSM
B.Identity-Aware Proxy (IAP)
C.Cloud Key Management Service (Cloud KMS)
D.Secret Manager
AnswerC

Cloud Key Management Service (Cloud KMS) is the core service for customer-managed encryption keys (CMEK), allowing you to create, import, rotate, disable, and destroy keys that control the encryption of data in Google Cloud services like Cloud Storage, Compute Engine, and BigQuery. When you use CMEK, each service requests the key from Cloud KMS to perform envelope encryption, and Cloud KMS enforces IAM-based permissions and audit logging on every key operation. This gives customers the ability to manage the full key lifecycle, making Cloud KMS the correct choice for the stated requirement.

Why this answer

Cloud Key Management Service (Cloud KMS) allows customers to create, manage, and use encryption keys, including CMEK for BigQuery and other GCP services.

471
MCQmedium

A startup wants to launch a social media app globally. They have no existing IT infrastructure and very limited capital. The app will experience unpredictable traffic patterns, with usage expected to rapidly grow after viral campaigns. They need low latency for users across North America, Europe, and Asia. The development team is small and wants to focus on coding rather than operations. They also need to store user-generated content like images and videos. The CTO is evaluating whether to build on-premises or use cloud services. Which approach best meets their needs?

A.Deploy a single large virtual machine in one region and rely on a CDN to serve content globally.
B.Build the app on Compute Engine with managed instance groups, use Cloud CDN for global low-latency delivery, and Cloud Storage for user content.
C.Purchase and configure servers in a single colocation facility, and use a content delivery network (CDN) for static assets.
D.Use a hybrid cloud model: keep a small on-premises server for core features and burst to the cloud for extra capacity.
AnswerB

Managed instance groups give you autoscaling and automatic healing, so your app can handle unpredictable global traffic spikes by adding or removing VMs based on load. Cloud CDN accelerates delivery of static assets—like CSS, JavaScript, and media—by caching them at edge locations closer to users, while Cloud Storage provides durable, globally accessible object storage for user-generated content. This combination is fully managed, requires no upfront hardware investment, and lets you start in one region then expand to multiple regions as you grow, which is exactly what a startup needs for a global launch.

Why this answer

It leverages Google Cloud's fully managed services to meet the startup's needs: Compute Engine with managed instance groups provides auto-scaling for unpredictable traffic, Cloud CDN ensures low-latency global content delivery, and Cloud Storage offers scalable, durable storage for user-generated content. This serverless-like approach minimizes operational overhead, allowing the small team to focus on coding.

Exam trap

Google Cloud often tests the misconception that a CDN alone can solve global latency for a dynamic app, but candidates must recognize that CDNs only cache static content and do not reduce latency for dynamic requests, which require compute resources close to the user.

How to eliminate wrong answers

Option A is wrong because a single large VM in one region creates a single point of failure and cannot provide low latency across North America, Europe, and Asia; a CDN only caches static content, not dynamic app logic, so users far from that region will experience high latency. Option C is wrong because purchasing and configuring servers in a single colocation facility requires significant upfront capital and ongoing operational management, contradicting the limited capital and small team constraints; a CDN for static assets does not address dynamic request latency or auto-scaling for viral traffic spikes. Option D is wrong because a hybrid cloud model still requires maintaining on-premises servers, which incurs capital expenditure and operational overhead, and the core features running on-premises would suffer from latency for global users; it also fails to provide the fully managed, auto-scaling infrastructure needed for unpredictable growth.

472
MCQeasy

A developer accidentally commits an application's Google Cloud service account key to a public GitHub repository. The key is valid and grants access to production resources. What is the correct immediate response?

A.Delete the commit from GitHub history using git rebase; the key is safe once removed from the repository
B.Immediately revoke/delete the exposed service account key in Google Cloud IAM, review Cloud Audit Logs for unauthorized access, and generate a new key distributed through secure channels
C.Change the service account's permissions to read-only to limit the damage from potential misuse
D.Send an internal email informing the security team and wait for their guidance before taking any action
AnswerB

This is the complete correct response: (1) Revoke the key immediately to stop any ongoing unauthorized access. (2) Review Admin Activity and Data Access audit logs to determine if the key was used after exposure. (3) Issue a new key through a secure distribution channel (ideally Secret Manager, not environment variables). Time to revocation is critical.

Why this answer

The immediate priority is to invalidate the exposed credential to prevent unauthorized access to production resources. Revoking the key in Google Cloud IAM ensures it can no longer be used for authentication, while reviewing Cloud Audit Logs helps identify any potential misuse. Generating a new key and distributing it securely restores access for legitimate applications.

Exam trap

The trap here is that candidates may think removing the key from the repository (Option A) is sufficient, but they overlook that the key remains valid in Google Cloud and can still be used by anyone who already obtained it.

How to eliminate wrong answers

Option A is wrong because deleting the commit from GitHub history does not invalidate the key; anyone who already cloned or forked the repository still has access to the key, and the key remains valid in Google Cloud until explicitly revoked. Option C is wrong because changing the service account's permissions to read-only does not prevent an attacker from using the key to authenticate; the key itself is still valid and could be used for any action the service account is allowed, including reading sensitive data. Option D is wrong because waiting for guidance delays the critical step of revoking the exposed key, increasing the window of opportunity for unauthorized access; immediate action is required to contain the breach.

473
MCQmedium

An enterprise wants employees to access internal web applications securely from any location (including remote work from home) without using a VPN. Employees should only access apps they're authorized for, based on their identity and device context. Which Google Cloud service enables this zero-trust access model?

A.Cloud VPN with split tunneling for internal application access.
B.Cloud Identity-Aware Proxy (IAP)
C.Cloud Armor IP allowlist to restrict access to corporate office IP ranges.
D.Cloud Load Balancing with SSL termination.
AnswerB

Cloud Identity-Aware Proxy (IAP) is a zero-trust access layer that sits between users and applications, enforcing access policies based on the user's Google identity, OAuth2 scopes, and contextual attributes like device security status. When a request is made, IAP authenticates the principal, verifies the ID token, and checks against defined access-level conditions before proxying traffic to the backend. This eliminates the need for a VPN, as access decisions are made per request at the application layer, not based on network location.

Why this answer

Cloud Identity-Aware Proxy (IAP) is the correct service because it enforces zero-trust access by verifying a user's identity and device context before granting access to internal web applications, without requiring a VPN. It uses Google's BeyondCorp model to authenticate and authorize each request based on identity and context, allowing secure access from any location.

Exam trap

The trap here is that candidates often confuse network-level security (like VPNs or IP allowlists) with identity-aware access control, assuming that any encrypted tunnel or IP restriction satisfies zero-trust requirements, but zero-trust fundamentally requires per-request identity and context verification, not just network perimeter controls.

How to eliminate wrong answers

Option A is wrong because Cloud VPN with split tunneling still requires a VPN tunnel and does not provide identity- or device-context-based authorization; it only encrypts traffic and routes it to the internal network. Option C is wrong because Cloud Armor IP allowlisting restricts access based on source IP addresses, which fails for remote workers with dynamic IPs and does not verify user identity or device context. Option D is wrong because Cloud Load Balancing with SSL termination only handles traffic distribution and decryption, not authentication or authorization based on user identity and device posture.

474
MCQhard

An administrator wants to enforce that all API calls to a specific Cloud Storage bucket must come from a limited range of IP addresses. Which configuration should they use?

A.Cloud Armor security policy
B.Identity-Aware Proxy (IAP)
C.VPC Service Controls with an access level that includes the IP range
D.VPC firewall rules
AnswerC

VPC Service Controls with an access level that includes the IP range is correct because these perimeters restrict all API calls to protected services like Cloud Storage, and access levels apply context-aware conditions (including source IP address) at the Google Front End. When you add Cloud Storage to a service perimeter and attach an access level with your allowed CIDR range, any API request originating outside that IP range is denied, regardless of IAM permissions. This gives you perimeter-based, context-sensitive enforcement directly on the Cloud Storage API.

Why this answer

VPC Service Controls can restrict access based on IP addresses via access levels. IAP is for user authentication. Cloud Armor is for HTTP(S) load balancing.

Firewall rules apply to network traffic, not API access to Cloud Storage.

475
MCQmedium

A company wants to proactively identify underutilized Compute Engine VMs (high provisioned capacity but low actual usage) to reduce costs. Which Google Cloud tool provides recommendations for right-sizing VMs?

A.Cloud Monitoring — set alerts for low CPU utilization.
B.Active Assist Recommender — ML-based VM rightsizing recommendations.
C.Cloud Asset Inventory — lists all VMs and their configurations.
D.Cloud Billing budgets — set spending limits to prevent overspend.
AnswerB

Active Assist Recommender is the correct service because it uses machine learning trained on near-real-time utilization metrics from Compute Engine, including CPU, memory, network, and disk I/O, to generate specific rightsizing recommendations for each VM. For example, it may suggest moving from n2-standard-8 to n2-standard-4 based on sustained low usage, and it also provides an estimated monthly savings and a confidence score for every recommendation. These recommendations are actionable directly from the console or via the Recommender API, allowing you to apply the machine type change in one click or through infrastructure-as-code. This is precisely the targeted, data-driven guidance the scenario asks for—not just raw metrics or aggregate alerts.

Why this answer

Google Cloud's Active Assist provides intelligent recommendations including VM rightsizing recommendations. These are powered by ML analysis of actual VM CPU and memory utilization over the past 8 days. The recommendations appear in the Cloud Console (Compute Engine → VM instances → Recommendations) and in the Recommender API.

Rightsizing recommendations suggest optimal machine types based on observed usage, often identifying VMs that can be downsized to save significant costs.

476
Multi-Selectmedium

A company is migrating its on-premises PostgreSQL database to Google Cloud. They need a managed service that is fully compatible with PostgreSQL, offers high availability, and provides automated backups. Which TWO Google Cloud services should they consider?

Select 2 answers
A.Cloud SQL
B.Memorystore
C.AlloyDB
D.Filestore
E.Cloud Bigtable
AnswersA, C

Cloud SQL is a fully managed relational database service that supports PostgreSQL, providing automated backups, point-in-time recovery, and high availability with synchronous replication across zones. It offers native PostgreSQL compatibility, so applications can migrate without any changes to their SQL or data access layer. With managed maintenance, scaling, and built-in security features like IAM integration and encryption at rest, Cloud SQL is the pragmatic default choice for most PostgreSQL migrations to Google Cloud.

Why this answer

Cloud SQL offers managed PostgreSQL with automated backups and high availability (regional failover replicas). AlloyDB is PostgreSQL-compatible and provides 4x faster transaction processing than standard PostgreSQL, with built-in high availability. Both are appropriate.

Filestore is file storage, Memorystore is a cache, and Bigtable is NoSQL.

477
Matchingmedium

Match each Google Cloud security concept to its description.

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

Concepts
Matches

Identity and Access Management – fine-grained access control

Key Management Service for encryption keys

DDoS protection and web application firewall

Perimeter security to prevent data exfiltration

Centralized vulnerability and threat monitoring

Why these pairings

The correct matches are Cloud IAM (access control), Cloud KMS (key management), Cloud Security Command Center (threat detection), and Cloud DLP (data loss prevention). Common confusions include mixing up IAM with Security Command Center or KMS with Cloud Armor.

478
Multi-Selecthard

A team is designing a CI/CD pipeline for a microservices application. They want to automatically build container images from source code, store them securely, and deploy to GKE. Which THREE services should they include? (Choose three.)

Select 3 answers
A.Cloud Build
B.Cloud Storage
C.Cloud Run
D.Artifact Registry
E.GKE
AnswersA, D, E

Cloud Build is the fully managed CI/CD service that compiles your source code, runs tests, and builds the container image from a Dockerfile or build config. It executes the build steps defined in your pipeline, generating OCI-compliant images that are then pushed to a registry. This makes Cloud Build the correct core engine for the CI/CD pipeline.

Why this answer

Cloud Build builds container images from source; Artifact Registry stores the images; GKE is the deployment target. Cloud Deploy could also be used for continuous delivery, but the three most essential are Build, Artifact Registry, and GKE.

479
MCQeasy

A non-profit organization with limited IT staff wants to use cloud to improve its fundraising and donor management without hiring technology specialists. Which type of cloud service model is most appropriate for this organization's need?

A.Infrastructure as a Service (IaaS), where the organization provisions VMs and installs donor management software
B.Software as a Service (SaaS), where a fully managed donor management application is subscribed to and used without any infrastructure management
C.Platform as a Service (PaaS), where the organization deploys custom-built donor management code
D.Private cloud, where the organization builds its own cloud infrastructure for complete data control
AnswerB

SaaS is the right model. The non-profit subscribes to a ready-to-use donor management application (e.g., Salesforce Nonprofit, Bloomerang, Blackbaud) with no infrastructure to manage. Updates, security, backups, and scaling are all handled by the SaaS provider. The organization's limited IT staff can focus on using the tool, not running it.

Why this answer

Software as a Service (SaaS) is the most appropriate model because it provides a fully managed, ready-to-use donor management application over the internet. The organization's limited IT staff can simply subscribe and use the software without provisioning servers, installing applications, or managing infrastructure, directly addressing the need to avoid hiring technology specialists.

Exam trap

Google Cloud often tests the misconception that IaaS is always the 'foundation' for any cloud solution, but the trap here is that candidates overlook the organization's specific constraint of limited IT staff and choose IaaS, failing to recognize that SaaS eliminates all infrastructure and software management overhead.

How to eliminate wrong answers

Option A is wrong because IaaS requires the organization to provision and manage virtual machines, install the donor management software, and handle OS patching and scaling, which still demands significant IT expertise. Option C is wrong because PaaS requires the organization to write, deploy, and maintain custom code for the donor management application, which necessitates software development skills the organization lacks. Option D is wrong because a private cloud involves building and managing dedicated cloud infrastructure on-premises or hosted, which requires extensive IT staff for hardware, virtualization, and maintenance, contradicting the goal of avoiding technology specialists.

480
Multi-Selectmedium

A company is migrating a legacy monolithic application to Google Cloud. They want to break it into microservices without managing underlying servers or container orchestration. Which TWO Google Cloud services allow them to deploy containerized applications serverlessly?

Select 2 answers
A.Cloud Run
B.Cloud Functions
C.Compute Engine
D.App Engine flexible environment
E.Google Kubernetes Engine (GKE)
AnswersA, D

Cloud Run runs stateless containers in a fully managed, serverless environment, automatically scaling instances from zero to thousands based on incoming request traffic. It abstracts away infrastructure, patching, and capacity planning, letting you deploy a containerized monolith with just an image and a port. Per-request billing and scale-to-zero capability make it a cost-effective choice for intermittent or variable workloads that still need to run a complete application.

Why this answer

Cloud Run and App Engine flexible environment are serverless compute platforms that support containerized applications. Compute Engine and GKE require server/container management. Cloud Functions is serverless but for event-driven functions, not containers.

481
Multi-Selectmedium

A company runs a high-performance computing (HPC) workload on Compute Engine that requires low-latency, high-throughput scratch storage. The workload is checkpointed every hour. Which TWO storage options should the engineer consider for the scratch storage? (Choose 2)

Select 2 answers
A.Persistent Disk (HDD)
B.Persistent Disk (SSD)
C.Local SSD
D.Filestore
E.Cloud Storage
AnswersB, C

Persistent Disk (SSD) is a durable, network-attached block storage service that provides consistent, low-latency performance and survives instance termination. For HPC scratch, it can be used when data must persist across restarts or preemption, allowing successful checkpointing and restart without data loss. Its performance scales with provisioned size, and it supports multiple per-instance volumes to meet aggregate throughput needs.

Why this answer

For HPC scratch storage, local SSDs provide very high IOPS and low latency but are ephemeral. Persistent Disk balanced or SSD provides durable block storage with good performance, but local SSDs are often preferred for scratch due to lower latency. Cloud Storage is object storage, not block.

Filestore is file storage but typically has higher latency than local SSD. The best options are local SSD for performance and Persistent Disk for durability if checkpointed data needs to persist.

482
MCQhard

A data analytics firm wants to query data across Cloud Storage and BigQuery without moving the data. They need a single SQL interface. Which Google Cloud service enables this?

A.Dataproc with Spark SQL
B.BigQuery external tables (federated queries)
C.Cloud SQL federated queries
D.BigQuery Omni
AnswerB

BigQuery external tables, also known as federated tables, let you create a table definition that points to one or more files in Cloud Storage and query those files with standard BigQuery SQL without loading data into BigQuery storage. You can manually specify the schema or let BigQuery auto-detect it, and you can use wildcards to span multiple objects in a bucket. This directly satisfies the requirement to query data across cloud storage while keeping BigQuery as the serverless query engine.

Why this answer

BigQuery allows querying external data sources like Cloud Storage via external tables (federated queries) without loading data.

483
MCQmedium

A developer needs to deploy a containerized microservice that scales to zero when not in use and automatically scales up on incoming traffic. The microservice uses a custom container image that listens on port 8080. Which Google Cloud compute service is BEST suited for this requirement?

A.Cloud Functions
B.Cloud Run
C.Google Kubernetes Engine (GKE) with Horizontal Pod Autoscaler
D.App Engine standard environment
AnswerB

Cloud Run is a fully managed serverless compute platform that executes stateless HTTP-driven containers, automatically scaling to zero when idle and scaling up instantly to handle incoming requests. It supports any container image that listens on a port, making it an ideal fit for deploying a containerized microservice without managing infrastructure, and you pay only while the container is processing requests.

Why this answer

Cloud Run is a managed compute platform that runs stateless containers, automatically scales (including to zero), and charges only for resources used during request processing. It fits the requirement perfectly. GKE requires managing a cluster and doesn't scale to zero by default; App Engine standard environment has a sandbox that may not support custom containers; Cloud Functions is limited to specific runtimes.

484
MCQmedium

A healthcare startup is building a HIPAA-compliant application on Google Cloud. They need to encrypt data at rest and manage their own encryption keys. Which service should they use for key management?

A.Cloud IAM
B.Cloud Data Loss Prevention (DLP)
C.Cloud HSM
D.Cloud Key Management Service (Cloud KMS)
AnswerD

Cloud Key Management Service (Cloud KMS) is the correct answer because it is Google Cloud's managed service for creating, rotating, and destroying customer-managed encryption keys (CMEK). The service provides a software-based key management tier suitable for HIPAA compliance, and it also integrates with Cloud HSM to offer hardware-backed keys if FIPS 140-2 Level 3 validation is required. Because you retain control over the key material lifecycle and can audit key usage, Cloud KMS meets the security and governance requirements of a HIPAA-compliant application.

Why this answer

Cloud KMS allows customers to manage their own encryption keys, and when used with CMEK, ensures data-at-rest encryption for HIPAA compliance.

485
MCQmedium

An organization wants to use Google Cloud to analyze large-scale genomic data. The data is stored in Cloud Storage in a compressed format. They need to run a custom Python pipeline that preprocesses the data and then uses a GPU-intensive algorithm for alignment. The preprocessing is CPU-bound and takes 30 minutes per sample, while the alignment takes 1 hour per sample on a GPU. They have thousands of samples. Which compute approach is MOST cost-effective?

A.Use committed use discounts for 1 year on GPU instances
B.Use regular VMs with both CPU and GPU on the same instance
C.Use preemptible VMs with CPU for preprocessing and preemptible VMs with GPU for alignment, with checkpointing
D.Use sole-tenant nodes for data isolation
AnswerC

Preemptible VMs cost up to 70-80% less than standard VMs and are killed by Google Compute Engine within 24 hours, making them ideal for fault-tolerant batch tasks. By splitting the pipeline into CPU-based preprocessing and GPU-based alignment on separate preemptible VM groups, you avoid mixing resource types and can automatically restart interrupted tasks from checkpointed state. This minimizes compute spend while still completing the analysis, and is the most cost-effective approach for a finite workload.

Why this answer

Using preemptible VMs for both steps can significantly reduce costs, especially for large batches. However, GPU preemptible pricing is also lower. The workload is batch and fault-tolerant if checkpointing is implemented.

Committed use discounts require 1-year commitment; sole-tenant nodes are for isolation; independent scaling of CPU and GPU is not directly available without separate instance groups.

486
MCQmedium

A company is migrating a legacy monolithic application to Google Cloud. The application currently runs on a single physical server with a custom Linux distribution. The team wants to minimize changes to the application while gaining the benefits of cloud infrastructure. Which migration strategy should they use?

A.Rehost the application on Compute Engine using a custom image of the current OS
B.Rebuild the application from scratch on Cloud Run
C.Re-platform the application to a supported OS version
D.Refactor the application into microservices and deploy on GKE
AnswerA

Rehosting on Compute Engine with a custom image of the current OS is a classic 'lift-and-shift' strategy that preserves the exact kernel, libraries, and configuration of the legacy environment. Because no code changes or architectural changes are required, this approach minimizes migration risk and time-to-completion, allowing the team to move the application as-is. The custom image ensures parity with the on-premises OS, avoiding issues with unsupported or altered system dependencies.

Why this answer

Lift and shift (rehosting) moves the application as-is to the cloud, often by creating a custom image to run on Compute Engine. This minimizes changes. Refactoring (rearchitecting) involves code changes; re-platforming modifies the OS/platform; rebuilding is a full rewrite.

487
MCQmedium

A company runs batch processing jobs on scheduled intervals. They want to minimise costs by using short-lived compute capacity that can be interrupted but offers significant discounts. Which type of Compute Engine VM should they use?

A.E2 high-memory VMs
B.Sole-tenant nodes
C.Preemptible VMs
D.Confidential VMs
AnswerC

Preemptible VMs (and Spot VMs) are Compute Engine instances that can be terminated anywhere anytime due to excess capacity reuse, but they can be used for batch and fault-tolerant workloads. They are up to 60–80% cheaper than standard VMs, making them the ideal choice for a company running scheduled batch processing that can checkpoint and resume. To use them effectively, the application must handle unexpected termination gracefully and be restartable from saved state.

Why this answer

Preemptible VMs (and Spot VMs) offer up to 60-91% discount but can be terminated at any time, making them ideal for batch jobs that can tolerate interruptions.

488
MCQeasy

Which defense-in-depth layer includes measures like access controls, vulnerability management, and intrusion detection systems?

A.Data security
B.Physical security
C.Operational security
D.Infrastructure security
AnswerC

Operational security is correct because it encompasses the day-to-day processes and controls that protect systems, including user access management (authentication, authorization, least privilege), vulnerability management, continuous monitoring, and incident response. These are precisely the measures described in the question—access control lists and intrusion detection—which require ongoing operational discipline rather than static architectural safeguards. This layer ensures that policies and procedures are executed consistently across the environment.

Why this answer

Operational security involves the policies and procedures to protect data and systems during operation, including access controls, vulnerability scanning, and intrusion detection. Physical security covers hardware and facilities; infrastructure security covers network and platform; data security covers encryption and data loss prevention.

489
MCQmedium

A company's finance team wants to understand why their cloud bills vary significantly month to month, unlike their fixed on-premises IT costs. Which fundamental cloud pricing characteristic explains this variability?

A.Cloud providers change their prices frequently, causing unpredictable costs
B.Consumption-based pricing means cloud costs scale directly with actual usage, unlike fixed on-premises costs
C.Cloud providers apply hidden fees that vary randomly each month
D.Cloud costs are fixed like on-premises costs; the variability must be caused by billing errors
AnswerB

This is the correct explanation. Cloud is utility-like pricing: a compute-heavy month costs more than a quiet month. Finance teams must shift from thinking about fixed IT budgets to variable cost management tied to business activity levels.

Why this answer

Cloud computing operates on a consumption-based (pay-as-you-go) pricing model, where costs are directly tied to the amount of resources consumed (e.g., compute hours, storage GB, data transfer). Unlike fixed on-premises IT costs, which are incurred regardless of actual usage (e.g., hardware depreciation, facility leases), cloud bills fluctuate as usage scales up or down. This fundamental characteristic explains the month-to-month variability observed by the finance team.

Exam trap

Google Cloud often tests the misconception that cloud pricing is unpredictable or error-prone, when in fact the variability is a deliberate feature of consumption-based pricing, not a flaw or hidden fee.

How to eliminate wrong answers

Option A is wrong because cloud providers do not change their prices frequently; instead, they typically announce price reductions or new tiers well in advance, and pricing is stable over short periods. Option C is wrong because cloud providers are transparent about their pricing models and do not apply hidden fees that vary randomly; all charges are itemized in the billing dashboard based on metered usage. Option D is wrong because cloud costs are not fixed like on-premises costs; the variability is a direct result of consumption-based pricing, not billing errors, and cloud billing systems are highly accurate.

490
MCQhard

A data team has an IAM policy on a BigQuery dataset as shown. Alice needs to run a query that joins across multiple datasets. She receives a permission error. What is the most likely cause?

A.The policy denies all users except Bob
B.Alice lacks the jobUser role to run queries
C.Alice does not have permission to read the dataset
D.Bob’s dataOwner role prevents others from querying
AnswerB

Running a query in BigQuery requires two permission sets: data access, such as roles/bigquery.dataViewer, and job execution permission, such as roles/bigquery.jobUser, to create a query job. Alice has dataViewer on the dataset, but that role lacks the bigquery.jobs.create permission at the project or job level. Without jobUser (or a broader role like roles/bigquery.user), her query requests fail even though she can read table data. This is the specific reason her query fails.

Why this answer

The BigQuery `jobUser` role is required to run query jobs, including those that join across datasets. The IAM policy shown only grants dataset-level permissions (like `dataViewer` or `dataOwner`), but Alice lacks the `jobUser` role at the project level, which is necessary to submit a query job. Without this role, she receives a permission error even if she has read access to the datasets.

Exam trap

The trap here is that candidates assume dataset-level read permissions (like `dataViewer`) are sufficient to run queries, but BigQuery requires the separate `jobUser` role at the project level to execute query jobs.

How to eliminate wrong answers

Option A is wrong because the policy does not deny all users except Bob; it only grants specific roles to Bob and others, and does not include an explicit deny statement. Option C is wrong because the error occurs when joining across datasets, which requires the `jobUser` role to run the query job, not just read permission on the dataset. Option D is wrong because Bob's `dataOwner` role does not prevent others from querying; it grants full control over the dataset but does not block other users' permissions.

491
MCQhard

A company runs a batch processing workload every night that takes 60 minutes on a single n1-standard-32 VM. They want to reduce costs by using preemptible VMs but need the job to complete within 90 minutes. The job can be parallelized if necessary. Which approach is most cost-effective?

A.Use a single non-preemptible VM to ensure completion.
B.Use the same VM but as preemptible; if preempted, restart the job from scratch.
C.Split the workload across 4 preemptible n1-standard-8 VMs with checkpointing.
D.Use a single preemptible VM with persistent disk snapshots every 10 minutes.
AnswerC

Splitting the workload across 4 preemptible n1-standard-8 VMs reduces per-VM runtime to roughly one-quarter of the original, assuming the batch is parallelizable, which helps fit within the 90-minute window. Each VM writes checkpoints of its progress to a shared persistent location (e.g., Cloud Storage or a persistent disk); if any VM is preempted, a replacement VM can be launched and resume from the last saved state, losing only minutes of work rather than the entire job. Preemptible VMs cost about 20-40% of standard VMs, so the solution is highly cost-effective while still being resilient to preemption via checkpointing.

Why this answer

Preemptible VMs can be terminated at any time, so running multiple smaller instances with checkpointing and retries reduces cost and meets the deadline.

492
MCQmedium

A company uses multiple public clouds (AWS, Azure, Google Cloud) for different workloads. They want to centralize monitoring and logging. Which Google Cloud service can aggregate logs from all clouds?

A.Cloud Audit Logs
B.Cloud Console
C.Cloud Monitoring
D.Cloud Logging
AnswerD

Cloud Logging is the correct answer because it is a fully managed, real-time log aggregation service capable of ingesting logs from any source, including AWS and Azure, via the Logging API, Fluent Bit agents, or SDK integrations. It accepts structured and unstructured logs, applies indexes for queryability, and supports exports to BigQuery, Pub/Sub, or cloud storage for long-term archiving. In a multi-cloud environment, you can install an agent on AWS EC2 or Azure VMs to forward logs to a centralized sink, giving you a single Logs Explorer to search across all clouds. This directly fulfills the requirement of aggregating logs from multiple public clouds.

Why this answer

Cloud Logging (formerly Stackdriver) can aggregate logs from various sources, including other clouds, using agents or API ingestion.

493
MCQmedium

A company needs to set a budget for their GCP project and receive notifications when spending reaches 50%, 90%, and 100% of the budget. Which action should they take?

A.Enable Committed Use Discounts to reduce costs.
B.Set up billing export to BigQuery with scheduled queries.
C.Configure a budget alert in Cloud Billing with threshold rules at 50%, 90%, and 100%.
D.Use Active Assist to set cost thresholds.
AnswerC

Configuring a budget alert in Cloud Billing is the purpose-built and recommended way to receive spending alerts. You can define a budget amount (for example, a monthly cap) and set threshold rules at 50%, 90%, and 100% to trigger notifications via email or Pub/Sub when actual or forecasted costs hit those percentages. This causes the Cloud Billing system to automatically send alerts, addressing the company's need to be notified as costs approach the budget. It is the only option that explicitly provides the required alerting behavior.

Why this answer

Create a budget with alert thresholds at the desired percentages to receive notifications.

494
Multi-Selectmedium

A company needs to encrypt data at rest using keys that they manage, but they want to reduce operational overhead by having Google Cloud host the key management infrastructure. Which TWO options achieve this? (Choose 2)

Select 2 answers
A.Secret Manager
B.Google-managed encryption keys
C.Customer-supplied encryption keys (CSEK)
D.Cloud HSM
E.Customer-managed encryption keys (CMEK)
AnswersD, E

Cloud HSM is a fully managed hardware security module that provides FIPS 140-2 Level 3 validated protection for cryptographic keys. When used with Cloud KMS, Cloud HSM services generate and store customer-managed keys within tamper-resistant hardware, ensuring keys never leave the HSM boundary while enabling encryption of data at rest across Google Cloud services. This directly meets the requirement for the company to control keys with hardware-backed security and simplifies compliance.

Why this answer

CMEK uses Cloud KMS to manage keys, which Google hosts. CSEK requires the customer to supply and manage keys outside Google. Google-managed keys are not customer-managed.

Cloud HSM is a hardware security module that can be used with CMEK. Secret Manager is for secrets, not encryption keys.

495
MCQeasy

A developer wants to deploy a containerized application that can scale down to zero when not in use and charges only for the resources consumed during request processing. Which Google Cloud compute service should they choose?

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

Cloud Run is a fully managed serverless container platform that automatically scales your container from zero instances up to a number sufficient to handle incoming HTTP requests, and then back down to zero when traffic disappears. You are billed only for the exact time spent processing a request, with a minimum granularity of 100 milliseconds, so when there is no request traffic there are zero compute charges. This gives the developer exactly what they asked for: a containerized application that scales to zero, eliminating infrastructure costs during idle periods.

Why this answer

Cloud Run is a serverless container platform that automatically scales to zero and charges per request, making it ideal for intermittent workloads. Compute Engine and GKE require always-on infrastructure. App Engine Flexible also requires at least one instance running.

496
MCQmedium

A media company has a web application that serves video content globally. The application is deployed on Compute Engine instances behind a TCP load balancer in a single region. Users in distant regions experience high latency. The company wants to improve performance for all users while keeping operational overhead low. They also need to handle sudden spikes in traffic during live events. What should they do?

A.Deploy additional instances in multiple regions and use a global HTTP(S) load balancer with Cloud CDN.
B.Use Cloud Run for the application and enable automatic scaling globally.
C.Move the application to Google Kubernetes Engine and use horizontal pod autoscaling.
D.Increase the machine type of existing instances and add more instances in the same region.
AnswerA

Deploying additional regional instances behind a global HTTP(S) load balancer uses Google's anycast IP to route each user to the nearest healthy backend, dramatically cutting network round-trip time. Cloud CDN then caches video segments at edge locations, so repeated views are served from the edge, not the origin, reducing latency and origin load. This combination uniquely provides both global latency reduction and the ability to absorb traffic spikes by distributing capacity across multiple regions.

Why this answer

Deploying instances in multiple regions and using a global HTTP(S) load balancer with Cloud CDN reduces latency by serving content from edge locations close to users. Cloud CDN caches video content at Google's global edge points of presence (PoPs), while the global HTTP(S) load balancer provides anycast IP-based traffic distribution across regions, handling traffic spikes through automatic scaling and distributed capacity.

Exam trap

The trap here is that candidates may think Cloud Run or GKE with autoscaling alone can solve global latency, but they overlook the need for multi-region deployment and edge caching, which are essential for reducing geographic latency and handling global traffic spikes with low operational overhead.

How to eliminate wrong answers

Option B is wrong because Cloud Run does not support automatic scaling globally across multiple regions; it is a regional service and would require manual multi-region setup or additional services like a multi-cluster ingress, increasing operational overhead. Option C is wrong because moving to Google Kubernetes Engine with horizontal pod autoscaling only addresses scaling within a single cluster and does not solve global latency or provide multi-region load balancing without additional complex configuration. Option D is wrong because increasing machine types and adding instances in the same region does not reduce latency for distant users; it only improves capacity within that single region, failing to address geographic distance.

497
MCQeasy

What is the primary purpose of VPC Service Controls?

A.To control ingress and egress traffic at the network level
B.To detect network intrusions
C.To prevent data exfiltration from Google Cloud services
D.To protect against DDoS attacks
AnswerC

VPC Service Controls create perimeters around Google Cloud APIs and services, using context such as identity, source IP, and resource metadata to authorize access. This prevents copying or moving data from within the perimeter to external destinations, directly reducing the risk of data theft. By working at the API layer, it complements IAM and network controls with a data-boundary layer.

Why this answer

VPC Service Controls create perimeters around Google Cloud services to prevent data exfiltration. VPC firewall rules control network traffic. Cloud Armor is for DDoS.

Cloud IDS is for intrusion detection.

498
MCQmedium

A company's PostgreSQL database has grown to 50 TB and their application requires near-zero downtime, automatic failover, and the ability to scale reads horizontally without the migration complexity of switching to Spanner. Which Google Cloud database product is specifically designed as a fully managed, highly scalable PostgreSQL-compatible database?

A.Cloud SQL (PostgreSQL)
B.AlloyDB for PostgreSQL
C.Cloud Spanner
D.Bare metal PostgreSQL on Compute Engine
AnswerB

AlloyDB for PostgreSQL is the correct choice because it is a fully managed, PostgreSQL-compatible database engineered for demanding enterprise workloads. It delivers up to 4× faster online transaction processing (OLTP) and up to 100× faster analytical queries than standard PostgreSQL, while providing 99.99% availability and horizontal read scaling via built-in columnar engine and read pools. Because it is wire-compatible with PostgreSQL, existing application code, drivers, and tools work unchanged — making it the only option that combines full PostgreSQL compatibility with the scale and performance needed for 50 TB of data.

Why this answer

AlloyDB for PostgreSQL is a fully managed, PostgreSQL-compatible database service designed for high scalability, near-zero downtime, and automatic failover. It separates compute and storage to enable horizontal read scaling with read pools, and it uses a columnar engine for analytical acceleration, making it ideal for large workloads like 50 TB without the migration complexity of Spanner.

Exam trap

The trap here is that candidates confuse Cloud SQL's PostgreSQL offering with AlloyDB's PostgreSQL compatibility, overlooking Cloud SQL's storage and scaling limitations for large, high-availability workloads.

How to eliminate wrong answers

Option A is wrong because Cloud SQL for PostgreSQL is limited to 30 TB of storage and does not support automatic horizontal read scaling or near-zero downtime failover at the scale of 50 TB. Option C is wrong because Cloud Spanner is a globally distributed, strongly consistent database that is not PostgreSQL-compatible and requires significant application migration to change from PostgreSQL semantics. Option D is wrong because bare metal PostgreSQL on Compute Engine is not a fully managed service; it requires manual configuration for failover, scaling, and maintenance, and does not provide the automatic, near-zero downtime capabilities specified.

499
Drag & Dropmedium

Drag and drop the steps to recover a Compute Engine VM from a snapshot in the correct order.

Drag steps to the numbered slots on the right, or tap a step then tap a slot.

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

Why this order

The recovery process involves using the snapshot to create a disk, detaching the old boot disk, attaching the new one, and starting the VM.

500
MCQhard

An organization uses labels to track cost by environment (dev, test, prod). However, the Finance team notices that some resources are missing the 'env' label. Which service can automatically suggest labeling resources that are missing required labels?

A.Cost Management dashboard
B.Active Assist Recommendations
C.Cloud Asset Inventory
D.Organization Policy Service
AnswerB

Active Assist Recommendations includes the label recommender, which leverages machine learning to analyze resource metadata, usage patterns, and existing label coverage to identify resources missing required label keys or values. It surfaces each suggestion with a rationale and one-click remediation, helping teams enforce tagging conventions without manual audits. This is exactly the kind of proactive, prescriptive guidance the organization needs.

Why this answer

Active Assist provides recommendations for various optimizations, including labeling. The Recommender can suggest labels for resources that are missing them, based on usage patterns.

501
MCQhard

A security administrator needs to ensure that Google personnel do not access customer data without explicit authorization. Which service should they use to get logs of Google employee access?

A.Access Transparency
B.Cloud Audit Logs
C.Security Command Center
D.Assured Workloads
AnswerA

Access Transparency is the correct control because it provides near real-time, read-only audit logs specifically for actions taken by Google personnel against customer data. These logs capture each instance of access (e.g., when a Google engineer troubleshoots a support issue) and are viewable in Cloud Logging. Unlike standard audit logs, Access Transparency is designed solely for visibility into Google's own staff activity, making it the exact mechanism for this requirement.

Why this answer

Access Transparency provides logs of Google personnel actions on customer data. Cloud Audit Logs track user activities within the customer's project. Assured Workloads is for regulatory compliance.

Security Command Center is for threat detection.

502
MCQhard

A machine learning team wants to train, evaluate, deploy, and monitor ML models in a unified platform without managing infrastructure, and with built-in support for experiment tracking, model versioning, and A/B testing between model versions. Which Google Cloud product provides this end-to-end managed ML platform?

A.BigQuery ML, for training and deploying ML models using SQL within BigQuery
B.Vertex AI, Google Cloud's unified ML platform covering training, experiment tracking, model registry, deployment, and monitoring in a single managed service
C.Cloud Dataproc, for running distributed Spark ML jobs on managed Hadoop clusters
D.Cloud Functions, for deploying ML inference code as serverless functions
AnswerB

Vertex AI is the complete answer. It provides: managed training (custom containers or AutoML), Vertex AI Experiments (experiment tracking and comparison), Vertex AI Model Registry (version management), Vertex AI Endpoints (serving with traffic splitting for A/B testing), and Model Monitoring (data drift and skew detection). This is Google Cloud's end-to-end ML platform.

Why this answer

Vertex AI is Google Cloud's unified ML platform that provides an end-to-end managed service for training, evaluating, deploying, and monitoring ML models without requiring infrastructure management. It includes built-in experiment tracking, a model registry for versioning, and supports A/B testing between model versions, directly matching the question's requirements.

Exam trap

The trap here is that candidates may confuse BigQuery ML's SQL-based model training with a full ML platform, overlooking its lack of experiment tracking, model versioning, and A/B testing capabilities that Vertex AI provides.

How to eliminate wrong answers

Option A is wrong because BigQuery ML is limited to training and deploying models using SQL within BigQuery, lacking built-in experiment tracking, model versioning, and A/B testing capabilities for custom ML workflows. Option C is wrong because Cloud Dataproc is a managed Spark and Hadoop service for distributed data processing, not a unified ML platform with experiment tracking, model registry, or A/B testing features. Option D is wrong because Cloud Functions is a serverless compute service for event-driven code execution, not designed for ML model training, experiment tracking, or A/B testing between model versions.

503
MCQhard

An organization uses Security Command Center (SCC) premium tier and wants to automatically remediate a specific finding type by disabling public access to Cloud Storage buckets. What is the recommended approach?

A.Use Cloud Pub/Sub alone to listen for SCC findings and then manually remediate
B.Use IAM to deny all users except project owners from making buckets public
C.Set up a Cloud Function triggered by SCC findings to remove public access
D.Configure a Cloud Scheduler job to run a script that checks and removes public access
AnswerC

This is the correct event-driven pattern: SCC publishes findings to Cloud Pub/Sub via a notification config, and a Cloud Function can be subscribed to that Pub/Sub topic using the background-trigger mechanism. The function receives the finding JSON, parses the bucket name, and uses the Cloud Resource Manager or Cloud Asset API to remove the public IAM binding or the public ACL. This happens within milliseconds of detection, is fully automated, and scales naturally with findings, making it the right fit for real-time security remediation.

Why this answer

Security Command Center (SCC) premium tier can publish findings to Cloud Pub/Sub, which can trigger a Cloud Function via a push subscription. The Cloud Function can then use the Google Cloud Storage API (specifically, the `storage.buckets.setIamPolicy` method) to remove the `allUsers` or `allAuthenticatedUsers` bindings that grant public access, enabling automated, event-driven remediation without manual intervention.

Exam trap

Google Cloud often tests the distinction between event-driven automation (Cloud Functions + Pub/Sub) and scheduled or manual approaches, so candidates mistakenly choose Cloud Scheduler or IAM deny policies because they think 'automation' means periodic checks or preventive controls, rather than reactive, real-time remediation.

How to eliminate wrong answers

Option A is wrong because using Cloud Pub/Sub alone only delivers the finding notification; it does not perform any remediation action, so manual steps are still required, which defeats the goal of automation. Option B is wrong because IAM deny policies cannot retroactively remove public access from buckets that already have public bindings; they only prevent future grants, and they do not automatically remediate existing public buckets. Option D is wrong because Cloud Scheduler runs on a fixed schedule, not in response to SCC findings, so it introduces latency and cannot provide real-time remediation when a finding is generated.

504
Matchingmedium

Match each Google Cloud service to its primary use case.

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

Concepts
Matches

Virtual machines (IaaS)

Unstructured object storage

Serverless data warehouse

Serverless container platform

Event-driven serverless functions

Why these pairings

Compute Engine provides IaaS virtual machines, Cloud Storage offers object storage for unstructured data, and BigQuery is a data warehouse for analytics. Common confusions occur when mixing these services.

505
Multi-Selecthard

A company wants to implement the principle of least privilege for a team of developers who need to deploy applications on Compute Engine and monitor logs. Which THREE IAM roles should be granted? (Choose 3)

Select 3 answers
A.roles/iam.serviceAccountUser
B.roles/compute.networkAdmin
C.roles/logging.viewer
D.roles/compute.instanceAdmin
E.roles/compute.admin
AnswersA, C, D

Allows developers to use service accounts with instances.

Why this answer

roles/compute.instanceAdmin provides permissions to manage instances. roles/logging.viewer provides read access to logs. roles/iam.serviceAccountUser allows attaching service accounts to instances. roles/compute.networkAdmin is too broad for developers. roles/compute.admin is a full admin role, violating least privilege.

506
MCQmedium

A company is planning a cloud migration and wants to understand the difference between 'lift and shift' and 'cloud-native' approaches. Which statement correctly distinguishes these two migration strategies?

A.Lift and shift uses containers; cloud-native uses virtual machines.
B.Lift and shift moves applications to the cloud with minimal changes; cloud-native re-architects applications to leverage cloud-specific features and managed services.
C.Lift and shift is only possible for new applications; cloud-native is for existing applications.
D.Lift and shift costs more long-term; cloud-native costs more short-term due to licensing.
AnswerB

Lift-and-shift migrates applications to the cloud with minimal or no changes, often copying VMs or servers as-is to IaaS, which is fast but fails to fully utilize cloud capabilities like autoscaling, managed databases, or serverless. Cloud-native, in contrast, re-architects applications using microservices, containers, and managed services to maximize scalability, resiliency, and operational efficiency. This is the fundamental strategic distinction: minimal relocation versus intentional redesign to leverage cloud-specific features.

Why this answer

'lift and shift' (rehosting) involves moving applications to the cloud with minimal or no changes, often using Infrastructure as a Service (IaaS) to replicate the on-premises environment. In contrast, 'cloud-native' (re-architecting) redesigns applications to use cloud-specific features like auto-scaling, managed databases, and serverless compute, fully leveraging the cloud's elasticity and pay-as-you-go model.

Exam trap

The trap here is that candidates often confuse the tools (containers vs. VMs) with the strategy, assuming lift and shift always uses containers and cloud-native uses VMs, when in fact the opposite is true for typical implementations.

How to eliminate wrong answers

Option A is wrong because lift and shift typically uses virtual machines (VMs) to replicate on-premises infrastructure, not containers; cloud-native applications often use containers (e.g., Docker) and orchestration (e.g., Kubernetes) for microservices, not VMs. Option C is wrong because lift and shift is primarily used for existing legacy applications to migrate quickly, while cloud-native is often applied to new applications but can also involve re-architecting existing ones. Option D is wrong because lift and shift can lead to higher long-term costs due to inefficient resource utilization and licensing, while cloud-native may have higher initial development costs but lower operational costs over time due to optimized resource usage and managed services.

507
MCQmedium

A company has deployed a web application on Compute Engine in us-central1-a. Users in Europe report high latency. The company wants to reduce latency by serving traffic from a location closer to European users. However, they currently use a zonal managed instance group. What is the MOST cost-effective and operationally simple approach to reduce latency for European users?

A.Create a new zonal instance group in europe-west1-a and use a round-robin DNS
B.Keep the instance group in us-central1 but enable Cloud CDN
C.Change the managed instance group to regional, and use an HTTP(S) load balancer with the backend in europe-west1
D.Move the application to Cloud Run and deploy in europe-west1
AnswerC

A regional managed instance group automatically distributes instances across zones within europe-west1, protecting against a single-zone failure and enabling managed instance group health checking and autohealing. The external HTTP(S) load balancer uses Google's global anycast IP to terminate the user's connection at the closest Google edge PoP, then forwards the request over Google's backbone to a healthy backend in europe-west1. This combination minimizes user latency for European traffic while maintaining the existing single global endpoint for DNS.

Why this answer

A regional managed instance group across multiple zones in a European region (e.g., europe-west1) with a global load balancer will route users to the nearest backend, reducing latency. Recreating in a different zone in the same region doesn't help. Moving to Cloud Run might help but requires containerising the app.

Using a single zone in Europe is not as resilient.

508
MCQmedium

A company uses Google Workspace for identity. They want employees to use their Google Workspace credentials to access third-party applications (Salesforce, Slack, etc.) without separate passwords for each app. Which technology enables this?

A.VPN — employees connect to the corporate VPN which provides access to all apps.
B.Single Sign-On (SSO) using SAML 2.0 or OIDC with Google Workspace as the Identity Provider.
C.Cloud Armor — blocks unauthorized access attempts to applications.
D.Shared service account — all employees use the same credential.
AnswerB

Google Workspace acts as the identity provider (IdP), authenticating the employee once and then passing a SAML 2.0 assertion or OIDC ID token to each SaaS application, which acts as a service provider. Because the assertion/token is cryptographically signed and trusted by the application, the user is granted access without needing to re-enter credentials or create a separate password. This is the correct approach because it decouples authentication from application access, enabling centralized lifecycle management and enforcing corporate MFA policies across all federated apps.

Why this answer

Single Sign-On (SSO) using SAML 2.0 or OIDC allows Google Workspace to act as the Identity Provider (IdP), issuing authentication tokens that third-party applications (like Salesforce and Slack) trust. This eliminates the need for separate passwords, as users authenticate once with Google Workspace and the IdP handles subsequent access via security assertions or ID tokens.

Exam trap

Google Cloud often tests the distinction between network-level access (VPN) and identity-level federation (SSO), so candidates mistakenly choose VPN because they think it 'provides access to all apps' without realizing it does not solve the separate-password problem.

How to eliminate wrong answers

Option A is wrong because a VPN provides network-layer access to corporate resources but does not eliminate separate application passwords; users still need to authenticate to each app individually. Option C is wrong because Cloud Armor is a web application firewall and DDoS protection service that blocks malicious traffic at the edge, not an identity federation or SSO technology. Option D is wrong because a shared service account violates the principle of least privilege and non-repudiation; all employees using the same credential would create severe security and audit issues, and it does not enable passwordless access to third-party apps.

509
MCQmedium

A company wants to migrate its existing on-premises virtual machines (VMware VMs) to Google Cloud with minimal changes to the operating system and applications. Which Google Cloud product is specifically designed for migrating on-premises VMs to Google Cloud with minimal modification?

A.Migrate to Virtual Machines (formerly Velostrata), which migrates on-premises VMware VMs to Compute Engine with minimal modification and downtime
B.Cloud Dataflow, by streaming data from on-premises VMs to Google Cloud storage
C.Anthos, by registering on-premises Kubernetes clusters with Google Cloud's management plane
D.Cloud Storage Transfer Service, by copying VM disk images from on-premises storage to Cloud Storage
AnswerA

Migrate to Virtual Machines is the purpose-built service for this. It performs VM migrations from VMware (and other sources) to Compute Engine, handling the OS and application translation automatically. The 'minimal changes' requirement is the defining characteristic — it's a lift-and-shift migration tool.

Why this answer

Migrate to Virtual Machines (formerly Velostrata) is the correct choice because it is specifically designed to migrate on-premises VMware VMs to Compute Engine with minimal modification to the OS and applications. It uses a streaming migration approach that moves the VM's disk state incrementally while keeping the VM running, resulting in minimal downtime and no need to re-architect the workloads.

Exam trap

Google Cloud often tests the distinction between general-purpose data transfer or processing services (like Dataflow or Storage Transfer Service) and specialized migration tools, tempting candidates to pick a familiar service that sounds plausible but lacks the specific VM migration capability.

How to eliminate wrong answers

Option B is wrong because Cloud Dataflow is a stream and batch data processing service, not a VM migration tool; it cannot migrate entire VMs with their OS and applications intact. Option C is wrong because Anthos focuses on managing Kubernetes clusters across environments, not on migrating individual VMware VMs with minimal modification. Option D is wrong because Cloud Storage Transfer Service is designed for bulk data transfers to Cloud Storage, not for live VM migration; it would require manual disk image creation and does not handle OS/application state or minimize downtime.

510
MCQmedium

A startup needs to quickly deploy a web application with minimal infrastructure management. They want to focus on code, not servers. Which Google Cloud service model is most appropriate?

A.Software as a Service (SaaS) using Gmail
B.Function as a Service (FaaS) using Cloud Functions
C.Infrastructure as a Service (IaaS) using Compute Engine
D.Platform as a Service (PaaS) using App Engine
AnswerD

App Engine is a PaaS that abstracts away the underlying servers, OS, and networking; you simply deploy your code and it automatically handles scaling, load balancing, health checks, and runtime patching. It supports standard frameworks and routes HTTP traffic to your application without any infrastructure provisioning. This matches the need for a quick deployment while keeping your team focused on application code rather than operations.

Why this answer

App Engine is a fully managed Platform as a Service (PaaS) that abstracts away the underlying infrastructure, allowing developers to deploy web applications without managing servers or operating systems. It automatically handles scaling, load balancing, and patching, which aligns with the startup's requirement to focus on code rather than infrastructure management.

Exam trap

Google Cloud often tests the distinction between PaaS and FaaS by presenting a scenario that requires a full web application, where candidates mistakenly choose FaaS (Cloud Functions) because they confuse 'serverless' with 'no infrastructure management,' ignoring that FaaS is unsuitable for long-running HTTP applications with stateful sessions.

How to eliminate wrong answers

Option A is wrong because Gmail is a Software as a Service (SaaS) application, not a service model for deploying custom web applications; it provides no platform for code deployment or customization. Option B is wrong because Cloud Functions is a Function as a Service (FaaS) designed for event-driven, stateless functions, not for hosting a complete web application with persistent HTTP routing and session management. Option C is wrong because Compute Engine is Infrastructure as a Service (IaaS) that requires manual provisioning, configuration, and management of virtual machines, which contradicts the goal of minimizing infrastructure management.

511
MCQmedium

An engineer needs to analyze detailed cost data, including resource-level usage costs and labels, to create custom reports. Which approach should they use?

A.Use the Cost Management dashboard to export a CSV
B.Set up billing export to BigQuery
C.Manually review invoices
D.Use the Cloud Pricing Calculator
AnswerB

Setting up billing export to BigQuery is the correct approach because it continuously streams all billing data, including line items with resource IDs, labels, and usage metrics, into a BigQuery dataset. The exported tables offer full SQL queryability, enabling you to join cost data with other enterprise datasets, build custom dashboards, and perform granular analysis such as grouping by label or cost per resource. This is the only method that provides the flexibility and detail required for the engineer's needs.

Why this answer

Billing export to BigQuery allows you to export detailed, granular billing data (including labels and resource-level costs) to a BigQuery dataset for custom analysis and reporting.

512
MCQhard

A global gaming company uses Cloud Spanner for their leaderboard. They notice that write latency spikes during peak hours. The database is currently deployed in a single region. Which scaling strategy should they implement to reduce write latency globally?

A.Use Cloud Spanner multi-region configuration.
B.Implement application-level caching with Memorystore.
C.Change to Cloud Bigtable for higher throughput.
D.Add more nodes to the existing Spanner instance.
AnswerA

Cloud Spanner multi-region configurations replicate each tablet across chosen regions and let you designate a default leader region for writes. Because every write commit is coordinated by the Paxos leader and its synchronous quorum, placing that leader near your gaming company's player-facing service reduces the network distance (RTT) for leaderboard score updates. Multi-region configurations also add regional and read-only replicas, so reads can be served close to players while write latency from remote locations drops substantially.

Why this answer

Cloud Spanner's multi-region configuration is designed to reduce write latency for globally distributed users by placing write-capable replicas in multiple geographic regions. This allows writes to be committed at the nearest replica, leveraging Spanner's TrueTime and Paxos-based replication to maintain strong consistency across regions. A single-region deployment forces all writes to a single location, causing high latency for distant clients during peak hours.

Exam trap

Google Cloud often tests the misconception that scaling a database horizontally by adding nodes always reduces latency, but in a single-region Spanner setup, adding nodes only increases throughput and storage, not geographic proximity, which is the root cause of high write latency for global users.

How to eliminate wrong answers

Option B is wrong because application-level caching with Memorystore does not reduce write latency to the database; it only improves read performance for cached data, and writes still must go to the single-region Spanner instance. Option C is wrong because Cloud Bigtable is optimized for high-throughput, low-latency reads and writes for analytical workloads, but it does not support strong transactional consistency or SQL queries, making it unsuitable for a leaderboard that requires real-time, consistent updates. Option D is wrong because adding more nodes to the existing single-region Spanner instance increases throughput and storage capacity but does not reduce write latency for clients far from that region; the write path still requires consensus across replicas in the same geographic location.

513
Matchingmedium

Match each Google Cloud AI/ML term to its definition.

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

Concepts
Matches

Unified ML platform for building and deploying models

Train custom models with minimal code

Natural language understanding for chatbots

Image recognition and analysis

Text analysis and entity extraction

Why these pairings

Vertex AI is the unified platform; AutoML automates model training; Cloud TPUs accelerate computation. Common confusions include swapping these definitions.

514
MCQeasy

Google Cloud's operations suite includes Cloud Monitoring for metrics. What is the difference between 'monitoring' and 'observability' in cloud operations?

A.Monitoring and observability are identical terms — both describe collecting and analyzing system metrics.
B.Monitoring tracks predefined metrics and alerts on known conditions; observability is the system property enabling engineers to understand any internal state from its outputs (metrics, logs, traces).
C.Monitoring is for production; observability is for development and testing environments.
D.Observability only applies to AI systems; monitoring is for traditional applications.
AnswerB

This is the correct distinction. Monitoring is an active practice of tracking predefined metrics (e.g., request latency, queue depth) and comparing them against thresholds to trigger alerts for known or expected failure conditions. Observability is a passive system property — the degree to which a system's internal state can be inferred from its external outputs (structured logs, metrics, traces) without having to instrument it for every specific scenario. Proper observability requires the three pillars — metrics, logs, and traces — to be correlated so that when a metric goes out of range, engineers can trace through requests and inspect logs to understand why, even for never-before-seen failures.

Why this answer

Monitoring and observability are distinct concepts in cloud operations. Monitoring involves tracking predefined metrics and setting alerts for known failure conditions, while observability is a system property that allows engineers to understand any internal state by analyzing outputs like metrics, logs, and traces. In Google Cloud, Cloud Monitoring provides monitoring capabilities, but achieving true observability requires integrating Cloud Logging and Cloud Trace to explore unknown issues.

Exam trap

Google Cloud often tests the misconception that monitoring and observability are interchangeable terms, but the trap here is that monitoring is reactive to known conditions, while observability is a proactive property for diagnosing unknown issues.

How to eliminate wrong answers

Option A is wrong because monitoring and observability are not identical; monitoring is a subset of observability, focusing on known metrics, whereas observability enables exploration of unknown states. Option C is wrong because observability is not limited to development and testing; it is critical in production to debug complex, unpredictable issues. Option D is wrong because observability applies to all systems, not just AI, and monitoring is used across all application types, not just traditional ones.

515
MCQmedium

A company is evaluating whether to use a content delivery network (CDN) for its e-commerce website. Which scenario would most benefit from CDN implementation?

A.A small business whose customers are all located within 10 kilometers of the company's single data center
B.An e-commerce site with global customers that serves high-resolution product images and videos, where page load speed directly affects conversion rates
C.A real-time financial trading application that requires unique, uncacheable price data delivered to a single city's traders
D.An internal HR system used exclusively by employees in the company's headquarters
AnswerB

This is the ideal CDN scenario: geographically distributed users, highly cacheable content (product images and videos), and a business metric (conversion rate) that is demonstrably sensitive to latency. CDN edges serve cached content locally, dramatically reducing page load times for international visitors.

Why this answer

A CDN caches static content like high-resolution images and videos at edge servers geographically closer to users, reducing latency and improving page load speed. For an e-commerce site with global customers, faster load times directly boost conversion rates, making CDN implementation highly beneficial.

Exam trap

The GCDL exam often tests the misconception that CDNs are a universal performance solution, but the trap here is that CDNs only benefit cacheable, static, or geographically distributed content, not real-time or localized traffic.

How to eliminate wrong answers

Option A is wrong because customers are all within 10 km of a single data center, so latency is already minimal and a CDN would provide negligible benefit. Option C is wrong because real-time financial trading data is unique and uncacheable, so a CDN cannot serve stale or cached content, and the single-city user base doesn't require global distribution. Option D is wrong because an internal HR system used only by employees at headquarters has no geographic distribution or performance issues that a CDN would solve.

516
MCQmedium

Google's physical data center security includes multiple layers of protection. Which of the following is NOT a physical security measure Google uses at its data centers?

A.Biometric authentication and badge access controls at multiple security perimeters.
B.24/7 on-site security personnel who monitor the facility continuously.
C.Customers can schedule tours of Google data centers to verify security practices directly.
D.Secure hardware destruction procedures for decommissioned storage devices.
AnswerC

Google does not offer customer-scheduled tours of its data centers; these facilities are highly restricted and access is limited to authorized personnel. Instead, Google provides independent third-party audit reports such as ISO 27001 and SOC 2 as verification of security controls. This statement is false as a physical security measure, making it the correct answer to a question asking which described practice does not actually exist.

Why this answer

Google does not offer public tours of its data centers. Allowing customers to schedule tours would introduce unnecessary security risks and is not part of Google's physical security model. Instead, Google provides transparency through third-party audit reports and certifications (e.g., SOC 2, ISO 27001) to verify security practices.

Exam trap

The GCDL exam often tests the misconception that Google offers data center tours as a transparency measure, but in reality, Google relies on independent third-party audits and certifications rather than allowing physical access to customers.

How to eliminate wrong answers

Option A is wrong because biometric authentication and badge access controls are indeed used by Google at multiple security perimeters, including the outer fence, building entrance, and server floor doors. Option B is wrong because 24/7 on-site security personnel are a standard physical security measure at Google data centers, monitoring CCTV and responding to incidents. Option D is wrong because secure hardware destruction procedures, such as degaussing, shredding, or pulverizing decommissioned storage devices, are a critical part of Google's data sanitization process to prevent data recovery.

517
MCQhard

A company wants to reserve Compute Engine instances for a 3-year term to get the maximum discount. They expect consistent usage and want the discount to apply automatically to any instance matching the configuration. Which purchasing option should they choose?

A.Sustained use discounts
B.Preemptible VM instances
C.Reserved instances (like AWS)
D.Committed use discounts with a 3-year term
AnswerD

Committed Use Discounts (CUDs) let you commit to a consistent baseline of vCPUs, memory, and other resources for a 1-year or 3-year term, and in return you receive a substantial price reduction—often up to 70% for a 3-year commitment on many machine types. For a predictable, always-on workload spanning 3 years, this offers the highest discount among all options shown, since sustained use discounts are capped at about 30% and do not require a contract, while preemptible VMs are unreliable. The trade-off is that you are financially obligated to pay for the committed resources even if you don't use them, which is acceptable for steady workloads.

Why this answer

Committed use discounts (CUDs) offer significant discounts in exchange for a commitment to use a minimum level of resources for 1 or 3 years. They apply automatically to eligible instances in the specified region and machine series.

518
MCQmedium

A company wants to reduce its on-premises data center footprint by moving workloads to Google Cloud. They need to maintain low-latency connectivity between their remaining on-premises equipment and their Google Cloud VPC. Which Google Cloud service should they use?

A.Cloud VPN
B.Dedicated Interconnect
C.Partner Interconnect
D.Direct Peering
AnswerB

Dedicated Interconnect provides a direct, private physical connection between your on-premises network and Google's network, with no traffic crossing the public internet. It offers low, consistent latency, high throughput, and a 99.99% uptime SLA, making it ideal for migrating workloads and reducing data center footprint while preserving performance. This direct connection meets the requirement of reliable, low-latency access to Google Cloud resources.

Why this answer

Dedicated Interconnect provides direct, private, high-bandwidth connections between on-premises and Google Cloud, meeting low-latency requirements. Partner Interconnect uses service providers with lower bandwidth. Cloud VPN is internet-based and slower.

Direct Peering lacks SLAs.

519
MCQeasy

A company wants to reduce its Google Cloud costs without reducing its workload capacity. The team identifies that several production VMs consistently use less than 30% of their allocated CPU and memory. What is the most straightforward cost optimization action?

A.Delete the under-utilized VMs since low utilization indicates they are no longer needed
B.Right-size the VMs by migrating to smaller machine types that match actual CPU and memory consumption, reducing costs proportionally
C.Purchase Committed Use Discounts for the over-provisioned VMs to reduce their per-hour cost
D.Enable sustained use discounts by ensuring VMs run continuously throughout the month
AnswerB

Right-sizing is the direct action. If VMs use 30% of their resources, a smaller machine type that provides the resources actually needed (with some headroom for spikes) costs significantly less. Active Assist proactively surfaces right-sizing recommendations with projected savings.

Why this answer

Right-sizing VMs by migrating to smaller machine types that match actual CPU and memory consumption directly reduces the cost per hour while maintaining the same workload capacity. Since the VMs are consistently under-utilized, this approach eliminates wasted resources without affecting performance or availability.

Exam trap

Google Cloud often tests the misconception that deleting under-utilized VMs is the simplest cost-saving action, but the question explicitly states workload capacity must be maintained, making right-sizing the correct approach.

How to eliminate wrong answers

Option A is wrong because deleting under-utilized VMs would reduce workload capacity, contradicting the requirement to maintain capacity; low utilization does not mean the VMs are unnecessary. Option C is wrong because Committed Use Discounts (CUDs) reduce the per-hour cost of existing machine types but do not address the root cause of over-provisioning; you would still pay for unused capacity. Option D is wrong because sustained use discounts are automatically applied for VMs running >25% of a month and do not require enabling; they also do not reduce costs from over-provisioned resources.

520
MCQmedium

You are monitoring Compute Engine instances with Cloud Monitoring. You notice that autoscaling is not triggering even though CPU utilization is above 80% for several minutes. The managed instance group has autoscaling based on CPU utilization with a target of 0.8. What is the most likely cause?

A.The maximum number of instances is already reached.
B.The autoscaler is disabled.
C.The minimum number of instances is set too high.
D.The cool-down period is too long.
AnswerA

The Managed Instance Group (MIG) autoscaler's scaling decision is fundamentally constrained by the group's `maxNumReplicas`/max size. When the current running instance count equals this upper bound, the autoscaler will not add new VMs even if the aggregated CPU utilization remains persistently above the target threshold, because that would violate the configured capacity limit. In this state, the autoscaler is effectively 'capped' and any observed lack of scale-out is the intended, expected behavior, not a failure of the monitoring or autoscaling logic.

Why this answer

The most likely cause is that the managed instance group has already reached its configured maximum number of instances. When the maximum instance count is hit, the autoscaler cannot add more instances even if CPU utilization exceeds the target of 0.8 (80%). This is a common boundary condition in autoscaling logic where the scaling policy is overridden by the hard limit.

Exam trap

The trap here is that candidates often focus on the CPU target and cool-down settings, overlooking the hard boundary of the maximum instance count, which is a fundamental constraint in autoscaling logic.

How to eliminate wrong answers

Option B is wrong because if the autoscaler were disabled, no scaling events would occur at all, but the question states that autoscaling is not triggering despite high CPU, implying the autoscaler is enabled but blocked. Option C is wrong because a high minimum number of instances would cause the autoscaler to keep instances running, not prevent it from scaling up; it would actually ensure a baseline, not block scaling. Option D is wrong because a long cool-down period delays scaling actions but does not permanently prevent them; after the cool-down expires, the autoscaler would still trigger if CPU remains high.

521
MCQeasy

A small startup wants to protect its web application from common attacks like SQL injection and cross-site scripting (XSS). They also need DDoS protection. Which Google Cloud security service should they use?

A.Security Command Center
B.Cloud IDS
C.reCAPTCHA Enterprise
D.Cloud Armor
AnswerD

Cloud Armor is a web application firewall (WAF) and distributed denial-of-service (DDoS) protection service that runs at Google's network edge. It provides preconfigured and customizable rules to block SQL injection, cross-site scripting, and other OWASP Top 10 attack vectors before they reach your application. By integrating with Cloud Load Balancing and offering ML-based adaptive protection, Cloud Armor actively filters malicious requests and safeguards your web application from application-layer and volumetric attacks.

Why this answer

Cloud Armor provides web application firewall (WAF) rules to block SQL injection and XSS, plus DDoS protection.

522
MCQmedium

A company wants to reduce costs for their long-running Compute Engine instances by committing to a 1-year term. Which type of discount should they use?

A.Sole-tenant node discount
B.Preemptible VM discount
C.Sustained use discount
D.Committed use discount
AnswerD

Committed use discounts (CUDs) are ideal for predictable, long-running compute because you commit to either a 1-year or 3-year usage term in exchange for a significantly discounted price, typically up to 70% off for vCPUs and memory. This discount is resource-based, applying to specific amounts of vCPU and memory per region, and can yield substantial savings for always-on applications. For a company running long-running compute, selecting a committed use discount—especially a 3-year term—maximizes cost reduction and provides predictable pricing.

Why this answer

Committed use discounts offer reduced prices in exchange for a 1 or 3 year commitment.

523
MCQmedium

A financial services firm must comply with PCI DSS and wants to run workloads on Google Cloud. They need to isolate their production environment from development and enforce granular access controls. Which Google Cloud service should they use?

A.Cloud Armor
B.Cloud NAT
C.VPC Service Controls and IAM
D.Cloud VPN
AnswerC

VPC Service Controls and IAM together provide defense-in-depth for PCI DSS compliance: VPC Service Controls establishes perimeters around GCP services to prevent data exfiltration and limit access to authorized networks, while IAM manages granular user-level permissions on specific resources. This combination gives you both network-level isolation (via service perimeters) and identity-based access control (via roles and policies), directly satisfying PCI DSS requirements for restricting access to cardholder data and protecting it from unauthorized retrieval or copying.

Why this answer

Google Cloud's VPC Service Controls enable isolation of sensitive data in a VPC perimeter, while IAM provides granular access controls. Together they help meet compliance requirements.

524
MCQmedium

A healthcare organization wants to build an application that ingests FHIR-formatted patient records from multiple hospital systems, normalizes them, and makes them queryable by clinical researchers. Which Google Cloud service is purpose-built for healthcare data interoperability?

A.BigQuery — store FHIR JSON records and query them with SQL.
B.Cloud Healthcare API with FHIR store support.
C.Cloud SQL — store patient records in a relational schema.
D.Google Forms — collect patient data directly from hospitals via web forms.
AnswerB

Cloud Healthcare API provides a fully managed, standards-compliant layer for ingesting and serving clinical data using FHIR R4, HL7v2, and DICOM protocols. It includes built-in validation, search across FHIR resources, versioning, and de-identification, enabling interoperable access without custom medical data plumbing. This is purpose-built for healthcare workflows, unlike generic storage options.

Why this answer

The Cloud Healthcare API with FHIR store support is purpose-built for healthcare data interoperability because it natively handles FHIR (Fast Healthcare Interoperability Resources) standards, including resource validation, versioning, and search. It provides a managed service that ingests, normalizes, and stores FHIR-formatted patient records from multiple hospital systems, enabling secure querying by clinical researchers without requiring custom ETL pipelines.

Exam trap

The GCDL exam often tests the misconception that any database (like BigQuery or Cloud SQL) can serve as a healthcare interoperability solution, but the trap here is that only the Cloud Healthcare API with FHIR store provides the native FHIR protocol support, validation, and compliance features required for healthcare data exchange.

How to eliminate wrong answers

Option A is wrong because BigQuery is a data warehouse for analytical queries, not a purpose-built healthcare interoperability service; it lacks native FHIR resource validation, versioning, and search capabilities, and storing raw FHIR JSON there would require custom parsing and normalization. Option C is wrong because Cloud SQL is a managed relational database service that does not support FHIR standards natively; storing patient records in a relational schema would require extensive schema design and mapping, defeating the purpose of interoperability. Option D is wrong because Google Forms is a survey tool for collecting user input via web forms, not designed for ingesting structured FHIR data from hospital systems; it cannot handle FHIR resource validation, API-based ingestion, or secure healthcare data exchange.

525
MCQmedium

A company currently uses Hadoop and Spark for batch data processing on a large on-premises cluster. They want to migrate these workloads to Google Cloud with minimal rewriting of existing Spark and Hadoop jobs. Which Google Cloud service is the best fit?

A.Cloud Dataflow — it runs all Spark and Hadoop jobs natively.
B.Cloud Dataproc — managed Apache Spark and Hadoop with minimal code changes.
C.BigQuery — it runs Spark SQL queries via BigQuery Spark stored procedures.
D.Google Kubernetes Engine — deploy Spark clusters on Kubernetes.
AnswerB

Cloud Dataproc is Google Cloud's managed service for Apache Hadoop and Spark, providing native support for Spark, Hadoop MapReduce, Hive, and Pig. Because it runs the same open-source distributions and supports standard job submission interfaces, existing jobs can be migrated with minimal changes by simply pointing them at Dataproc clusters and Cloud Storage (via the gs:// filesystem) instead of HDFS. This makes it the ideal choice for migrating on-premises Hadoop/Spark workloads without rewriting application code.

Why this answer

Cloud Dataproc is a managed service for running Apache Spark and Hadoop clusters on Google Cloud. It supports the same open-source versions of Spark and Hadoop that the company currently uses, allowing them to migrate their existing batch processing workloads with minimal code changes. This makes it the best fit for the stated requirement of minimal rewriting.

Exam trap

The GCDL exam often tests the misconception that Cloud Dataflow can run Spark/Hadoop jobs natively, when in fact it requires rewriting into Apache Beam, while Dataproc is the direct managed equivalent for these frameworks.

How to eliminate wrong answers

Option A is wrong because Cloud Dataflow does not run Spark or Hadoop jobs natively; it uses the Apache Beam SDK, which requires rewriting jobs into Beam pipelines. Option C is wrong because BigQuery is a serverless data warehouse for SQL analytics, not a platform for running Spark or Hadoop jobs; BigQuery Spark stored procedures are for executing Spark code within BigQuery, not for migrating existing Spark/Hadoop workloads. Option D is wrong because Google Kubernetes Engine (GKE) can run Spark on Kubernetes, but this requires containerizing the jobs and managing the Kubernetes infrastructure, which involves more rewriting and operational overhead than using Dataproc's native Spark/Hadoop support.

Page 6

Page 7 of 12

Page 8