All practice questions
1591 questions
A Cloud Engineer is tasked with deploying a microservice workload manifest to a newly created regional GKE Autopilot cluster named `analytics-prod-cluster` located in the `europe-west1` region. Which sequence of steps correctly describes the process of establishing cluster credentials, verifying cluster connectivity, deploying the workload manifest, and confirming the rollout status?
Drag items to arrange them in the correct order
An architectural firm uploads high-resolution 3D CAD rendering files to Google Cloud Storage. The design team actively accesses and modifies these files daily during the initial 30-day project design phase. After 30 days, project files are rarely accessed, but regulatory building safety standards require the files to be retained and protected from modification or deletion for 10 years. When old files are requested for an audit, sub-second access latency is required. Which TWO configurations should you implement to satisfy these business and compliance requirements at the lowest total cost? (Select TWO)
Select all that apply
An infrastructure team is setting up a production Cloud SQL PostgreSQL instance that must communicate exclusively via Private IP inside an existing custom Virtual Private Cloud network named `prod-vpc`. Arrange the following administrative commands and procedures in the correct sequential order to establish Private Service Access and deploy the database instance.
Drag items to arrange them in the correct order
An organization is deploying an event-driven Python microservice to Cloud Functions (2nd gen) in the `us-central1` region to process medical image uploads from a Cloud Storage bucket named `medical-records-archive`. Security policy dictates that the function must run using a non-default custom service account (`[email protected]`) enforcing the principle of least privilege, and must be triggered whenever new objects are finalized in the storage bucket. Which TWO configuration steps or deployment flags must be used to achieve this setup successfully?
Select all that apply
An organization plans to host a production relational database on Google Compute Engine virtual machines that will run continuously 24 hours a day, 7 days a week for several years. The database is stateful, non-fault-tolerant, and requires predictable performance with persistent block storage. When modeling the monthly infrastructure expenses for this workload using the Google Cloud Pricing Calculator, which configuration option should be selected to achieve the maximum guaranteed discount on compute resources?
A cloud architect is preparing to analyze detailed Google Cloud usage patterns and daily pricing metrics by establishing a continuous Cloud Billing export to BigQuery. Which configuration actions are required to complete this export setup? (Select TWO answers.)
Select all that apply
A systems operations team manages an e-commerce platform running on a Google Kubernetes Engine (GKE) Standard cluster. During promotional events, spikes in user traffic cause existing Pods to reach CPU resource limits while newly created Pods remain in a 'Pending' state due to insufficient cluster node capacity. Which TWO actions must be implemented to automatically scale both the Pod workload and the underlying node infrastructure capacity? (Select TWO.)
Select all that apply
Your team is deploying an internal microservices application across two Google Cloud Virtual Private Cloud (VPC) networks, `backend-vpc` and `analytics-vpc`, within the same project. You have created a Cloud DNS private zone named `internal-dev-zone` managing the domain `dev.example.internal`. Virtual machines in both VPC networks must be able to resolve domain names defined inside this private zone. Which TWO of the following actions are required to successfully enable DNS resolution for both networks?
Select all that apply
A telehealth company is planning the networking infrastructure for a global web application hosted on Compute Engine. The application serves static web assets to global clients while routing HTTPS API requests to backend instance groups in multiple regions based on user proximity. Internal microservices running inside the VPC network must also securely resolve private domain names without exposing DNS records to the public internet. Which TWO Google Cloud networking configurations should you implement to satisfy these requirements? (Select TWO.)
Select all that apply
An operations team runs a batch processing pipeline on a Google Kubernetes Engine (GKE) Standard cluster. During workload spikes, newly created Pods remain stuck in a Pending state because current nodes lack unallocated CPU capacity. Additionally, the team needs to reduce infrastructure spending specifically for fault-tolerant batch jobs without risking critical core services. Which TWO configurations should the team implement to address these operational requirements? (Select TWO.)
Select all that apply
A cloud engineer needs to manually scale a running GKE Deployment named 'web-app' to 5 replicas and verify the deployment status using command-line tools. Arrange the operational steps in the correct chronological order from first to last.
Drag items to arrange them in the correct order
An operations team needs to deploy a production backend Virtual Machine named `app-backend-prod` in zone `us-central1-a` using the `e2-standard-4` machine type. According to organization security compliance rules, the instance must connect to a custom subnetwork named `prod-app-subnet` within `prod-vpc`, must be assigned a fixed internal IP address of `10.150.0.45`, must not have a public external IP address attached, and must include the network tag `allow-internal-api` for firewall matching. Which `gcloud` command correctly provisions this Compute Engine VM instance?
A Cloud Engineer is using Google Cloud Deployment Manager templates stored in a central administrative project named `admin-ops-project` to provision VPC networks and Compute Engine instances into a newly created target project named `finance-workload-prod`. The engineer executes the following command from the Google Cloud CLI:
`gcloud deployment-manager deployments create workload-deployment --config=vpc_vm.yaml --project=finance-workload-prod`
The command fails with an error stating that `deploymentmanager.googleapis.com` is disabled or has not been used in project `finance-workload-prod`. The engineer confirms that the Cloud Deployment Manager API is already enabled in `admin-ops-project`. What should the engineer do to resolve this issue?
You are troubleshooting an unresponsive Linux Compute Engine virtual machine instance that is failing to accept SSH connections. You need to view the raw system console boot logs to identify why the startup process halted. Which gcloud command should you run to inspect these logs?
A telemetry analysis firm is planning its Google Kubernetes Engine (GKE) cluster strategy. The deployment includes two main workloads: a stateless front-end API service that requires zero node-level operational overhead, and an advanced packet-inspection engine that requires custom Linux kernel settings (sysctl parameters) at the node OS level. Which two architectural decisions should the infrastructure team implement to meet these requirements?
Select all that apply
A cloud engineer needs to deploy a Google Cloud Bigtable instance named `telemetry-db` to store high-throughput IoT sensor data. The project deployment specification requires a cluster named `telemetry-c1` located in the `us-central1-a` zone, provisioned with 3 nodes using SSD storage. Which `gcloud` command correctly provisions this managed database instance?
A cloud engineer is securing a custom-mode Virtual Private Cloud (VPC) named `sec-corp-vpc` hosting PCI-DSS compliant workloads across multiple regions. The compliance baseline requires that all outbound (egress) network traffic from instances to internet destinations () must be blocked by default. However, Compute Engine virtual machines designated with the service account `[email protected]` must be allowed to make outbound HTTPS requests (TCP port 443) to external payment gateways. Assuming only the implicit VPC firewall rules currently exist, which configuration of `gcloud compute firewall-rules create` commands correctly enforces this security policy?
A DevOps engineer is configuring governance controls on Google Cloud to prevent budget overruns in a development environment. When monthly expenditure reaches 80% of the defined threshold, non-essential Compute Engine instances must be stopped automatically. Which configuration strategy correctly enables this programmatic action?
An organization's security compliance team needs to audit Google Cloud Pub/Sub resource configurations and inspect subscription metrics across all projects inside a designated Folder. However, compliance policies strictly prohibit the team from viewing or pulling actual Pub/Sub message payloads. Following Google Cloud recommended best practices and the principle of least privilege, which TWO predefined IAM roles should be granted to the security compliance team at the Folder level?
Select all that apply
A cloud engineer needs to migrate workloads from an existing GKE Standard node pool to a new node pool configured with larger machine types without causing application downtime. In what sequence should the engineer execute these operational steps to perform the migration?
Drag items to arrange them in the correct order