Courseiva

CCNA Google Cloud Products and Services Questions

59 of 134 questions · Page 2/2 · Google Cloud Products and Services · Answers revealed

76
MCQeasy

Which Google Cloud service provides a fully managed, serverless data warehouse for petabyte-scale analytics with SQL?

A.Cloud SQL
B.BigQuery
C.Dataproc
D.Dataflow
AnswerB

BigQuery is Google Cloud's serverless, highly scalable, SQL-based data warehouse. It automatically manages infrastructure and scales compute and storage independently, using a columnar storage format and a distributed query engine (Dremel) to run analytics on petabytes of data. With a pay-per-query pricing model and no clusters to provision, BigQuery is the definitive choice for a fully managed data warehouse on Google Cloud.

Why this answer

BigQuery is Google Cloud's fully managed, serverless data warehouse. It supports SQL queries at petabyte scale with no infrastructure to manage. Cloud SQL is for OLTP, Dataproc is for Hadoop/Spark, and Dataflow is for stream/batch processing.

77
Multi-Selecthard

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

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

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

Why this answer

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

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

78
Multi-Selecthard

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

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

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

Why this answer

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

79
Multi-Selectmedium

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

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

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

Why this answer

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

80
Multi-Selectmedium

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

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

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

Why this answer

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

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

81
Multi-Selecthard

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

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

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

Why this answer

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

82
Multi-Selectmedium

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

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

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

Why this answer

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

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

83
MCQmedium

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

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

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

Why this answer

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

84
MCQeasy

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

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

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

Why this answer

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

85
MCQmedium

A data engineering team needs to process streaming data from Cloud Pub/Sub, perform transformations, and write the results to BigQuery. The team requires exactly-once processing semantics and automatic scaling. Which service should they use?

A.Cloud Functions
B.Cloud Dataflow
C.Cloud Dataproc
D.BigQuery
AnswerB

Cloud Dataflow is a fully managed, unified stream and batch processing service built on Apache Beam. It provides exactly-once processing guarantees, automatic scaling, and powerful primitives for event-time processing, windowing, and triggers. With native Pub/Sub and BigQuery I/O connectors, Dataflow can ingest streaming data directly from Pub/Sub, apply complex transformations, and write results to BigQuery without additional glue code, making it the correct choice for this use case.

Why this answer

Dataflow (Apache Beam) provides exactly-once processing, autoscaling, and native integration with Pub/Sub and BigQuery for streaming pipelines. Cloud Dataproc is for batch Spark/Hadoop, not streaming. Cloud Functions processes events one at a time without exactly-once guarantees across a pipeline.

BigQuery itself does not transform streaming data.

86
MCQmedium

A data analyst needs to run ad-hoc SQL queries on a large dataset stored in Cloud Storage. The data is in CSV format and does not require real-time results. Which Google Cloud service should they use?

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

BigQuery is the correct choice because it is a serverless, highly scalable cloud data warehouse that supports standard ANSI SQL. It can query external datasets directly from Cloud Storage using external tables, where you define a table schema pointing to files (CSV, JSON, Parquet, Avro, ORC, etc.) without requiring an ETL pipeline. This makes it ideal for ad hoc SQL analysis on large datasets, since BigQuery automatically manages the underlying compute and parallelizes the query across the data, and you pay only for the data scanned. Additionally, BigQuery supports federated queries across other Google Cloud services, but querying Cloud Storage files is the most direct path for this scenario.

Why this answer

BigQuery supports external data sources; you can create an external table pointing to CSV files in Cloud Storage and run SQL queries without loading the data. This is ideal for ad-hoc analysis on existing data.

87
MCQeasy

Which Google Cloud service can be used to create and manage virtual networks, subnets, firewall rules, and VPN connections?

A.Cloud Armor
B.Cloud Load Balancing
C.Cloud VPC
D.Cloud CDN
AnswerC

Cloud VPC (Virtual Private Cloud) is the correct service for creating and managing a private network in Google Cloud. It lets you define global or regional networks, allocate IP CIDR ranges, create subnetworks, set up firewall rules, dynamic routes (including BGP with Cloud Router), and connect on-premises environments via Cloud VPN or Interconnect. As a foundational networking primitive, Cloud VPC provides full control over routing, addressing, and isolation, directly matching the requirement to create and manage the network itself.

Why this answer

Cloud VPC (Virtual Private Cloud) provides networking capabilities including subnets, firewalls, and VPNs.

88
MCQmedium

A company runs batch analytics jobs every night using Apache Spark on a cluster. The jobs require 100 vCPUs and run for 3 hours. The cluster must be created, run, and then shut down automatically to minimise cost. Which service should they use?

A.Cloud Dataflow
B.Cloud Dataproc
C.Google Kubernetes Engine (GKE)
D.Compute Engine with managed instance groups
AnswerB

Cloud Dataproc is Google Cloud's managed Spark and Hadoop service, purpose-built to run workloads like Apache Spark directly. You can create a job-scoped cluster that automatically terminates as soon as the batch job finishes, so you only incur compute costs while the job is running, which is ideal for nightly analytics that do not need a persistent cluster. Dataproc also supports custom machine types, preemptible/spot workers, and integration with Cloud Storage, BigQuery, and Cloud Monitoring, making it the lowest-effort, cost-optimized choice.

Why this answer

Cloud Dataproc is a managed Spark/Hadoop service that supports job-scoped clusters: you define a cluster configuration, submit a job, and the cluster is automatically deleted after completion. Compute Engine requires manual management. Dataflow is for Beam, not Spark.

GKE is generic Kubernetes, not optimised for Spark batch jobs.

89
MCQhard

An organization needs to store archival data that must be retained for 10 years for compliance. Access to this data is expected to be less than once a year, and retrieval can take up to 24 hours. Which Cloud Storage class is the MOST cost-effective for this data?

A.Coldline storage class
B.Nearline storage class
C.Archive storage class
D.Standard storage class
AnswerC

Archive is the cheapest, designed for data accessed less than once a year, with retrieval times up to 24 hours.

Why this answer

Archive storage is the lowest-cost class designed for long-term preservation with retrieval times in hours.

90
Multi-Selectmedium

A company runs a stateful web application on Compute Engine. They need to ensure that persistent data is retained if an instance fails, and that traffic is automatically distributed across healthy instances. Which TWO Google Cloud services should they use? (Choose 2)

Select 2 answers
A.Cloud DNS
B.Persistent Disk
C.Cloud Load Balancing
D.Cloud CDN
E.Cloud NAT
AnswersB, C

Persistent Disk stores durable block-level data that exists independently of the virtual machine instance. When an instance is terminated or fails, the disk can be attached to a new instance in the same zone (or across zones with regional persistent disks), allowing the application to recover all state such as user sessions and database files. This independence is exactly what makes a stateful application resilient to instance-level failures.

Why this answer

Persistent Disk provides durable block storage that can be attached to Compute Engine instances, retaining data even if the instance terminates. Cloud Load Balancing distributes traffic across a managed instance group and automatically routes traffic away from failed instances. Cloud DNS resolves domain names but does not provide load balancing.

Cloud CDN caches content. Cloud NAT is for outbound connectivity.

91
Multi-Selectmedium

A company stores sensitive data in Cloud Storage. They want to restrict access to only users from the company's corporate network (IP range 203.0.113.0/24) and ensure data is encrypted at rest using a customer-managed key. Which TWO configurations are required? (Select 2)

Select 2 answers
A.Configure Cloud Armor with IP allowlist
B.Enable VPC Service Controls
C.Set a bucket policy with an IP address condition
D.Configure Cloud NAT
E.Use Cloud KMS to create and manage a key for CMEK
AnswersC, E

You can apply an IAM condition to a Cloud Storage bucket policy to restrict access based on the requester's source IP address. For example, setting a condition like `request.sourceIp.startsWith("203.0.113.")` ensures only requests originating from your corporate IP range can read or write objects. This is a valid and direct method to enforce network-level access control for sensitive data in Cloud Storage, making it a correct alternative to CMEK.

Why this answer

Cloud Storage bucket-level access control with IP-based conditions can restrict access to a specific IP range. CMEK requires Cloud KMS to create and manage the key. Cloud Armor is for HTTP(S) load balancing, not Cloud Storage.

VPC Service Controls provide perimeter security but are not IP-based. Cloud NAT is for outbound connectivity.

92
MCQmedium

A data engineer needs to process streaming clickstream data in real-time, apply transformations, and write the output to BigQuery. Which Google Cloud service is built for this use case?

A.Cloud Dataproc
B.Cloud Dataflow
C.Cloud Pub/Sub
D.Cloud Functions
AnswerB

Cloud Dataflow is the correct choice because it is a fully managed, serverless service for both stream and batch processing, built on the Apache Beam model. It provides native, optimized BigQuery I/O with exactly-once processing semantics, event-time windowing, and automatic scaling to handle unbounded clickstream data from Pub/Sub. Dataflow's built-in support for watermarks, triggers, and stateful transformations makes it ideal for running low-latency, continuous ETL pipelines that land directly in BigQuery.

Why this answer

Dataflow is a managed stream and batch processing service perfect for real-time transformations and writing to BigQuery. Pub/Sub is for ingestion, Dataproc for Spark, and Cloud Functions for simple event-driven code.

93
MCQmedium

An analytics team needs to create dashboards and visualizations from data stored in BigQuery. They want a free solution that integrates natively. Which tool should they use?

A.Cloud Dataflow
B.Looker Studio
C.Looker
D.Google Sheets
AnswerB

Looker Studio is Google's free, self-service reporting and visualization tool that natively integrates with BigQuery as a first-class data source. You can connect directly to BigQuery datasets without exporting data, and it automatically handles query pagination and aggregation for fast interactive dashboards. Its cost model (free for creators) and native BigQuery connector make it the ideal choice for an analytics team that needs to build and share visualizations quickly.

Why this answer

Looker Studio (formerly Data Studio) is a free visualization tool that connects to BigQuery. Looker is a paid BI platform. Dataflow is for processing, and Sheets is not native.

94
MCQmedium

A developer wants to trigger a serverless function whenever a new object is uploaded to a Cloud Storage bucket. Which Google Cloud service should they use?

A.Cloud Functions
B.Cloud Run
C.App Engine
D.Dataflow
AnswerA

Cloud Functions is the correct choice because it is Google Cloud's event-driven serverless compute service designed to respond directly to Cloud Storage events. Specifically, Cloud Functions natively subscribes to the `google.storage.object.finalize` event, which is emitted whenever an object is uploaded or overwritten in a bucket. This background function type requires no custom intermediary, as the event is delivered automatically and the function can immediately process the object, making it the most direct and efficient mechanism for triggering on object uploads.

Why this answer

Cloud Functions is an event-driven serverless compute service that can be triggered by Cloud Storage events such as object finalise/create. Cloud Run can also be triggered by events via Eventarc, but Cloud Functions is the simpler choice for small code snippets triggered by events. Dataflow and App Engine are not designed for event-triggered functions from Cloud Storage.

95
MCQeasy

A company wants to run a batch job that processes large log files stored in Cloud Storage every night. The job typically runs for 2 hours on a single VM with 16 vCPUs and 64 GB of memory. They want to minimize costs. Which compute option is BEST?

A.Compute Engine with preemptible VMs
B.Cloud Run
C.Compute Engine with Sole-tenant nodes
D.Compute Engine with standard VMs
AnswerA

Preemptible VMs offer a 60-80% cost reduction over standard VMs because they use Google's excess capacity, but they can be terminated at any time after a 30-second warning. For a batch job that processes large logs, you can design the job to be resumable by writing intermediate results to persistent storage, making this the most cost-effective choice without sacrificing completion. The transient nature of the instances is acceptable because the workload is fault-tolerant and can resume from checkpoints.

Why this answer

Preemptible VMs offer significant cost savings (up to 60-91% discount) for fault-tolerant batch jobs that can handle interruptions.

96
MCQmedium

A company wants to set up a hybrid cloud connection between its on-premises data center and Google Cloud VPC with a dedicated, high-bandwidth, low-latency link. Which service should they use?

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

Cloud Interconnect provides direct, dedicated network connections between your on-premises network and Google Cloud, either via co-location facilities (Dedicated Interconnect) or through a service provider (Partner Interconnect). These private links offer consistent high bandwidth, low latency, and a guaranteed SLA, making them the correct choice for a hybrid cloud connection.

Why this answer

Cloud Interconnect provides dedicated physical connections between on-premises and Google Cloud. HA VPN is a low-cost alternative but uses the public internet and offers lower bandwidth. Cloud CDN is for content delivery.

Cloud NAT is for outbound connectivity.

97
MCQeasy

Which Google Cloud service provides a unified platform for building, training, and deploying machine learning models at scale?

A.Vertex AI
B.BigQuery ML
C.AutoML
D.Cloud Dataflow
AnswerA

Vertex AI is Google Cloud's unified machine learning platform that integrates the entire ML workflow—from data preparation and feature engineering to model training, hyperparameter tuning, serving, and monitoring—under a single API and console. It consolidates AutoML, custom training, and MLOps tools so teams can manage models consistently. This fits the definition of a "unified platform" for machine learning.

Why this answer

Vertex AI is the unified ML platform covering all stages of ML workflow. AutoML is a component, Dataflow is for data processing, and BigQuery ML runs ML models in SQL.

98
MCQhard

An organisation must store archival data that is accessed less than once a year. They need the lowest storage cost and can tolerate a retrieval time of several hours. Which Cloud Storage class should they use?

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

Archive is the lowest-cost storage class in Google Cloud Storage, specifically designed for long-term backup and archival data that is accessed less than once per year. It offers the cheapest storage price, but retrieval times are typically hours (or even up to 365 days for some operations), and it imposes a 365-day minimum storage duration. For an organization storing archival data that is rarely accessed, Archive provides the optimal balance of cost efficiency and suitability, making it the correct choice.

Why this answer

Archive storage is the cheapest storage class, designed for data accessed less than once a year with retrieval times in hours.

99
Multi-Selecthard

A company wants to implement a hybrid cloud architecture connecting their on-premises data center to Google Cloud. They need high bandwidth (10 Gbps), low latency, and a service-level agreement (SLA). Which TWO services can provide dedicated connectivity? (Choose two.)

Select 2 answers
A.HA VPN
B.Cloud CDN
C.Cloud Interconnect (Partner)
D.Cloud Interconnect (Dedicated)
E.Cloud VPN
AnswersC, D

Partner Interconnect establishes a connection between your on-premises network and Google's network via a supported third-party service provider, such as a colocation or network provider. It offers a service-level agreement (up to 99.99%) and can be provisioned at capacities from 50 Mbps to 10 Gbps depending on the partner, making it suitable for hybrid workloads. Unlike VPN, it does not traverse the public internet, providing more reliable, lower-latency connectivity.

Why this answer

Cloud Interconnect (dedicated or partner) provides high-bandwidth, low-latency connections with SLAs. HA VPN is a VPN alternative but does not offer dedicated bandwidth or SLA for throughput. So the two correct are Cloud Interconnect (Dedicated Interconnect) and Cloud Interconnect (Partner Interconnect).

However, the question asks for services that provide dedicated connectivity with SLA. Both Dedicated Interconnect and Partner Interconnect offer SLAs. HA VPN does not.

So I'll include both types of Interconnect, but since they are the same service, I need to differentiate. Let's list options: A. Cloud VPN, B.

HA VPN, C. Cloud Interconnect (Dedicated), D. Cloud Interconnect (Partner), E.

Cloud CDN. So C and D are correct.

100
MCQhard

A company uses Cloud SQL for MySQL and needs to migrate to a PostgreSQL-compatible database that offers improved performance for AI workloads (e.g., vector embeddings). Which Google Cloud database is MOST suitable?

A.Cloud SQL for PostgreSQL
B.Cloud Spanner
C.AlloyDB
D.Bigtable
AnswerC

AlloyDB is Google Cloud’s fully managed PostgreSQL-compatible database purpose-built for demanding transactional and analytical workloads, and it integrates AI-optimized features directly into the engine. It includes native support for vector embeddings and vector search (AlloyDB AI), plus a columnar engine that accelerates analytical queries and can speed up AI inference pipelines. For a migration from Cloud SQL for MySQL, AlloyDB provides the lowest-friction PostgreSQL-compatible path while adding the AI capabilities your new workload needs.

Why this answer

AlloyDB is a PostgreSQL-compatible database that is optimized for high performance and features like vector embeddings for AI, making it ideal for this migration.

101
MCQhard

A large enterprise is migrating its on-premises data center to Google Cloud. They need a dedicated, low-latency, and highly available connection between their on-premises network and their VPC. Which networking service should they use?

A.Cloud CDN
B.Cloud Interconnect
C.Cloud VPN
D.Cloud Load Balancing
AnswerB

Cloud Interconnect provides dedicated, private network connectivity between your on-premises data center and Google Cloud, using either Dedicated Interconnect or Partner Interconnect. Because traffic is carried over Google's global network rather than the public internet, it offers consistently low latency, high throughput, and a contractually backed availability SLA (up to 99.99% depending on configuration). For a large enterprise migration that requires reliable performance and predictable network behavior, this is the only option that truly meets those requirements.

Why this answer

Cloud Interconnect provides dedicated, high-bandwidth, low-latency connections with SLAs. Cloud VPN is over the public internet and may not meet strict latency/availability requirements. Load Balancing and CDN are not for connectivity to on-premises.

102
MCQhard

A security engineer wants to block malicious traffic patterns at the edge of Google's network before it reaches their application. Which service should they configure?

A.VPC firewall rules
B.Cloud DNS
C.Cloud CDN
D.Cloud Armor
AnswerD

Cloud Armor is a global DDoS mitigation and web application firewall (WAF) service that enforces security policies at the edge of Google's network, in front of load balancers. It supports CEL-based custom rules that can inspect headers, query parameters, and request bodies to block specific malicious patterns like SQL injection, cross-site scripting, or known bot signatures. Because policies are evaluated before traffic reaches your GCE instances or GKE pods, attack traffic can be dropped with minimal latency impact, making it the correct choice for blocking a malicious traffic pattern.

Why this answer

Cloud Armor is a web application firewall (WAF) and DDoS protection service that works with Cloud Load Balancing to filter traffic based on IP addresses, geo-location, and Layer 7 attributes. Cloud CDN caches content, Cloud DNS resolves domain names, and VPC firewall rules protect at the instance level, not at the edge.

103
MCQmedium

A developer needs to run a small piece of Python code that processes a message from Pub/Sub and stores the result in Firestore. The code runs infrequently (a few hundred times per day) and takes less than a second to execute. Which compute service is most cost-effective and simple to manage?

A.Cloud Functions
B.Cloud Run
C.Compute Engine with preemptible VM
D.App Engine Standard Environment
AnswerA

Cloud Functions is the ideal fit because it is a managed Function-as-a-Service platform that executes code in response to a Pub/Sub event, scaling to zero when idle. It bills only for the actual invocation time, measured in 100ms increments, so a small Python snippet that runs once or twice undergoes no idle cost or container overhead. Its event-driven trigger model and built-in Pub/Sub subscription abstraction remove the need to run a web server or manage infrastructure, making it the most cost-effective and operationally simple choice for this task.

Why this answer

Cloud Functions is serverless and event-driven, ideal for infrequent short-lived tasks triggered by Pub/Sub. It scales to zero and charges only per invocation. App Engine and Cloud Run require a container or runtime, and Compute Engine requires a running VM.

104
Multi-Selecthard

A company runs a microservices application on Google Kubernetes Engine (GKE) and wants to reduce costs by using preemptible nodes for stateless workloads. However, they need to ensure that critical stateful workloads are not disrupted. Which two actions should they take?

Select 2 answers
A.Taint the regular node pool and use tolerations for stateful pods
B.Use a single node pool with a mix of regular and preemptible VMs
C.Set pod priority class to 'high' for stateful workloads
D.Create a separate node pool for preemptible VMs and use tolerations for stateless pods
E.Use node affinity rules to schedule stateful pods on regular nodes
AnswersA, D

Taints on regular nodes with tolerations for stateful pods create an explicit scheduling contract: any pod without the matching toleration is blocked from the regular node pool, while stateful pods that declare the toleration are placed there exclusively. This ensures preemptible or stateless workloads cannot consume resources on those nodes, giving stateful services stable, non-preemptible infrastructure and predictable lifecycles.

Why this answer

To protect stateful workloads, use node pools with regular VMs and taint them to prevent preemptible pods from scheduling. For stateless workloads, use a separate node pool with preemptible VMs and add tolerations to the pods. Affinity rules or priority classes can also help but are not the primary method.

105
MCQeasy

Which Google Cloud service is a fully managed, serverless data warehouse for analytics with built-in ML capabilities (e.g., BigQuery ML)?

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

BigQuery is a serverless data warehouse that uses columnar storage and a distributed query engine to run ANSI SQL analytics on petabytes of data without provisioning infrastructure. It separates storage and compute, allowing independent scaling, and introduces BigQuery ML to create and execute machine learning models directly on SQL queries. The service also integrates with Dataflow, Dataproc, and Looker for end-to-end analytics pipelines.

Why this answer

BigQuery is a serverless data warehouse that supports standard SQL, scales automatically, and includes BigQuery ML for creating ML models using SQL.

106
Multi-Selecthard

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

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

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

Why this answer

Cloud Dataproc is the managed Hadoop/Spark service on GCP. It supports master and worker nodes; worker nodes can be preemptible. Compute Engine is the underlying compute.

Cloud Storage is used for data (HDFS replacement) and staging. BigQuery is not Hadoop/Spark; Dataflow is Apache Beam; Persistent Disk is used for HDFS but not required if using Cloud Storage.

107
MCQeasy

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

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

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

Why this answer

Cloud Functions is a serverless event-driven compute service that executes code in response to events. Compute Engine and GKE require servers. App Engine is for web apps, not event-driven functions.

108
MCQmedium

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

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

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

Why this answer

Cloud CDN caches content at edge locations for low-latency delivery, and Cloud Armor provides DDoS protection and WAF capabilities at the edge.

109
MCQhard

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

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

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

Why this answer

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

110
MCQeasy

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

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

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

Why this answer

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

111
MCQmedium

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

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

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

Why this answer

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

112
MCQhard

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

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

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

Why this answer

Start in Standard for frequent reads, then transition to Nearline after 30 days (lower cost for infrequent access), then to Archive after 90 days for long-term retention at lowest cost.

113
MCQhard

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

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

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

Why this answer

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

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

114
MCQmedium

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

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

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

Why this answer

Cloud Functions is designed for event-driven triggers from Cloud Storage (e.g., object finalize). It is lightweight and cost-effective. Cloud Run is for containerized HTTP services.

Compute Engine and GKE are overkill for simple event-driven tasks.

115
MCQmedium

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

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

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

Why this answer

Cloud Load Balancing (External HTTP(S) Load Balancer) provides global, multi-region load balancing with SSL termination and health checks.

116
MCQeasy

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

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

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

Why this answer

Cloud Run is a serverless compute platform that executes containers in a fully managed environment, automatically scaling from zero to thousands of requests per second. It is ideal for containerized stateless applications that need to scale down to zero. Google Kubernetes Engine (GKE) does not scale to zero, Compute Engine requires VM management, and App Engine Flexible does not support custom containers that scale to zero as seamlessly.

117
MCQmedium

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

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

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

Why this answer

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

118
MCQmedium

A company needs to store petabytes of time-series IoT sensor data and query it with single-digit millisecond latency at millions of reads per second. The data has a simple key-value structure with timestamps. Which Google Cloud database is MOST appropriate?

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

Cloud Bigtable is a fully managed, wide-column NoSQL database built specifically for large-scale analytical and operational workloads, including time-series and IoT sensor data. It stores data as sparse rows keyed by a row key (typically device ID and timestamp), enabling single-digit millisecond read/write latency at massive scale. Bigtable scales horizontally by adding nodes to handle millions of queries per second without downtime, and its native integration with Cloud BigQuery, Dataflow, and Pub/Sub makes it the ideal choice for petabyte-scale sensor data ingestion and retrieval.

Why this answer

Cloud Bigtable is designed for petabyte-scale, low-latency, high-throughput NoSQL storage for time-series, IoT, and financial data. It scales horizontally by adding nodes.

119
MCQmedium

A data science team needs to train a custom machine learning model using their own data. They want a unified platform that manages the entire ML lifecycle, including data preparation, training, tuning, and deployment. Which service should they use?

A.AutoML
B.Vertex AI
C.AI Platform
D.Cloud Functions
AnswerB

Vertex AI is Google Cloud's unified MLOps platform, designed to handle the entire ML lifecycle: data labeling, feature engineering, custom training with any framework (TensorFlow, PyTorch, etc.), hyperparameter tuning, model versioning, and serving through endpoints. It integrates services like Vertex AI Feature Store, Vertex AI TensorBoard, and Model Monitoring, enabling end-to-end management. For a data science team needing to train and deploy a custom model, Vertex AI provides the essential, scalable infrastructure.

Why this answer

Vertex AI is Google Cloud's unified ML platform that covers the full lifecycle from data to deployment.

120
MCQhard

A company is running a stateful web application on Compute Engine with a SQL database. They want to use Cloud Load Balancing to distribute traffic across multiple instances in different zones. The application stores session state locally on each VM. Users report that after being directed to a different instance, their session is lost. What is the most suitable solution to maintain session persistence?

A.Store session state in Cloud SQL and share across instances
B.Configure Cloud CDN to cache session data
C.Use a global load balancer with HTTP cookies to track sessions
D.Enable session affinity (sticky sessions) on the load balancer
AnswerD

Enabling session affinity (sticky sessions) on the load balancer ensures that all requests from a given client during a session are routed to the same backend instance, as long as that instance remains healthy. This preserves the in-memory session state because the application can store session data locally on the instance, and subsequent requests are consistently directed to that same machine. The load balancer typically uses a hash of the client's IP address or a generated cookie to determine the backend, while still balancing load across different sessions. This directly solves the problem of a stateful web application without needing to externalize or replicate session state.

Why this answer

Cloud Load Balancing supports session affinity (sticky sessions) based on client IP or HTTP cookie, which directs a user to the same backend instance. Moving session state to a central database (Cloud SQL) or Memorystore also works but changes the application. Enabling HTTP cookies is a client-side solution not reliable.

Using a header-based approach is less common.

121
MCQhard

A company uses Cloud Functions to process image uploads. Each image triggers a function that uses Vision API to extract text and stores results in Firestore. The function sometimes fails due to timeout when images are large. How should they redesign for reliability and scale?

A.Use Cloud Tasks with Cloud Run to process images asynchronously
B.Use Cloud Scheduler to trigger the function every minute
C.Increase the function timeout to 60 minutes
D.Use Compute Engine VMs with startup scripts
AnswerA

Cloud Tasks decouples the image processing workload from the Cloud Function trigger, immediately returning a response to the client. Each upload is enqueued as a task that Cloud Run processes asynchronously, allowing you to configure timeouts up to 60 minutes or more. Cloud Run also scales to zero when idle, so you only pay for the processing time, and Cloud Tasks provides automatic retries for transient failures.

Why this answer

Cloud Functions has a timeout limit (9 minutes max for gen2). For long-running operations, use Cloud Run or migrate processing to a queue. Cloud Tasks with Cloud Run decouples and allows async processing with longer timeouts.

122
MCQmedium

A company wants to analyze petabytes of sales data using SQL queries with sub-second response times for dashboards. They need a fully managed, serverless solution that separates storage and compute. Which service meets these requirements?

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

BigQuery is a serverless, fully managed data warehouse with columnar storage and a distributed execution engine, purpose-built for petabyte-scale SQL analytics. It separates compute from storage, enabling sub-second interactive queries over massive datasets without provisioning clusters. Its native support for standard SQL, partitioning, and clustering makes it the ideal service for analyzing petabytes of sales data.

Why this answer

BigQuery is a serverless data warehouse that stores petabytes and uses SQL with fast query performance via columnar storage and separation of compute and storage.

123
MCQmedium

An organisation needs to run a batch analytics job every night that processes terabytes of data stored in Cloud Storage. The job is expected to run for 3 hours and can tolerate interruptions. The compute resources should be as cost-effective as possible. Which Compute Engine VM type should be used?

A.Standard (on-demand) VMs
B.Custom machine types
C.Preemptible VMs
D.Sole-tenant nodes
AnswerC

Preemptible VMs offer up to an 80% discount compared to on-demand instances but may be terminated by Compute Engine at any time, with a maximum runtime of 24 hours. Since the nightly analytics job is batch-oriented and fault-tolerant, it can handle these interruptions via restart or checkpointing, making preemptible VMs the most cost-effective and appropriate choice. This aligns the compute pricing model with the workload's tolerance for interruption.

Why this answer

Preemptible VMs are significantly cheaper than standard VMs and are ideal for batch jobs that can tolerate interruptions. They can be preempted at any time but can be restarted. Standard VMs are for long-running, fault-intolerant workloads.

Sole-tenant nodes are for compliance, not cost savings. Custom machine types allow tailoring resources but do not inherently save cost like preemptible VMs.

124
Multi-Selecteasy

A startup is building a mobile app that needs to store user profiles and preferences with low latency. The data is unstructured and frequently read/written. Which TWO Google Cloud database services are most suitable? (Choose 2)

Select 2 answers
A.Bigtable
B.Memorystore
C.Cloud Spanner
D.Cloud SQL
E.Firestore
AnswersA, E

Bigtable is a fully managed, wide-column NoSQL database designed for massive scale, handling millions of writes per second with sub-10ms latency. It is ideal for high-throughput, time-series, or IoT data where each user profile is keyed by a row key and columns can be dynamically added. However, its strengths are in analytical and operational workloads with large volumes, not necessarily the best fit for a simple mobile app user profile, yet it works if data volume is extremely high and latency is critical.

Why this answer

Firestore is a NoSQL document database optimised for mobile/web apps with low-latency reads/writes. Bigtable is also NoSQL but designed for high-throughput time-series data. Memorystore is a cache, not a primary database.

Cloud SQL is relational. The best options are Firestore for user profiles and preferences (unstructured, low-latency) and Bigtable if the scale is very high, but typically Firestore is the go-to for mobile. However, the question asks for TWO; Bigtable is also NoSQL and can be used for user data but is overkill.

Alternatively, Firestore and Memorystore can be combined: Firestore as primary, Memorystore as cache. But Memorystore is a cache, not a database. The question says 'database services'.

So likely Firestore and Bigtable are both NoSQL databases. But for user profiles, Firestore is more appropriate. I'll select Firestore and Bigtable as two NoSQL options.

125
MCQhard

An engineer is deploying a globally distributed application that requires strong consistency across multiple continents with a 99.999% uptime SLA. The data model is relational with SQL queries. Which database service should they use?

A.Cloud Spanner
B.Firestore in multi-region mode
C.Cloud SQL with cross-region replication
D.Bigtable with replication
AnswerA

Cloud Spanner is a fully managed, horizontally scalable relational database that combines standard SQL transactions with globally distributed replication. It uses TrueTime (a globally synchronized clock) and Paxos consensus to provide strong external consistency across all regions, meaning reads and writes are always linearizable even during failovers. With a 99.999% availability SLA and the ability to write from any region, it is the only option among these that supports globally consistent relational data at scale.

Why this answer

Cloud Spanner is the only Google Cloud database that provides globally distributed, strongly consistent relational data with a 99.999% SLA.

126
MCQhard

A data engineering team is building a streaming pipeline that ingests clickstream events from a website, processes them in real-time (e.g., aggregations, filtering), and loads the results into BigQuery for analysis. They also need the ability to replay events in case of failures. Which combination of services is MOST appropriate for the streaming ingestion and processing?

A.Cloud Storage and Cloud Functions
B.Pub/Sub and Cloud Dataflow
C.Pub/Sub and Cloud Functions
D.Apache Kafka on Compute Engine
AnswerB

Pub/Sub provides a fully managed, asynchronous messaging service with durable message retention, at-least-once delivery, and replay support, enabling reliable, scalable stream ingestion with no operators. Cloud Dataflow, built on Apache Beam, processes streams in real time and supports event-time processing, watermarks, windowing, and exactly-once semantics, making it suitable for complex transformations, aggregations, and stateful analytics. As a fully managed service, it also autoscales and seamlessly integrates with GCP and open-source ecosystems, so this combination is the intended architecture for real-time stream processing on GCP.

Why this answer

Pub/Sub for ingestion allows event replay (by setting a subscription's retention), and Dataflow for stream processing handles real-time transformations and writes to BigQuery.

127
MCQmedium

An organization needs to store archival data that must be retained for 10 years and is accessed less than once a year. Which Cloud Storage class offers the lowest storage cost?

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

Archive is the correct storage class because it is the lowest-cost option for long-term retention, designed specifically for data accessed less than once per year. It enforces a 365-day minimum storage duration, which aligns with archival retention needs where retrieval is rare and latency is acceptable. Its pricing model minimizes storage cost at the expense of higher retrieval fees, making it the most economical choice for compliance or forensic archives.

Why this answer

Archive storage is the lowest-cost storage class for long-term retention, with a 365-day minimum storage duration and higher retrieval costs.

128
MCQeasy

What is the primary purpose of Google Cloud Armor?

A.To accelerate content delivery globally
B.To protect applications from DDoS attacks and application-level threats
C.To provide outbound internet connectivity to private instances
D.To manage virtual private cloud networking
AnswerB

Cloud Armor provides built-in protections against volumetric DDoS attacks and a web application firewall (WAF) to block OWASP Top 10 threats like SQL injection and cross-site scripting. It uses preconfigured rules and adaptive protection to filter malicious traffic at the edge, only forwarding legitimate requests to backend services. This makes it the primary DDoS and application-layer security service for applications fronted by Cloud Load Balancing.

Why this answer

Cloud Armor is a web application firewall (WAF) that provides DDoS protection and security rules to protect applications distributed across Google Cloud. Cloud CDN accelerates content, Cloud NAT provides outbound internet access, and VPC is for virtual networking.

129
MCQhard

An organization runs a multi-region web application behind a global external HTTP(S) load balancer. They want to protect against DDoS attacks and filter traffic based on IP reputation and request headers. Which service should they integrate with the load balancer?

A.Cloud Armor
B.Cloud CDN
C.VPC firewall rules
D.Cloud NAT
AnswerA

Cloud Armor is the correct choice because it provides web application firewall (WAF) capabilities, DDoS protection, and IP reputation filtering at the global edge, directly integrated with Cloud Load Balancing. It can inspect HTTP(S) traffic, block malicious requests based on Layer 7 attributes like headers and body, and enforce allow/deny lists based on IP addresses and geolocation. This gives the organization precise, policy-based control over incoming traffic before it reaches backend instances.

Why this answer

Cloud Armor provides WAF and DDoS protection, including IP blacklisting/whitelisting, rate limiting, and custom rules. Cloud CDN caches content, Cloud NAT provides outbound connectivity, and VPC Firewall rules are for network-level filtering inside VPC.

130
MCQmedium

A company has a batch processing job that runs once per day and can be interrupted without significant impact. They want to reduce costs by using Google Cloud infrastructure. Which compute option should they choose?

A.Standard persistent disk
B.Preemptible VMs
C.Sustained use discounts
D.Custom machine types
AnswerB

Preemptible VMs are instances that run on Google Cloud's surplus capacity at a fraction of the normal cost, often up to 80% cheaper. They can be terminated abruptly by Google Cloud, but a batch job that runs only once per day and can tolerate interruptions is an ideal candidate. By designing the job to restart or resume from checkpoints, the company can achieve substantial cost savings while maintaining reliability.

Why this answer

Preemptible VMs offer significant cost savings (up to 60-91% discount) but can be terminated at any time by Google. They are ideal for fault-tolerant batch jobs. Spot VMs are similar but with a newer pricing model (no maximum runtime).

Both are good, but Preemptible is the classic answer. Custom machine types are not cost-saving by themselves; standard VMs are more expensive.

131
MCQeasy

Which Google Cloud service provides a fully managed, scalable data warehouse for running SQL queries on petabyte-scale data and supports BI tools like Looker?

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

BigQuery is Google Cloud's serverless, fully managed data warehouse built on a columnar storage format and the Dremel massively parallel query engine, letting you run SQL over petabytes without provisioning. Its compute and storage are decoupled, so it scales elastically and you pay only for queries and stored data; native Looker integration and BI Engine in-memory acceleration directly support analytical workloads. That combination of serverless scalability, ANSI SQL, and built-in BI connectivity is what makes it the correct answer.

Why this answer

BigQuery is a serverless data warehouse that scales to petabytes and uses SQL for analytics. Cloud SQL is for OLTP, Cloud Storage is object storage, and Dataflow is for data processing pipelines.

132
MCQmedium

A startup is building a mobile app and needs to store user profiles and preferences. The data is hierarchical and the app requires real-time synchronization across devices. Which Google Cloud database should they use?

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

Cloud Firestore is a flexible, serverless NoSQL document database designed specifically for mobile and web clients, with real-time synchronization via listen callbacks and automatic offline data persistence. Its hierarchical data model organizes user profiles naturally as documents within collections, and security rules integrate directly with client SDKs. Unlike global SQL options, Firestore provides built-in multi-device sync and conflict handling, making it the ideal fit for a mobile app storing user profiles.

Why this answer

Firestore is a NoSQL document database designed for mobile apps, with real-time sync and offline support. Cloud SQL and Spanner are relational, not ideal for hierarchical data. Bigtable is for time-series/analytics, not mobile app data.

133
MCQeasy

What is the primary benefit of using preemptible VMs on Compute Engine?

A.Support for live migration
B.Higher performance than standard VMs
C.Guaranteed availability of resources
D.Cost savings for fault-tolerant workloads
AnswerD

Preemptible VMs cost up to 80% less than standard VMs, making them ideal for fault-tolerant workloads that can survive instance termination, such as batch data processing, rendering, or stateless web serving. This cost benefit is the primary purpose of using them, not performance or availability, and it enables large-scale compute tasks under a constrained budget.

Why this answer

Preemptible VMs are significantly cheaper than standard VMs but can be terminated at any time. They are ideal for fault-tolerant, batch workloads.

134
MCQeasy

A startup is building a mobile app and needs a real-time database that synchronises data across user devices automatically. The data model is document-based, and the app needs offline support. Which database should they use?

A.Cloud Bigtable
B.Cloud SQL
C.Firestore
D.Memorystore
AnswerC

Firestore is a NoSQL document database with real-time synchronization built into its mobile SDKs, automatically pushing data changes to connected clients and persisting a local cache for offline operation. It resolves conflicts and syncs local writes when connectivity returns, enabling responsive, collaborative mobile experiences. Its flexible, schema-less document model maps naturally to app objects, making it the standard choice for real-time mobile apps.

Why this answer

Firestore is a NoSQL document database designed for mobile and web apps with real-time synchronization, offline support, and automatic multi-device sync. Cloud SQL is relational and not designed for mobile offline sync. Bigtable is for time-series.

Memorystore is a cache.

← PreviousPage 2 of 2 · 134 questions total

Ready to test yourself?

Try a timed practice session using only Google Cloud Products and Services questions.