GCP Google Cloud Platform (GCP) 5 — Questions and Answers
Question 1: Which GCP product allows you to define and deploy infrastructure as code using a declarative configuration language?
- Cloud Build
- Cloud Deployment Manager (Correct answer)
- Config Connector
- Cloud Composer
Correct answer: Cloud Deployment Manager
Cloud Deployment Manager uses YAML or Python Jinja2 templates to declaratively define and manage GCP infrastructure as code.
Question 2: What is a key advantage of using Committed Use Discounts (CUDs) in GCP Compute Engine?
- Resources are guaranteed even during high-demand periods with no cost
- You receive up to 57% discount by committing to use specific resources for 1 or 3 years (Correct answer)
- Your VMs cannot be preempted during the commitment period
- You pay only for actual usage with no minimum spend
Correct answer: You receive up to 57% discount by committing to use specific resources for 1 or 3 years
Committed Use Discounts offer up to 57% discount over on-demand pricing in exchange for committing to a specific amount of vCPUs and memory for 1 or 3 years.
Question 3: In Cloud Run, what does 'minimum instances' setting prevent?
- Exceeding the maximum concurrent requests per instance
- Cold starts by keeping a specified number of instances warm (Correct answer)
- Autoscaling beyond a defined instance ceiling
- Billing charges when the service receives no traffic
Correct answer: Cold starts by keeping a specified number of instances warm
Setting a minimum number of instances in Cloud Run ensures those instances are always running and ready, eliminating cold-start latency for incoming requests.
Question 4: Which GCP service is best suited for running periodic, scheduled batch jobs without provisioning servers?
- Cloud Tasks
- Cloud Scheduler
- Cloud Functions with Cloud Scheduler (Correct answer)
- Dataflow
Correct answer: Cloud Functions with Cloud Scheduler
Cloud Scheduler combined with Cloud Functions lets you run serverless code on a cron schedule without managing any server infrastructure.
Question 5: What is the purpose of VPC Service Controls in GCP?
- Encrypt inter-VPC traffic automatically
- Create security perimeters around GCP resources to mitigate data exfiltration risk (Correct answer)
- Control egress traffic with NAT for private VMs
- Manage firewall rules across multiple VPCs centrally
Correct answer: Create security perimeters around GCP resources to mitigate data exfiltration risk
VPC Service Controls let you define security perimeters around GCP API-based resources to prevent data exfiltration and enforce access boundaries.
Question 6: Which tool in GCP helps estimate the monthly cost of a planned architecture before deployment?
- Cloud Billing Reports
- Google Cloud Pricing Calculator (Correct answer)
- Cost Table reports
- Recommender API
Correct answer: Google Cloud Pricing Calculator
The Google Cloud Pricing Calculator lets you model your intended GCP usage and get an estimated monthly cost before committing to any resources.
Question 7: What is the key characteristic of Anthos in GCP?
- A managed Hadoop service for big data processing
- A platform for managing and deploying applications across multi-cloud and on-premises environments (Correct answer)
- A serverless event-driven compute service
- A managed graph database service
Correct answer: A platform for managing and deploying applications across multi-cloud and on-premises environments
Anthos is GCP's hybrid and multi-cloud application management platform that lets you run Kubernetes-based workloads consistently across GCP, other clouds, and on-premises.
Which GCP product allows you to define and deploy infrastructure as code using a declarative configuration language?