Courseiva

CCNA Google Cloud Products and Services Questions

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

1
MCQeasy

Which Google Cloud service is used for monitoring and alerting on the performance and health of cloud resources?

A.Cloud Monitoring
B.Cloud Logging
C.Cloud Profiler
D.Cloud Trace
AnswerA

Cloud Monitoring is Google Cloud's primary service for operational visibility and alerting. It ingests metrics from GCP and external sources, stores them in a time-series database, and evaluates alerting policies that can trigger notifications via email, SMS, Pub/Sub, or webhooks. It also offers built-in dashboards and the Metrics Explorer for real-time and historical performance analysis, making it the correct answer for monitoring and alerting.

Why this answer

Cloud Monitoring (formerly Stackdriver Monitoring) provides visibility into the performance, uptime, and health of cloud applications.

2
MCQmedium

A financial services company needs a relational database with global strong consistency, horizontal scaling, and 99.999% availability SLA. Which database should they choose?

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

Cloud Spanner is the only Google Cloud relational database that combines global scalability with strong consistency and ACID transactions, using synchronous replication and Paxos consensus across regions. It is specifically designed to deliver 99.999% availability SLA, meeting the financial services requirement for a globally distributed, strongly consistent relational database. With horizontal scaling and automatic sharding, it can handle massive transaction loads while maintaining external consistency.

Why this answer

Cloud Spanner offers global distribution, strong consistency, automatic horizontal scaling, and a 99.999% SLA. Cloud SQL does not scale globally, Firestore is NoSQL, and Bigtable lacks strong consistency.

3
MCQmedium

A company is migrating a PostgreSQL database to Google Cloud. They want high performance, AI-optimized capabilities, and compatibility with existing PostgreSQL tools. Which service should they choose?

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

AlloyDB is PostgreSQL-compatible with 4x faster transactions and built-in AI capabilities.

Why this answer

AlloyDB is a PostgreSQL-compatible database optimized for high performance and AI workloads, with built-in ML integration. Cloud SQL for PostgreSQL provides compatibility but lacks AI optimization. Spanner is a different architecture.

Bigtable is NoSQL.

4
MCQhard

A data scientist wants to train a custom machine learning model using their own data and deploy it for online predictions. They want a unified platform that manages the entire ML lifecycle from data preparation to model serving. Which service should they use?

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

Vertex AI is the correct choice because it is Google Cloud's unified platform for building, training, and deploying ML models at scale. It provides a custom training service where you can launch training jobs with your own code, containers, and hardware accelerator configurations, and it manages compute clusters and automatically handles node provisioning. It also offers persistent online prediction endpoints, batch prediction, and integration with Vertex AI Pipelines for orchestration, making it ideal for a data scientist who needs full control.

Why this answer

Vertex AI is Google Cloud's unified ML platform that covers data labeling, training, tuning, evaluation, and deployment (online prediction endpoints). AutoML is part of Vertex AI but focuses on automated model building. Cloud Functions is for serverless code, not ML.

AI Platform (unified) is the old name for Vertex AI.

5
MCQhard

A company runs a global web application hosted on Compute Engine behind a Cloud Load Balancer. They want to protect against DDoS attacks and filter incoming traffic based on IP reputation and geolocation. Which Google Cloud service should they use?

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

Cloud Armor is a managed edge security service that works directly with external HTTP(S) load balancers to protect applications from DDoS attacks and web-based threats. It provides a customizable Web Application Firewall (WAF) with OWASP Top 10 rules, IP allow/deny lists, rate limiting, IP reputation filters, and geography-based access control, making it the appropriate choice for blocking malicious traffic and enforcing regional access policies on a global web application.

Why this answer

Cloud Armor is a web application firewall (WAF) and DDoS protection service that integrates with Cloud Load Balancing. It allows IP allow/deny lists, rate limiting, and predefined rules to block traffic based on geo-location and threat intelligence. VPC firewall rules operate at the network level but cannot inspect application-layer traffic or use IP reputation.

Cloud CDN caches content but does not filter traffic. Cloud NAT provides outbound connectivity only.

6
MCQhard

An organization needs to run a batch process every night that analyzes terabytes of data from Cloud Storage and writes results back to BigQuery. The job is not time-sensitive and can be preempted. Which compute approach is most cost-effective?

A.Cloud Functions with background trigger
B.Compute Engine with preemptible VMs
C.Google Kubernetes Engine with standard nodes
D.Cloud Run with manual scaling
AnswerB

Preemptible VMs on Compute Engine are the right choice for a nightly batch process because they are up to 80% cheaper than standard VMs, which directly reduces operational cost for a recurring, interruptible workload. Since batch jobs are inherently fault-tolerant—they can be checkpointed or simply rerun from the start—the risk of preemption is acceptable, and Google Cloud automatically restarts the VM if capacity is available. For a simple scheduled job, a preemptible VM is a low-complexity, high-savings solution.

Why this answer

Preemptible VMs on Compute Engine offer the lowest cost for fault-tolerant batch workloads because they are up to 80% cheaper than regular VMs but can be terminated at any time. Cloud Run has a request timeout limit and is not ideal for long-running batch jobs. GKE with preemptible nodes is also cost-effective but requires Kubernetes expertise and is more complex than simply using preemptible VMs.

Cloud Functions has a timeout limit.

7
Multi-Selectmedium

A company wants to deploy a web application that automatically scales based on traffic, and they do not want to manage infrastructure. The application is written in Python and uses a Flask framework. Which TWO Google Cloud services could they use?

Select 2 answers
A.Google Kubernetes Engine
B.Cloud Functions
C.Cloud Run
D.Compute Engine
E.App Engine Standard
AnswersC, E

Cloud Run is a fully managed serverless container platform that can run any containerized HTTP service, including a Flask web application. It automatically scales from zero to handle traffic, scaling up as requests increase and scaling down to zero when idle, so you only pay for resources used during request processing. Unlike GKE, Cloud Run abstracts away cluster management entirely, making it ideal for a containerized Flask app that needs automatic scaling with minimal operational effort.

Why this answer

App Engine Standard supports Python and Flask, automatically scaling to zero. Cloud Run can run containerized Flask applications, scaling to zero based on requests. Compute Engine requires VM management.

Cloud Functions is for small snippets, not full web apps. GKE requires cluster management.

8
MCQmedium

A data scientist wants to train a custom machine learning model using a large dataset stored in BigQuery. They need a managed service that supports distributed training with GPU accelerators. Which service should they use?

A.Dataflow
B.Cloud Functions
C.AutoML (within Vertex AI)
D.Vertex AI Training
AnswerD

Vertex AI Training is a fully managed service that runs arbitrary custom training code in containers, with support for distributed training, GPU/TPU accelerators, hyperparameter tuning, and job orchestration. It lets the data scientist define their own model architecture using any ML framework (TensorFlow, PyTorch, JAX) and scale seamlessly from a single VM to large clusters. This directly fulfills the requirement of training a custom model with full control, while offloading infrastructure management to Vertex AI.

Why this answer

Vertex AI provides a unified ML platform with managed training jobs that support distributed training and GPU accelerators.

9
MCQhard

An engineer needs to deploy a containerized application on Google Kubernetes Engine (GKE) and ensure that each pod gets a static IP address that persists across rescheduling. Which networking approach should they use?

A.Use a VPC-native cluster and assign a static internal IP using the `networking.gke.io/static-ip` annotation.
B.Use a load balancer service of type LoadBalancer.
C.Use a DaemonSet to ensure one pod per node.
D.Use a StatefulSet with a headless service.
AnswerA

A VPC-native cluster assigns pod IPs directly from the VPC subnet, allowing the `networking.gke.io/static-ip` annotation to reserve a specific internal IP for a pod. This annotation binds that IP to the pod's network interface, ensuring the pod keeps the same address even after rescheduling. The reservation is managed by GKE and persists until the annotation is removed, making it ideal for workloads that require a fixed internal endpoint.

Why this answer

GKE supports static IP addresses for pods using VPC-native clusters and alias IP ranges. By reserving a static internal IP address and assigning it to the pod via a Kubernetes annotation, the IP persists even if the pod is rescheduled.

10
MCQhard

A company wants to store archived data that must be retained for 10 years. They expect to access it less than once a year. Which Cloud Storage class is the MOST cost-effective?

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

The Archive storage class is designed for data accessed less than once a year, with a minimum 180-day retention period that aligns with the 10-year requirement. Its retrieval cost is high, but the lowest storage price among classes makes it most cost-effective when access is rare, satisfying the constraint of infrequent retrieval.

Why this answer

Archive storage is designed for data accessed less than once a year, with the lowest storage cost but higher retrieval fees and a 365-day minimum storage duration. Coldline has a 90-day minimum and higher cost. Nearline and Standard are more expensive and have shorter minimums.

11
MCQmedium

A data engineer needs to process a continuous stream of clickstream events from a website, perform real-time aggregations (e.g., counts per page per minute), and write the results to BigQuery for dashboarding. Which combination of services should they use?

A.Pub/Sub, Cloud Functions, Cloud SQL
B.Cloud Storage, Dataflow, Cloud SQL
C.Pub/Sub, Dataflow, BigQuery
D.Pub/Sub, Cloud Functions, BigQuery
AnswerC

Pub/Sub + Dataflow + BigQuery is the correct streaming pipeline. Pub/Sub is a fully managed, durable message ingestion service that decouples producers from consumers and supports exactly-once delivery semantics in combination with Dataflow. Dataflow (Apache Beam runner) provides unified batch and stream processing with built-in windowing, stateful aggregations, and exactly-once guarantees, enabling real-time click aggregation. BigQuery is a serverless, columnar data warehouse optimized for scanning large volumes of data with high concurrency, making it ideal for serving a live dashboard with sub-second SQL queries on aggregated results.

Why this answer

Pub/Sub ingests the stream, Dataflow processes real-time aggregations using Apache Beam, and BigQuery stores results. Cloud Functions is not suitable for streaming aggregations. Cloud Storage is for batch, not real-time.

Cloud SQL is not for streaming analytics.

12
Multi-Selecteasy

A developer wants to build a mobile app backend that uses a real-time database for chat messages, user profiles, and file storage for images. They want a fully managed, serverless solution. Which THREE Google Cloud services should they use? (Choose three.)

Select 3 answers
A.Cloud SQL
B.Cloud Functions
C.Firestore
D.Cloud Storage
E.App Engine
AnswersB, C, D

Cloud Functions is a serverless execution environment that runs backend logic in response to Firestore and Cloud Storage events, so you can handle message processing, profile updates, and media metadata without provisioning servers. It naturally complements the mobile backend by creating a scalable, event-driven pipeline that charges only when code runs, and it provides a secure way to perform privileged operations that should not run on the client device.

Why this answer

Firestore provides real-time document database for chat and profiles; Cloud Storage for images; Cloud Functions for backend logic triggered by database or storage events. App Engine is not required for serverless backend if using Cloud Functions.

13
Multi-Selectmedium

A data engineering team needs to process streaming data from IoT devices, perform real-time transformations, and load the results into BigQuery for analysis. Which TWO Google Cloud services should they use?

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

Pub/Sub is a fully managed, globally distributed messaging and ingestion service built for real-time event streaming. It reliably captures high-volume data from IoT devices via pull or push subscriptions, decouples producers from downstream consumers, and provides at-least-once delivery without requiring any server provisioning. As the entry point in a streaming data pipeline, it buffers and routes telemetry so that downstream systems like Dataflow can process it without data loss.

Why this answer

Pub/Sub is the messaging service for ingesting streaming data. Dataflow can read from Pub/Sub, perform transformations, and write to BigQuery. Cloud Functions is for small event-driven functions, not streaming pipelines.

Dataproc is for batch Hadoop/Spark jobs. Cloud Scheduler is for cron jobs.

14
Multi-Selectmedium

A company is deploying a global web application and needs to serve users with low latency, protect against DDoS attacks, and scale automatically. Which two Google Cloud services should they combine? (Choose exactly 2.)

Select 2 answers
A.Cloud Armor
B.Cloud CDN
C.Cloud NAT
D.Cloud Load Balancing
E.Cloud DNS
AnswersA, D

Cloud Armor is the correct answer because it provides built-in DDoS protection at the edge and a customizable Web Application Firewall (WAF) with preconfigured rules, such as OWASP Top 10 protections, to filter malicious traffic before it reaches the backend. It integrates natively with Cloud Load Balancing, allowing security policies to be enforced on global HTTP(S) traffic, which is essential for a global web application facing threats like SQL injection and cross-site scripting.

Why this answer

Cloud Load Balancing distributes traffic globally and scales automatically. Cloud Armor provides DDoS protection and WAF. Cloud CDN caches content but does not provide DDoS protection.

Cloud DNS resolves domain names. Cloud NAT is for outbound connectivity.

15
MCQmedium

A developer wants to trigger a serverless function in response to a file being uploaded to a Cloud Storage bucket. Which Google Cloud service should they use?

A.Compute Engine
B.Cloud Functions
C.Cloud Run
D.App Engine
AnswerB

Cloud Functions is Google Cloud's fully managed, event-driven serverless compute platform designed specifically for single-purpose functions that respond to Cloud Storage events, HTTP triggers, Pub/Sub messages, and other event sources. It automatically scales to zero when no events occur, eliminating idle cost, and executes code only when a trigger fires, making it the ideal lightweight choice for a developer who wants to run a snippet of code without provisioning or managing infrastructure. Its runtime model directly matches the requirement for a serverless function triggered by a Cloud Storage upload.

Why this answer

Cloud Functions is an event-driven serverless compute service that can be triggered by Cloud Storage events (e.g., object finalize).

16
MCQmedium

A data engineering team wants to process continuous streams of real-time events from millions of devices, perform transformations, and load the results into BigQuery for analysis. They need a fully managed, serverless solution. Which service should they use?

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

Cloud Dataflow is a fully managed, serverless service that unifies stream and batch data processing using the Apache Beam model. It auto-scales, provides exactly-once semantics, and natively integrates with BigQuery, Pub/Sub, and other GCP services. Its support for event-time processing, watermarks, and stateful aggregations makes it the correct choice for building scalable, real-time stream processing pipelines.

Why this answer

Dataflow is a fully managed, serverless service for stream and batch data processing, with built-in connectors to Pub/Sub and BigQuery. Pub/Sub is for ingestion only, not processing. Cloud Functions is not designed for high-throughput streaming.

Dataproc is a managed Hadoop/Spark service, not serverless.

17
Multi-Selectmedium

A company wants to migrate its on-premises PostgreSQL database to Google Cloud with minimal downtime. They also need the ability to perform point-in-time recovery. Which TWO services or features should they use? (Choose two.)

Select 2 answers
A.Cloud SQL for PostgreSQL
B.Cloud Spanner
C.Cloud SQL for MySQL
D.Database Migration Service
E.Cloud Dataflow
AnswersA, D

Cloud SQL for PostgreSQL is the correct target because it is Google Cloud's fully managed relational database service that is natively compatible with the PostgreSQL engine. This means your existing schema, queries, stored procedures, and database tools can be used with minimal modification, providing a straightforward lift-and-shift path from on-premises PostgreSQL to a managed cloud environment. It also offers automated backups, high availability, and scaling, which are key benefits for production migrations.

Why this answer

Cloud SQL for PostgreSQL supports database migration and point-in-time recovery. Database Migration Service provides for minimal-downtime migrations.

18
Multi-Selecthard

A company runs a critical application on Compute Engine. They need a backup and disaster recovery strategy that includes automated backups and the ability to restore in a different region. Which TWO services should they use together? (Select 2)

Select 2 answers
A.Cloud Run
B.Persistent Disk snapshots
C.Dataflow
D.Cloud SQL
E.Cloud Storage
AnswersB, E

Persistent Disk snapshots are the direct, native mechanism for backing up Compute Engine disks. A snapshot captures the exact state of a disk at a specific time, and subsequent snapshots are incremental, storing only changed blocks for cost efficiency. You can automate snapshot creation with Cloud Scheduler and the Cloud Pub/Sub notifications, or use the Backup and DR service, and these snapshots can be restored to create new disks or be used to migrate the VM to another region.

Why this answer

Persistent Disk snapshots can be used for automated backups. Cloud Storage can store these snapshots in a different region for DR. Cloud SQL is not relevant if the application runs on Compute Engine.

Cloud Run is a compute service, not backup. Dataflow is processing.

19
MCQmedium

A team wants to use a managed MySQL database that offers automatic failover, backups, and read replicas. They also need to connect from Compute Engine instances in the same region. Which service should they use?

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

Cloud SQL for MySQL is a fully managed relational database service that provides automated backups, failover, read replicas, and vertical/horizontal scaling. It is specifically engineered to be compatible with standard MySQL clients and tools, offering a familiar SQL interface and transactional guarantees. This makes it the ideal choice for teams that want a managed MySQL database without operational overhead.

Why this answer

Cloud SQL provides managed MySQL with high availability, automated backups, and read replicas, and can be accessed from Compute Engine via internal IP.

20
MCQhard

A security team wants to restrict access to a Cloud Storage bucket so that only Compute Engine VMs in the same VPC network can read objects. The VMs do not have public IP addresses. Which configuration should they use?

A.Assign external IPs to the VMs and use firewall rules.
B.Create a bucket with uniform bucket-level access and grant the `storage.objectViewer` role to `allUsers`.
C.Use a Cloud VPN to connect the VMs to the bucket.
D.Enable Private Google Access on the subnet and use VPC Service Controls to limit bucket access to the VPC.
AnswerD

Enabling Private Google Access on the VM's subnet allows instances with only internal IPs to reach Google APIs and services, including Cloud Storage, through the VPC's internal routing and the default gateway. VPC Service Controls add a security perimeter that explicitly restricts bucket access to the VPC network, preventing access from the public internet or other networks within the organization. Together they enforce the requirement: the VMs remain without public IPs, and the bucket's access is limited to the VPC, not just any Google-authenticated identity.

Why this answer

Private Google Access allows VMs without external IPs to access Google APIs and services via the VPC network. Combined with VPC Service Controls and bucket IAM, this ensures only VMs in the VPC can access the bucket.

21
MCQeasy

Which Google Cloud service is a fully managed, serverless data warehouse for running SQL queries on petabyte-scale datasets?

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

BigQuery is a fully managed, serverless data warehouse that separates compute from storage, enabling petabyte-scale SQL analytics without provisioning infrastructure. It uses a columnar storage format and a distributed query engine that dynamically allocates slots, making it ideal for interactive BI and large data aggregations. BigQuery also includes built-in features like partitioning, clustering, and automatic recompression of data, and it supports standard SQL, which is why it is the correct answer for a serverless analytics warehouse.

Why this answer

BigQuery is the serverless data warehouse for analytics SQL queries. Dataflow is for stream processing, Dataproc for Hadoop/Spark, and Cloud SQL for OLTP.

22
Multi-Selecthard

A company has a multi-regional deployment of a web application on Compute Engine. They want to improve latency for users worldwide and reduce load on the origin servers. They also need to protect against SQL injection and cross-site scripting attacks. Which TWO Google Cloud services should they implement?

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

Cloud Armor is Google Cloud's web application firewall (WAF) that provides configurable security policies for HTTP(S) load balancing. It includes pre-configured rules from the ModSecurity Core Rule Set to block SQL injection, cross-site scripting, and other OWASP Top 10 threats. Cloud Armor also supports IP allow/deny lists, geo-based access controls, and rate limiting, making it the precise service to protect a web application from the stated attacks.

Why this answer

Cloud CDN caches content at edge locations to improve latency and reduce origin load. Cloud Armor provides WAF capabilities to protect against application attacks like SQL injection and XSS. Cloud Load Balancing distributes traffic but doesn't cache.

Cloud DNS is for DNS resolution. Cloud NAT is for outbound internet.

23
MCQeasy

Which Google Cloud service provides a serverless data warehouse for running SQL queries on petabyte-scale data with no need to manage infrastructure?

A.Cloud SQL
B.Dataflow
C.BigQuery
D.Pub/Sub
AnswerC

BigQuery is serverless, scalable, and designed for SQL analytics on large datasets.

Why this answer

BigQuery is a fully managed, serverless data warehouse that supports SQL queries on massive datasets.

24
Multi-Selectmedium

A company is building a real-time leaderboard for an online game using Google Cloud. They need a database that can handle millions of updates per second with low latency and serve the current top scores. Which TWO services should they use together? (Choose 2)

Select 2 answers
A.Cloud SQL
B.Firestore
C.Cloud Bigtable
D.Memorystore for Redis
E.BigQuery
AnswersC, D

Cloud Bigtable is a NoSQL wide-column database engineered for high-throughput, low-latency writes of millions of rows per second when scaling with CPU and storage nodes. Its distributed storage engine appends writes to SSTables with memtable buffering, giving consistent single-digit-millisecond latencies and linear write scaling across a cluster without a single bottleneck. For a real-time leaderboard, Bigtable's row-key design (like inverted scores or user IDs) paired with its massive write capacity makes it a proven choice for globally hot update streams.

Why this answer

Cloud Bigtable can ingest high-velocity score updates, and Memorystore (Redis) can maintain a sorted set for the leaderboard. BigQuery is too slow for real-time updates; Firestore is not designed for millions of writes per second.

25
Multi-Selecteasy

A company wants to store archival data that is accessed less than once a year and needs the lowest storage cost. Which TWO Cloud Storage classes are most cost-effective for this use case?

Select 2 answers
A.Regional
B.Nearline
C.Standard
D.Archive
E.Coldline
AnswersD, E

Archive is the correct answer because it is Google Cloud's lowest-cost storage class, explicitly intended for data accessed less than once a year. It has the cheapest storage price but charges high retrieval fees and requires a minimum storage duration of 365 days. This matches the described access pattern of archival data, making it the most cost-effective option.

Why this answer

Archive storage has the lowest cost for data accessed less than once a year. Coldline is for data accessed every 90 days. Standard and Nearline are more expensive.

Archive and Coldline are both lower cost than Standard, but Archive is cheapest. The question asks for TWO, so Archive and Coldline are both cold storage classes. However, Archive is the best for annual access.

Coldline is for quarterly access but still cheaper than Standard. The correct TWO are Archive and Coldline, as they are the cold storage classes.

26
MCQmedium

A DevOps team wants to automatically build a Docker image from a GitHub repository and store it in a private registry whenever a new tag is pushed. Which Google Cloud services should they combine?

A.Cloud Build and Container Registry
B.Cloud Source Repositories and Container Registry
C.Cloud Functions and Artifact Registry
D.Cloud Build and Artifact Registry
AnswerD

Cloud Build natively supports build triggers tied to GitHub events, including tag push events, making it ideal for automatically building a Docker image when a tag is pushed. The built image can then be securely pushed to Artifact Registry, which is the fully managed, regional container registry with IAM integration, vulnerability scanning, and support for Docker and OCI artifacts. This combination is the recommended, maintainable CI/CD approach for tag-driven image builds.

Why this answer

Cloud Build can be triggered by GitHub events (like tag push) to build a container image and push it to Artifact Registry. Artifact Registry is the managed container registry. Container Registry is deprecated.

Cloud Source Repositories is a Git repository, not a registry. Cloud Functions could trigger a build but is not the primary service.

27
MCQeasy

An organization needs to apply security policies to protect their web application from DDoS attacks and SQL injection. Which Google Cloud service should they use?

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

Cloud Armor is Google Cloud's web application firewall (WAF) and DDoS protection service, which integrates with Cloud Load Balancing to protect services at the edge. It enables fine-grained security policies based on IP addresses, geographic location, and preconfigured or custom rules that filter OWASP Top 10 threats like SQL injection and cross-site scripting. Cloud Armor also mitigates volumetric DDoS attacks with adaptive protection and scale, making it the correct service for applying security policies.

Why this answer

Cloud Armor is a web application firewall (WAF) that provides DDoS protection and security rules to block threats like SQL injection. Cloud CDN is for content caching. Load Balancing distributes traffic.

Cloud NAT is for outbound connectivity.

28
Multi-Selecthard

A company runs a containerized microservices application on Google Kubernetes Engine (GKE). They want to expose a set of services externally with a single IP address, implement SSL termination, and protect against DDoS attacks. Which THREE Google Cloud services should they use together?

Select 3 answers
A.Cloud Armor
B.Cloud NAT
C.Cloud Load Balancing
D.Cloud VPN
E.Cloud CDN
AnswersA, C, E

Cloud Armor is Google Cloud's distributed denial-of-service (DDoS) protection and web application firewall (WAF) service. It attaches to an HTTP(S) Load Balancer and filters incoming traffic based on preconfigured or custom rules, mitigating OWASP Top 10 threats, IP-based blocklists, and rate-limiting before requests hit backend services. This makes it the decisive security layer for a containerized microservices application exposed to the internet, blocking malicious traffic at the edge.

Why this answer

Cloud Load Balancing provides a single anycast IP and SSL termination. Cloud CDN accelerates content delivery and can be integrated with the load balancer. Cloud Armor provides DDoS protection and WAF capabilities.

Cloud NAT is for outbound internet access, Cloud VPN for site-to-site VPN, and Cloud Interconnect for dedicated connectivity.

29
MCQmedium

An organisation is migrating its on-premises Oracle database to Google Cloud. They need a fully managed, PostgreSQL-compatible database with high performance for transaction processing and built-in AI capabilities for predictive analytics. Which database service should they choose?

A.Bare Metal Solution for Oracle
B.Cloud SQL for PostgreSQL
C.Cloud Spanner
D.AlloyDB
AnswerD

AlloyDB is a fully managed, PostgreSQL-compatible database service architected for high performance, delivering up to 4x faster transactional throughput and up to 100x faster analytical queries compared to standard PostgreSQL. It includes AlloyDB AI with vector similarity search, predictive autoscaling, and columnar engine, making it ideal for migrating Oracle workloads while adding artificial intelligence features. This aligns exactly with the requirement for a managed, compatible database with built-in AI.

Why this answer

AlloyDB is a fully managed PostgreSQL-compatible database that offers high performance (4x faster than standard PostgreSQL) and integrated AI capabilities for vector search and predictive analytics. Cloud SQL for PostgreSQL is also managed but lacks the AI optimisations. Cloud Spanner is globally distributed but not PostgreSQL-compatible.

Bare Metal Solution runs Oracle on dedicated hardware, not managed.

30
Multi-Selectmedium

A data analytics team wants to analyze large datasets using SQL and create dashboards with minimal latency. They need a serverless data warehouse and a BI tool. Which two services should they use? (Choose exactly 2.)

Select 2 answers
A.Dataflow
B.Looker Studio
C.Cloud Storage
D.Looker
E.BigQuery
AnswersD, E

Looker is an enterprise business intelligence and data analytics platform that provides a semantic modeling layer (LookML) to define business logic, enabling consistent and reusable metrics across the organization. It allows analysts to explore large datasets through a governed interface and create interactive dashboards, and it ties into cloud data warehouses like BigQuery for query execution. Looker is designed specifically for large-scale business analytics and is a correct choice for this use case.

Why this answer

BigQuery is a serverless data warehouse for SQL analytics. Looker is a BI platform integrated with BigQuery for dashboards. Dataflow is for data processing, not storage.

Cloud Storage is for object storage, not SQL analytics. Looker Studio is free but less feature-rich for enterprise needs.

31
MCQeasy

Which Google Cloud service provides a managed Redis or Memcached in-memory data store for caching and low-latency data access?

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

Memorystore provides managed Redis and Memcached.

Why this answer

Memorystore is the fully managed in-memory data store service for Redis and Memcached, used for caching and low-latency access.

32
MCQeasy

A startup wants to deploy a containerised web application that scales automatically from zero to handle traffic spikes and charges only for the resources used during request processing. They want to avoid managing servers or Kubernetes clusters. Which compute service should they choose?

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

Cloud Run is a fully managed, Knative-based serverless platform that executes stateless containers in a scale-to-zero model: when there are no incoming requests, it shuts down all instances and you pay nothing. Each request is billed in 100-millisecond increments of compute time plus a minimal per-request charge, and it automatically scales to handle variable traffic, including bursting to thousands of concurrent requests. It accepts any container image that uses an HTTP server, which directly matches the need to deploy a containerised web application without managing any underlying nodes or clusters.

Why this answer

Cloud Run is a serverless compute platform that runs containers, scales to zero when not in use, and charges for resources used during request processing. It fits the description perfectly.

33
MCQmedium

A company is migrating a legacy monolithic application to Google Cloud. They want to reduce operational overhead by eliminating server management while keeping the ability to run containers. The application has unpredictable traffic patterns and needs to scale to zero when idle. Which compute option is the best fit?

A.Cloud Run
B.Google Kubernetes Engine (GKE)
C.App Engine Flexible Environment
D.Compute Engine with managed instance groups
AnswerA

Cloud Run is a fully managed serverless compute platform that executes stateless containers delivered via a requests URL. It automatically scales your container from zero to whatever number of instances are needed to handle incoming traffic, and you are billed only for the resources consumed during request processing—when idle, you pay nothing. This makes it exceptionally well-suited for unpredictable traffic patterns without requiring any cluster or infrastructure management.

Why this answer

Cloud Run is a serverless container platform that automatically scales to zero when idle, eliminating server management and cost during idle periods. GKE requires cluster management, Compute Engine is not serverless, and App Engine Flex requires VMs always running.

34
MCQhard

A company runs a globally distributed application with users in North America, Europe, and Asia. They need to serve static content (images, videos) with low latency from edge locations. They also need to protect against DDoS attacks. Which combination of services should they use?

A.Cloud CDN and Cloud NAT
B.Cloud Load Balancing and Cloud CDN
C.Cloud CDN and Cloud Armor
D.Cloud Armor and Cloud Interconnect
AnswerC

Cloud CDN offloads static content delivery to Google's global edge cache, absorbing sudden spikes in traffic and reducing origin load. Cloud Armor enforces security policies at the edge, offering HTTP(S) L3-7 DDoS protection, WAF rules, and per-user rate limits. Together, they provide both acceleration and protection: Cloud CDN handles legitimate cacheable content at scale, while Cloud Armor filters out attack traffic before it reaches Cloud CDN or the backend.

Why this answer

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

35
Multi-Selectmedium

A company wants to implement a data pipeline that ingests streaming events from a global user base, processes them in real-time to detect anomalies, and stores the results in a database for low-latency querying. The solution must be fully managed. Which THREE services should they use? (Choose 3)

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

Dataflow is a fully managed, unified stream and batch data processing service based on Apache Beam. It performs real-time stream processing, including event-time windowing, aggregation, and anomaly detection with exactly-once semantics, auto-scaling, and low latency. It is the correct choice for the processing stage because it can consume from Pub/Sub, apply transformations (including anomaly detection), and write results to Bigtable.

Why this answer

Pub/Sub ingests streaming events with global scalability. Dataflow processes events in real-time with exactly-once semantics. Bigtable provides low-latency access for storing and querying processed results.

Cloud Storage is for object storage, not low-latency queries. Cloud SQL is for relational OLTP but may not match Bigtable's throughput for anomaly detection results. Cloud Functions is not suited for continuous stream processing.

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

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

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

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

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

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

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

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

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

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

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

47
MCQmedium

A developer needs to trigger a serverless function whenever a new file is uploaded to a Cloud Storage bucket. The function will process the file and store results in Firestore. Which Google Cloud service should they use for the function?

A.App Engine
B.Compute Engine
C.Cloud Run
D.Cloud Functions
AnswerD

Cloud Functions is a purpose-built, event-driven serverless compute platform that natively responds to GCP events, including Cloud Storage object finalization (e.g., the 'google.storage.object.finalize' trigger). When an object is uploaded, Cloud Functions automatically invokes the function with the event metadata, scaling to zero when idle and managing all infrastructure transparently. This aligns exactly with the requirement to trigger a single-purpose serverless function on a storage event, without needing a container runtime, a web server, or an intermediary like Pub/Sub.

Why this answer

Cloud Functions is an event-driven serverless compute service that can be triggered by Cloud Storage events.

48
MCQmedium

A security team needs to protect a web application behind an HTTP(S) Load Balancer from SQL injection and cross-site scripting (XSS) attacks. Which Google Cloud service provides these protections?

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

Cloud Armor is the correct answer because it is Google Cloud's managed Web Application Firewall (WAF) service that provides application-layer (L7) protection for services behind Cloud Load Balancing. It includes pre-configured rules from the OWASP ModSecurity Core Rule Set, which specifically detects and blocks SQL injection and cross-site scripting patterns in HTTP headers, query parameters, and request bodies. Cloud Armor also offers adaptive protection, rate limiting, and geo-based access controls, making it the appropriate tool for defending a web application against these common web exploits.

Why this answer

Cloud Armor is a Web Application Firewall (WAF) that provides pre-configured rules for OWASP Top 10 threats like SQLi and XSS. Cloud CDN is for caching, Cloud DNS for domain resolution, and VPC firewall rules operate at the network layer (not application layer).

49
MCQeasy

Which Google Cloud service provides a fully managed, scalable NoSQL document database suitable for mobile and web applications with real-time data synchronization?

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

Firestore is Google Cloud's fully managed, scalable NoSQL document database designed for mobile and web applications, offering real-time listeners, offline persistence, and automatic multi-region replication. Data is stored in documents organized into collections, with flexible schema and powerful querying, making it ideal for user profiles, chat messages, and other semi-structured data. Its serverless scaling and client SDKs are optimized for direct app-to-database access, which distinguishes it from the alternatives.

Why this answer

Firestore is a document database with real-time syncing and offline support. Bigtable is wide-column, Cloud SQL is relational, and Memorystore is a cache.

50
MCQmedium

A data engineer needs to process a continuous stream of events from a global user base, perform real-time transformations, and write the results to both Cloud Storage and BigQuery. The solution must handle sudden traffic spikes and be fully managed (no server management). Which combination of services should the engineer use?

A.Pub/Sub, Cloud Functions, Cloud Storage
B.Pub/Sub, Dataflow, Cloud Functions
C.Cloud Scheduler, Cloud Functions, BigQuery
D.Pub/Sub, Dataflow, Cloud Storage, BigQuery
AnswerD

This pipeline uses Pub/Sub for asynchronous ingestion, then Dataflow (the fully managed Apache Beam runner) to read the unbounded stream, apply transforms, and write to two complementary sinks: Cloud Storage for durable raw data or archives, and BigQuery for interactive analytics. Dataflow handles the challenges of streaming—windowing, triggering, exactly-once processing, and auto-scaling—so all services are purpose-built for their roles and form a complete, production-ready architecture.

Why this answer

Pub/Sub ingests and buffers the stream, Dataflow (a fully managed stream processing service) reads from Pub/Sub, performs transformations, and writes to Cloud Storage and BigQuery with exactly-once semantics. Cloud Functions is for lightweight event-driven code, not heavy stream processing. Cloud Scheduler is for cron jobs.

Composer is for workflow orchestration.

51
MCQeasy

A developer wants to deploy a containerised 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 they choose?

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

Cloud Run is a fully managed serverless container platform that executes stateless HTTP/S containers on demand, automatically scaling from zero to handle traffic spikes and back down to zero when requests stop. It accepts any container image that listens on HTTP/HTTPS, pulled from Artifact Registry or Container Registry, and you are billed only for the resources used during request processing (increments of 100ms) with no charge for idle instances. This makes it a direct fit for a containerized web application that needs elastic scaling and pay-per-use pricing without the need to manage clusters or nodes.

Why this answer

Cloud Run is a serverless compute platform that runs containers, scales to zero when idle, and charges per request and CPU/memory usage only during request handling. App Engine Standard can scale to zero but does not support arbitrary containers. GKE and Compute Engine are provisioned infrastructure that does not scale to zero.

52
Multi-Selectmedium

A developer wants to build a CI/CD pipeline that automatically builds a Docker container from a GitHub repository, stores the image securely, and deploys it to Cloud Run. Which THREE services should they integrate? (Select 3)

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

Cloud Build ingests source code from GitHub and executes a series of build steps, including compiling code and building a Docker image using a Dockerfile. Because it is a managed service, it scales automatically and can trigger builds on commits or PRs, making it the core automation engine of this CI/CD pipeline.

Why this answer

Cloud Build builds the Docker image, Artifact Registry stores the image, and Cloud Run deploys it. Cloud Storage is for object storage, not container images. Cloud Build triggers can be used with GitHub, but the question asks for services that are part of the pipeline; Cloud Source Repositories is a code repository, not required if using GitHub.

53
MCQeasy

A startup wants to deploy a containerized web application that can scale to zero during periods of no traffic, and they want to minimize operational overhead. Which Google Cloud compute service is the BEST fit?

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

Cloud Run runs stateless containers on a fully managed, serverless platform that automatically scales from zero to thousands of instances based on incoming traffic, and you pay only for the processing time during active requests. It eliminates infrastructure management entirely—no cluster, VMs, or capacity planning—and supports fine-grained revisioning and traffic splitting. This makes it the ideal choice for a containerized web app that must scale to zero during idle periods.

Why this answer

Cloud Run is a serverless container platform that automatically scales your containers up and down, including scaling to zero when there is no traffic. It abstracts away infrastructure management, making it ideal for this use case.

54
Multi-Selectmedium

A company wants to implement a serverless event-driven architecture where object uploads to Cloud Storage trigger a function that processes the file and stores results in Firestore. The function needs to be written in Python. Which three Google Cloud services are required?

Select 3 answers
A.Pub/Sub
B.Cloud Functions
C.Cloud Build
D.Cloud Storage
E.Firestore
AnswersB, D, E

Cloud Functions is the serverless compute layer that runs the Python code when a file is uploaded; the Cloud Storage event (object.finalize) triggers the function with event metadata like bucket and object name. It automatically scales to zero when idle, handles the processing synchronously or asynchronously, and integrates seamlessly with GCP services. Since the requirement specifies running Python code in an event-driven way, Cloud Functions is the correct service for executing the logic.

Why this answer

The architecture uses Cloud Storage (trigger), Cloud Functions (compute), and Firestore (database). Cloud Build is for CI/CD, not runtime. Pub/Sub could be used but is not required if the function is triggered directly from Cloud Storage.

55
Multi-Selecthard

A data scientist needs to build a custom machine learning model using TensorFlow on Google Cloud. The training data is stored in Cloud Storage and is hundreds of gigabytes. The data scientist wants to use a managed service that handles hyperparameter tuning and distributed training without managing infrastructure. Which TWO services can be used together to achieve this? (Choose 2)

Select 2 answers
A.BigQuery ML
B.Vertex AI Training
C.Cloud Functions
D.Vertex AI Workbench
E.Cloud Run
AnswersB, D

Vertex AI Training is a fully managed service for custom model training that provisions and orchestrates compute clusters on demand. It natively supports distributed training by splitting data/model across multiple workers and accelerators, and it automates hyperparameter tuning and experiment tracking. This makes it the appropriate service for a data scientist to run a custom ML model that needs to scale beyond a single machine.

Why this answer

Vertex AI Training is a managed service for training ML models, supporting distributed training and hyperparameter tuning. Vertex AI Workbench is a Jupyter-based notebook environment for prototyping. Cloud Functions is for event-driven code, not ML training.

Cloud Run is for containers. BigQuery ML allows building models using SQL but is limited to simple models.

56
MCQeasy

A startup wants to deploy a containerized web application that can scale to zero when not in use and automatically scale based on request traffic. They have limited DevOps experience and want minimal infrastructure management. Which compute service should they choose?

A.App Engine Standard
B.Google Kubernetes Engine
C.Compute Engine
D.Cloud Run
AnswerD

Cloud Run is a fully managed serverless compute platform that executes stateless containers from a Docker image, automatically scaling each instance in response to incoming HTTP requests. It scales to zero when there is no traffic, meaning you pay only for requests actually being processed, with no cluster or VM to manage. This makes it ideal for a startup's containerized web application, providing built-in HTTPS, high availability, and request-based billing without any underlying infrastructure to operate.

Why this answer

Cloud Run is a serverless container platform that scales to zero, automatically scales based on requests, and requires no cluster management, making it ideal for this scenario.

57
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.Firestore
B.Cloud Spanner
C.BigQuery
D.Cloud Bigtable
AnswerD

Cloud Bigtable is Google's fully managed, wide-column NoSQL database, designed specifically for large-scale analytical and operational workloads like time-series and IoT. It stores data as a sorted key-value map, so row-key range scans over timestamps are extremely fast, and each node supports tens of thousands of reads/writes per second, scaling linearly to millions of QPS. Bigtable also offers time-series-friendly features such as automatic compaction, garbage collection based on age, and time-based row key design, making it the ideal choice for petabytes of sensor data.

Why this answer

Cloud Bigtable is designed for exactly this use case — petabyte-scale, low-latency (single-digit ms), high-throughput NoSQL storage for time-series, IoT, and financial data. It scales horizontally by adding nodes. BigQuery is optimised for analytics (seconds-to-minutes latency), Cloud SQL is for OLTP (limited to tens of thousands of QPS), and Firestore is for document data with hierarchical structure.

58
Multi-Selectmedium

A company is building a data pipeline that ingests events from multiple sources, processes them in real-time, and stores the results in a data warehouse for analysis. They need a fully managed, serverless solution for stream processing. Which THREE Google Cloud services should they use?

Select 3 answers
A.Dataproc
B.Pub/Sub
C.Dataflow
D.Cloud Functions
E.BigQuery
AnswersB, C, E

Pub/Sub is the correct foundational service for ingesting streaming events because it is a scalable, durable, asynchronous messaging middleware that decouples event producers from consumers. It provides at-least-once delivery, supports push and pull subscriptions, and can buffer spikes in event volume, ensuring that events are not lost before downstream processing. As the entry point of a data pipeline, Pub/Sub is specifically designed to receive high-throughput event streams and make them available to streaming processors like Dataflow.

Why this answer

Pub/Sub ingests events. Dataflow processes streams. BigQuery stores and analyzes results.

Cloud Functions is for lightweight event-driven functions, not stream processing. Dataproc is for batch processing.

59
MCQeasy

A data analyst wants to create interactive dashboards and reports using data from BigQuery, without writing code. Which Google Cloud BI tool should they use?

A.Data Studio
B.Looker Studio
C.Dataflow
D.Looker
AnswerB

Looker Studio (formerly Data Studio) is a free, self-service BI and data visualization platform that lets analysts build interactive dashboards and reports entirely through a drag-and-drop interface, with no code required. It connects directly to data sources such as BigQuery, Google Sheets, and many other databases, and supports shared, embeddable, and scheduled reports. Because the analyst explicitly wants to avoid writing code, Looker Studio's WYSIWYG editor and pre-built connectors make it the correct choice for this requirement.

Why this answer

Looker Studio is a free, self-service BI tool that allows users to create interactive dashboards and reports from various data sources including BigQuery, with a drag-and-drop interface. Looker is a more advanced enterprise BI platform. Data Studio is the former name; it is now Looker Studio.

Dataflow is for data processing.

60
MCQhard

A DevOps engineer wants to automatically delete a Cloud Storage object after 30 days from creation. The object is stored in a bucket with the 'Standard' storage class. Which approach should the engineer use?

A.Set a retention policy on the bucket with a 30-day retention period
B.Change the storage class to 'Archive' which automatically deletes after 30 days
C.Enable object versioning and set a noncurrent time deletion of 30 days
D.Add a lifecycle rule to delete objects after 30 days
AnswerD

A bucket lifecycle rule supports an age-based Delete action, which automatically removes objects after a specified number of days from their creation time. By setting 'age: 30' in the Delete action, Cloud Storage will delete the objects exactly at the 30-day mark during its daily lifecycle evaluation. This is the native, recommended mechanism for automatic object expiration and directly fulfills the requirement.

Why this answer

Object Lifecycle Management rules can be configured on a bucket to delete objects based on age (days since creation). The rule sets a condition (e.g., age: 30) and action (Delete). Changing the storage class or using bucket lock does not delete objects.

Object versioning is for keeping multiple versions.

61
MCQmedium

A development team runs a web application on Cloud Run. They need to store session state across requests. Which Google Cloud service should they use?

A.Memorystore for Redis
B.Cloud Storage
C.Cloud SQL
D.Cloud Pub/Sub
AnswerA

Memorystore for Redis is a fully managed in-memory data store compatible with the Redis protocol, offering sub-millisecond latency for key-value lookups—exactly what session state requires. Cloud Run instances are stateless and ephemeral, scaling to zero when idle, so placing sessions in a shared cache like Memorystore ensures user state survives individual instance lifecycles and remains accessible across autoscaled replicas. Furthermore, Redis-native features such as TTLs, atomic increments, and SETNX are ideal for session expiry, rotation, and concurrency control, making it the correct choice for low-latency session persistence.

Why this answer

Cloud Run instances are stateless; for session state, use an external caching layer like Memorystore (Redis). Pub/Sub is for messaging, Cloud SQL for relational data, and Cloud Storage for objects.

62
MCQmedium

A company wants to migrate its on-premises PostgreSQL database to Google Cloud with minimal application changes. They need high availability and want to leverage AI-powered optimizations for performance. Which service should they choose?

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

AlloyDB is purpose-built for PostgreSQL workloads and is fully PostgreSQL-compatible, enabling most applications to migrate without changing code or SQL syntax. It delivers enterprise-grade high availability and performance with a columnar engine that speeds up analytical queries, adaptive indexes that learn from access patterns, and AI-driven optimization features that automatically fine-tune database settings—capabilities that Cloud SQL and other managed PostgreSQL services lack, making it the correct answer for this scenario.

Why this answer

AlloyDB is a fully managed PostgreSQL-compatible database optimized for demanding workloads, with high availability and AI-powered performance features. Cloud SQL for PostgreSQL also supports HA but lacks the AI optimizations. Cloud Spanner is not PostgreSQL-compatible.

Bigtable is NoSQL.

63
MCQmedium

An e-commerce company needs a globally distributed relational database with strong consistency and 99.999% SLA to handle customer orders and inventory across multiple regions. They require SQL compatibility and automatic replication. Which database should they use?

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

Cloud Spanner is a fully managed relational database that combines the semantics of traditional SQL with horizontal scaling across regions. Using TrueTime, it provides external consistency (strong global consistency) while replicating data across continents, and it offers a 99.999% multi-region SLA. For an e-commerce platform needing global transactions on relational tables, Spanner uniquely satisfies both relational constraints and global distribution.

Why this answer

Cloud Spanner is a globally distributed relational database with strong consistency, high availability (99.999% SLA), and SQL support, perfect for multi-region transactional workloads.

64
Multi-Selectmedium

A company wants to run a critical stateful application on Compute Engine with the highest availability. The application requires block storage that can survive a zone failure. Which TWO actions should they take? (Choose TWO)

Select 2 answers
A.Use regional Persistent Disk
B.Place instances in a zonal managed instance group
C.Enable object versioning on a Cloud Storage bucket
D.Place instances in a regional managed instance group
E.Use zonal Persistent Disk
AnswersA, D

Regional Persistent Disk synchronously replicates data across two zones in the selected region, providing zone-failure resilience with write-consistent, read-after-write semantics. This makes it the correct choice for a critical stateful application because VM instances can be recreated or failed over to another zone while retaining the same disk data. It supports live migration, snapshots, and resizing, and is the recommended block storage for applications that require high availability without sacrificing durability.

Why this answer

Regional Persistent Disk replicates data across zones synchronously, surviving a zone failure. The instances should be in a regional managed instance group to distribute across zones. Zonal PD and single-zone MIG would not survive zone failure.

65
Multi-Selecteasy

A developer wants to deploy a serverless application that runs code in response to HTTP requests and events from other Google Cloud services. They also need to store configuration and session data in a fast, in-memory data store. Which TWO services should they use? (Choose TWO)

Select 2 answers
A.Cloud Functions
B.Cloud SQL
C.Memorystore
D.Cloud Bigtable
E.Cloud Storage
AnswersA, C

Cloud Functions is serverless and can be triggered by HTTP and events.

Why this answer

Cloud Functions handles HTTP and event-driven triggers serverlessly. Memorystore provides managed Redis/Memcached for caching and session storage. Cloud SQL is relational and not in-memory.

Cloud Storage is object storage. Bigtable is NoSQL but not in-memory.

66
MCQmedium

A developer wants to deploy a Python script that runs in response to new files uploaded to a Cloud Storage bucket. The script performs simple image transformations. Which compute service is the BEST fit?

A.App Engine
B.Cloud Functions
C.Compute Engine
D.Cloud Run
AnswerB

Cloud Functions is Google Cloud's event-driven serverless compute platform that runs Python code in response to specific triggers, including Cloud Storage events like object finalization. With a Storage trigger, the function is automatically invoked with the object metadata, eliminating the need to manage infrastructure or a web server. This matches the requirement to react to file uploads with low operational overhead and automatic scaling.

Why this answer

Cloud Functions is event-driven and designed for lightweight code that runs in response to events like Cloud Storage object changes.

67
MCQmedium

A company wants to analyse streaming data from IoT devices in real time with sub-second latency, using SQL queries. Which combination of services should they use?

A.Cloud IoT Core + Cloud Functions + Bigtable
B.Cloud Pub/Sub + Dataproc + Cloud Storage
C.Cloud Pub/Sub + Cloud Functions + Cloud SQL
D.Cloud Pub/Sub + Dataflow + BigQuery
AnswerD

Pub/Sub ingests the IoT data stream durably and asynchronously, Dataflow (Apache Beam) processes it in a fully managed, autoscaling manner with sub-second latency, exactly-once semantics, and support for event-time windows, filters, and enrichments, then writes results to BigQuery using the Storage Write API. BigQuery is a fully managed, serverless, columnar data warehouse that provides native SQL analytics over the streamed data, making this combination the canonical GCP architecture for real-time streaming SQL.

Why this answer

Dataflow with unbounded sources (like Pub/Sub) and SQL via Beam SQL or Dataflow SQL can process streaming data with low latency. BigQuery can also stream data but with higher latency (seconds). Cloud Functions is not ideal for real-time SQL analytics.

Dataproc is for batch processing.

68
MCQmedium

A team needs to run a machine learning model using custom code in Python with TensorFlow, and they want to train it at scale on GPU hardware without managing infrastructure. Which Google Cloud service is best suited?

A.Vertex AI
B.Cloud Run
C.Compute Engine
D.Cloud Functions
AnswerA

Vertex AI is a fully managed machine learning platform that supports custom container training, allowing you to bring your own model code and dependencies while leveraging managed GPU and TPU clusters. It provides automatic scaling, hyperparameter tuning, and integrated MLOps tools like model versioning, monitoring, and Vertex Pipelines, which drastically reduce operational overhead compared to raw compute. This makes it the ideal choice for running custom ML models at scale without manually provisioning infrastructure.

Why this answer

Vertex AI provides a unified platform for ML, including managed training jobs with GPU support, hyperparameter tuning, and model serving—all without managing infrastructure. Compute Engine requires manual setup. Cloud Functions and Cloud Run are not designed for distributed training.

69
MCQmedium

A team is developing a machine learning model using TensorFlow. They want to train the model on a large dataset stored in Cloud Storage, using GPUs, and then deploy the trained model for online predictions with autoscaling. Which GCP service should they use for the entire workflow?

A.Vertex AI
B.AI Platform (legacy)
C.Cloud Functions
D.Compute Engine with pre-installed ML frameworks
AnswerA

Vertex AI provides a unified managed platform that covers the full ML lifecycle: training with custom or pre-built containers on GPU/TPU, versioning in a Model Registry, and deployment to prediction endpoints with built-in autoscaling based on traffic. It eliminates the need to manually configure infrastructure, allows custom model serving for any framework, and offers MLOps capabilities like monitoring and drift detection. This makes it the recommended service for training and serving TensorFlow models.

Why this answer

Vertex AI is a unified ML platform that provides training (with GPU support), model management, and deployment for online predictions with autoscaling. Cloud Functions, AI Platform (now part of Vertex AI), and Compute Engine are not unified end-to-end.

70
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.BigQuery
B.Cloud Spanner
C.Cloud Bigtable
D.Firestore
AnswerC

Bigtable is the correct choice: wide-column NoSQL, designed for time-series and IoT workloads, single-digit ms latency, and scales to millions of QPS with additional nodes.

Why this answer

Cloud Bigtable is designed for exactly this use case — petabyte-scale, low-latency (single-digit ms), high-throughput NoSQL storage for time-series, IoT, and financial data. It scales horizontally by adding nodes. BigQuery is optimised for analytics (seconds-to-minutes latency), Cloud SQL is for OLTP (limited to tens of thousands of QPS), and Firestore is for document data with hierarchical structure.

71
MCQeasy

A company wants to migrate its on-premises MySQL database to Google Cloud with minimal changes to the application. Which managed database service should they use?

A.Cloud Spanner
B.Cloud Bigtable
C.Cloud SQL for MySQL
D.Firestore
AnswerC

Cloud SQL for MySQL is Google Cloud's fully managed service that is natively compatible with the MySQL engine, including support for MySQL 5.7, 8.0, and 8.4. It provides the same SQL syntax, stored procedures, triggers, and InnoDB storage engine, so existing applications can connect with standard MySQL drivers and require minimal to no code changes. With automated backups, high availability, read replicas, and straightforward import tools, it is the correct and lowest-risk choice for migrating an on-premises MySQL database.

Why this answer

Cloud SQL provides managed MySQL, PostgreSQL, and SQL Server databases. It is compatible with existing MySQL applications. Cloud Spanner is globally distributed but not drop-in MySQL.

Firestore and Bigtable are NoSQL.

72
MCQhard

A company wants to migrate its on-premises Oracle database to Google Cloud. They need PostgreSQL compatibility with high performance for transaction processing and built-in support for AI-driven optimisations. Which database service should they choose?

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

AlloyDB is a fully managed, PostgreSQL-compatible database service engineered for high performance and scalability, with AI-driven optimizations such as adaptive caching and an integrated columnar engine. It provides up to 4x faster transactional performance and 10x faster analytical queries than standard PostgreSQL, and its compatibility layer supports Oracle-like data types, functions, and SQL syntax, easing migration from Oracle. These capabilities directly align with the company's requirement for a PostgreSQL-compatible database with intelligent performance enhancements.

Why this answer

AlloyDB is a PostgreSQL-compatible database with 4x faster transaction processing than standard PostgreSQL and AI-powered features for performance optimization.

73
Multi-Selecthard

A company runs a batch processing job every hour using Cloud Dataflow. They notice increasing costs and want to optimize. Which three actions would reduce cost? (Choose exactly 3.)

Select 3 answers
A.Use preemptible VMs for worker nodes
B.Shut down the Dataflow job between runs
C.Switch from batch to streaming mode
D.Set autoscaling to a lower maximum number of workers
E.Use flexible resource scheduling (batch mode)
AnswersA, D, E

Preemptible VMs (now called spot VMs in Google Cloud) provide a significantly discounted price (typically 60-80% off on-demand pricing) for worker nodes in a Dataflow batch pipeline. Because Dataflow is designed to handle worker loss through checkpointing and automatic restart of tasks, batch jobs are generally resilient to the occasional termination that preemptible VMs may undergo. This directly reduces the compute cost of the worker pool without changing the pipeline logic or delivery time, making it the most straightforward way to cut costs for a recurring batch job.

Why this answer

Using preemptible VMs reduces cost significantly. Adjusting autoscaling settings avoids overprovisioning. Using streaming instead of batch would increase cost.

Shutting down the job between runs is not feasible for batch. Using flexible resource scheduling (batch mode) can lower costs.

74
MCQeasy

A company wants to monitor the CPU and memory utilisation of their Compute Engine instances and set up alerts when utilisation exceeds 80%. Which Google Cloud service should they use?

A.Cloud Monitoring
B.Cloud Logging
C.Cloud Error Reporting
D.Cloud Trace
AnswerA

Cloud Monitoring is the correct service because it is purpose-built to ingest and store numeric time-series metrics, such as CPU utilization and memory usage, from resources like Compute Engine and Kubernetes. It provides alerting policies that trigger notifications when these metrics cross user-defined thresholds, and offers dashboards and querying via MQL or PromQL. This is the standard GCP tool for real-time infrastructure observability, not just logging or error tracking.

Why this answer

Cloud Monitoring (formerly Stackdriver) collects metrics from GCP resources, including CPU and memory utilisation, and allows creation of alerting policies. Cloud Logging is for logs, Cloud Trace is for tracing, and Cloud Error Reporting is for error analysis.

75
MCQeasy

Which Google Cloud service is a managed platform for building, training, and deploying ML models, including support for AutoML and custom models?

A.BigQuery ML
B.AI Platform (legacy)
C.Cloud TPU
D.Vertex AI
AnswerD

Vertex AI is Google Cloud's unified, end-to-end managed ML platform that covers the full model lifecycle, from data preparation and feature engineering to AutoML or custom training, hyperparameter tuning, model validation, deployment, and continuous monitoring. It provides a single API and workflow that integrates with Cloud Storage, BigQuery, and other Google Cloud services, while also offering advanced MLOps components like Vertex AI Pipelines, Model Registry, and Vertex AI Feature Store. As a fully managed service, Vertex AI abstracts infrastructure management, enabling automated autoscaling for prediction endpoints, security policies, and versioning, making it the correct answer to the question.

Why this answer

Vertex AI is a unified ML platform that combines AutoML and custom model training, tuning, and serving.

Page 1 of 2 · 134 questions totalNext →

Ready to test yourself?

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