All practice questions
1591 questions
A DevOps engineer is preparing a `gcloud` command to deploy a batch-processing worker VM instance on Compute Engine. The workload is stateless and fault-tolerant, so it should be deployed using Spot VM pricing to minimize costs. The instance must also execute an initialization script stored in a Cloud Storage bucket (`gs://prod-scripts/setup.sh`) during its initial boot sequence. Which TWO `gcloud compute instances create` command parameters must be included to meet these operational and cost requirements?
Select all that apply
Your team needs to grant a newly hired developer access to manage Compute Engine virtual machine instances (create, start, stop, and delete) within a specific Google Cloud project. The developer must not be granted permissions to modify project firewall rules, VPC networks, or IAM policies. Following the principle of least privilege, which IAM role should you grant to the developer at the project level?
A cloud engineer needs to configure least-privilege access by creating a custom IAM role for specific virtual machine operations and assigning it to an operator in a Google Cloud project using the gcloud CLI. Place the following operational steps in the correct sequential order from start to finish.
Drag items to arrange them in the correct order
A company is integrating their on-premises data center with a Google Cloud Virtual Private Cloud (VPC) network via Cloud Interconnect. Internal application servers hosted in the VPC reside within a Cloud DNS private zone named internal.example.com. On-premises client machines need to resolve hostnames within this private DNS zone over the hybrid connection. Which Cloud DNS configuration should be planned to satisfy this requirement?
A Cloud Engineer needs to safely deploy an OS image update to a production Managed Instance Group (MIG) serving critical web application traffic. To minimize operational risk, the engineer must execute a canary rollout using the gcloud command-line interface, testing the updated configuration on a subset of 10% of the instances before initiating a full deployment. In which sequential order should the engineer execute these steps?
Drag items to arrange them in the correct order
A cloud engineer needs to execute a gradual canary rollout of a new container image for an existing Cloud Run service named `order-processor`. The rollout must first direct 10% of live traffic to the new revision using a revision tag for testing, verify stability, and finally route 100% of traffic to the new revision. Arrange the following deployment and traffic management steps in the correct operational sequence.
Drag items to arrange them in the correct order
A cloud architect at a gaming startup is using the Google Cloud Pricing Calculator to model monthly Compute Engine expenses for dedicated matchmaking backend servers that run continuously 24 hours a day, 7 days a week. The architect wants to evaluate cost reduction mechanisms for uninterrupted VM workloads without incurring a 1-year or 3-year committed financial obligation. Which pricing feature does the Google Cloud Pricing Calculator automatically factor in for sustained Compute Engine instance usage?
A site reliability engineer is tasked with establishing automated long-term billing analytics by exporting daily granular resource usage and pricing data into BigQuery. Which prerequisite requirements and access permissions must be configured before enabling this billing export? (Select TWO.)
Select all that apply
A DevOps engineer operates a Google Kubernetes Engine (GKE) Standard cluster running a monolithic batch processing job that requires 18 hours of continuous, uninterrupted execution and cannot recover from unexpected pod evictions. A team member proposes migrating the cluster's worker node pool from Standard VMs to Spot VMs to lower compute costs. Which operational decision should the DevOps engineer make to guarantee that the workload completes successfully?
A cloud engineer needs to configure a Google Kubernetes Engine (GKE) workload to securely access Google Cloud Storage using Workload Identity. Arrange the administrative and deployment steps in the correct sequential order from start to finish.
Drag items to arrange them in the correct order
You manage a production Cloud SQL for MySQL instance named `prod-mysql`. To comply with disaster recovery policies, you need to enable point-in-time recovery (PITR) for the instance. On Cloud SQL for MySQL, PITR requires binary logging to be enabled. Which `gcloud` command should you run to enable binary logging on this instance while preserving all existing configurations?
A cloud engineer needs to configure Private Service Access within a custom Virtual Private Cloud (VPC) network named `corp-vpc` and provision a high-availability Cloud SQL for MySQL instance hosting an application database named `sales_db`. What is the correct sequence of `gcloud` CLI operations required to successfully complete this deployment?
Drag items to arrange them in the correct order
An operations engineer manages a Google Cloud Storage bucket named finance-records that has Object Versioning enabled. To comply with corporate retention policies while controlling costs, noncurrent object versions must be transitioned to Archive storage 30 days after becoming noncurrent, and permanently deleted 90 days after becoming noncurrent. Current object versions must remain untouched in Standard storage. Which configuration strategy correctly implements this lifecycle policy?
A financial technology company is planning to migrate an automated compliance auditing pipeline to Google Cloud. The team is using the Google Cloud Pricing Calculator to establish a baseline monthly cost estimate. The workload requires Compute Engine virtual machines running continuously 24/7, persistent storage for raw transaction logs, and regular data exports sent to an external auditor's system. Which of the following parameters must be factored into the pricing calculator to obtain an accurate baseline cost estimate? (Select TWO.)
Select all that apply
An organization runs a high-throughput backend service on a Compute Engine Managed Instance Group (MIG) configured with CPU utilization autoscaling. During peak traffic events, newly provisioned VM instances require approximately 5 minutes to start application dependencies and warm up local data caches. During this warm-up phase, CPU usage spikes temporarily, causing the autoscaler to continuously launch redundant VM instances before the existing new instances can handle traffic. Which action should the Cloud Engineer take to prevent premature and excessive scaling during instance startup?
A cloud administrator needs to set up an automated cost-control mechanism that caps spending by triggering a Cloud Run service whenever a project's monthly expenditure exceeds $5,000. Which action should the administrator take when configuring the Cloud Billing budget to enable this automated workflow?
Your engineering team is deploying an internal microservice on Compute Engine instances located in a Virtual Private Cloud (VPC) named `prod-vpc`. The service must be accessible privately from both `prod-vpc` and a peered VPC named `analytics-vpc` using the custom hostname `api.internal`. You plan to use an Internal Application Load Balancer. Which TWO actions must you perform to successfully deploy the load balancer and enable name resolution for both VPCs?
Select all that apply
A software development company is planning the cluster architecture for a new web service on Google Kubernetes Engine (GKE). The application consists of stateless microservices running standard containers. The infrastructure team requires an architecture that completely eliminates the operational overhead of managing, provisioning, and patching underlying compute nodes, while charging only for the requested Pod resources. Which GKE cluster architecture best fulfills these operational requirements?
A Cloud Engineer is tasked with provisioning a Cloud SQL for MySQL database instance that must communicate exclusively using a Private IP address within an existing custom VPC network named `prod-vpc`. Security policy strictly prohibits assigning public IP addresses. In what order should the engineer execute the configuration and deployment steps to establish Private Service Access and successfully create the database instance?
Drag items to arrange them in the correct order
A cloud engineer is managing a Google Kubernetes Engine (GKE) Standard cluster named `app-cluster` in zone `us-east1-b`. During a peak traffic period, the engineer scales up a web service Deployment, but several new Pods remain stuck in a `Pending` state with `Insufficient cpu` event messages. The existing node pool named `web-pool` has reached its current node limit, and node autoscaling is disabled. The engineer needs to enable node autoscaling specifically for `web-pool` so that GKE dynamically provisions additional underlying Compute Engine instances when Pods cannot be scheduled, establishing a minimum limit of 2 nodes and a maximum limit of 8 nodes. Which `gcloud` command must the engineer execute to resolve this issue?