All practice questions
1591 questions
An infrastructure team is deploying two serverless microservices to Google Cloud using the gcloud CLI:
1. A containerized backend service deployed to Cloud Run that listens internally on custom TCP port 9090.
2. A lightweight HTTP-triggered webhook processing service deployed as a Cloud Functions (2nd gen) service.
Which TWO configuration choices or gcloud command options must be specified to successfully deploy these serverless applications? (Select TWO.)
Select all that apply
A healthcare analytics platform ingests raw genomic sequencing data into Google Cloud Storage. The data undergoes intensive analytical processing during its first 14 days. After 14 days, the files are rarely accessed, but regulatory compliance mandates that all raw sequence files must be preserved for at least 7 years. Additionally, business continuity policies require that the data be synchronously replicated across two specific geographic regions within North America to guarantee continuous availability during a regional outage. Which TWO configuration steps should the Cloud Engineer implement to satisfy both operational and cost-optimization requirements? (Select TWO)
Select all that apply
A data engineering team needs to estimate the monthly GCP expenses for storing 50 TB of telemetry logs that are continuously read and analyzed multiple times per hour by real-time operational dashboards. When modeling this workload in the Google Cloud Pricing Calculator, which configuration strategy provides an accurate cost baseline while accounting for the workload access pattern?
A cloud administrator needs to configure their local terminal environment to manage an existing Google Kubernetes Engine (GKE) cluster named `prod-cluster` located in zone `us-central1-a` using `kubectl`. Which command should the administrator run to fetch cluster credentials and update the local `kubeconfig` file?
An administrator is configuring ingress firewall rules for a Virtual Private Cloud (VPC) network in Google Cloud. Rule-Alpha is configured with a priority of 200 and an action of DENY. Rule-Beta is configured with a priority of 800 and an action of ALLOW. Both rules target the exact same Compute Engine instances and match the exact same protocol and port. Which rule takes precedence when matching traffic arrives?
An enterprise is migrating a custom media-rendering workstation service to Google Cloud Compute Engine instances hosted in a single regional VPC network. The service receives raw, non-HTTP TCP traffic on port 8900 from on-premises client workstations connected across Dedicated Interconnect. You must design a solution that satisfies two core requirements:
1. Route incoming internal traffic across the backend instances while preserving the original client source IP addresses for security auditing.
2. Allow on-premises client workstations to resolve the internal domain name of the load balancer using Cloud DNS.
Which combination of Google Cloud networking services should you plan?
An organization is configuring billing controls for a newly provisioned Google Cloud environment. The cloud operations team must set up programmatic alert notifications whenever project spending exceeds defined monthly thresholds and export detailed usage data to BigQuery for analytical reporting. Which TWO steps or configuration requirements are necessary to achieve this setup? (Select TWO.)
Select all that apply
A cloud engineering team is constructing an automated CI/CD deployment pipeline to provision infrastructure in a new Google Cloud project named `prod-workloads-456` using Terraform. The pipeline executes using a dedicated deployment service account residing in a central management project `ci-cd-tools-100`. During the initial run of `terraform apply` targeting `prod-workloads-456`, the deployment fails with an error indicating that `compute.googleapis.com` is not enabled. Furthermore, corporate security policy strictly prohibits storing long-lived credentials in pipeline secrets. Which set of actions adheres to Google Cloud best practices to resolve the deployment failure and secure pipeline authentication?
A firmware distribution engineering team needs to provision a new public Cloud Storage bucket in a dual-region, enforce uniform security permissions, grant anonymous public read access, and attach an object lifecycle policy using the gcloud CLI. What is the correct sequence of steps to configure this storage solution?
Drag items to arrange them in the correct order
A cloud engineer at a genomics research firm needs to set up a new Cloud Storage bucket in `us-east1` to store raw sequencing data. The deployment must enforce Uniform Bucket-Level Access, apply a 30-day object transition rule to Nearline storage defined in a local JSON file, and ingest the initial dataset. In what operational sequence should the engineer execute these tasks?
Drag items to arrange them in the correct order
A Cloud Engineer needs to provision a new Google Kubernetes Engine (GKE) cluster in zone `us-central1-a` named `web-cluster`, configure local command-line access, and deploy an application defined in a local file named `web-deployment.yaml`. In which sequence should the engineer execute the following commands to successfully deploy and verify the workload?
Drag items to arrange them in the correct order
A cloud engineering team wants to store Terraform state files remotely in Google Cloud to support team collaboration and state locking. Which TWO steps are required to configure a Cloud Storage bucket as a remote backend for Terraform?
Select all that apply
A bio-pharmaceutical research laboratory is planning a Google Kubernetes Engine (GKE) cluster architecture to execute fault-tolerant genomic sequencing batch workloads. The processing engine requires custom Linux kernel sysctl modifications directly on the underlying host node OS to optimize memory paging. Additionally, the finance team requires minimizing compute expenditure for these stateless batch processing jobs. Which TWO architectural decisions should the cloud team implement to satisfy all requirements?
Select all that apply
A DevOps engineer is managing a stateless microservice deployed on a Google Kubernetes Engine (GKE) Standard cluster. The application experiences unpredictable traffic surges. You must configure scaling so that the microservice automatically increases its pod count when average CPU utilization exceeds , and the underlying cluster automatically adds worker nodes whenever pods cannot be scheduled due to insufficient CPU capacity. Which TWO actions should you perform to meet these requirements?
Select all that apply
An organization is preparing to deploy a multi-region workload across `us-central1` and `europe-west1` in Google Cloud. The infrastructure must connect via Cloud VPN to an existing on-premises data center using the IPv4 CIDR block . The cloud networking team needs to plan the Virtual Private Cloud (VPC) network and subnets to prevent IP routing conflicts and accommodate future capacity growth. Which TWO design practices should the team follow? (Select TWO.)
Select all that apply
Your company manages two separate Virtual Private Cloud (VPC) networks, `corp-app-vpc` and `corp-services-vpc`, within the same Google Cloud project. You have configured a Cloud DNS private zone named `internal.dev.example.com` that is currently visible only to resources in `corp-app-vpc`. Virtual machines deployed in `corp-services-vpc` need to resolve domain names hosted within this private zone without deploying custom DNS forwarding proxy instances. What should you do to allow `corp-services-vpc` to resolve records in `internal.dev.example.com`?
An administrator observes that a recent container image update to a Google Kubernetes Engine (GKE) deployment named `web-app` introduced application errors. The administrator needs to inspect the revision history, roll back the deployment to the previous working revision, and confirm that the rollback completes successfully. What is the correct chronological sequence of `kubectl` commands to perform this operation?
Drag items to arrange them in the correct order
What is the correct sequence of operational steps to deploy a custom Virtual Private Cloud (VPC) network, provision a regional subnet, deploy a VM instance into that subnet, and enforce ingress firewall rules targeting the instance?
Drag items to arrange them in the correct order
An operations engineer manages a production Google Kubernetes Engine (GKE) Standard cluster named `prod-cluster` in zone `us-central1-a`. The cluster currently runs a batch processing deployment on an on-demand node pool named `batch-pool-v1`. To optimize infrastructure costs, the team must convert this workload to run on Spot VMs without causing service interruption. The engineer attempts to execute an in-place update command on `batch-pool-v1` to convert its VM provisioning type to Spot VMs, but the operational update fails. Which procedure should the engineer perform to successfully transition the workload to Spot VMs?
An enterprise security auditor requires read-only access to inspect the configuration and operational status of Google Kubernetes Engine (GKE) clusters within a Google Cloud project. The auditor must not have permission to modify cluster settings, delete nodes, or deploy workloads. Following Google's recommended security best practices for least privilege, which IAM role should be assigned to the auditor?