

















Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!


















1. Which GCP service is best for hosting a containerized web application? A. Compute Engine B. Google Kubernetes Engine (GKE) C. App Engine Standard D. Cloud Functions GKE provides managed Kubernetes clusters ideal for running scalable containerized applications. 2. You need to store large, unstructured data for analytics. Which service is most appropriate? A. Cloud SQL B. Cloud Storage C. Bigtable D. Cloud Spanner Cloud Storage is designed for storing large, unstructured objects like images, videos, and backups. 3. Which command-line tool is primarily used to interact with GCP services? A. gsutil B. bq C. gcloud D. kubectl The gcloud CLI manages most Google Cloud services, from compute to networking.
4. To deploy an application automatically when code is pushed to GitHub, you should use: A. Cloud Build B. Cloud Build with Cloud Source Repositories trigger C. App Engine deploy manually D. Compute Engine startup script Cloud Build integrates with source repositories to enable continuous deployment pipelines. 5. Which GCP service provides fully managed relational databases? A. Bigtable B. Cloud SQL C. Datastore D. BigQuery Cloud SQL supports MySQL, PostgreSQL, and SQL Server in a fully managed environment. 6. What’s the default network type created in a new GCP project? A. Auto-mode VPC B. Default VPC (auto-mode) C. Custom VPC D. Legacy network New projects come with a default auto-mode VPC that spans all regions. 7. Which GCP IAM role provides full control over a specific Compute Engine instance? A. roles/compute.viewer B. roles/compute.instanceAdmin C. roles/owner D. roles/editor The Instance Admin role allows managing instances, including start/stop and configuration.
A. Compute Engine B. App Engine C. Cloud Functions D. Cloud Run App Engine automatically scales up or down based on incoming requests.
13. To minimize latency for a global user base, you should use: A. Cloud Functions B. Cloud CDN C. Cloud Storage Regional D. Cloud SQL Cloud CDN caches content at Google’s edge locations worldwide. 14. What’s the purpose of Cloud Identity? A. Cost tracking B. Managing users and authentication C. Data encryption D. DNS management Cloud Identity provides identity and access management across Google services. 15. You need to run batch Hadoop jobs. Which service is best? A. Dataflow B. Dataproc C. BigQuery D. Cloud Run Dataproc runs Hadoop/Spark clusters with automated management and scaling. 16. Which service is used for storing time-series data? A. BigQuery B. Cloud Monitoring Metrics
C. Dataproc D. Firestore Cloud Monitoring stores and analyzes metrics data from resources and applications.
17. What is the default encryption mechanism for data in GCP? A. User-managed keys B. Google-managed encryption at rest C. Customer-supplied keys only D. No encryption by default All GCP data is encrypted at rest and in transit using Google-managed keys by default. 18. To create repeatable GCP infrastructure, you should use: A. gcloud scripts B. Deployment Manager C. Terraform or Deployment Manager D. Cloud Run Both Terraform and Deployment Manager support Infrastructure as Code in GCP. 19. Which GCP service allows you to run event-driven code without managing servers? A. App Engine B. Cloud Run C. Cloud Functions D. Compute Engine Cloud Functions executes small, event-triggered pieces of code serverlessly. 20. Which service provides managed NoSQL document storage? A. Bigtable B. Firestore
25. Which GCP service allows storing and querying massive analytical datasets? A. Cloud SQL B. Datastore C. BigQuery D. Cloud Storage BigQuery handles petabyte-scale analytical workloads with SQL-like queries. 26. To automate image building and deployment for VMs, use: A. Cloud Run B. Cloud Build + Compute Engine images C. Cloud Functions D. Dataproc Cloud Build automates build pipelines, including creating and pushing VM images. 27. Which service enables workflow orchestration between multiple GCP services? A. Dataflow B. Pub/Sub C. Cloud Composer D. Cloud Scheduler Cloud Composer (based on Apache Airflow) orchestrates multi-step workflows. 28. What is the default region for Cloud Storage if not specified? A. us-west B. asia-east C. None – you must specify it D. us-central Cloud Storage requires explicit region or multi-region selection.
29. Which service helps manage multiple Kubernetes clusters? A. Cloud Functions B. GKE Hub (Anthos) C. Cloud Run D. Dataproc GKE Hub under Anthos provides centralized management for multi-cluster environments. 30. What feature lets you control GCP costs effectively? A. Billing export B. Budgets and alerts C. IAM policies D. Cloud Monitoring only Budgets and alerts notify you before exceeding cost thresholds. 31. Which GCP storage class is best for infrequently accessed archival data? A. Standard B. Nearline C. Coldline or Archive D. Multi-region Coldline and Archive classes offer cheaper storage for rarely accessed data. 32. What service provides real-time messaging between applications? A. Dataflow B. Pub/Sub C. Cloud Tasks D. Cloud Scheduler Pub/Sub enables asynchronous, real-time communication between systems. 33. Which tool checks IAM policy misconfigurations? A. Cloud Logging B. Policy Troubleshooter
38. Which IAM principle is best practice for security? A. Assign broad roles B. Give users owner rights C. Least privilege principle D. Share service accounts Grant only the minimum necessary permissions to perform a task. 39. Which service manages SSL certificates automatically? A. Cloud Storage B. HTTPS Load Balancer C. App Engine only D. Cloud Armor Google’s HTTPS Load Balancer auto-manages SSL certificates. 40. Which command lists active GCP projects? A. gcloud list projects B. gcloud projects list C. gcloud get projects D. gcloud config list gcloud projects list displays all accessible projects. 41. What’s a key advantage of Cloud Run over App Engine? A. Supports only Python B. Can run any containerized app C. Requires VM setup D. No scaling features Cloud Run runs any container image, regardless of language or framework. 42. Which tool helps migrate VMs to GCP? A. Cloud Build B. Migrate to Virtual Machines C. Cloud Run
D. Dataflow The “Migrate to VMs” service automates lift-and-shift migration.
43. Which network service routes private connections securely to GCP? A. VPC Peering B. Cloud VPN C. Cloud Router D. Cloud DNS Cloud VPN establishes encrypted tunnels between on-prem and GCP networks. 44. Which GCP tool helps detect security vulnerabilities automatically? A. Cloud Audit Logs B. Security Command Center C. IAM D. Stackdriver Logging Security Command Center provides threat detection and risk analysis. 45. What’s used to manage multiple environments like dev and prod? A. One project B. Separate projects or folders C. Multiple VMs in one project D. Labels only Using separate projects or folders isolates resources and IAM policies. 46. How does Cloud Storage ensure durability? A. Backups only B. Replication across multiple locations C. Encryption only D. Versioning Cloud Storage automatically replicates data across zones for durability.
C. Cloud Run D. Dataproc Cloud Run allows running any containerized application serverlessly with auto- scaling.
52. You need a globally distributed NoSQL database. Which service should you choose? A. Cloud SQL B. Firestore in Datastore mode C. Bigtable D. BigQuery Firestore in Datastore mode provides global replication with high availability for NoSQL workloads. 53. Which service provides fully managed Kafka-like messaging in GCP? A. Cloud Tasks B. Cloud Functions C. Pub/Sub D. Cloud Run Pub/Sub is a fully managed messaging service for real-time event ingestion. 54. How can you enforce compliance rules across multiple GCP projects? A. IAM roles only B. Organization Policy Service C. Cloud Audit Logs D. Cloud Monitoring Organization Policy Service allows centrally enforced restrictions and compliance policies. 55. Which GCP product is designed for large-scale analytical queries on structured data?
A. Cloud SQL B. Firestore C. BigQuery D. Dataproc BigQuery handles petabyte-scale structured datasets with SQL querying.
56. Which GCP service is best for creating ETL pipelines? A. Cloud Functions B. BigQuery C. Dataflow D. Cloud Run Dataflow enables batch and stream ETL pipelines with autoscaling and fault tolerance. 57. To store frequently accessed data close to users globally, use: A. Regional Cloud Storage B. Cloud CDN C. Multi-Regional BigQuery D. Compute Engine Cloud CDN caches content at edge locations worldwide to reduce latency. 58. Which GCP service allows you to encrypt data with customer-managed keys? A. Cloud Storage only B. Cloud KMS C. Cloud Functions D. Cloud SQL automatically Cloud KMS manages encryption keys that you control for GCP services. 59. Which tool is best to monitor latency and request traces in microservices? A. Cloud Logging B. Cloud Profiler
D. Cloud Functions Cloud Composer (based on Airflow) manages workflows, dependencies, and scheduling of jobs.
64. What is the recommended practice for storing secrets? A. Environment variables only B. Secret Manager C. Cloud Storage unencrypted D. Cloud SQL plain text Secret Manager stores secrets securely with fine-grained IAM access control. 65. Which service provides a managed MySQL database with high availability? A. BigQuery B. Cloud SQL C. Firestore D. Cloud Spanner Cloud SQL supports MySQL, PostgreSQL, and SQL Server with automated backups and HA. 66. Which GCP product allows running Spark jobs without managing clusters? A. Cloud Functions B. Dataflow C. Dataproc with autoscaling D. BigQuery Dataproc manages Spark/Hadoop clusters, and autoscaling reduces cluster management overhead. 67. How does Cloud Spanner ensure strong consistency globally? A. Multi-region replication only B. Single-zone replication C. TrueTime API for synchronized transactions
D. Manual locks Spanner uses TrueTime to maintain globally consistent ACID transactions.
68. What service should you use to schedule recurring tasks? A. Cloud Functions B. Dataflow C. Cloud Scheduler D. Cloud Run Cloud Scheduler triggers HTTP endpoints or Pub/Sub messages on a schedule. 69. Which service lets you perform ML model training at scale without infrastructure management? A. Dataflow B. BigQuery ML C. Vertex AI D. Cloud Functions Vertex AI provides fully managed training, deployment, and monitoring for ML models. 70. Which service is ideal for real-time dashboards of IoT device metrics? A. BigQuery B. Cloud Monitoring + Pub/Sub + IoT Core C. Dataproc only D. Cloud Storage IoT Core ingests device data, Pub/Sub streams it, and Cloud Monitoring visualizes metrics. 71. Which Cloud IAM role allows viewing but not modifying resources? A. roles/editor B. roles/viewer C. roles/owner
D. VPC Peering only Cloud Router propagates dynamic routes between GCP and on-prem networks.
76. Which service enables fast, consistent key-value access at scale? A. Firestore B. BigQuery C. Bigtable D. Cloud SQL Bigtable is optimized for high-throughput, low-latency key-value workloads. 77. Which method is recommended for migrating large datasets to GCP? A. Manual upload only B. FTP C. Storage Transfer Service / gsutil / Transfer Appliance D. Cloud Functions GCP offers multiple methods including Storage Transfer Service and Transfer Appliance for large-scale migration. 78. Which service is ideal for batch analytics on historical data? A. Cloud Functions B. Dataflow streaming only C. BigQuery batch queries D. Cloud Run BigQuery efficiently handles large batch queries on historical datasets. 79. Which GCP feature helps prevent accidental deletion of resources? A. IAM roles B. Resource locks / Retention policies C. Cloud Scheduler D. Cloud Logging Retention policies and resource locks help protect critical resources from deletion.
80. Which service provides managed workflow orchestration for data pipelines? A. Cloud Functions B. Dataflow only C. Cloud Composer D. Cloud Scheduler Cloud Composer allows orchestration of multiple dependent data processing tasks. 81. Which storage class is best for frequently accessed data across regions? A. Nearline B. Coldline C. Multi-Regional Standard D. Archive Multi-Regional Standard provides high availability and low-latency access globally. 82. Which service allows you to build interactive ML models using SQL? A. Cloud Functions B. BigQuery ML C. Vertex AI only D. Dataproc BigQuery ML enables training ML models directly using SQL queries. 83. Which service allows scheduled function execution with no servers? A. Cloud Functions only B. Compute Engine C. Cloud Scheduler + Cloud Functions D. Cloud Run only Cloud Scheduler can trigger serverless Cloud Functions at specific intervals.