Courseiva

Google Cloud Digital Leader (GCDL) — Questions 226300

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

Page 3

Page 4 of 12

Page 5
226
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

Use budgets for alerts, billing export to BigQuery for analysis, and labels for cost attribution.

227
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.

228
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.

229
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

Duet AI (now Gemini for Workspace) provides AI-powered assistance across Gmail, Docs, Slides, Meet, and more.

230
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.

231
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.

232
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.

233
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 organization node is automatically created when a Google Workspace or Cloud Identity account is set up. It serves as the root node for the resource hierarchy.

234
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) allow you to commit to a certain level of usage for 1 or 3 years in exchange for a discounted rate.

235
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.

236
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.

237
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.

238
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 stores secrets like API keys, passwords, and certificates, and integrates with Cloud Functions for secure access. Cloud KMS manages encryption keys, not secrets. Cloud Storage is not designed for secret management.

Cloud Asset Inventory tracks resources.

239
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

Deploying in multiple regions reduces latency for users in different geographies and provides disaster recovery. Replicating data across zones within a single region does not protect against regional failures.

240
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.

241
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.

242
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 steps to the numbered slots on the right, or tap a step then tap a slot.

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

Why this order

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

243
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.

244
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.

245
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.

246
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.

247
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.

248
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.

249
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.

250
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.

251
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.

252
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.

253
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

Cloud Functions (1st gen) have a maximum timeout of 9 minutes (540 seconds). For longer timeouts, they would need to use Cloud Functions (2nd gen) which supports up to 60 minutes, or use Cloud Run.

254
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

Managed instance groups with autoscaling automatically add and remove VM instances based on load, handling spikes without manual intervention. GPUs are not needed; manual scaling is wasteful; Cloud Load Balancing alone does not auto-scale compute.

255
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 a NoSQL document database that offers real-time listeners, offline data persistence, and automatic multi-device synchronisation. It is designed for mobile and web apps. Bigtable is for high-throughput time-series, Cloud SQL is relational, and Cloud Spanner is for globally distributed relational workloads without built-in offline syncing.

256
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.

257
Multi-Selecthard

An organization wants to enforce that all Compute Engine instances must have a label 'environment' set to 'production', 'staging', or 'development'. They also want to ensure that instances in the 'production' folder cannot be created with public IP addresses. Which THREE steps should they take? (Choose 3)

Select 3 answers
A.Use IAM conditions to deny the compute.instances.create permission without the label.
B.Set up VPC Service Controls to restrict access to the production VPC.
C.Create an organization policy constraint that prohibits external IP addresses on Compute Engine instances in the production folder.
D.Create a folder for each environment and apply the label automatically using a Cloud Function triggered by Resource Manager events.
E.Create a custom organization policy constraint that requires the 'environment' label on Compute Engine instances.
AnswersA, C, E

IAM conditions can deny the compute.instances.create permission unless the request includes an 'environment' label, effectively forcing callers to specify the label via conditional access. This works for individual principals or groups, but it becomes hard to maintain as you must attach conditions to every relevant role binding and it does not cover other API pathways or built-in roles.

Why this answer

The correct steps are options A, C, and E. Option A uses IAM conditions to deny the compute.instances.create permission if the required 'environment' label is not present, directly enforcing the labeling requirement. Option C uses an organization policy constraint to prohibit external IP addresses on Compute Engine instances in the production folder, preventing public IPs.

Option E uses a custom organization policy constraint to require the 'environment' label on all Compute Engine instances. Option B is incorrect because VPC Service Controls restrict data exfiltration, not the creation of instances with public IPs. Option D is incorrect because automatically applying labels via a Cloud Function is a remediation approach, not an enforcement mechanism; the policy constraints and IAM conditions are the appropriate enforcement tools.

258
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.

259
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.

260
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 allows users to train custom NLP models with a simple interface, requiring no ML expertise.

261
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.

262
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

Enabling automatic storage increase helps with disk space but not memory. Reducing max_connections limits concurrent connections, saving memory. Adding a read replica shares read load but doesn't reduce memory per instance.

Switching to MyISAM is not possible in Cloud SQL for InnoDB-based MySQL.

263
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.

264
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

Google Cloud uses TLS for all external and internal traffic by default between data centers. Encryption is applied automatically. The question asks for correct statements.

265
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 provides a unified dashboard for security findings across projects, including vulnerability scanning, threat detection, and misconfiguration alerts. Chronicle is a SIEM for log analysis but not a unified view of findings. Cloud Audit Logs provide logs but not aggregation.

Cloud Operations is for monitoring and logging, not security-specific findings.

266
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.

267
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.

268
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.

269
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.

270
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.

271
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.

272
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.

273
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'.

274
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 (a form of scalability) enables automatic adjustment of resources to match demand, optimizing cost and performance.

275
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.

276
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.

277
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.

278
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.

279
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.

280
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).

281
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.

282
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.

283
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 costs include compute, storage, network egress, and managed service fees. On-premises costs like hardware, power, and cooling are avoided, so they are not part of cloud TCO.

284
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.

285
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

Regulatory concerns about cloud are real but addressable. Cloud providers offer compliance certifications (SOC 2, ISO 27001, banking-specific standards), data residency controls, comprehensive audit logging, and contractual frameworks (BAAs, DPAs). The innovation team should demonstrate that the specific controls required by regulators exist and are configurable, rather than treating cloud as incompatible with regulation.

286
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 (Intrusion Detection System) monitors network traffic for threats like malware and data exfiltration. It integrates with VPC flow logs and provides threat detection. Cloud Armor is for inbound DDoS/WAF.

Security Command Center is a broader security management platform. Chronicle is a SIEM for log analysis, not real-time network traffic inspection.

287
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 managed service that automatically scales resources up and down for batch and stream processing. It reads from Cloud Storage, transforms data, and writes to BigQuery. Dataproc is also managed but requires cluster configuration and is more suited for Hadoop/Spark.

Cloud Composer is for workflow orchestration, not data transformation. Cloud Functions is not suitable for long-running batch jobs.

288
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

Billing export to BigQuery allows custom SQL analysis. The Cost Management dashboard provides visualizations. The Pricing Calculator is for estimates.

Budgets only send alerts. Support plans do not provide cost analysis.

289
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.

290
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 does not have a built-in mechanism to automatically disable resources when a budget is exceeded. Budget alerts trigger notifications but do not take action. The best practice is to monitor alerts and manually take action, or use Cloud Functions to automate shutdown based on budget alerts.

291
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 PaaS that automatically scales, manages the runtime, and can scale to zero. App Engine Flexible runs in VMs, does not scale to zero, and costs more. Compute Engine requires manual scaling.

Cloud Run is also serverless but for containers; App Engine Standard is simpler for code-based apps.

292
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 process of determining what actions a user can perform; IAM roles and permissions define this.

293
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 are automatic and apply to Compute Engine instances that run for a significant portion of the month, with no upfront commitment.

294
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.

295
MCQmedium

A company wants to use machine learning models but has no in-house data science team. They need a service that allows them to train custom models using their own data without managing infrastructure. Which Google Cloud service should they use?

A.AI Platform Notebooks
B.BigQuery ML
C.Cloud TPUs
D.Vertex AI (including AutoML)
AnswerD

Vertex AI, including its AutoML capabilities, is a unified managed machine learning platform that addresses the need for ML without in-house expertise. AutoML automates the entire model development pipeline: it handles data validation, feature engineering, architecture search, and hyperparameter tuning, then automatically deploys the trained model to a scalable serving endpoint. Users simply upload labeled data and specify the objective, and the platform manages the infrastructure. This makes Vertex AI the correct choice for a company that wants to leverage ML models with minimal manual involvement and no dedicated data science team.

Why this answer

Vertex AI provides a unified platform for ML, including AutoML for custom model training without managing infrastructure. BigQuery ML is for SQL-based ML, AI Platform Notebooks require manual setup, and Cloud TPUs are hardware accelerators, not a managed service.

296
MCQmedium

A government agency is evaluating whether to move citizen services to the cloud. Officials are concerned about vendor lock-in — specifically that they might become entirely dependent on one provider. Which approach best mitigates this risk while still allowing the agency to benefit from cloud services?

A.Avoiding cloud entirely and keeping all services on-premises to maintain full control
B.Using only one cloud provider's most specialized proprietary services for all workloads to maximize integration
C.Adopting open standards, containerized workloads, and a multi-cloud or hybrid architecture to preserve portability while benefiting from cloud services
D.Negotiating a contract with the cloud provider that forbids them from changing their service APIs
AnswerC

Adopting open standards such as Kubernetes for orchestration, containerized workloads for packaging dependencies, and a multi-cloud or hybrid architecture to distribute risk directly addresses the root cause of cloud lock-in: proprietary APIs and data gravity. Containers run consistently across any CNCF-compliant cluster, while SQL-compatible databases and open protocols (e.g., OIDC, S3) let teams migrate components between providers without rewriting code. This preserves the ability to consume high-value cloud services (managed AI, analytics, serverless) while retaining the architectural freedom to move workloads when business, cost, or compliance needs change.

Why this answer

Adopting open standards (e.g., OCI container images, Kubernetes APIs), containerized workloads, and a multi-cloud or hybrid architecture ensures workload portability across providers. This approach prevents vendor lock-in by allowing the agency to migrate services between cloud platforms or back to on-premises without rewriting applications, while still leveraging cloud benefits like scalability and managed services.

Exam trap

Google Cloud often tests the misconception that avoiding cloud entirely or using a single provider's proprietary services is safer, but the correct answer emphasizes architectural portability through open standards and containerization, not contractual or avoidance-based solutions.

How to eliminate wrong answers

Option A is wrong because avoiding the cloud entirely forfeits scalability, cost efficiency, and operational benefits, and does not address vendor lock-in—it simply replaces it with hardware vendor lock-in. Option B is wrong because using only one provider's proprietary services (e.g., AWS Lambda, Azure Functions) maximizes integration but creates deep dependency on that provider's APIs and runtime, making migration nearly impossible without significant rework. Option D is wrong because negotiating a contract that forbids API changes is impractical—cloud providers continuously evolve APIs for security, performance, and features; such a clause would be unenforceable and would prevent the provider from delivering updates, effectively freezing the platform.

297
Matchingmedium

Match each Google Cloud migration term to its description.

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

Concepts
Matches

Move workloads without modification

Tool to migrate VMs to GCP

Physical device for large offline data transfers

Online data transfer from other cloud or on-prem

Automated data import into BigQuery

Why these pairings

Correct matches: Lift and Shift moves apps without changes; Replatform optimizes; Refactor re-architects; Migrate for Compute Engine is the VM migration tool. Common confusions include mixing tool names and migration strategies.

298
MCQmedium

A company uses Cloud Storage to store backup files. The files are accessed on average once per year. To minimize storage costs while complying with a 365-day retention policy, which storage class should they use?

A.Coldline
B.Archive
C.Nearline
D.Standard
AnswerB

Archive is the lowest-cost storage class in Cloud Storage, purpose-built for long-term archival where data is accessed less than once a year. Its 365-day minimum storage duration aligns exactly with the retention policy; because the data is kept for 365 days, there is no early-deletion penalty. While retrieval costs are higher, the once-per-year access pattern makes these costs negligible, resulting in the lowest total cost of ownership.

Why this answer

Archive storage class is the correct choice because it offers the lowest storage cost for data that is accessed less than once per year, while still meeting the 365-day retention policy. Archive has a 365-day minimum storage duration, which aligns perfectly with the retention requirement, and its retrieval costs are acceptable given the infrequent access pattern.

Exam trap

Google Cloud often tests the misconception that Archive is only for data that is never accessed, but it actually allows retrieval with higher latency and costs, making it suitable for data accessed as infrequently as once per year with a 365-day retention policy.

How to eliminate wrong answers

Option A (Coldline) is wrong because Coldline has a 90-day minimum storage duration and higher storage cost than Archive, making it less cost-effective for data accessed once per year. Option C (Nearline) is wrong because Nearline has a 30-day minimum storage duration and higher storage cost than Archive, and is designed for data accessed less than once per month, not once per year. Option D (Standard) is wrong because Standard has no minimum storage duration but has the highest storage cost, making it the most expensive option for long-term, rarely accessed data.

299
MCQhard

A company must meet regulatory requirements that restrict where data can be stored and processed. They need to ensure that Google Cloud personnel have limited and audited access to their data. Which combination of services should they use?

A.Access Transparency and VPC Service Controls
B.Assured Workloads and Access Transparency
C.Cloud KMS and Cloud Audit Logs
D.VPC Service Controls and Cloud Audit Logs
AnswerB

Assured Workloads is the correct foundation because it enforces data residency by pinning resources to a selected region and imposes access restrictions such as preventing Google personnel from accessing customer data without explicit approval. Access Transparency complements it by providing detailed, audit-ready logs of any Google employee access actions, satisfying the regulatory need for both enforcement and accountability. This pairing directly addresses location restrictions and personnel access tracking, which are the core requirements.

Why this answer

Assured Workloads provides regulatory compliance controls and access restrictions for specific regions. Access Transparency logs Google personnel access. Cloud Audit Logs track user activity.

The question asks for a combination that restricts personnel access and provides audit logs.

300
MCQeasy

A data engineering team needs to build a pipeline that reads event data from Pub/Sub in real time, applies transformations and aggregations, and writes results to BigQuery — all without managing any infrastructure. Which Google Cloud product is designed for this serverless stream and batch data processing use case?

A.Cloud Dataflow, Google Cloud's serverless stream and batch data processing service built on Apache Beam
B.Cloud Composer, Google Cloud's managed Apache Airflow service for workflow orchestration
C.Cloud Dataproc, Google Cloud's managed Spark and Hadoop service
D.BigQuery directly, using streaming inserts to load Pub/Sub data in real time
AnswerA

Dataflow is exactly right: serverless (no infrastructure management), supports both streaming (from Pub/Sub) and batch, applies transformations and aggregations, and writes natively to BigQuery. The Pub/Sub → Dataflow → BigQuery pattern is one of the most common data engineering pipelines on Google Cloud.

Why this answer

Cloud Dataflow is Google Cloud's fully managed, serverless service for both stream and batch data processing, built on Apache Beam. It directly reads from Pub/Sub, applies transformations and aggregations using the Beam SDK, and writes the results to BigQuery without requiring any infrastructure management, making it the correct choice for this use case.

Exam trap

Google Cloud often tests the distinction between a data processing service (Dataflow) and a data ingestion or orchestration service, leading candidates to mistakenly choose BigQuery streaming inserts or Cloud Composer for real-time transformations.

How to eliminate wrong answers

Option B is wrong because Cloud Composer is a workflow orchestration service (managed Apache Airflow) designed to schedule and coordinate tasks, not to perform real-time stream processing or data transformations. Option C is wrong because Cloud Dataproc is a managed Spark and Hadoop service that requires cluster management and is not serverless; it is better suited for batch processing and big data analytics on existing clusters, not for serverless stream processing. Option D is wrong because BigQuery streaming inserts can load data from Pub/Sub but do not provide built-in transformations or aggregations; they are a data ingestion method, not a full data processing pipeline, and lack the serverless stream processing capabilities of Dataflow.

Page 3

Page 4 of 12

Page 5