GCP Google Cloud Platform (GCP) 2 — Questions and Answers
Question 1: Which GCP service provides a fully managed, serverless data warehouse optimized for analytics?
- Cloud Spanner
- BigQuery (Correct answer)
- Cloud SQL
- Datastore
Correct answer: BigQuery
BigQuery is GCP's fully managed, serverless data warehouse designed for large-scale analytics with built-in ML capabilities.
Question 2: What is the purpose of Cloud IAM conditions in GCP?
- Enforce network firewall rules
- Grant resource access only when specified attributes match (Correct answer)
- Schedule VM shutdowns
- Rotate service account keys automatically
Correct answer: Grant resource access only when specified attributes match
IAM conditions allow you to define fine-grained, attribute-based access control so permissions are only granted when conditions like time or resource tags match.
Question 3: Which GCP load balancer type operates at Layer 7 and supports content-based routing?
- Network Load Balancer
- Internal TCP/UDP Load Balancer
- HTTP(S) Load Balancer (Correct answer)
- SSL Proxy Load Balancer
Correct answer: HTTP(S) Load Balancer
The HTTP(S) Load Balancer operates at Layer 7 and supports URL-based routing, host-based routing, and advanced traffic management.
Question 4: In GCP, what does the 'nearline' storage class optimize for?
- Frequently accessed data requiring millisecond latency
- Data accessed less than once per month (Correct answer)
- Data accessed less than once per year
- Disaster recovery with geo-redundancy
Correct answer: Data accessed less than once per month
Nearline storage is cost-effective for data accessed about once a month or less, with a minimum storage duration of 30 days.
Question 5: Which Kubernetes concept in GKE ensures a minimum number of pod replicas are always available during voluntary disruptions?
- HorizontalPodAutoscaler
- PodDisruptionBudget (Correct answer)
- ResourceQuota
- LimitRange
Correct answer: PodDisruptionBudget
A PodDisruptionBudget (PDB) limits the number of Pods of a replicated application that can be down simultaneously during voluntary disruptions.
Question 6: What is the primary function of Cloud Armor in GCP?
- Encrypt data at rest in Cloud Storage
- Provide DDoS protection and WAF for web applications (Correct answer)
- Manage SSL certificates automatically
- Monitor VM performance metrics
Correct answer: Provide DDoS protection and WAF for web applications
Cloud Armor provides DDoS defense and Web Application Firewall (WAF) capabilities to protect applications served via Cloud Load Balancing.
Question 7: Which GCP service would you use to run containerized workloads without managing the underlying cluster infrastructure?
- Google Kubernetes Engine (GKE)
- Compute Engine
- Cloud Run (Correct answer)
- App Engine Flexible
Correct answer: Cloud Run
Cloud Run is a fully managed serverless platform that runs stateless containers without requiring you to manage clusters or nodes.
Which GCP service provides a fully managed, serverless data warehouse optimized for analytics?