Courseiva

Google Cloud Digital Leader (GCDL) — Questions 226–300

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

Page 3

Page 4 of 12

Page 5
226
Multi-Selecteasy

An engineer needs to grant a team access to view but not edit Compute Engine instances in a project. They also need to ensure that any new instances created in a folder automatically inherit a policy that denies using certain machine types. Which TWO steps should they take? (Choose TWO.)

Select 2 answers
A.Grant the team the 'roles/iam.securityReviewer' role
B.Use a deny IAM policy at the project level to block create permissions
C.Apply an organization policy constraint to the folder to deny certain machine types
D.Set a quota for the machine type at the project level
E.Grant the team the 'roles/compute.viewer' role at the project level
AnswersC, E

An organization policy constraint applied at the folder level, such as compute.vmMachineTypeConstraints, restricts which machine types can be used to create VMs across all descendant projects. Folder-level organization policies are inherited by every project and resource within the folder, so any new project added later automatically receives the same restriction without per-project configuration. This centrally enforces the requirement to deny certain machine types while allowing the team to view but not edit.

Why this answer

IAM roles grant permissions; compute.viewer provides read-only access to Compute resources. Organization policies can be set at the folder level to restrict machine types across all projects within.

227
MCQeasy

A company is building a new application that needs to send transactional emails (order confirmations, password resets, account notifications) to customers. Google Cloud does not provide a native SMTP email service. Which approach is standard for sending transactional emails from Google Cloud applications?

A.Using Cloud Storage to store email templates and delivering them directly to customers' inboxes
B.Integrating a third-party transactional email service (such as SendGrid, Mailgun, or Postmark) via API from the Cloud Run or Cloud Functions application
C.Running a self-managed SMTP server on a Compute Engine VM and configuring MX records to deliver email
D.Using Gmail directly by authenticating the application with a corporate Gmail account and sending through Gmail SMTP
AnswerB

This is the standard pattern. Applications hosted on Cloud Run or Cloud Functions call third-party email service APIs to send transactional emails. These services provide the SMTP infrastructure, deliverability management, and analytics that transactional email requires.

Why this answer

Google Cloud does not offer a native SMTP service for sending transactional emails. The standard approach is to integrate a third-party transactional email service (e.g., SendGrid, Mailgun, Postmark) via API from serverless compute services like Cloud Run or Cloud Functions. These services handle deliverability, reputation, and compliance with email standards (SPF, DKIM, DMARC) that are critical for transactional email.

Exam trap

The trap here is that candidates may assume Google Cloud provides a native SMTP service (like AWS SES) or that Gmail SMTP can be repurposed for application use, but Google Cloud explicitly lacks this service, and Gmail's SMTP is restricted to personal use and low-volume sending.

How to eliminate wrong answers

Option A is wrong because Cloud Storage is an object storage service for storing files, not an email delivery mechanism; it cannot send emails or interact with SMTP/MX protocols. Option C is wrong because running a self-managed SMTP server on Compute Engine is complex, requires managing IP reputation, reverse DNS, and SMTP authentication, and is not a standard or recommended approach for transactional email in Google Cloud. Option D is wrong because using Gmail SMTP from an application violates Gmail's Terms of Service (which prohibit automated bulk or transactional email) and has strict sending limits (e.g., 500 recipients per day for a free account), making it unsuitable for production transactional email.

228
MCQeasy

A developer needs to allow a Compute Engine VM to read from a specific Cloud Storage bucket. Which IAM role should be granted to the VM's service account?

A.roles/storage.objectViewer
B.roles/storage.legacyBucketReader
C.roles/storage.admin
D.roles/storage.objectCreator
AnswerA

roles/storage.objectViewer grants storage.objects.get and storage.objects.list, which allow the VM to read object contents and list objects within a bucket without any write, delete, or admin permissions. This precisely matches the requirement of only reading from Cloud Storage and follows least privilege by not granting any unnecessary capabilities.

Why this answer

roles/storage.objectViewer grants read-only access to objects in a Cloud Storage bucket, including listing and getting objects. Granting it to the VM's service account allows the Compute Engine VM to read from the specific bucket without granting write or administrative permissions. This follows the principle of least privilege for a read-only requirement.

Exam trap

GCDL often tests the difference between object-level and bucket-level storage roles — the trap is choosing a legacy bucket role or an admin role instead of the precise objectViewer role for read-only object access.

How to eliminate wrong answers

Option B is wrong because roles/storage.legacyBucketReader is a legacy role that grants bucket-level metadata read access but not object read access, so the VM could not read object contents. Option C is wrong because roles/storage.admin grants full control over buckets and objects, which is far more than the read-only requirement and violates least privilege. Option D is wrong because roles/storage.objectCreator allows creating objects but not reading them, which is the opposite of what is needed.

229
MCQmedium

A company runs a web application on Compute Engine. They want to reduce costs by committing to a 1-year contract for their VM usage. Which pricing model should they use?

A.Preemptible VMs
B.Sustained use discounts
C.Pay-as-you-go
D.Committed use discounts
AnswerD

Committed use discounts (CUDs) allow you to commit to a specific level of vCPUs, memory, and other resources for a 1- or 3-year term, in exchange for a substantial discount, up to 70%. Because the web application is expected to run indefinitely, committing for one year aligns with its predictable usage and yields the best cost reduction among the listed options. The discounted price applies to your usage each hour, and you cannot be terminated mid-commitment, making it reliable for production workloads.

Why this answer

Committed use discounts offer significant discounts in exchange for a 1-year or 3-year commitment to specific resource usage. Sustained use discounts apply automatically based on monthly usage. Preemptible VMs are for short-lived, fault-tolerant workloads.

Pay-as-you-go is standard on-demand pricing.

230
Multi-Selecthard

A company has a multi-project GCP environment with a single billing account. They want to receive alerts when any project's spending exceeds its allocated budget, and they want to analyze cost trends by project and service. Which THREE services should they use together?

Select 3 answers
A.Committed use discounts
B.Labels on resources
C.Active Assist idle resource recommendations
D.Cloud Billing budgets
E.Billing export to BigQuery
AnswersB, D, E

Labels are key-value metadata attached to GCP resources, such as 'team' or 'environment', and they are the primary mechanism for sorting and grouping costs within an exported billing dataset. When combined with BigQuery billing export, labels let you slice costs by project, service, team, or any custom dimension, enabling exact repartition of spend. They are the correct tool because they make cost data attributable and queryable.

Why this answer

Option B (Labels on resources) is correct because labels are the mechanism that lets you attribute and group costs by project and service dimensions in billing data, enabling the per-project and per-service cost-trend analysis the company requires. Option D (Cloud Billing budgets) is correct because budgets defined on the billing account or scoped to projects trigger alert notifications when actual or forecasted spend exceeds the allocated threshold, directly satisfying the requirement to be alerted when any project's spending exceeds its budget. Option E (Billing export to BigQuery) is correct because exporting detailed billing data to BigQuery provides the granular, queryable dataset needed to analyze cost trends by project and service over time.

Option A (Committed use discounts) is not correct because CUDs are a pricing/discount mechanism to reduce compute costs, not an alerting or cost-analysis service. Option C (Active Assist idle resource recommendations) is not correct because it only surfaces optimization suggestions for idle or underutilized resources and does not provide budget alerts or billing trend analysis.

Exam trap

GCDL often tests the confusion between cost *visibility* tools (labels, BigQuery export) and cost *control* tools (budgets, CUDs, quotas) — candidates pick CUDs or Active Assist thinking they provide alerting or analytics when they only optimize spend.

231
MCQmedium

A logistics company needs to send millions of shipment status updates per day from IoT tracking devices to backend systems for processing and storage. The solution must decouple the tracking devices from the backend and handle traffic spikes without losing messages. Which Google Cloud product best fits this asynchronous messaging requirement?

A.Cloud SQL, to store each tracking update as a row in a relational database as it arrives
B.Cloud Pub/Sub, Google's fully managed messaging service that decouples producers from consumers and handles massive message volumes reliably
C.Cloud Storage, to have each device upload a file containing its status update
D.Cloud Load Balancing, to distribute incoming tracking requests evenly across backend servers
AnswerB

Pub/Sub is purpose-built for this pattern. IoT devices publish messages to a Pub/Sub topic; backend systems subscribe and process at their own rate. Pub/Sub buffers messages during spikes, guarantees at-least-once delivery, and scales to millions of messages per second without configuration changes.

Why this answer

Cloud Pub/Sub is the correct choice because it is a fully managed, asynchronous messaging service designed to decouple producers (IoT devices) from consumers (backend systems). It can handle millions of messages per second, provides at-least-once delivery, and buffers messages during traffic spikes, ensuring no data loss without requiring the backend to be always available.

Exam trap

The GCDL exam often tests the distinction between decoupling (asynchronous messaging) and load distribution (synchronous traffic management), so the trap here is confusing Cloud Load Balancing's ability to distribute requests with Pub/Sub's ability to buffer and decouple, leading candidates to pick D when they see 'traffic spikes' and 'distribute' in the question.

How to eliminate wrong answers

Option A is wrong because Cloud SQL is a relational database that requires synchronous writes and cannot decouple producers from consumers; it would become a bottleneck under high throughput and cannot buffer messages during spikes. Option C is wrong because Cloud Storage is an object storage service, not a messaging system; having each device upload a file introduces latency, lacks real-time streaming, and does not provide the decoupling or ordered message delivery needed for status updates. Option D is wrong because Cloud Load Balancing distributes incoming traffic across backend instances but does not decouple producers from consumers or provide message buffering; it operates at the network layer and cannot handle asynchronous, event-driven messaging.

232
MCQeasy

A developer wants to deploy a containerized web application that can automatically scale to zero when there are no requests, and charges only for resources used during request processing. Which Google Cloud compute service should they use?

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

Cloud Run is a fully managed serverless container platform that executes your container only when a request arrives. It automatically scales down to zero instances during idle periods, meaning you pay nothing when there is no traffic, and it scales up instantly to handle incoming requests. Because it directly supports container images and abstracts all infrastructure, it is the simplest and most cost-efficient choice for deploying a containerized web application.

Why this answer

Cloud Run is a serverless container platform that scales to zero and charges per request. Google Kubernetes Engine and Compute Engine require running instances, and App Engine Standard is a platform as a service but not container-based.

233
MCQeasy

A company uses Google Workspace for email, documents, and meetings. They want to leverage an AI assistant that can help draft emails, create slides, and summarise meeting notes. Which product provides this functionality?

A.Vertex AI
B.Cloud Natural Language
C.Dialogflow
D.Gemini for Workspace
AnswerD

Gemini for Workspace, formerly Duet AI, is the generative AI assistant natively integrated into Google Workspace applications such as Gmail, Docs, Sheets, and Meet. It leverages the Gemini model family and is grounded in the user's Workspace content to summarize threads, draft documents, and automate tasks, while inheriting Workspace's enterprise-grade security and data governance. It is designed specifically as the AI companion for Workspace users, requiring no custom ML development.

Why this answer

Gemini for Workspace is an AI assistant integrated into Google Workspace applications like Gmail, Docs, Slides, and Meet. It can help draft emails, create slides, and summarise meeting notes, directly leveraging the context of the user's Workspace data.

Exam trap

GCDL often tests the distinction between Google's AI products, and candidates might confuse Gemini for Workspace with Vertex AI or other standalone AI services.

How to eliminate wrong answers

Option A is wrong because Vertex AI is a platform for building and deploying custom machine learning models, not a ready-to-use assistant for Workspace. Option B is wrong because Cloud Natural Language is an API for text analysis, not an integrated assistant. Option C is wrong because Dialogflow is for building conversational interfaces like chatbots, not for drafting emails or summarising meetings.

234
MCQmedium

A startup is building a gaming application where players must see each other's moves in real time. The database storing game state must guarantee that all players see the same state simultaneously. Which consistency requirement does this impose and why does it matter for database selection?

A.Eventual consistency is sufficient; the game can show slightly stale state to some players without impact on gameplay
B.Strong consistency is required so all players simultaneously read the same current game state; eventual consistency would create conflicting game states visible to different players
C.Consistency doesn't matter for gaming databases because games update state so frequently that any inconsistency resolves within milliseconds
D.The game should avoid databases entirely and use local storage on each player's device to ensure fast, consistent state access
AnswerB

This is correct. Strong consistency guarantees that after a write (player moves), all subsequent reads from any client see that write. This ensures all players operate on the same view of game state. Cloud Spanner's external consistency or Firestore's strongly consistent reads serve this requirement.

Why this answer

B is correct because real-time multiplayer gaming requires strong consistency to ensure all players see the identical game state simultaneously. In a GCDL context, this means the database must support ACID transactions or linearizable reads (e.g., using Google Cloud Spanner or a strongly consistent NoSQL system like Cloud Firestore in strong consistency mode). Eventual consistency would allow different players to observe different board positions, breaking the game's core requirement of a shared, current state.

Exam trap

The GCDL exam often tests the misconception that eventual consistency is 'good enough' for real-time applications, but the trap is that gaming state requires a single, globally agreed view—eventual consistency introduces windows of divergence that break the core gameplay contract.

How to eliminate wrong answers

Option A is wrong because eventual consistency allows stale reads, which would let players see different game states (e.g., one player sees a move that another hasn't yet), causing conflicts and breaking real-time gameplay. Option C is wrong because consistency is critical in gaming databases; high update frequency does not resolve inconsistency—it can actually exacerbate it, leading to race conditions and state divergence. Option D is wrong because using only local storage on each device eliminates a shared authoritative state, making it impossible to synchronize moves across players and violating the requirement for a single source of truth.

235
MCQeasy

A cloud team wants to understand their current Google Cloud resource inventory — specifically, which VMs are running in each region, their machine types, and whether they have public IP addresses. Which approach most efficiently provides this across all projects?

A.Log into each Google Cloud project individually through the Console and manually record VM details in a spreadsheet
B.Use Cloud Asset Inventory to run a single org-wide query that returns all VM instances, their regions, machine types, and network configurations across all projects
C.Check the Cloud Billing reports, which list all resources that have incurred charges by resource type
D.Enable VPC flow logs in each project to capture VM network activity
AnswerB

Cloud Asset Inventory provides a single, org-wide searchable view of all compute.googleapis.com/Instance assets via the Cloud Asset API or Console asset search. It returns complete VM metadata—zone/region, machine type, network interfaces, external IP, labels, and status—without per-project login, and can be exported or queried programmatically, making it the only option that directly and comprehensively answers the request.

Why this answer

Cloud Asset Inventory provides a single, unified API to query resources across all projects in an organization. By using the `gcloud asset search-all-resources` command with the `--asset-types=compute.googleapis.com/Instance` filter, you can retrieve all VM instances along with their regions, machine types, and network configurations (including public IP addresses) in one operation, without needing to access each project individually.

Exam trap

The trap here is that candidates may confuse Cloud Billing reports (cost-focused) or VPC flow logs (traffic-focused) with inventory tools, or assume manual per-project inspection is acceptable, when Cloud Asset Inventory is the only option designed for cross-project resource discovery at scale.

How to eliminate wrong answers

Option A is wrong because manually logging into each project and recording details in a spreadsheet is inefficient, error-prone, and does not scale across many projects, defeating the purpose of automation in cloud operations. Option C is wrong because Cloud Billing reports show cost data aggregated by resource type, not the granular per-VM details like machine type, region, or public IP address; they are designed for cost analysis, not inventory management. Option D is wrong because VPC flow logs capture network traffic metadata (e.g., source/destination IPs, ports) but do not provide a static inventory of VM instances, their machine types, or whether they have public IP addresses; they are used for network monitoring and security analysis, not resource discovery.

236
Multi-Selectmedium

A company wants to protect its web application deployed on Google Cloud from OWASP Top 10 attacks and also block traffic from specific geographic regions. Which TWO services should they use together? (Choose 2)

Select 2 answers
A.Cloud Load Balancing
B.Cloud CDN
C.Cloud Armor
D.Cloud IDS
E.reCAPTCHA Enterprise
AnswersB, C

Cloud CDN serves as a caching layer that shields backend origins by absorbing requests and can deliver cached content globally with low latency. When integrated with Cloud Armor, CDN policies evaluate incoming requests against WAF rules before they reach the origin, making it a valid component in a protection strategy; however, the WAF itself is Cloud Armor, not CDN.

Why this answer

Cloud Armor provides WAF rules for OWASP Top 10 and geo-blocking. Cloud CDN caches content and can be used with Cloud Armor for edge protection.

237
MCQhard

An engineer is designing a resource hierarchy for a multinational company with multiple business units. The company uses Google Workspace. What is the first step in creating the resource hierarchy?

A.Link the Google Workspace account to the organization node
B.Create a project for each business unit
C.Create a folder for each business unit
D.Enable the Cloud Resource Manager API
AnswerA

The organization node is the root of the Google Cloud resource hierarchy and is automatically provisioned when you set up Google Workspace or Cloud Identity — it is never created manually. Simply having the Workspace/Identity tenant is not enough; you must explicitly link it to the organization node in the Google Cloud console. This action establishes the trust relationship that enables organization-level IAM policies, resource constraints, and audit logging across all current and future projects. Until this link is made, you do not have an operational root node to attach folders or projects to, so this is the correct first step.

Why this answer

The first step in creating a Google Cloud resource hierarchy for a company using Google Workspace is to link the Google Workspace (or Cloud Identity) account to the organization node, which establishes the Organization resource at the root of the hierarchy. Without this link, there is no organization node to contain folders and projects, so all subsequent hierarchy steps depend on it. Once the organization node exists, folders and projects can be created beneath it.

Exam trap

The trap is jumping to folders or projects as the first step; candidates must remember that the organization node must be linked to Google Workspace/Cloud Identity before any folders or projects can be created.

How to eliminate wrong answers

Option B is wrong because creating a project for each business unit is a later step that requires the organization node and, ideally, folders to already exist for proper governance. Option C is wrong because creating folders for each business unit also presupposes the organization node exists; folders are children of the organization. Option D is wrong because enabling the Cloud Resource Manager API is a supporting action but not the first step in establishing the hierarchy; the organization node must be linked first, and the API is typically enabled as part of project setup.

238
MCQmedium

A company wants to reserve Compute Engine resources for a 3-year term to get a significant discount. Which discount type should they use?

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

Committed Use Discounts (CUDs) allow you to commit to a specific amount of vCPUs, memory, or spend for a 1- or 3-year term, in exchange for a substantially reduced price. By purchasing a commitment, you reserve capacity and pay a predictable lower rate for the entire term, making it the appropriate mechanism to reserve Compute Engine resources for a 3-year period.

Why this answer

Committed use discounts (CUDs) in Google Cloud allow you to reserve Compute Engine resources for a 1-year or 3-year term in exchange for significant discounts (up to 57% for 3-year). This is the correct discount type for a 3-year commitment. CUDs are ideal for predictable workloads.

Exam trap

The trap is confusing sustained use discounts with committed use discounts; sustained use is automatic and short-term, while committed use requires a 1- or 3-year commitment for larger discounts.

How to eliminate wrong answers

Option A is wrong because preemptible VMs are short-lived, can be terminated at any time, and offer discounts but are not for reserved capacity; they are not suitable for a 3-year term. Option B is wrong because sustained use discounts are automatic discounts for running instances for a significant portion of the month, but they do not require a commitment and are not for a 3-year term. Option C is wrong because sole-tenant nodes are physical servers dedicated to your use, but they do not inherently provide a discount for a 3-year term; you can apply CUDs to sole-tenant nodes, but the discount type itself is CUD.

239
MCQmedium

A regional grocery chain wants to modernize how it responds to local demand. Store managers currently email weekly spreadsheets to headquarters, where analysts compile reports three days later. The chain's leadership asks a cloud consultant how moving this workflow to Google Cloud changes the way the business can operate, rather than just where the servers run. Which statement best describes the business transformation the consultant should emphasize?

A.The chain reduces its total cost of ownership because it no longer purchases servers, and cost reduction is the primary meaning of digital transformation in this context.
B.The chain eliminates the need for analysts entirely, because cloud analytics platforms automatically generate every business decision without human judgment.
C.The chain gains the ability to act on near-real-time store data, shifting decisions closer to the point of sale and enabling faster, localized responses.
D.The chain must migrate the spreadsheet process unchanged to a Compute Engine virtual machine so that headquarters retains the same three-day reporting cadence with better hardware.
AnswerC

This is the transformation being asked about: streaming point-of-sale and inventory signals into Google Cloud lets store-level staff and automated systems react within hours or minutes instead of a three-day reporting cycle. The change is organizational and operational, not merely infrastructural, because decision authority and response speed both shift toward the stores where demand signals originate.

Why this answer

The meaningful transformation comes from changing the speed and location of decisions. When store-level sales and inventory signals flow into Google Cloud continuously, the chain can replenish stock, adjust promotions, and staff stores based on current conditions instead of last week's spreadsheet. That reorients the organization toward the customer and the point of sale, which is a business-model shift rather than a simple hosting change.

Exam trap

The trap here is assuming digital transformation means merely relocating existing workloads or cutting infrastructure costs, rather than changing how quickly and where the business makes decisions.

240
MCQhard

A CISO is designing an identity strategy for Google Cloud that follows Zero Trust principles. She proposes that no long-lived credentials (API keys, service account keys) should be used for any automated workloads. What Google Cloud mechanism replaces service account keys for authenticating workloads running on Google Cloud infrastructure?

A.Using long-lived API keys stored in Secret Manager instead of environment variables — the keys are the same but stored more securely
B.Attaching a service account to the Compute Engine VM or GKE workload, allowing the workload to obtain short-lived access tokens from the metadata server automatically — no key files required
C.Rotating service account keys every 24 hours to minimize the exposure window
D.Using OAuth 2.0 user accounts instead of service accounts for all automated workloads
AnswerB

This is the correct Zero Trust-aligned approach. A service account is attached to the VM or GKE pod. The workload calls the metadata server (169.254.169.254) to get a short-lived (1-hour) access token automatically. No key file is created, stored, or managed — eliminating the key compromise risk entirely. Workload Identity in GKE extends this to Kubernetes service accounts.

Why this answer

Google Cloud's default service account attached to Compute Engine VMs or GKE nodes uses the metadata server to automatically obtain short-lived OAuth 2.0 access tokens (typically valid for 1 hour). This eliminates the need for any long-lived key files, aligning with Zero Trust principles by reducing credential exposure and enabling automatic rotation.

Exam trap

The GCDL exam often tests the misconception that rotating keys or storing them securely (e.g., in Secret Manager) is sufficient for Zero Trust, when the core principle is to eliminate long-lived credentials entirely by using metadata-server-based token generation.

How to eliminate wrong answers

Option A is wrong because it still relies on long-lived API keys (even if stored in Secret Manager), which violates the Zero Trust requirement of no long-lived credentials. Option C is wrong because rotating service account keys every 24 hours still uses long-lived key files that can be exfiltrated and reused within that window, failing to eliminate the underlying risk. Option D is wrong because OAuth 2.0 user accounts are designed for interactive human users, not automated workloads, and would require storing user credentials or refresh tokens, which introduces security and manageability issues.

241
MCQmedium

A company wants to build an application that can understand and respond to natural language queries from customers (e.g., a customer support chatbot). Which Google Cloud capability should they use?

A.Cloud Vision API
B.Dialogflow CX or Vertex AI Conversation
C.BigQuery ML
D.Cloud Translation API
AnswerB

Dialogflow CX is Google Cloud's advanced conversational AI platform for building virtual agents and chatbots. It uses natural language understanding (NLU) to detect user intent, extract entities, and manage multi-turn conversation flows with explicit state machines. It also offers integrations across channels like Google Assistant, web, and telephony, and is the core technology behind Vertex AI Conversation for enterprise-scale conversational apps.

Why this answer

Dialogflow CX and Vertex AI Conversation are Google Cloud's purpose-built services for building conversational interfaces, including chatbots that understand natural language. They leverage natural language understanding (NLU) models to parse user intents and entities, enabling the application to respond appropriately to customer queries. This makes them the correct choice for a customer support chatbot.

Exam trap

The GCDL exam often tests the distinction between general-purpose ML services (like Vision API or Translation API) and specialized conversational AI services (like Dialogflow), leading candidates to pick a service that sounds related but is actually for a different modality.

How to eliminate wrong answers

Option A is wrong because Cloud Vision API is designed for image and video analysis (e.g., object detection, OCR), not for processing natural language text or speech. Option C is wrong because BigQuery ML is used for running machine learning models on structured data stored in BigQuery, not for building conversational agents or understanding natural language queries. Option D is wrong because Cloud Translation API only translates text between languages; it does not provide intent recognition, entity extraction, or dialogue management needed for a chatbot.

242
MCQhard

An architect proposes using a 'private cloud' deployment model for a company that wants cloud-like capabilities but is prohibited from using public cloud due to data residency regulations. What is a key advantage of private cloud compared to public cloud, and what is a significant trade-off?

A.Advantage: private cloud is always cheaper than public cloud. Trade-off: private cloud provides less storage capacity
B.Advantage: full control over data residency, security posture, and compliance configuration. Trade-off: organization bears full cost of infrastructure, loses public cloud's scale economics, and has limited elasticity compared to public cloud's vast resource pools
C.Advantage: private cloud provides automatic scaling to unlimited capacity. Trade-off: private cloud requires purchasing hardware every time capacity is needed
D.Advantage: private cloud services are managed by the cloud provider, reducing operational burden. Trade-off: customers cannot customize private cloud configurations
AnswerB

This captures both sides accurately. Private cloud satisfies regulatory requirements for data control and residency. But the organization must fund all infrastructure, skilled operations staff, and hardware refresh — at costs that rarely match public cloud's shared-scale economics. Elasticity is limited to what the organization has built, not global resource pools.

Why this answer

A private cloud gives the organization exclusive control over data residency, security, and compliance, which is essential when regulations prohibit public cloud use. The trade-off is that the organization must bear the full capital and operational costs of the infrastructure, losing the scale economics and near-infinite elasticity of public cloud providers like AWS, Azure, or GCP.

Exam trap

The GCDL exam often tests the misconception that private cloud is always cheaper or that it provides unlimited elasticity, when in fact the key differentiator is control over compliance and data residency, with the trade-off being higher cost and limited scalability.

How to eliminate wrong answers

Option A is wrong because private cloud is not always cheaper than public cloud; in fact, it often has higher upfront capital expenditure and ongoing operational costs, and storage capacity is not inherently less—private clouds can be scaled with additional hardware. Option C is wrong because private clouds do not provide automatic scaling to unlimited capacity; their elasticity is bounded by the organization's own hardware resources, and scaling requires procurement and deployment of additional physical infrastructure, not just purchasing hardware every time. Option D is wrong because private cloud services are typically managed by the organization's own IT team, not the cloud provider, and customers have full customization control over configurations, which is a key advantage, not a trade-off.

243
MCQmedium

A developer needs to store and manage API keys and certificates in a secure, centralized manner, with automatic rotation and integration with Cloud Functions. Which Google Cloud service should they use?

A.Cloud Storage
B.Cloud KMS
C.Secret Manager
D.Cloud Asset Inventory
AnswerC

Secret Manager is the correct choice because it is a dedicated, purpose-built service for storing and managing sensitive data such as API keys, passwords, and certificates as immutable secret versions. It provides fine-grained IAM roles, automatic log-based auditing, built-in rotation with etag validation, and integration with App Engine, Cloud Functions, and Kubernetes workloads. You can upload certificate data directly as a secret payload and access it securely via the Secret Manager API or client libraries, giving the developer exactly the managed workflow they need.

Why this answer

Secret Manager is Google Cloud's dedicated service for storing, managing, and auditing secrets such as API keys, passwords, and certificates. It supports automatic rotation via rotation schedules and Pub/Sub notifications, and integrates natively with Cloud Functions through client libraries and IAM. This directly matches the requirement for secure centralized storage with rotation and Cloud Functions integration.

Exam trap

The trap is confusing Secret Manager with Cloud KMS — candidates pick KMS because it sounds 'more secure,' but KMS manages encryption keys, not application secrets like API keys and certificates.

How to eliminate wrong answers

Option A is wrong because Cloud Storage is object storage and does not provide secret-specific features like versioning, rotation, or fine-grained access auditing for secrets. Option B is wrong because Cloud KMS manages encryption keys, not application secrets like API keys and certificates — it is for cryptographic key operations, not secret storage. Option D is wrong because Cloud Asset Inventory is a metadata inventory service for GCP resources; it does not store or rotate secrets.

244
Multi-Selecteasy

A retail company wants to reduce latency for customers in Europe and Asia by hosting their application closer to users. They also need high availability in case of a regional outage. Which TWO actions should they take?

Select 2 answers
A.Deploy the application in multiple regions
B.Use a single region with multiple zones
C.Enable Cloud CDN on the application
D.Configure a global load balancer
E.Increase machine size in a single zone
AnswersA, D

Running the application in multiple GCP regions, such as europe-west1 and europe-west4, places compute capacity near EU users, cutting round-trip time. It also enables active-active or active-passive failover, so if one region fails traffic can be served from another, improving availability.

Why this answer

Option A (Deploy the application in multiple regions) is correct because placing application instances in multiple geographic regions is the only way to actually host the application closer to users in both Europe and Asia, directly reducing latency for each user population. Option D (Configure a global load balancer) is correct because a global load balancer (such as a Google Cloud global external HTTP(S) load balancer with a single anycast IP) routes each user to the nearest healthy regional backend and automatically fails over to another region during a regional outage, satisfying the high-availability requirement. Option B (single region with multiple zones) does not belong because multiple zones protect only against zonal failures within one region, not a full regional outage, and it cannot bring the application closer to both Europe and Asia.

Option C (Cloud CDN) does not belong because caching static content reduces latency for cacheable assets but does not by itself provide multi-region application hosting or regional failover for dynamic workloads. Option E (increase machine size in a single zone) does not belong because vertical scaling in one zone neither reduces geographic latency nor provides resilience against a regional outage.

Exam trap

GCDL often tests the misconception that a single region with multiple zones or a CDN alone can provide both low latency for global users and high availability against regional outages, when in fact multiple regions and a global load balancer are required.

245
MCQmedium

A healthcare company needs to run a large batch processing job that analyzes patient records using Apache Spark, transforming data from Cloud Storage and writing results to BigQuery. The job runs once daily and requires a large cluster that should exist only during the job. Which Google Cloud product best handles this ephemeral large-batch Spark workload?

A.Cloud Dataflow, for running the Apache Spark code as a streaming pipeline
B.Cloud Dataproc, which runs managed Apache Spark clusters that can be created for the job and deleted on completion — paying only during the processing window
C.Compute Engine VMs, by manually installing Apache Spark on a cluster of VMs each day before the job
D.BigQuery, by running the Spark transformation directly within BigQuery's execution engine
AnswerB

Dataproc is the correct choice for managed Apache Spark. The ephemeral cluster pattern (create cluster → run Spark job → delete cluster) is the recommended cost-optimization approach for batch jobs. The cluster exists only while needed, minimizing cost.

Why this answer

Cloud Dataproc is the correct choice because it provides managed Apache Spark clusters that can be created on demand for the batch job and automatically deleted upon completion, ensuring you only pay for the processing time. This ephemeral cluster model perfectly matches the requirement of a large cluster that exists only during the daily job, without manual infrastructure management.

Exam trap

The GCDL exam often tests the distinction between managed services that run native Spark (Dataproc) versus those that use different execution engines (Dataflow, BigQuery), leading candidates to confuse Dataflow's ability to run batch pipelines with running Spark code directly.

How to eliminate wrong answers

Option A is wrong because Cloud Dataflow is designed for Apache Beam pipelines, not native Apache Spark code; it cannot directly run Spark transformations and is optimized for streaming, not ephemeral batch clusters. Option C is wrong because manually installing Apache Spark on Compute Engine VMs each day is operationally complex, error-prone, and contradicts the managed, ephemeral requirement; it also incurs costs for idle VMs if not carefully managed. Option D is wrong because BigQuery does not run Apache Spark transformations; it uses SQL-based queries and its own execution engine, not Spark, so it cannot execute Spark code directly.

246
MCQeasy

A startup's web application is being targeted by a denial-of-service attack that is flooding its servers with millions of fake requests per second. Which Google Cloud product provides automatic DDoS protection for the application?

A.Cloud Storage, by distributing the static content of the application across multiple storage regions
B.Cloud Armor, which provides DDoS protection and WAF capabilities to detect and mitigate volumetric attacks against the application
C.Cloud IAM, by revoking permissions for the IP addresses generating attack traffic
D.Cloud Monitoring, by alerting the team so they can manually scale up servers to absorb the attack
AnswerB

Cloud Armor is Google Cloud's DDoS mitigation and WAF service. It integrates with Google's global load balancers to absorb volumetric attacks at the edge before they reach backend servers. Its Adaptive Protection feature automatically detects and responds to DDoS patterns in real time.

Why this answer

Cloud Armor is the correct answer because it is Google Cloud's managed DDoS protection and Web Application Firewall (WAF) service. It uses Google's global infrastructure to absorb and filter volumetric attacks (e.g., SYN floods, UDP reflection attacks) at the edge, before traffic reaches the application. It integrates with Cloud Load Balancing to inspect and drop malicious requests based on pre-configured or adaptive rules.

Exam trap

The GCDL exam often tests the misconception that any 'cloud' service (like Cloud Storage or Cloud Monitoring) can handle DDoS by distributing or alerting, when in fact only a dedicated WAF/edge security service like Cloud Armor provides automatic, inline mitigation at the network perimeter.

How to eliminate wrong answers

Option A is wrong because Cloud Storage is an object storage service for static content, not a DDoS protection mechanism; distributing content across regions does not mitigate the flood of fake requests hitting the application servers. Option C is wrong because Cloud IAM manages identity and access permissions for users and service accounts, not network-layer traffic filtering; revoking IP permissions is not designed for real-time DDoS mitigation and cannot handle millions of spoofed source IPs. Option D is wrong because Cloud Monitoring provides observability and alerting, not automated mitigation; manually scaling servers is ineffective against a massive volumetric attack and contradicts the need for automatic protection.

247
Drag & Dropmedium

Drag and drop the steps to migrate an on-premises MySQL database to Cloud SQL using Database Migration Service into the correct order.

Drag or tap steps into the slots.

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

Why this order

The migration process requires setting up the destination, connecting to the source, creating and starting the migration, then promoting.

248
MCQmedium

A security team is reviewing a developer's request to be granted the 'Owner' role on a production Google Cloud project 'just in case they need broad access.' The security team rejects this and instead grants a more specific role. Which security principle does the security team's decision enforce?

A.Defense in depth, by ensuring multiple security layers protect the project
B.Separation of duties, by ensuring no single person has too many responsibilities
C.Principle of least privilege, by granting only the minimum permissions necessary for the developer's specific role and tasks
D.Zero trust networking, by treating the developer's device as untrusted
AnswerC

The Principle of Least Privilege is the core concept here. Owner role is far broader than necessary. By granting a specific role matching actual requirements, the security team limits the blast radius if the developer's account is compromised and reduces the risk of accidental destructive actions.

Why this answer

The security team's decision to reject the overly broad 'Owner' role and grant a more specific role directly enforces the principle of least privilege. This principle dictates that users should be granted only the minimum permissions necessary to perform their job functions, reducing the risk of accidental or malicious misuse of elevated access. In Google Cloud, this is implemented by assigning predefined or custom IAM roles with precisely scoped permissions rather than broad roles like Owner.

Exam trap

Google Cloud often tests the principle of least privilege by presenting a scenario where a broad role is requested 'just in case,' and candidates may confuse it with separation of duties or defense in depth, but the key is that the decision limits permissions to the minimum needed for the task.

How to eliminate wrong answers

Option A is wrong because defense in depth involves multiple layers of security controls (e.g., firewalls, encryption, monitoring) across the infrastructure, not the granularity of a single IAM role assignment. Option B is wrong because separation of duties ensures that critical tasks are divided among multiple individuals to prevent fraud or error, whereas this scenario is about limiting permissions for a single developer, not splitting responsibilities. Option D is wrong because zero trust networking focuses on verifying every request as if it originates from an untrusted network, often through device authentication and network segmentation, not on the scope of IAM roles granted to a user.

249
MCQeasy

A company needs to perform interactive SQL analytics on petabytes of data without managing any infrastructure. They need to query data stored in Cloud Storage and want the fastest query performance. Which Google Cloud service should they use?

A.BigQuery
B.Looker
C.Dataflow
D.Cloud SQL
AnswerA

BigQuery is a fully managed, serverless data warehouse that separates storage from compute, enabling interactive SQL queries over petabytes of data via a high-speed columnar execution engine. Its architecture, using the Dremel query engine, distributes queries across thousands of nodes, delivering sub-second to seconds response times on massive datasets without requiring infrastructure provisioning. This makes it the ideal choice for running ad-hoc, interactive analytics on petabyte-scale data.

Why this answer

BigQuery is a serverless, highly scalable data warehouse that supports SQL queries on data stored in Cloud Storage (external tables) or natively. It provides fast performance on petabyte-scale data without infrastructure management. Dataflow is for ETL, not ad-hoc analytics; Cloud SQL is for OLTP; Looker is a BI layer on top of a data warehouse.

250
MCQmedium

A startup wants to deploy a containerized web application without managing servers or clusters. They need automatic scaling, a managed runtime, and pay only for resources used. Which Google Cloud service should they choose?

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

Cloud Run runs stateless containers on a fully managed serverless platform, automatically scaling from zero based on incoming requests and charging only for CPU and memory used during request processing. Since you simply provide a container image that implements an HTTP server, a containerized web app can be deployed with zero infrastructure provisioning, making it the lowest-friction, pay-per-use option for a startup.

Why this answer

Cloud Run is a fully managed serverless platform for containers that automatically scales and charges only for resources used. It fits the requirements perfectly.

251
MCQmedium

A company wants to use a pre-trained model to extract text from scanned invoices. They need a fully managed API that can be called via REST. Which Google Cloud service should they use?

A.Document AI
B.Vision AI
C.Natural Language AI
D.Vertex AI
AnswerA

Document AI is the correct choice because it provides purpose-built pre-trained processors such as the Invoice Parser, which are specifically designed to extract structured fields like vendor name, invoice number, due date, and line items from scanned or digital documents. These processors combine OCR with a domain-aware NLP model, so they understand document layouts and key-value pair conventions unique to invoices without any custom training.

Why this answer

Document AI is a fully managed service for document processing, including OCR and extraction from invoices. Vision AI is for general image analysis. Natural Language AI handles text sentiment/entities.

Vertex AI is a platform for custom models, not pre-built API for invoices.

252
MCQeasy

A small e-commerce company runs its website on Compute Engine instances behind a Global External HTTP(S) Load Balancer. They are concerned about application-layer DDoS attacks, such as SQL injection and cross-site scripting (XSS), that could compromise customer data and degrade performance. The company wants a managed solution that provides both DDoS protection and web application firewall (WAF) capabilities without requiring constant manual updates. They have a limited budget and prefer a solution that is easy to configure and does not require extensive infrastructure changes. What should they implement?

A.Enable Cloud Armor with preconfigured WAF rules and configure it on the load balancer.
B.Configure VPC firewall rules to block suspicious IP addresses.
C.Set up Cloud NAT to route all traffic through a single IP address.
D.Use Cloud VPN to connect users to the load balancer.
AnswerA

Cloud Armor is a Google Cloud managed security service that provides DDoS protection and a web application firewall (WAF). By enabling preconfigured WAF rules and attaching Cloud Armor policies to the external load balancer, the service inspects incoming HTTP(S) traffic at the edge, blocking common application-layer attacks such as SQL injection and cross-site scripting (XSS) before they reach backend instances. This is exactly what the e-commerce site needs for L7 protection and volumetric attack mitigation.

Why this answer

Cloud Armor is a managed, Google Cloud-native service that provides both DDoS protection and a web application firewall (WAF) with preconfigured rules for SQL injection and XSS. It integrates directly with the Global External HTTP(S) Load Balancer, requires no manual updates (rules are maintained by Google), and is cost-effective because it charges based on policy usage rather than infrastructure overhead. This meets the company's need for easy configuration, minimal infrastructure changes, and managed security.

Exam trap

The trap here is that candidates confuse network-layer security tools (VPC firewall rules, Cloud NAT, Cloud VPN) with application-layer security, assuming any Google Cloud networking feature can block web attacks, but only Cloud Armor provides managed WAF and DDoS protection at the application layer.

How to eliminate wrong answers

Option B is wrong because VPC firewall rules operate at the network layer (Layer 3/4) and cannot inspect application-layer payloads like SQL injection or XSS; they only block IP addresses, not malicious content. Option C is wrong because Cloud NAT is used for outbound internet access from private instances, not for inbound traffic protection or application-layer filtering; it does not provide DDoS or WAF capabilities. Option D is wrong because Cloud VPN creates an encrypted tunnel for site-to-site connectivity, not for protecting public-facing web traffic from application-layer attacks; it does not inspect HTTP/HTTPS payloads or mitigate DDoS.

253
MCQmedium

A retail company runs a customer-facing web application on Compute Engine instances behind an external Application Load Balancer. The security team wants to protect the application from common web attacks such as SQL injection and cross-site scripting, and also wants to restrict access to only known good IP addresses. They need a managed solution that integrates with the load balancer and requires minimal operational overhead. Which Google Cloud service should they use?

A.Cloud Identity-Aware Proxy (IAP)
B.Cloud VPN
C.VPC Service Controls
D.Cloud Armor
AnswerD

Cloud Armor is a managed web application firewall (WAF) and DDoS protection service that integrates directly with external Application Load Balancers. It provides preconfigured WAF rules for OWASP Top 10 threats like SQL injection and XSS, and supports IP allowlists/denylists via security policies. This meets the requirement for a managed solution with minimal overhead.

Why this answer

Cloud Armor is the correct choice because it is a managed WAF and DDoS protection service that integrates with external Application Load Balancers. It provides preconfigured rules to block common web attacks like SQL injection and XSS, and allows IP allowlisting/denylisting through security policies. This aligns with the need for a low-overhead, integrated security solution.

Exam trap

The trap here is confusing identity-based access control (IAP) with network-level web application protection, assuming that any security service can block web attacks.

254
Multi-Selectmedium

Which TWO actions are the customer's responsibility under the GCP shared responsibility model?

Select 2 answers
A.Managing user accounts and authentication
B.Encryption of data at rest by default
C.Configuring IAM policies to control access
D.Network infrastructure maintenance
E.Physical security of data centers
AnswersA, C

Managing user accounts and authentication sits with the customer because Google Cloud's shared responsibility model assigns identity management to the tenant, not the provider. Google secures the underlying infrastructure, but configuring users, credentials and access controls remains the customer's duty, satisfying the stem's requirement for a customer-owned action.

Why this answer

Under the GCP shared responsibility model, the customer is responsible for managing their own user accounts and authentication (Option A), since identity lifecycle, credential management, and authentication configuration for their users fall on the customer side of the line. The customer is also responsible for configuring IAM policies to control access (Option C), because defining who can do what on which resources via roles and bindings is a customer-controlled security task. By contrast, encryption of data at rest by default (Option B) is provided by Google as part of the platform's baseline security, network infrastructure maintenance (Option D) is handled by Google, and physical security of data centers (Option E) is entirely Google's responsibility.

255
MCQeasy

A startup wants to launch a new product globally within 2 weeks. If it relied on traditional on-premises infrastructure, provisioning servers would take 6–8 weeks. By using the public cloud, the startup can launch on time. Which cloud benefit does this scenario illustrate?

A.Economies of scale — the cloud provider has more purchasing power than the startup.
B.Speed and agility — cloud resources are provisioned in minutes, enabling faster time-to-market.
C.Geographic reach — the cloud provider has data centers in more regions.
D.Reliability — cloud providers have better uptime SLAs than on-premises servers.
AnswerB

Speed and agility are direct results of cloud's on-demand self-service model: compute, storage, and networking resources are provisioned through APIs and templates in minutes, versus six to eight weeks for ordering, shipping, racking, and configuring physical hardware. This capability collapses the startup's lead time, moving it from idea to globally deployed application in days. It also enables iterative DevOps workflows, because resources can be created, scaled, and destroyed on the fly to match changing demand.

Why this answer

The scenario directly highlights how public cloud resources can be provisioned in minutes via APIs and automation, compared to the 6–8 weeks required for on-premises hardware procurement and setup. This speed and agility enable the startup to meet the 2-week launch deadline, demonstrating a core cloud benefit of rapid time-to-market.

Exam trap

The trap here is that candidates may confuse 'speed and agility' with 'geographic reach' because both involve rapid deployment, but the scenario explicitly contrasts provisioning time (weeks vs. minutes) rather than data center locations.

How to eliminate wrong answers

Option A is wrong because economies of scale refer to cost advantages from bulk purchasing, not provisioning speed; the scenario does not mention cost savings or pricing. Option C is wrong because geographic reach relates to deploying resources in multiple regions for low-latency access, but the scenario focuses on a single global launch timeline, not multi-region distribution. Option D is wrong because reliability and uptime SLAs address service availability, not the speed of resource provisioning; the scenario is about meeting a launch deadline, not ensuring continuous operation.

256
MCQeasy

A company runs a web application on Compute Engine. During seasonal sales, traffic spikes unpredictably. The operations team wants to ensure the application scales automatically without manual intervention while minimizing cost. Which solution should they implement?

A.Create a managed instance group with a fixed number of instances.
B.Use an unmanaged instance group and manually add instances.
C.Use a managed instance group with autoscaling based on CPU utilization.
D.Use a single large VM with vertical scaling.
AnswerC

A managed instance group with autoscaling based on CPU utilization automatically adjusts the number of VM instances to match current demand. The autoscaler adds instances when average CPU utilization exceeds a target threshold, and removes instances when utilization drops, providing elastic horizontal scaling. This yields both high availability under spikes and cost efficiency during low usage, all without manual intervention.

Why this answer

A managed instance group (MIG) with autoscaling based on CPU utilization is the correct solution because it automatically adjusts the number of VM instances in response to real-time traffic spikes, ensuring the application scales out during high demand and scales in during low demand. This eliminates manual intervention and optimizes cost by only running the necessary number of instances based on a target CPU utilization threshold (e.g., 60-80%).

Exam trap

Google Cloud often tests the distinction between horizontal and vertical scaling, where candidates mistakenly choose vertical scaling (Option D) because they think a larger VM is simpler, but they overlook the downtime, hard limits, and lack of elasticity required for unpredictable traffic spikes.

How to eliminate wrong answers

Option A is wrong because a managed instance group with a fixed number of instances cannot handle unpredictable traffic spikes; it would either be over-provisioned (wasting cost) or under-provisioned (causing performance degradation). Option B is wrong because an unmanaged instance group requires manual addition and removal of instances, which contradicts the requirement for automatic scaling without manual intervention. Option D is wrong because vertical scaling (resizing a single VM) has a hard limit on machine size, causes downtime during resizing, and does not provide the elasticity needed for unpredictable spikes, leading to either overpaying for idle capacity or failing to handle load.

257
MCQeasy

Google Cloud encrypts all customer data at rest by default without any configuration required. A customer asks: 'Do we need to do anything special to encrypt our data stored in Cloud Storage?' What is the correct answer?

A.Yes, customers must enable encryption in the Cloud Storage bucket settings for each bucket.
B.No, Google Cloud encrypts all data at rest automatically using AES-256 — no configuration is needed.
C.Only data in premium storage tiers is encrypted; Standard storage requires manual encryption.
D.Customers must purchase the Security Command Center Premium tier to enable data encryption.
AnswerB

Google Cloud automatically encrypts all data at rest using AES-256, and this is enabled by default for every service, including Cloud Storage. No configuration, bucket settings, or key provision steps are needed to activate encryption. If a customer wants more control, they can optionally use Cloud KMS with CMEK or CSEK, but that enhances key management rather than providing encryption, which already exists.

Why this answer

Google Cloud automatically encrypts all customer data at rest using AES-256 encryption, with no configuration required. This default encryption applies to all Cloud Storage buckets, regardless of storage class or region, and the encryption keys are managed by Google Cloud unless the customer chooses to use Customer-Managed Encryption Keys (CMEK) or Customer-Supplied Encryption Keys (CSEK).

Exam trap

The trap here is that candidates may assume encryption requires explicit action (like enabling a setting or purchasing an add-on) because many cloud providers or on-premises systems require manual configuration, but Google Cloud encrypts all data at rest by default with no customer effort.

How to eliminate wrong answers

Option A is wrong because it implies that encryption must be manually enabled per bucket, but Google Cloud encrypts all data at rest by default without any bucket-level configuration. Option C is wrong because it falsely claims that only premium storage tiers are encrypted; in reality, all storage tiers—including Standard, Nearline, Coldline, and Archive—are encrypted at rest by default. Option D is wrong because it suggests that encryption requires purchasing Security Command Center Premium, which is a security and threat detection service, not a prerequisite for data encryption.

258
Multi-Selecteasy

A company is adopting cloud to improve operational efficiency. Which TWO benefits are directly associated with cloud's resource pooling characteristic?

Select 2 answers
A.Cost optimization
B.Dedicated hardware
C.Custom hardware
D.Multi-tenancy
E.Increased downtime
AnswersA, D

Cloud providers aggregate demand from many customers to purchase and operate hardware at a massive scale, driving down unit costs that are passed on as lower pay-as-you-go prices. This converts capital expenditure into operating expense and minimizes idle capacity, directly improving operational efficiency through resource sharing.

Why this answer

Resource pooling allows the cloud provider to dynamically allocate and reallocate physical and virtual resources among multiple customers based on demand, which drives cost optimization through economies of scale and higher utilization rates. Option D is correct because multi-tenancy is a direct outcome of resource pooling, where a single physical infrastructure serves multiple tenants securely, maximizing resource usage and reducing per-tenant costs.

Exam trap

Google Cloud often tests the misconception that resource pooling implies dedicated or custom hardware for performance, when in fact it relies on shared, standardized infrastructure to achieve cost and efficiency gains.

259
MCQeasy

A company wants to reduce its carbon footprint and has committed to using 100% renewable energy for its cloud infrastructure. Which Google Cloud value proposition directly supports this goal?

A.Open cloud (Kubernetes/TensorFlow)
B.Security (BeyondCorp/encryption)
C.Sustainability (renewable energy match)
D.Trust and compliance (certifications)
AnswerC

Sustainability (renewable energy match) is correct because Google Cloud commits to matching 100% of its global electricity consumption with renewable energy purchases, using power purchase agreements (PPAs) and carbon-free energy contracts. This means every kilowatt-hour used by Google Cloud services is offset by wind or solar generation, directly reducing the carbon footprint of workloads. Additionally, Google is progressing toward 24/7 carbon-free energy on all grids by 2030, which further strengthens the environmental case for choosing Google Cloud.

Why this answer

Google Cloud matches 100% of its global energy consumption with renewable energy and aims for carbon-free energy by 2030. Security, open source, and compliance are unrelated to renewable energy.

260
MCQhard

A DevOps engineer notices that a Cloud Function is timing out after 9 minutes. The function performs a long-running data transformation. They need to increase the timeout. What is the maximum timeout they can set for a Cloud Function (1st gen)?

A.15 minutes
B.9 minutes
C.30 minutes
D.60 minutes
AnswerB

9 minutes (540 seconds) is the correct maximum timeout for 1st gen Cloud Functions. This is a platform-enforced hard limit; you can configure the timeout field to any value between 1 and 540 seconds, but values above that are not accepted.

Why this answer

For Google Cloud Functions (1st gen), the maximum configurable timeout is 9 minutes (540 seconds). The question states the function is already timing out at 9 minutes, which is the ceiling — the engineer cannot increase it further in 1st gen. To exceed 9 minutes, they must migrate to Cloud Functions 2nd gen (which supports up to 60 minutes) or use Cloud Run.

Exam trap

GCDL often tests the exact numeric limits of Cloud Functions 1st gen vs 2nd gen, and candidates who remember '60 minutes' from Cloud Run or 2nd gen incorrectly pick it for a 1st gen question.

How to eliminate wrong answers

Option A is wrong because 15 minutes is not a valid 1st gen Cloud Functions timeout — 15 minutes is the maximum for Cloud Run jobs and some other compute services, but not 1st gen functions. Option C is wrong because 30 minutes is not a 1st gen limit; it is closer to Cloud Run's request timeout ceiling (60 minutes) and is a distractor. Option D is wrong because 60 minutes is the maximum timeout for Cloud Functions 2nd gen (and Cloud Run), not 1st gen — choosing this reflects confusion between generations.

261
MCQhard

A retail company experiences sudden traffic spikes during flash sales. Their on-premises infrastructure often runs out of capacity, causing downtime. They are migrating to Google Cloud and need to automatically handle traffic spikes without manual intervention. Which approach should they take?

A.Manually add VMs when traffic increases
B.Use a GPU-accelerated VM for compute
C.Create a managed instance group with autoscaling
D.Use a single large VM and rely on Cloud Load Balancing
AnswerC

A managed instance group with an autoscaling policy automatically adjusts the number of VM instances based on load signals such as CPU utilization, requests per second, or Cloud Monitoring custom metrics. The autoscaling controller provisions additional instances when a spike begins and removes them when demand drops, all without human intervention. Using an instance template and health checks, the MIG also replaces unhealthy VMs, ensuring that the load balancer only routes traffic to ready instances, which makes it ideal for handling sudden traffic spikes.

Why this answer

A managed instance group (MIG) with autoscaling automatically adjusts the number of VM instances based on load, which directly addresses traffic spikes without manual intervention. This is the standard Google Cloud solution for horizontal scaling of compute resources.

Exam trap

GCDL often tests the difference between vertical scaling (single large VM) and horizontal scaling (MIG with autoscaling), and candidates mistakenly choose a single large VM or manual scaling when the requirement is automatic handling of spikes.

How to eliminate wrong answers

Option A is wrong because manually adding VMs requires human intervention and doesn't meet the 'without manual intervention' requirement. Option B is wrong because GPU-accelerated VMs are for compute-intensive workloads like machine learning, not for handling web traffic spikes. Option D is wrong because a single large VM is a vertical scaling approach with a fixed capacity limit and a single point of failure; it cannot automatically handle spikes beyond its size.

262
MCQmedium

A startup is building a mobile app backend that requires a scalable NoSQL database with real-time synchronisation across devices. The database should support offline access and automatic conflict resolution. Which Google Cloud database service meets these requirements?

A.Cloud Spanner
B.Cloud SQL
C.Cloud Bigtable
D.Firestore
AnswerD

Firestore is a mobile-first document database with built-in offline persistence: data is stored locally on the device, enabling reads and writes without connectivity. When the device reconnects, Firestore automatically synchronizes local changes to the server and resolves conflicts using deterministic rules (e.g., last-write-wins by server timestamp). Its SDK offers real-time listeners that push updates to clients, making it ideal for chat, collaboration, and other interactive mobile features. Firestore's security rules and transaction support further streamline mobile backend development.

Why this answer

Firestore is Google Cloud's serverless document NoSQL database with built-in real-time listeners, offline persistence on mobile/web SDKs, and automatic conflict resolution via last-write-wins semantics. These features map directly to the mobile backend requirements of real-time sync, offline access, and conflict handling without custom code. Cloud Spanner, Cloud SQL, and Bigtable do not provide native mobile SDKs with offline sync.

Exam trap

The trap here is conflating 'scalable NoSQL on GCP' with Bigtable or Spanner — candidates who focus only on scale miss that the question's real signal is mobile offline sync and real-time listeners, which only Firestore provides.

How to eliminate wrong answers

Option A is wrong because Cloud Spanner is a globally distributed, strongly consistent relational database — it has no mobile SDK, no offline mode, and no real-time listener API, so it cannot satisfy the sync requirements. Option B is wrong because Cloud SQL is a managed MySQL/PostgreSQL/SQL Server relational service with no built-in real-time sync or offline capability for mobile clients. Option C is wrong because Cloud Bigtable is a wide-column NoSQL store optimised for high-throughput analytics and time-series workloads, not for mobile client synchronisation — it lacks document semantics, listeners, and offline support.

263
MCQhard

A company's application traffic is served by a Google Cloud global HTTP load balancer. They want to understand how request traffic distributes across backend instances in different regions. Which metric best represents this distribution?

A.`compute/instance/cpu/utilization` per instance group.
B.`loadbalancing/https/request_count` filtered by backend service and region.
C.`networking/vm_flow/egress_bytes_count` per VM.
D.`logging/log_entry_count` filtered by region.
AnswerB

loadbalancing/https/request_count is a native proxy-layer metric emitted by the HTTPS load balancer that increments for every client request matched to a particular backend service and region. Filtering by backend service and region lets you directly compare request volumes across global backends and quickly spot imbalances, regional affinity misconfigurations, or unhealthy pools that are not receiving traffic. It is the correct metric for verifying global load balancing behavior and for building request-rate-based alerts, though note that it counts all requests, including 4xx/5xx responses, at the load balancer itself.

Why this answer

The `loadbalancing/https/request_count` metric, when filtered by backend service and region, directly shows the number of requests handled by each regional backend. This allows you to see how traffic is distributed across regions, which is exactly what the question asks for.

Exam trap

The trap here is that candidates confuse metrics that measure backend health or resource usage (like CPU utilization) with metrics that directly measure traffic distribution, leading them to pick a metric that only indirectly relates to request counts.

How to eliminate wrong answers

Option A is wrong because `compute/instance/cpu/utilization` measures CPU usage, not request distribution, and is not specific to load balancer traffic. Option C is wrong because `networking/vm_flow/egress_bytes_count` tracks outbound bytes from VMs, not inbound request counts from the load balancer. Option D is wrong because `logging/log_entry_count` counts log entries, not HTTP requests, and filtering by region would show log volume, not traffic distribution.

264
MCQeasy

A company exports all their Google Cloud logs to Cloud Storage for long-term retention required by their compliance policy (7-year log retention). Which Cloud Logging feature enables routing logs to Cloud Storage?

A.Cloud Logging automatically archives all logs to Cloud Storage with no configuration needed.
B.Configure a Cloud Logging sink (log router) that routes logs to a Cloud Storage bucket.
C.Enable log streaming in Cloud Storage settings to receive logs from Cloud Logging.
D.Use the Cloud Logging API to periodically download logs and upload them to Cloud Storage.
AnswerB

A Cloud Logging sink (also called a log router) is the correct and only managed mechanism for exporting log entries to a destination such as a Cloud Storage bucket. You can define an inclusion filter (e.g., specific resource types or severities) and choose Cloud Storage as the destination, and the Log Router will continuously deliver new log entries into the bucket. To meet a 7-year archival requirement, you must also configure a bucket retention policy or lifecycle rule so that objects are retained for the mandatory period and not deleted by default lifecycle actions. This approach is automated, auditable, and requires no custom code or manual downloads.

Why this answer

Cloud Logging uses sinks (log routers) to export logs to supported destinations, including Cloud Storage. A sink defines a filter and a destination; when configured, it routes matching log entries to the specified Cloud Storage bucket for long-term retention. This is the only native mechanism for continuous, automated log export without custom scripting.

Exam trap

The trap here is that candidates assume Cloud Logging automatically archives logs to Cloud Storage (Option A) because of the 'retention' wording, but in reality, sinks are required for any export, and the default retention is only 30 days.

How to eliminate wrong answers

Option A is wrong because Cloud Logging does not automatically archive logs to Cloud Storage; logs are retained for a default period (30 days for logs in the default bucket) and must be explicitly routed via a sink for long-term storage. Option C is wrong because Cloud Storage does not have a 'log streaming' setting; logs are written as objects, not streamed, and the feature described does not exist. Option D is wrong because using the Cloud Logging API to periodically download and upload logs is not a built-in feature; it would require custom code, introduces latency and potential data loss, and violates the principle of using native routing via sinks.

265
MCQmedium

A startup based in London wants to expand its SaaS application to serve customers in 15 countries across North America, Asia, and Europe — all within 6 months. Without cloud infrastructure, building data centers in each region would take years and cost hundreds of millions. How does cloud specifically enable this global expansion timeline?

A.Cloud providers handle all legal and regulatory compliance in each country, so the startup only focuses on code.
B.Google Cloud's existing global region infrastructure allows the startup to deploy in new markets within hours using the same code and IaC, without building physical data centers.
C.Cloud providers assign local account managers who negotiate office leases and hire local staff on the startup's behalf.
D.The startup doesn't need to worry about data localization because cloud data is globally distributed by default.
AnswerB

Google Cloud maintains data centers in dozens of regions worldwide, so the startup can provision infrastructure in a new market within hours via the console, CLI, or APIs. Because workloads are packaged as code (Terraform, Deployment Manager, etc.), the exact same IaC templates can be applied to a new region with minimal changes (e.g., region variable and maybe quota adjustments). This eliminates the years-long physical data-center build cycle and makes global expansion fast, repeatable, and consistent.

Why this answer

Google Cloud's global infrastructure, consisting of regions and zones interconnected by a high-speed private network, allows the startup to deploy its SaaS application in new markets within hours using Infrastructure as Code (IaC) tools like Terraform or Deployment Manager. This eliminates the need to build and operate physical data centers, which would take years and cost hundreds of millions, directly enabling the 6-month expansion timeline.

Exam trap

Google Cloud often tests the misconception that cloud providers fully automate non-infrastructure business tasks (like legal compliance or local hiring) or that cloud data is automatically globally distributed without user control, leading candidates to overestimate the scope of cloud provider responsibilities.

How to eliminate wrong answers

Option A is wrong because cloud providers do not handle all legal and regulatory compliance; they provide compliance certifications and tools (e.g., Google Cloud's Compliance Reports Manager), but the startup remains responsible for ensuring its application and data handling meet local laws like GDPR or CCPA. Option C is wrong because cloud providers do not assign local account managers to negotiate office leases or hire local staff; these are business operations tasks unrelated to cloud infrastructure services. Option D is wrong because cloud data is not globally distributed by default; data localization requirements often mandate that data remain within specific geographic boundaries, and cloud providers offer features like data residency controls and Customer-Managed Encryption Keys (CMEK) to comply, not automatic global distribution.

266
MCQmedium

An organization wants to use machine learning to analyze customer feedback but has no ML expertise. They need a service that can train custom models with minimal coding. Which Google Cloud service should they use?

A.Cloud Vision API
B.Vertex AI
C.Cloud Natural Language API
D.AutoML Natural Language
AnswerD

AutoML Natural Language is the intended Google Cloud service for training a custom text classification or entity-extraction model through a graphical, low-code workflow. It accepts labeled customer comments and builds a model using transfer learning, allowing the organization to incorporate domain-specific vocabulary and idiomatic expressions without writing code. This directly addresses the need to analyze customer text with a tailored model, making it the correct choice.

Why this answer

AutoML Natural Language is a Google Cloud service that allows users with limited ML expertise to train custom machine learning models for text classification, sentiment analysis, and entity extraction with minimal coding. It provides a user-friendly interface and requires only labeled data, automating the model selection and training process. This directly addresses the organization's need to analyze customer feedback without ML expertise.

Other options either require more expertise (Vertex AI) or are pre-trained APIs not customizable for specific needs (Cloud Vision API, Cloud Natural Language API).

Exam trap

GCDL often tests the distinction between pre-trained APIs (which require no training but are not customizable) and AutoML services (which allow custom model training with minimal coding) versus full ML platforms like Vertex AI (which require expertise).

How to eliminate wrong answers

Option A is wrong because Cloud Vision API is a pre-trained API for image analysis, not text, and cannot be customized for specific text classification tasks. Option B is wrong because Vertex AI is a comprehensive platform that requires significant ML expertise to build, train, and deploy custom models, contrary to the requirement of minimal coding and no ML expertise. Option C is wrong because Cloud Natural Language API is a pre-trained API for general text analysis (sentiment, entities, syntax) but does not allow training custom models on domain-specific data, which is needed for analyzing customer feedback with custom categories.

267
MCQmedium

A data analyst needs to create interactive dashboards and reports from data stored in BigQuery. They want a fully managed business intelligence platform without building custom applications. Which Google Cloud product should they use?

A.Looker Studio
B.Looker (Google Cloud's BI platform)
C.Vertex AI
D.Data Studio
AnswerB

Looker is Google Cloud's enterprise BI platform, purpose-built for interactive dashboards and governed reporting directly on BigQuery. It uses LookML, a semantic modeling language that defines business logic and metrics in a central repository, ensuring consistent, version-controlled definitions across all dashboard consumers. With embedded analytics, scheduled reports, and row-level security, Looker is the correct fit for this analyst's requirements.

Why this answer

Looker is a BI platform that connects to BigQuery and provides interactive dashboards, reports, and embedded analytics. Looker Studio is a free tool for simple visualizations. Data Studio is the old name.

Vertex AI is for ML.

268
MCQhard

An engineer is troubleshooting a Cloud SQL instance that is running out of memory. They want to reduce memory usage without changing the machine type. Which action would help?

A.Reduce the max_connections flag
B.Enable automatic storage increase
C.Add a read replica
D.Switch from InnoDB to MyISAM
AnswerA

Lowering `max_connections` caps the number of concurrent client sessions, and each session reserves per-thread memory for sort buffers, join buffers, and temporary tables. Reducing this flag therefore directly bounds the aggregate connection-level memory consumption on the instance, preventing memory exhaustion and out-of-memory restarts. It is the correct remediation because the symptom is memory pressure, not disk capacity or query routing.

Why this answer

In Cloud SQL, each database connection consumes memory for session state, buffers, and per-connection overhead. Reducing the max_connections flag lowers the maximum number of simultaneous connections, directly reducing the memory footprint of the database instance without changing the machine type. This is the most direct lever for memory reduction in this scenario.

Exam trap

GCDL often tests whether candidates confuse storage scaling (disk) with memory scaling (RAM) — automatic storage increase sounds like it helps 'running out of memory' but only addresses disk space.

How to eliminate wrong answers

Option B is wrong because enabling automatic storage increase affects disk capacity, not RAM usage — it has no impact on memory consumption. Option C is wrong because adding a read replica adds another instance (and more total memory usage across the deployment) rather than reducing memory on the primary. Option D is wrong because switching from InnoDB to MyISAM is a storage engine change that affects features like transactions and crash recovery, not a supported or effective way to reduce memory in Cloud SQL (and Cloud SQL for MySQL defaults to InnoDB).

269
MCQeasy

A developer wants to deploy a containerised microservice that can scale to zero when not in use and automatically scale up based on HTTP requests. The microservice is stateless and runs a custom Docker image. Which Google Cloud compute service is BEST suited for this workload?

A.Google Kubernetes Engine (GKE)
B.Cloud Run
C.Compute Engine with managed instance groups
D.App Engine Standard environment
AnswerB

Cloud Run is a serverless compute platform that executes stateless HTTP-driven containers on demand. When no requests are in flight, the service scales down to zero instances, so you are not billed for idle resources. It automatically provisions and scales instances up to handle spikes, supports any language and arbitrary Docker images, and only charges for the exact number of requests processed, making it a natural fit for a containerized microservice with intermittent traffic.

Why this answer

Cloud Run is a serverless compute platform that runs stateless containers and can scale to zero when idle. It automatically scales based on incoming requests, making it ideal for event-driven microservices. GKE requires a cluster to run even when idle, Compute Engine VMs are always on, and App Engine Standard does not support custom containers.

270
Multi-Selectmedium

Which TWO statements about encryption in transit in Google Cloud are correct? (Choose 2)

Select 2 answers
A.Google Cloud uses TLS for all external traffic to its APIs.
B.Data in transit between Google Cloud regions is encrypted by default.
C.Users must configure TLS certificates for all Google Cloud services.
D.Data in transit between Google Cloud and the internet is encrypted by default for all services.
E.Encryption in transit uses AES-256.
AnswersA, B

Google Cloud mandates TLS (HTTPS) for every external call to its public API endpoints, covering services like BigQuery and Cloud Storage. This requirement is enforced at the infrastructure level, so clients must use TLS to communicate, regardless of the client library or SDK. As a result, data confidentiality and integrity are protected from the client to Google's edge, and users do not need to configure certificates themselves.

Why this answer

Option A is correct because Google Cloud terminates all external traffic to its public APIs using TLS (HTTPS), so clients connecting to services such as the Compute Engine API or Cloud Storage API get transport encryption without any extra configuration. Option B is correct because Google encrypts data in transit between its regions and zones by default at the network layer, independent of customer action, so replication and inter-region traffic is protected automatically. Option C is wrong because users do not need to provision TLS certificates for Google-managed services; Google handles the certificates for its endpoints.

Option D is wrong because encryption between Google Cloud and the internet is not automatic for all services — for example, a plain HTTP or unencrypted protocol endpoint is not encrypted unless the user configures TLS. Option E is wrong because encryption in transit is not defined as AES-256; TLS negotiates ciphers such as AES-GCM, and AES-256 is more typically associated with encryption at rest, not a blanket statement for transit.

Exam trap

GCDL often tests the misconception that AES-256 is the algorithm for encryption in transit, when AES-256 applies to encryption at rest and TLS is the in-transit mechanism, so candidates who pick the AES option lose the mark.

271
MCQhard

A security team wants to detect and respond to threats across multiple GCP projects, including identifying misconfigurations and vulnerabilities. They need a single pane of glass. Which service provides a unified view of security findings across projects?

A.Cloud Operations
B.Security Command Center
C.Cloud Audit Logs
D.Chronicle
AnswerB

Security Command Center is the central security and risk management platform for Google Cloud, aggregating findings from built-in and third-party services, including Security Health Analytics, Event Threat Detection, Cloud Asset Inventory, and Cloud Armor. It gives security teams a single pane of glass to view vulnerabilities, misconfigurations, and active threats across all projects. This service includes preset compliance metrics, malware discovery, and integration with Google Cloud's Web Security Scanner and partner solutions. Its role as the unified findings hub is exactly why it is the recommended solution for threat detection and response at cloud scale.

Why this answer

Security Command Center (SCC) is Google Cloud's centralized security and risk management platform. It aggregates findings across projects and organizations — including misconfigurations, vulnerabilities, and threats — into a single dashboard, providing the 'single pane of glass' the team requires.

Exam trap

GCDL often tests the boundary between SCC (security posture/findings) and Chronicle (SIEM/log analytics) — candidates pick Chronicle for 'single pane of glass' but SCC is the findings aggregator.

How to eliminate wrong answers

Option A is wrong because Cloud Operations (formerly Stackdriver) is for monitoring, logging, and observability, not security posture or threat findings. Option C is wrong because Cloud Audit Logs record API activity for compliance and forensics but do not aggregate or prioritize security findings. Option D is wrong because Chronicle is a SIEM for security analytics and log retention, not a multi-project misconfiguration/vulnerability dashboard (though it complements SCC).

272
MCQhard

A city government deploys thousands of IoT sensors (traffic, air quality, energy usage, waste levels) and analyzes the data in real time to optimize traffic signals, dispatch waste collection vehicles proactively, and adjust street lighting automatically. What concept describes this use of cloud and IoT?

A.E-government — providing digital access to government services online.
B.Smart city — using cloud, IoT, and AI to optimize city operations and resource utilization in real time.
C.Digital twin — creating virtual replicas of city infrastructure.
D.Edge computing — processing data locally at each sensor to reduce cloud bandwidth.
AnswerB

This scenario directly describes a smart city architecture: IoT sensors feed real-time data into a cloud platform, where AI analytics identify operational inefficiencies and trigger automated responses—such as adjusting traffic signal timing, rerouting waste collection, or balancing energy loads. The result is continuous optimization of city resources and services, which is the defining goal of a smart city rather than a single technology or isolated service.

Why this answer

A smart city uses digital technology — IoT sensors, cloud analytics, AI, and connectivity — to optimize city operations, improve resident quality of life, and use resources more efficiently. Cloud platforms receive sensor data via IoT Core or Pub/Sub, process it with Dataflow, analyze patterns with BigQuery and AI, and trigger automated responses (traffic signal changes, dispatch notifications). This is one of the most impactful applications of cloud transformation at city scale.

273
MCQmedium

An organisation needs to block common web attacks like SQL injection and cross-site scripting (XSS) at the edge of Google's network, before traffic reaches their applications. Which Google Cloud service should they use?

A.Cloud Armor
B.Cloud CDN
C.Cloud IDS
D.Cloud Load Balancing
AnswerA

Cloud Armor is Google Cloud's Web Application Firewall (WAF) service that provides edge-based protection against application-layer attacks such as SQL injection and cross-site scripting (XSS). It uses pre-configured rules, including the OWASP Top 10 rule set, as well as custom rules in Common Expression Language (CEL) to filter malicious traffic before it reaches backend instances. Cloud Armor integrates with Cloud Load Balancing and can also provide DDoS protection with adaptive protection and rate limiting. This makes it the correct choice for blocking common web attacks.

Why this answer

Cloud Armor is Google's web application firewall (WAF) service that protects against web attacks at the edge. It integrates with Cloud Load Balancing and Cloud CDN. Cloud CDN caches content, Cloud Load Balancing distributes traffic, and Cloud IDS is for network threat detection.

274
MCQeasy

What is the difference between a Service Level Indicator (SLI), a Service Level Objective (SLO), and a Service Level Agreement (SLA)?

A.SLI is the contract with customers; SLO is the internal target; SLA is the measurement.
B.SLI is the measured metric; SLO is the internal target for that metric; SLA is the contractual customer commitment.
C.SLI, SLO, and SLA are all the same thing — different names for uptime guarantees.
D.SLA is measured in milliseconds; SLO is measured in percentage; SLI has no unit.
AnswerB

This option correctly identifies the hierarchy among the three concepts. An SLI is the actual measured metric that quantifies service performance, such as 'the proportion of requests completed successfully' or 'latency at the 95th percentile.' An SLO is an internal target value for that SLI, e.g., 'maintain 99.9% availability over a 30-day window,' which guides engineering priorities. An SLA is a contractual commitment to a customer that often sets a stricter threshold and defines compensations, such as 'if availability falls below 99.5%, issue a service credit—the SLA is a business agreement, not just an engineering metric.'

Why this answer

It accurately defines the relationship: an SLI is a specific metric (e.g., request latency at the 99th percentile), an SLO is the internal target for that metric (e.g., 99.9% of requests under 200ms), and an SLA is the contractual commitment to a customer (e.g., 99.9% uptime with financial penalties). This aligns with Google Cloud's Site Reliability Engineering (SRE) practices, where SLIs are measured, SLOs are internal goals, and SLAs are legal agreements.

Exam trap

The GCDL exam often tests the confusion between SLI, SLO, and SLA by swapping their definitions, so the trap here is assuming SLI is the contract or that all three terms are synonymous, when in reality they form a hierarchy of measurement, target, and agreement.

How to eliminate wrong answers

Option A is wrong because it reverses the definitions: an SLI is not a contract (that's an SLA), an SLO is not an internal target (it is), and an SLA is not a measurement (that's an SLI). Option C is wrong because SLI, SLO, and SLA are distinct concepts with different purposes—SLIs are metrics, SLOs are targets, and SLAs are contracts—they are not interchangeable terms for uptime guarantees. Option D is wrong because it incorrectly assigns units: SLIs can have various units (e.g., milliseconds, percentage, count), SLOs are typically expressed as percentages or thresholds, and SLAs are not measured in milliseconds but define contractual commitments.

275
Multi-Selectmedium

A retail company runs a web application on Google Kubernetes Engine (GKE). They want to automatically scale the application based on custom metrics (e.g., number of items in a shopping cart). Which TWO resources should they configure?

Select 2 answers
A.Cluster Autoscaler
B.Custom Metrics Stackdriver Adapter
C.Vertical Pod Autoscaler (VPA)
D.Cloud Load Balancing
E.Horizontal Pod Autoscaler (HPA)
AnswersB, E

The Custom Metrics Stackdriver Adapter is the correct component because it implements the Kubernetes custom metrics API and exposes Stackdriver (now Cloud Monitoring) metrics to the Horizontal Pod Autoscaler. Without this adapter, HPA can only see built-in CPU and memory metrics, not application-specific metrics like orders per second or checkout latency. Installing and configuring this adapter allows HPA to query custom metrics and scale pod replicas accordingly, making it essential for autoscaling on arbitrary business metrics.

Why this answer

Horizontal Pod Autoscaler (HPA) can scale pods based on custom metrics. Custom Metrics adapter (e.g., Stackdriver adapter) exposes application metrics to HPA.

276
MCQeasy

A retail company experiences sudden traffic spikes during holiday sales. They want to automatically add or remove compute capacity to handle the load without manual intervention. Which Google Cloud feature should they use?

A.Cloud Load Balancing
B.Managed instance groups with autoscaling
C.Cloud Functions
D.Cloud CDN
AnswerB

Managed instance groups with autoscaling directly address sudden spikes by continuously evaluating metrics such as CPU utilization, requests per second, or custom Cloud Monitoring signals and adjusting the number of VM instances within configured minimum and maximum boundaries. When a spike is detected, the autoscaler provisions additional VMs and then scales down after demand subsides, while health checks and instance templates ensure each new VM is immediately ready to serve traffic. This is the standard Google Cloud solution for elastic compute capacity behind a load balancer.

Why this answer

Managed instance groups with autoscaling automatically adjust the number of VM instances based on load, ensuring scalability without over-provisioning.

277
MCQmedium

A company stores its data in Google Cloud. The security team asks: can Google employees access our customer data without our knowledge or consent? What does Google's commitment ensure?

A.Google employees have unrestricted access to all customer data as part of the infrastructure service agreement.
B.Google commits that customer data is not accessed without authorization, with access logged via Access Transparency and governed by contractual data processing commitments.
C.Google uses customer data to train its global AI models to improve services.
D.Customer data stored in Google Cloud is automatically accessible by government agencies on request.
AnswerB

Google's contractual data processing commitments, including the Cloud Data Processing Addendum, state that Google will not access or use customer data without authorization, and will only do so for the purposes of providing the services. Access Transparency provides customers with near-real-time logs of all system access by Google Cloud personnel, including the reason for access. Combined with Access Approval, which lets customers approve or deny select access requests, these tools ensure data is accessed only as permitted. This makes the statement accurate and correct.

Why this answer

Google Cloud's Access Transparency feature logs all data access attempts by Google personnel, and contractual data processing commitments under the Cloud Data Processing Addendum (CDPA) prohibit unauthorized access. This ensures that customer data is not accessed without explicit authorization, and any access is logged and auditable, aligning with the security team's concern about knowledge and consent.

Exam trap

The GCDL exam often tests the misconception that cloud providers have unfettered access to customer data or use it for model training, but the correct answer hinges on understanding that Google Cloud's contractual and technical controls (like Access Transparency) explicitly prevent unauthorized access and do not use customer data for AI training.

How to eliminate wrong answers

Option A is wrong because Google employees do not have unrestricted access; access is strictly controlled, logged via Access Transparency, and governed by contractual commitments. Option C is wrong because Google Cloud explicitly prohibits using customer data to train its global AI models; this is a common misconception, and Google's AI training uses publicly available data or data with explicit consent, not customer data. Option D is wrong because customer data is not automatically accessible by government agencies; any government request must follow legal processes, and Google provides transparency reports and notifies customers where legally permitted.

278
MCQeasy

A development team builds a mobile app using Firebase. They need a real-time database that syncs data across all connected clients instantly (e.g., a collaborative to-do app where all users see updates in real-time). Which Firebase/Google Cloud service provides this?

A.Cloud SQL with read replicas to distribute updates to clients.
B.Cloud Firestore or Firebase Realtime Database for real-time data sync across all connected clients.
C.BigQuery streaming inserts for real-time data delivery to mobile clients.
D.Cloud Pub/Sub subscriptions on the mobile clients.
AnswerB

Cloud Firestore and Firebase Realtime Database are purpose-built for real-time client synchronization. Firestore uses real-time listeners that push data changes over an established WebSocket or persistent connection, so when any client updates a document, all subscribed clients receive the new data within milliseconds. Both services also provide offline persistence and automatic conflict resolution, making them ideal for collaborative apps where multiple users need their local state to stay consistent without custom polling logic.

Why this answer

Cloud Firestore and Firebase Realtime Database are the only Firebase/Google Cloud services that provide real-time data synchronization across all connected clients. They use persistent WebSocket connections or HTTP long-polling to push updates instantly to every subscribed client, making them ideal for collaborative apps like a shared to-do list.

Exam trap

The GCDL exam often tests the misconception that any 'real-time' or 'streaming' service (like BigQuery streaming inserts or Pub/Sub) can serve as a real-time database for mobile clients, ignoring the need for persistent client connections and built-in data synchronization.

How to eliminate wrong answers

Option A is wrong because Cloud SQL is a relational database that does not natively support real-time client sync; read replicas distribute read traffic but do not push updates to mobile clients. Option C is wrong because BigQuery streaming inserts are designed for ingesting large volumes of data for analytics, not for delivering real-time updates to individual mobile clients. Option D is wrong because Cloud Pub/Sub is a message-oriented middleware for decoupling services, not a database; mobile clients would need a separate backend to subscribe and persist state, adding latency and complexity.

279
MCQmedium

An organization needs to enforce that developers can only create Compute Engine instances in the us-central1 region. Which IAM approach should they use?

A.Use Organization Policy to restrict allowed regions
B.Create a custom role with permission restricted to us-central1
C.Grant the Compute Instance Admin role with an IAM condition on resource.location
D.Create a separate project for each region
AnswerC

Granting the Compute Instance Admin role with an IAM condition on `resource.location` restricts instance creation to only the `us-central1` region by evaluating the resource’s location attribute at request time. This satisfies the constraint that developers cannot create instances outside that specific region, using a native IAM condition rather than a separate organisational policy.

Why this answer

IAM conditions allow setting regional constraints on roles, such as granting the Compute Instance Admin role with a condition on resource.location == 'us-central1'.

280
MCQeasy

Which cloud benefit allows a company to automatically add or remove computing resources based on demand, avoiding both over-provisioning and under-provisioning?

A.High availability
B.Pay-as-you-go
C.Elasticity
D.Global reach
AnswerC

Elasticity is the cloud capability that automatically provisions and de-provisions compute, storage, or other resources to match current demand in real time. It relies on monitoring metrics (CPU, memory, request count) and autoscaling policies or services (e.g., Google Cloud Autoscaler, managed instance groups) to increase or decrease capacity without manual intervention. This directly fulfills the requirement to automatically add or remove resources, making it the correct choice.

Why this answer

Elasticity is the cloud property that automatically scales computing resources up or down to match demand, adding capacity during peaks and removing it during lulls. This dynamic adjustment avoids both over-provisioning (wasted cost) and under-provisioning (poor performance), which is exactly what the question describes.

Exam trap

GCDL often tests the distinction between elasticity (automatic demand-based scaling) and pay-as-you-go (a billing model) or scalability (ability to grow), so candidates who conflate billing with scaling pick the wrong option.

How to eliminate wrong answers

Option A is wrong because high availability refers to designing systems to remain operational despite failures (redundancy, failover), not to demand-based scaling. Option B is wrong because pay-as-you-go is a billing model where you pay only for consumed resources—it does not itself add or remove capacity. Option D is wrong because global reach refers to deploying resources across geographic regions to serve users worldwide with low latency, not to automatic scaling.

281
MCQmedium

A company wants to allow a third-party security firm to conduct a penetration test against their Google Cloud environment to identify vulnerabilities. What is Google Cloud's policy on penetration testing?

A.Customers must submit a formal request to Google and wait for written approval before any penetration testing.
B.Customers are authorized to penetration test their own GCP resources without prior Google approval, within the Acceptable Use Policy.
C.Penetration testing is illegal in cloud environments and customers should use vulnerability scanners instead.
D.Google automatically performs penetration testing on all customer resources monthly and shares the report.
AnswerB

Google Cloud's Penetration Testing Policy explicitly permits customers to conduct security tests on their own GCP resources—including Compute Engine VMs, GKE clusters, Cloud Functions, and App Engine applications—without prior notification or approval. This self-service authorization is subject to the Acceptable Use Policy (AUP), which prohibits testing that targets other customers' environments, Google's core infrastructure, or services outside the customer's own project boundaries. You are accountable for staying within your own resource scope and ensuring your tests do not degrade or disrupt Google's shared infrastructure, but you do not need to file a request or wait for permission before starting an assessment.

Why this answer

Google Cloud's policy explicitly authorizes customers to conduct penetration testing on their own GCP resources without prior approval from Google, as long as the testing complies with the Acceptable Use Policy. This is because Google treats the customer's environment as their own responsibility, and the shared responsibility model places security testing under the customer's control. Option B correctly reflects this policy, which is documented in Google Cloud's security testing guidelines.

Exam trap

The trap here is that candidates may assume all cloud providers require prior approval (like AWS's old policy), but Google Cloud explicitly allows testing without approval, making Option A a common distractor.

How to eliminate wrong answers

Option A is wrong because Google Cloud does not require customers to submit a formal request or wait for written approval before penetration testing; instead, testing is authorized as long as it adheres to the Acceptable Use Policy. Option C is wrong because penetration testing is not illegal in cloud environments; Google Cloud explicitly permits it for customer resources, and vulnerability scanners are a complementary tool, not a replacement. Option D is wrong because Google does not automatically perform penetration testing on all customer resources monthly; the shared responsibility model means customers are responsible for testing their own resources, and Google does not share such reports with customers.

282
MCQeasy

A company wants to enable its developers to write and run code in various programming languages (Python, Node.js, Go) without provisioning or managing any servers. The code should execute in response to HTTP requests. Which Google Cloud product is designed for this serverless, function-level execution model?

A.Cloud Functions, which executes code functions in response to events or HTTP requests with no server management required
B.Compute Engine, which provides virtual machines for running code in any language
C.Cloud SQL, which runs SQL queries in response to HTTP requests
D.Persistent Disk, which stores code that can be executed on demand
AnswerA

Cloud Functions is a serverless Function-as-a-Service (FaaS) platform that lets you deploy individual code functions that automatically run in response to events, including HTTPS requests. It removes all infrastructure management—no servers to provision, no operating systems to patch, and no runtime to install—because the platform handles execution, scaling, and availability. It scales from zero to thousands of concurrent invocations instantly and bills only for actual compute time during execution. This precisely matches the requirement to 'execute code in response to HTTP requests with no server management required'.

Why this answer

Cloud Functions is the correct choice because it is Google Cloud's event-driven, serverless compute platform that allows developers to write and deploy single-purpose functions in languages like Python, Node.js, and Go. These functions automatically scale and execute in response to HTTP triggers (e.g., HTTP requests) without any server provisioning or management, directly matching the requirement for a function-level execution model.

Exam trap

Google Cloud often tests the distinction between serverless compute (Cloud Functions) and managed services that still require server management (Compute Engine) or are not compute services at all (Cloud SQL, Persistent Disk), leading candidates to confuse database or storage services with code execution platforms.

How to eliminate wrong answers

Option B is wrong because Compute Engine provides virtual machines (VMs) that require manual provisioning, scaling, and management of servers, which contradicts the 'no server management' requirement. Option C is wrong because Cloud SQL is a fully managed relational database service (MySQL, PostgreSQL, SQL Server) that executes SQL queries, not arbitrary code in response to HTTP requests. Option D is wrong because Persistent Disk is a block storage service for attaching durable storage to Compute Engine instances; it cannot execute code or respond to HTTP requests on its own.

283
MCQmedium

A hospital runs a patient records system that must remain on-premises due to strict regulatory data residency requirements. However, they also want to use cloud-based AI for diagnostic imaging analysis. Which cloud deployment model best describes their architecture?

A.Public cloud — all workloads run in a provider's infrastructure.
B.Private cloud — all workloads run in the hospital's own infrastructure.
C.Hybrid cloud — combining on-premises infrastructure with public cloud services.
D.Multi-cloud — using multiple public cloud providers simultaneously.
AnswerC

Hybrid cloud is a computing environment that connects an organization's on-premises infrastructure—such as a hospital's data center holding patient records—with a public cloud provider like Google Cloud, enabling data and workloads to move between them. For regulated industries like healthcare, this pattern allows sensitive data to remain on-premises for compliance and security while leveraging public cloud capabilities like AI-based imaging analysis for workloads that can be processed off-premises. The seamless orchestration across these two domains is the textbook definition of hybrid cloud.

Why this answer

The hospital must keep patient records on-premises to comply with data residency regulations, but wants to leverage cloud-based AI for diagnostic imaging. A hybrid cloud model combines on-premises infrastructure (for sensitive data) with public cloud services (for AI processing), allowing data to remain resident while compute-intensive tasks are offloaded. This matches the scenario exactly, as hybrid cloud enables workload distribution across private and public environments.

Exam trap

The GCDL exam often tests the misconception that 'hybrid cloud' requires equal distribution of workloads, but the trap here is that candidates may confuse 'multi-cloud' (multiple public providers) with 'hybrid cloud' (private + public), failing to recognize that on-premises infrastructure is a key component of hybrid cloud.

How to eliminate wrong answers

Option A is wrong because a public cloud would require all workloads, including patient records, to run in the provider's infrastructure, violating the on-premises data residency requirement. Option B is wrong because a private cloud would keep everything on-premises, failing to utilize cloud-based AI services for diagnostic imaging. Option D is wrong because multi-cloud involves using multiple public cloud providers, but does not inherently include on-premises infrastructure, so it cannot satisfy the data residency constraint.

284
MCQmedium

An e-commerce company is experiencing traffic spikes during flash sales. They need their application to automatically scale up and down based on CPU utilization, without manual intervention. Their application runs on a managed platform. Which feature should they enable?

A.Schedule regular snapshots
B.Set up VPC peering
C.Configure a load balancer
D.Enable autoscaling
AnswerD

Autoscaling automatically adjusts the number of VM instances in a managed instance group based on demand metrics such as CPU utilization, requests per second, or queue depth. When traffic spikes, autoscaling proactively or reactively provisions additional instances to maintain performance, then scales down during lulls to control cost. This makes it the correct mechanism for handling unpredictable e-commerce traffic spikes.

Why this answer

Autoscaling is the correct feature to automatically adjust the number of instances based on metrics like CPU utilization. Load balancing distributes traffic, snapshots are for backups, and VPC peering connects networks.

285
MCQmedium

A company has multiple teams deploying to Google Cloud and wants to allocate cloud costs by team. Each team should see only their own costs and be accountable for their spending. Which Google Cloud feature enables this cost allocation and visibility?

A.Create one large project for all teams and split the bill manually at month-end.
B.Use separate projects per team within a folder structure, with resource labels for sub-team cost attribution.
C.Purchase dedicated hardware for each team so costs are inherently separate.
D.Use Cloud Identity to create separate accounts for each team and bill separately.
AnswerB

Separate projects per team, placed under a folder structure, enforce a clean resource hierarchy: each project is the primary billing boundary, so Cloud Billing reports and budget alert thresholds map directly to a team. Resource labels add a second dimension, enabling sub-team or product-level cost breakdowns through BigQuery billing export, which is the precise mechanism for granular chargeback. This approach preserves GCP-native elastic capacity and self-service while giving finance a structured, queryable view of spend.

Why this answer

Google Cloud's resource hierarchy allows you to create separate projects per team within a folder structure, and resource labels provide granular cost attribution for sub-teams or environments. This enables each team to see only their own costs via billing export and cost breakdowns in the Cloud Billing console, ensuring accountability without manual splitting.

Exam trap

Google Cloud often tests the misconception that Cloud Identity can be used for billing separation, but Cloud Identity is for user authentication and directory services, not for cost allocation or billing account management.

How to eliminate wrong answers

Option A is wrong because creating one large project for all teams and splitting the bill manually at month-end is error-prone, lacks real-time visibility, and violates the principle of least privilege for cost data. Option C is wrong because purchasing dedicated hardware for each team is not a Google Cloud feature; it contradicts the cloud's shared infrastructure model and would eliminate the benefits of elasticity and pay-as-you-go pricing. Option D is wrong because Cloud Identity is used for identity and access management, not for billing separation; separate accounts would require separate billing accounts, which is not a scalable or recommended approach for team-level cost allocation.

286
MCQmedium

A company has deployed a critical application on Google Cloud and wants to understand what happens to their workloads during a Google Cloud data center maintenance event (e.g., host system upgrades). What Google Compute Engine feature handles this automatically for most VMs?

A.VMs are terminated and restarted automatically on new hardware, causing a few minutes of downtime.
B.Live migration transparently moves VMs to healthy hosts during maintenance with no VM downtime.
C.VMs are snapshotted, the snapshot is restored on new hardware, and the VM is restarted.
D.Customers must subscribe to Google Cloud support to receive advance notice and schedule their own maintenance windows.
AnswerB

During a live migration, the VM's memory pages are continuously copied from the source host to a destination host in a series of iterative passes, while the instance continues running its normal operations. At the final pass, the VM is briefly quiesced for just a few hundred milliseconds to transfer the remaining state, then the instance resumes on the new host with the same MAC address, IP address, and open network connections. This gives the appearance of zero downtime, though technically it's an extremely short pause rather than a full shutdown and boot.

Why this answer

Google Compute Engine uses Live Migration to automatically move running VMs from a host undergoing maintenance (e.g., host system upgrades) to a healthy host without interrupting the VM. This process preserves the VM's memory, network connections, and disk state, resulting in zero VM downtime. It is enabled by default for most VM instances, except those with GPUs or certain machine types that explicitly opt out.

Exam trap

The trap here is that candidates confuse Live Migration with a restart or snapshot-based recovery, assuming maintenance always causes downtime, when in fact Google's Live Migration provides seamless, zero-downtime maintenance for the vast majority of VM instances.

How to eliminate wrong answers

Option A is wrong because VMs are not terminated and restarted; Live Migration moves them transparently with no downtime, not a few minutes of downtime. Option C is wrong because snapshots are not used for maintenance events; Live Migration transfers the VM's live memory and disk state directly, not via snapshot-and-restore. Option D is wrong because Google Cloud does not require customers to subscribe to support for maintenance handling; Live Migration is automatic and free for eligible VMs, and advance notice is provided only for VMs that cannot be live-migrated (e.g., those with GPUs).

287
MCQeasy

An organization wants to ensure business continuity by replicating critical data to a different region. Which Google Cloud feature should they use?

A.Cloud Storage dual-region or multi-region
B.Cloud Dataflow
C.Compute Engine instance groups
D.Cloud VPN
AnswerA

Cloud Storage dual-region or multi-region classes are explicitly designed for geo-redundancy: they asynchronously replicate objects across two or more distinct geographic regions, automatically handling failover if one region becomes unavailable. This satisfies business continuity by providing a durable, independently accessible copy of data that survives regional outages without manual intervention, offering 99.99% availability and a zero-RPO replication model.

Why this answer

Cloud Storage dual-region or multi-region configuration is the correct choice because it provides built-in, asynchronous replication of data across geographically separated locations, ensuring business continuity through high availability and durability. This feature automatically stores redundant copies of objects in multiple zones within a region or across regions, protecting against regional failures without requiring additional infrastructure or manual intervention.

Exam trap

Google Cloud often tests the misconception that Compute Engine instance groups or Cloud VPN provide data replication, when in fact they only manage compute or network connectivity, respectively, and candidates must recognize that native storage replication requires a storage service like Cloud Storage with dual-region or multi-region configuration.

How to eliminate wrong answers

Option B is wrong because Cloud Dataflow is a fully managed service for stream and batch data processing pipelines, not a data replication or storage solution; it does not inherently replicate data across regions for business continuity. Option C is wrong because Compute Engine instance groups provide auto-scaling and load balancing for virtual machines, but they do not replicate data; they only manage compute resources, and any data replication would require separate storage or database services. Option D is wrong because Cloud VPN establishes an encrypted tunnel between on-premises networks and Google Cloud, enabling secure connectivity but not replicating data; it is a networking tool, not a data replication or storage service.

288
MCQmedium

A DevOps team wants to implement a release process where a new application version is first deployed to 5% of production traffic, monitored for errors, then gradually increased to 100% if metrics remain healthy. Which deployment strategy does this describe?

A.Blue/green deployment, where two identical environments run simultaneously and traffic is switched atomically
B.Canary deployment, where a new version receives a small percentage of traffic first and is progressively rolled out as metrics confirm it is healthy
C.Rolling deployment, where instances are updated sequentially one at a time until all run the new version
D.Recreate deployment, where the old version is terminated before the new version is deployed
AnswerB

Canary deployment precisely matches the description: 5% traffic initially, monitoring, then gradual increase to 100%. The term comes from the mining practice of using canaries to detect dangerous gas — the canary deployment detects problems before full rollout.

Why this answer

This describes a canary deployment, where the new version is initially exposed to a small subset of users (e.g., 5% of traffic) and then gradually rolled out to 100% only if key metrics (latency, error rate, CPU usage) remain within acceptable thresholds. Google Cloud's Deployment Manager and GKE support canary deployments via traffic splitting with services like Istio or native GKE ingress, allowing fine-grained control over the rollout percentage.

Exam trap

The GCDL exam often tests the distinction between canary and blue/green deployments by emphasizing the 'gradual percentage increase' versus 'atomic switch' — the trap here is that candidates confuse the 5% initial traffic with blue/green's 'staging' environment, but blue/green does not use progressive traffic shifting.

How to eliminate wrong answers

Option A is wrong because blue/green deployment involves two identical environments (blue and green) with an instantaneous traffic switch, not a gradual percentage-based rollout. Option C is wrong because rolling deployment updates instances one at a time (or in small batches) without the explicit 5% initial traffic split and metric-based gating described in the question. Option D is wrong because recreate deployment terminates all old instances before deploying the new version, causing downtime and no gradual traffic shifting.

289
MCQmedium

A company is evaluating total cost of ownership (TCO) for moving its on-premises data center to Google Cloud. Which of the following costs should they include in the cloud TCO assessment?

A.Data center facility rent and power
B.Hardware purchase and maintenance costs
C.Compute and storage usage fees
D.Employee salaries for data center staff
AnswerC

Cloud TCO is built around pay-as-you-go fees for compute instances, managed storage like Cloud Storage volumes, and related services such as network egress or load balancing. These usage-based charges are direct line items on the cloud invoice and represent the actual cost of running workloads, so they are the core component of cloud TCO calculations. Sizing, region, and committed-use discounts all affect these fees.

Why this answer

Cloud TCO assessments focus on the operational expenses the customer pays to the cloud provider — compute, storage, networking, and managed service fees — because these replace the capital and operational costs of on-premises infrastructure. Compute and storage usage fees are the recurring cloud charges that directly substitute for owned hardware and self-managed facilities. Including them is essential to compare the true ongoing cost of the cloud model against the data center baseline.

Exam trap

The trap here is confusing on-premises baseline costs (facility, hardware, staff) with cloud consumption costs — candidates often pick an on-premises cost because it is a real expense, but the question asks what belongs in the cloud TCO assessment.

How to eliminate wrong answers

Option A is wrong because data center facility rent and power are on-premises operational costs that disappear (or are absorbed by the provider) after migration, so they belong to the current-state baseline, not the cloud TCO. Option B is wrong because hardware purchase and maintenance are capital/operational costs of the on-premises model that cloud usage fees replace; they are not cloud costs. Option D is wrong because data center staff salaries are on-premises operational costs that are typically reduced or eliminated in a cloud model, so they are part of the comparison baseline rather than the cloud TCO.

290
MCQhard

A company with fluctuating demand wants to pay only for the resources it consumes, with no long-term commitments. Which Google Cloud feature allows them to automatically adjust capacity based on real-time demand?

A.Cloud Armor
B.Committed use discounts
C.Autoscaling
D.Preemptible VMs
AnswerC

Autoscaling automatically adjusts the number of VM instances in a managed instance group based on real-time signals like CPU utilization, request throughput, or custom metrics. It scales out during demand spikes and scales in during lulls, ensuring you only pay for the capacity that is actually needed at any moment. This dynamic, policy-driven approach directly supports fluctuating workloads without requiring long-term commitments or manual intervention.

Why this answer

Autoscaling is the correct answer because it automatically adjusts the number of compute resources (e.g., VM instances) up or down based on real-time demand metrics such as CPU utilization, request count, or custom metrics. This allows the company to pay only for the resources it consumes without any long-term commitments, as instances are added or removed dynamically to match current load.

Exam trap

Google Cloud often tests the distinction between cost-saving mechanisms (like Preemptible VMs or Committed Use Discounts) and dynamic scaling features, so candidates mistakenly choose a cost-optimization option instead of the correct autoscaling feature that directly addresses the requirement of adjusting capacity based on real-time demand.

How to eliminate wrong answers

Option A is wrong because Cloud Armor is a web application firewall (WAF) and DDoS protection service that secures applications, not a feature for adjusting compute capacity based on demand. Option B is wrong because Committed Use Discounts (CUDs) require a 1- or 3-year commitment to a specific amount of resources in exchange for discounted pricing, which contradicts the requirement of no long-term commitments. Option D is wrong because Preemptible VMs are short-lived, interruptible instances used for batch jobs or fault-tolerant workloads, but they do not automatically scale capacity based on real-time demand; they are a cost-saving option for non-critical tasks, not an autoscaling mechanism.

291
MCQmedium

A bank's innovation team proposes building a new digital lending product using cloud services. The risk team objects, citing regulatory concerns about data sovereignty and auditability in cloud environments. What is the most effective way for the innovation team to address these concerns?

A.Avoid cloud entirely for the new product and build on-premises to eliminate regulatory concerns
B.Demonstrate that Google Cloud provides the specific regulatory controls needed: data residency configuration, comprehensive audit logging, compliance certifications, and contractual frameworks that satisfy the bank's regulatory requirements
C.Ignore the risk team's concerns and proceed with cloud development, as regulators have approved cloud for all banking applications globally
D.Commission a multi-year study to determine whether cloud regulation will change before proceeding
AnswerB

The correct response is to map specific regulatory requirements to specific cloud controls. Data sovereignty → configure region constraints. Auditability → Cloud Audit Logs with immutable retention. Compliance → review applicable certifications (ISO 27001, SOC 2, FedRAMP). This addresses concerns with evidence rather than assumptions.

Why this answer

Demonstrating that Google Cloud provides the specific regulatory controls needed (B) is correct because it directly addresses the risk team's concerns by showing concrete evidence of data residency, audit logging, compliance certifications, and contractual frameworks. This approach is proactive and collaborative, aligning with regulatory requirements rather than avoiding or ignoring them. It allows the innovation team to proceed with cloud adoption while satisfying the risk team.

Exam trap

GCDL often tests the misconception that cloud cannot meet regulatory requirements, when in fact major cloud providers offer extensive compliance and data residency features.

How to eliminate wrong answers

Option A is wrong because avoiding cloud entirely eliminates the benefits of cloud services and may not be necessary if regulatory concerns can be addressed. Option C is wrong because ignoring the risk team's concerns is unprofessional and risky; regulators have not approved cloud for all banking applications globally, and such a blanket statement is false. Option D is wrong because commissioning a multi-year study delays the project unnecessarily; existing cloud providers already offer the necessary controls and certifications, so a study is not needed to determine if cloud regulation will change.

292
MCQmedium

A security team needs to detect and alert on suspicious outbound network traffic from their GCP environment, such as data exfiltration attempts. They require a managed service that analyzes traffic for threats. Which service should they use?

A.Cloud Armor
B.Security Command Center
C.Cloud IDS
D.Chronicle
AnswerC

Cloud IDS is a managed intrusion detection service that uses packet mirroring in your VPC to copy traffic and apply deep packet inspection with threat signatures against full bidirectional flows, including outbound communications. Because it evaluates connections initiated from your workloads, it can detect command-and-control callbacks, outbound malware propagation, and data exfiltration attempts in near real time. This makes Cloud IDS the appropriate choice for detecting and alerting on suspicious outbound network behavior.

Why this answer

Cloud IDS is Google Cloud's managed network intrusion detection service that inspects traffic (via packet mirroring) for threats such as malware, command-and-control, and data exfiltration, and generates alerts. It is purpose-built for detecting suspicious network activity in a GCP environment without deploying third-party appliances.

Exam trap

GCDL often tests the confusion between Cloud IDS (managed network threat detection) and Security Command Center (posture/finding aggregation) — candidates pick SCC thinking it 'analyzes traffic' when it only aggregates findings.

How to eliminate wrong answers

Option A is wrong because Cloud Armor is a WAF/DDoS protection service for HTTP(S) load-balanced applications, not a network traffic threat-detection service for outbound exfiltration. Option B is wrong because Security Command Center is a posture management and threat-discovery platform that aggregates findings — it does not itself analyze raw network packets for intrusions. Option D is wrong because Chronicle is a security analytics/SIEM platform for ingesting and correlating logs at scale, not a managed network IDS that inspects live traffic.

293
MCQhard

A company has a batch processing job that reads data from Cloud Storage, transforms it, and writes to BigQuery. The job runs nightly and takes approximately 2 hours. The team wants to reduce costs by using a managed service that automatically provisions and de-provisions resources. Which service should they use?

A.Cloud Composer
B.Cloud Functions
C.Dataflow
D.Dataproc
AnswerC

Dataflow, Google Cloud's fully managed stream and batch processing service, runs the job in batch mode using Apache Beam, automatically scaling workers based on input size and processing needs. It reads from Cloud Storage, applies the required transformation logic, writes to BigQuery with exactly-once semantics, and then scales to zero after completion, so you only pay for the active compute during those 2 hours.

Why this answer

Dataflow is a fully managed, serverless Apache Beam service that automatically provisions and de-provisions workers based on the job's workload, making it the best fit for a nightly 2-hour batch job where the team wants to avoid managing infrastructure. It supports batch and streaming, integrates natively with Cloud Storage and BigQuery, and charges only for the resources used during execution. This aligns exactly with the requirement to reduce cost through automatic resource lifecycle management.

Exam trap

GCDL often tests the confusion between orchestration (Cloud Composer) and execution (Dataflow), and between serverless (Dataflow, Cloud Functions) and cluster-based (Dataproc) services — candidates must match the 'automatically provisions and de-provisions' requirement to Dataflow.

How to eliminate wrong answers

Option A is wrong because Cloud Composer is a managed Apache Airflow orchestration service — it schedules and coordinates workflows but does not itself perform the data transformation, and it runs continuously on GKE nodes, incurring cost even when no job is running. Option B is wrong because Cloud Functions is an event-driven serverless compute service with a 60-minute maximum execution timeout and limited memory, making it unsuitable for a 2-hour batch transformation job. Option D is wrong because Dataproc is a managed Spark/Hadoop service that requires the cluster to be provisioned and typically kept running (or explicitly configured with ephemeral clusters), so it does not automatically de-provision resources the way Dataflow does.

294
Multi-Selecteasy

A company wants to gain visibility into their Google Cloud spending across multiple projects. Which TWO methods allow them to analyze cost data?

Select 2 answers
A.Upgrade to Premium Support.
B.Set up billing export to BigQuery.
C.Use the Google Cloud Pricing Calculator.
D.Use the Cost Management dashboard.
E.Set up budget alerts.
AnswersB, D

Set up billing export to BigQuery. This is the correct approach because it automatically exports detailed usage and cost data into BigQuery, where you can run arbitrary SQL queries to slice the data by service, project, label, or time period. It provides complete, raw billing data for every resource, enabling deep custom analysis beyond what built-in dashboards offer, and supports building unique reports, trend analysis, and anomaly detection.

Why this answer

Option B is correct because exporting billing data to BigQuery gives granular, queryable cost and usage data (via the Cloud Billing export, including detailed usage cost and pricing data) that can be analyzed with SQL across multiple projects linked to the billing account. Option D is correct because the Cost Management dashboard (Cloud Billing reports) provides built-in visibility into spend by project, service, SKU, and labels, allowing cost analysis across projects. Option A is incorrect because Premium Support is a support plan and does not itself provide cost analysis tooling.

Option C is incorrect because the Pricing Calculator only estimates future costs for planned configurations, not actual historical spending. Option E is incorrect because budget alerts only notify you when spending approaches or exceeds a threshold; they do not provide analytical breakdowns of cost data.

Exam trap

GCDL often tests the distinction between cost analysis tools and cost monitoring/estimation tools. Candidates might choose budget alerts or Pricing Calculator, but those don't provide analysis of historical spending.

295
MCQhard

A retail bank wants to launch new digital banking features quickly to compete with fintech startups while maintaining strict regulatory compliance. Which cloud transformation strategy best addresses both agility and compliance?

A.Move everything to a public cloud without additional access controls to maximize speed
B.Use a lift-and-shift migration to cloud VMs and rely on manual change management
C.Stick with on-premise systems for compliance and use cloud only for non-sensitive data
D.Implement a cloud-native architecture using GKE, Cloud Build, and Cloud IAM with compliance auditing
AnswerD

Implementing a cloud-native architecture with GKE, Cloud Build, and Cloud IAM directly supports the bank's speed and compliance objectives. GKE enables containerized microservices that can be independently scaled and updated, while Cloud Build automates the CI/CD pipeline, allowing new features to be deployed rapidly and consistently. Cloud IAM provides fine-grained access control with least privilege, and compliance auditing via Cloud Audit Logs creates an immutable, tamper-evident record of all operations, ensuring the bank can meet regulatory requirements while innovating. This combination of automation, isolation, and observability is the industry standard for regulated digital transformations.

Why this answer

It leverages cloud-native services like Google Kubernetes Engine (GKE) for containerized microservices, Cloud Build for CI/CD automation, and Cloud IAM for fine-grained access control, enabling rapid feature deployment while maintaining compliance through integrated audit logging and policy enforcement. This architecture decouples agility from security, allowing the bank to iterate quickly without sacrificing regulatory requirements like PCI-DSS or SOX.

Exam trap

Google Cloud often tests the misconception that compliance and agility are mutually exclusive, leading candidates to choose hybrid approaches like Option C, which actually create operational complexity and fail to deliver the speed promised by cloud-native transformation.

How to eliminate wrong answers

Option A is wrong because moving everything to a public cloud without additional access controls violates the principle of least privilege and exposes sensitive financial data to unauthorized access, failing compliance mandates like GDPR and PCI-DSS. Option B is wrong because lift-and-shift to cloud VMs with manual change management does not automate compliance checks or enable rapid scaling, leading to operational bottlenecks and increased risk of human error in audit trails. Option C is wrong because sticking with on-premise systems for compliance while using cloud only for non-sensitive data creates a hybrid silo that limits the bank's ability to launch integrated digital features quickly, as core banking functions remain on legacy infrastructure without cloud-native agility.

296
MCQhard

A company has a fixed budget for GCP and wants to prevent any cost overrun by automatically disabling all resources when the monthly budget is exceeded. Which approach should they use?

A.Use the Cost Management dashboard to manually stop resources.
B.Create a Cloud Function triggered by a budget alert Pub/Sub message to stop resources.
C.Use Active Assist to automatically stop idle resources.
D.Set up a budget alert with the 'disable resource' action.
AnswerB

When a budget threshold is exceeded, Cloud Billing publishes a message to a specified Pub/Sub topic. A Cloud Function subscribed to that topic can be triggered to call the Compute Engine API and stop instances, or use the Resource Manager API to disable projects, enforcing the budget automatically. This serverless, event-driven pattern gives near-immediate response and can be customized to stop only tagged resources, making it the correct choice for the stated requirement.

Why this answer

GCP budget alerts only notify; they cannot directly disable resources. To automatically stop resources when a budget is exceeded, you route the budget's Pub/Sub notification to a Cloud Function that executes the shutdown logic, which is the documented pattern for automated cost control.

Exam trap

GCDL often tests the misconception that budget alerts can directly take action like disabling resources, when in reality they only publish notifications requiring a subscriber to act.

How to eliminate wrong answers

Option A is wrong because manual stopping via the Cost Management dashboard is not automatic and cannot prevent overruns in real time. Option C is wrong because Active Assist provides recommendations and insights, not automated resource shutdown based on budget thresholds. Option D is wrong because GCP budgets do not have a built-in 'disable resource' action; that capability does not exist natively, so the option describes a non-existent feature.

297
MCQeasy

A startup wants to run a Node.js web application with zero server management and automatic scaling. They expect unpredictable traffic and want to minimise costs. Which Google Cloud service should they choose?

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

App Engine Standard Environment is a serverless platform that automatically scales your Node.js application from zero instances during idle periods to many during traffic spikes. It fully manages the underlying infrastructure, including load balancing, health checks, and runtime isolation, so you only pay for the resources your app actually consumes. This aligns perfectly with the startup's need for zero server management and cost efficiency under variable traffic.

Why this answer

App Engine Standard Environment is a fully managed, serverless platform that automatically scales instances up and down (including to zero) based on traffic, requires no server management, and bills only for resources consumed — ideal for unpredictable traffic and cost minimisation. It supports Node.js runtimes and is purpose-built for exactly this use case.

Exam trap

GCDL often tests the App Engine Standard vs Flexible distinction, so candidates who see 'Node.js' and 'automatic scaling' pick Flexible — the trap is that Flexible does not scale to zero and is not the cost-minimising choice for unpredictable traffic.

How to eliminate wrong answers

Option A is wrong because GKE requires the team to manage cluster infrastructure (nodes, upgrades, networking) or at least pay for a cluster control plane and node pools, which contradicts 'zero server management' and is more expensive for unpredictable, low-baseline traffic. Option B is wrong because Compute Engine provides raw VMs that the team must patch, scale, and manage — the opposite of serverless. Option D is wrong because App Engine Flexible Environment runs on VMs (managed but always-on instances), does not scale to zero, and is more expensive than Standard for spiky workloads; it is suited to custom runtimes and longer-running processes, not cost-minimised unpredictable traffic.

298
MCQeasy

Which IAM component determines what actions a user is allowed to perform on a resource?

A.Authorization
B.Audit Logging
C.Authentication
D.Encryption
AnswerA

Authorization is the IAM component that explicitly determines which actions a user is permitted to perform on a given set of resources. In Google Cloud, this is implemented by binding principals to roles, each containing a collection of permissions, and attaching those bindings to projects, folders, or organizations. The authorization engine evaluates the requested action against the effective allow policies and renders a definitive allow or deny decision.

Why this answer

Authorization is the IAM component that determines what an authenticated principal is allowed to do on a resource; it evaluates policies attached to users, groups, roles, and resources to allow or deny specific actions. Authentication establishes identity, while authorization decides permissions — so authorization is the correct answer.

Exam trap

The trap is the authentication-versus-authorization distinction; candidates who see 'allowed to perform' may pick authentication because both concepts are about access control.

How to eliminate wrong answers

Option B is wrong because audit logging records what actions were taken for compliance and forensics; it does not determine permissions. Option C is wrong because authentication verifies who the user is (credentials, MFA, federation) but does not decide what they can do. Option D is wrong because encryption protects data confidentiality in transit or at rest and has no role in permission decisions.

299
MCQmedium

A startup expects unpredictable Compute Engine usage and wants to minimize costs without manual intervention. Which discount type automatically applies to VM instances that run for more than 25% of a month?

A.Sustained use discounts
B.Committed use discounts
C.Spot VM discounts
D.Preemptible VM discounts
AnswerA

Sustained use discounts are applied automatically to Compute Engine instances that run more than 25% of a billing month; the discount ramps up from 0% to 30% as utilization increases, requiring no upfront commitment or capacity reservation. Because this is assessed monthly based on actual run time per instance and region, it directly benefits workloads with unpredictable usage patterns, making it the only one of these options that adapts to usage without requiring a forecast or accepting termination risk.

Why this answer

Sustained use discounts (SUDs) are automatically applied to Compute Engine instances that run for more than 25% of a month. They provide a discount on the incremental usage beyond that threshold, with the discount increasing the longer the instance runs. No manual action or commitment is required, making them ideal for unpredictable workloads.

Exam trap

GCDL often tests the confusion between automatic discounts (sustained use) and manual discounts (committed use, spot, preemptible), leading candidates to overlook that only SUDs apply automatically without any commitment or configuration.

How to eliminate wrong answers

Option B is wrong because committed use discounts require a manual commitment to a specific amount of resources for a 1- or 3-year term, which does not suit unpredictable usage. Option C is wrong because spot VM discounts are not a separate discount type; spot VMs are a provisioning model that offers significant discounts but can be preempted and require manual selection. Option D is wrong because preemptible VM discounts are also not a discount type; preemptible VMs are a similar provisioning model with a fixed discount but are being deprecated and require manual selection.

300
MCQmedium

An energy company is deploying smart meters across millions of homes that transmit energy consumption data every 15 minutes. Which description best characterizes the digital transformation opportunity this data creates?

A.The company can replace manual meter reading visits, reducing operational costs
B.The granular real-time consumption data enables cloud-scale analytics for demand response, predictive grid management, personalized energy recommendations, and anomaly detection — transforming the utility into an intelligent energy services company
C.The company can move its billing system to the cloud, improving invoice generation speed
D.The data can be stored in a cloud database, reducing the cost of on-premises storage
AnswerB

This captures the transformation: millions of devices generating billions of readings enable entirely new business capabilities. Dynamic demand response programs, AI-driven grid optimization, personalized conservation recommendations, and real-time fault detection are all new revenue and efficiency opportunities created by the data at cloud scale.

Why this answer

The 15-minute granular consumption data from millions of smart meters creates a high-velocity, high-volume data stream that is ideal for cloud-scale analytics. This enables real-time demand response (e.g., load balancing), predictive grid maintenance (e.g., transformer overload forecasting), personalized energy-saving recommendations, and anomaly detection (e.g., meter tampering or outages). The digital transformation opportunity lies in moving from a reactive utility to a proactive, data-driven energy services company, which is only feasible with the elastic compute and storage of cloud platforms.

Exam trap

Google Cloud often tests the distinction between simple automation (e.g., cost reduction, process migration) and true digital transformation (e.g., creating new data-driven business models and services), so candidates mistakenly pick options that describe incremental improvements rather than the paradigm shift enabled by cloud-scale analytics.

How to eliminate wrong answers

Option A is wrong because while replacing manual meter reading is a benefit of smart meters, it is an operational efficiency gain, not a digital transformation opportunity — digital transformation involves fundamentally changing business models and capabilities through data and cloud analytics, not just cost reduction. Option C is wrong because moving billing to the cloud improves invoice generation speed, but this is a simple migration of an existing process (lift-and-shift) rather than a transformation that leverages real-time data for new insights and services. Option D is wrong because storing data in a cloud database reduces on-premises storage costs, but this is a basic infrastructure cost-saving measure, not a transformation that creates new value from the data itself.

Page 3

Page 4 of 12

Page 5