All practice questions
1591 questions
An IoT telemetry platform is designing a Google Kubernetes Engine (GKE) cluster architecture to support two separate microservice workloads:
1. A customer-facing API service requiring high availability and operational simplicity with zero node-level infrastructure management.
2. A large-scale data transformation batch job that is fault-tolerant and stateless, where cost minimization is the top priority.
Which TWO architectural decisions should the cloud engineering team implement to satisfy these requirements? (Select TWO options.)
Select all that apply
A Cloud Engineer notices elevated 5xx error rates following a recent deployment to a production Cloud Run service. To restore stability, the engineer must immediately route all live traffic back to the previous stable revision, reconfigure operational instance limits to handle expected traffic spikes, and clean up the broken revision. Arrange the operational steps in the correct logical sequence to execute this remediation workflow.
Drag items to arrange them in the correct order
A Cloud Engineer is conducting a disaster recovery drill for a production regional Cloud SQL for PostgreSQL instance configured for High Availability (HA). The operational objective is to test manual failover from the primary zone to the standby zone, verify application stability, and safely failback to the original primary zone. Place the following operational steps in the correct chronological sequence required to execute this failover test.
Drag items to arrange them in the correct order
A compliance auditor requires read-only access to query and analyze BigQuery dataset contents across all Google Cloud projects contained within a specific organizational folder. The auditor should not have access to manage project configurations or read data from other GCP services. To adhere to the principle of least privilege while minimizing management overhead, which IAM role configuration should you implement?
An operations engineer needs to recover a production Cloud SQL for PostgreSQL instance to a state prior to a data corruption incident that occurred at 14:30 UTC today. Automated daily backups and binary logging are enabled on the instance. The engineer must perform a point-in-time recovery (PITR) to a separate new Cloud SQL instance to inspect and verify the data without impacting the active production workload. Which command should the engineer execute?
An enterprise application running locally on a developer's workstation needs temporary access to Google Cloud resources using a dedicated service account. To follow Google Cloud security best practices, you want to enable service account impersonation without creating long-lived credentials. Which IAM role must be granted to the developer on the target service account?
A software developer needs to inspect the configuration parameters and operational status of Cloud Run services within a Google Cloud project named `prod-services` to troubleshoot performance issues. The developer must not be allowed to deploy new services, modify existing configurations, or view underlying source code and secrets. Following Google Cloud recommended security practices and the principle of least privilege, which IAM role assignment should you grant to the developer?
A cloud engineer needs to deploy a custom Virtual Private Cloud (VPC) environment in Google Cloud to host a secure internal application service. Arrange the following deployment steps in the correct logical sequence required to provision the infrastructure, set up IP addressing, enforce access security, and instantiate the workload.
Drag items to arrange them in the correct order
An enterprise maintains an online transactional processing (OLTP) application backed by a production Cloud SQL for PostgreSQL instance. The data analytics team needs to execute complex, long-running analytical queries against historical data every week. Running these heavy read operations directly against the primary instance causes severe CPU spikes and latency degradation for end users. How should the cloud engineer configure the database infrastructure to support the analytics workload while safeguarding production performance?
A DevOps engineer manages a Google Kubernetes Engine (GKE) Standard cluster named `prod-cluster` located in the `us-central1` region. The application workload experiences dynamic spikes in traffic, causing newly scheduled pods to remain in a `Pending` state whenever existing node capacity is exhausted. The engineer needs to update the existing node pool named `worker-pool` so that GKE automatically provisions or removes worker nodes as capacity demands shift, maintaining between 2 and 10 nodes per zone. Which command should the engineer execute?
A cloud engineer needs to deploy a Python microservice as a Cloud Functions (2nd gen) function triggered by messages published to a Cloud Pub/Sub topic. The deployment must adhere to least-privilege security by utilizing a dedicated user-managed service account instead of the default compute service account. Arrange the following deployment tasks in the correct chronological order from start to finish.
Drag items to arrange them in the correct order
An organization requires a newly onboarded security compliance officer to inspect Cloud Key Management Service (Cloud KMS) key rings and key metadata within a target project named `sec-ops-prod`. The compliance officer must be able to view key configurations and IAM policy bindings on the keys, but must not be granted permissions to decrypt data, create new keys, or access resources in adjacent projects located under the same parent folder. Which IAM role assignment adheres to the principle of least privilege?
A system administrator needs to monitor system-level metrics (such as memory utilization and disk space usage) as well as application logs on a fleet of Google Cloud Compute Engine virtual machines. Which component should be installed on the instances to collect both system telemetry and log data under Google Cloud recommended practices?
A cloud architecture team is designing the infrastructure for a newly onboarded suite of enterprise applications. Match each technical workload requirement to the most appropriate Google Cloud storage or database option based on Google-recommended practices.
Click a left item, then click its matching right item
Items
Matches
A cloud engineer needs to deploy a primary Cloud SQL for MySQL database instance with private IP connectivity in a custom VPC network, enable binary logging, and provision a cross-region read replica in a secondary region. Arrange the steps in the correct operational sequence to complete this deployment.
Drag items to arrange them in the correct order
A cloud engineer is managing networking resources for an enterprise workload on Google Cloud. A Compute Engine virtual machine named `api-server-01` running in zone `us-central1-b` was initially deployed without an external IP address. Due to an emergency operational requirement, the VM must temporarily receive a static public IP address that has already been reserved under the name `api-static-ip` in region `us-central1`. The virtual machine is actively serving internal requests and cannot be deleted or recreated. Which `gcloud` command should the engineer run to assign the reserved external IP address to `api-server-01`?
A logistics firm is planning a new Google Kubernetes Engine (GKE) cluster for an engine routing optimization engine. The application requires custom Linux kernel sysctl settings on the worker nodes to optimize network socket buffers, along with dedicated local NVMe SSD storage attached directly to the underlying virtual machines. Which GKE mode of operation should the team choose to support these infrastructure requirements?
A DevOps team is configuring access control for an automated CI/CD deployment pipeline in a Google Cloud project named `payment-gateway-prod`. The pipeline's service account requires permissions to create and update Cloud Run service revisions, as well as read build configuration objects stored in a single specific Cloud Storage bucket named `payment-config-bucket`. Adhering strictly to the Principle of Least Privilege, which IAM role configuration should be applied?
An organization is deploying Compute Engine virtual machines dedicated to executing fault-tolerant, stateless batch processing jobs. The instances must cost as little as possible and access BigQuery datasets securely using a dedicated custom service account. Which two actions or configuration flags should be specified when deploying these instances using the gcloud CLI? (Select TWO)
Select all that apply
A cloud engineering team operates a Managed Instance Group (MIG) that processes asynchronous background tasks from a Cloud Pub/Sub subscription. During high-traffic events, CPU utilization across the VM instances remains below 25%, but the message backlog grows significantly, resulting in SLA violations. The team needs to reconfigure the MIG autoscaling strategy to scale based on the number of unacknowledged messages in the subscription and ensure newly launched instances complete their startup scripts before the autoscaler evaluates performance metrics. Which configuration approach should the engineer implement?