All practice questions
1591 questions
A cloud engineer is deploying a new Cloud SQL instance that must be accessible exclusively through private IP addresses within an existing Virtual Private Cloud (VPC) network. Which TWO actions must be completed to successfully configure private IP connectivity for this database instance? (Select TWO answers.)
Select all that apply
An e-learning company records live interactive training webinars. For the first 14 days after recording, video files are accessed continuously by students and editors. Between day 15 and day 105, access drops significantly, with files retrieved only occasionally (once every 2 to 3 months) for support audits. Beyond 105 days, files must be retained for 3 years to comply with regulatory requirements and are expected to be accessed less than once per year. You need to configure Object Lifecycle Management on the Google Cloud Storage bucket to minimize total operational, storage, and retrieval costs. Which TWO lifecycle rule transitions should you include in the bucket configuration? (Select TWO)
Select all that apply
A platform engineer is deploying a containerized microservice to Google Cloud Run in the us-central1 region using the container image us-docker.pkg.dev/corp-apps/prod/account-api:v1. The application inside the container is configured to listen strictly on custom TCP port 5000 and does not automatically detect the default PORT environment variable. The requirement dictates that the service must immediately route 100% of live HTTP traffic to this newly deployed revision while enforcing private access by blocking all unauthenticated invocations. Which gcloud command must the engineer execute to achieve this deployment outcome correctly?
An operations engineer manages a production Google Kubernetes Engine (GKE) Standard cluster hosting a web application microservice and a background batch analytics workload. To optimize compute costs, the team provisions a new dedicated node pool configured with Spot VMs for the batch analytics workload. However, during initial testing, several web application pods are scheduled onto the Spot VM nodes and experience unexpected disruptions when nodes are reclaimed. Which configuration should the engineer implement to ensure the web application pods are never scheduled onto the Spot VM node pool?
A global financial compliance firm is planning a Google Kubernetes Engine (GKE) cluster architecture to host a sensitive risk-analysis workload. The platform must adhere to the following architectural and security requirements:
• The Kubernetes control plane must be private with its public endpoint disabled, allowing cluster administration solely from authorized corporate on-premises IP ranges via Cloud Interconnect.
• Cluster worker nodes must be provisioned with private IP addresses only, preventing direct inbound internet exposure.
• Pods running on worker nodes require outbound internet access to retrieve external regulatory compliance feeds, but nodes must not be assigned public IP addresses.
• Operational overhead for managing cluster node infrastructure and OS maintenance must be minimized without violating security constraints.
Which GKE cluster architecture and networking configuration should the team implement?
You are tasked with deploying a Python-based microservice to Google Cloud Functions (2nd gen) using the gcloud command-line interface. Arrange the deployment workflow steps into the correct chronological order from start to finish.
Drag items to arrange them in the correct order
Your organization is establishing a deployment pipeline for a stateless containerized web application using Google Cloud Run in the us-central1 region. The application source code is stored locally and needs to be built into a container image, stored in a managed repository, and deployed to Cloud Run with public unauthenticated access enabled. What is the correct sequence of execution steps to deploy this serverless application using the Google Cloud CLI from start to finish?
Drag items to arrange them in the correct order
A cloud administration team manages a custom-mode Virtual Private Cloud (VPC) network in Google Cloud. An application subnet in `europe-west3` currently uses the primary IPv4 CIDR range . Due to increased instance deployment, the team needs to expand the capacity of this subnet to a netmask length ( IP addresses). The adjacent IP block is completely unassigned, while the block is actively used by a database subnet in the same VPC network. Which strategy should the team implement to resolve the capacity requirement without causing IP allocation errors?
You are managing Compute Engine resources and need to create a custom image from an existing virtual machine's boot disk and use it to deploy a new virtual machine instance. What is the correct sequence of steps to safely perform this operation?
Drag items to arrange them in the correct order
An Associate Cloud Engineer is tasked with setting up a new environment for the Finance engineering division under an existing Google Cloud Organization. What is the correct sequence of administrative steps to establish the resource container structure, enable billing, and grant access using least privilege?
Drag items to arrange them in the correct order
A cloud engineer is preparing an automated deployment script to create and configure a Google Cloud Storage bucket for ingesting real-time telemetry data. According to Google Cloud security and operational best practices, infrastructure must be created first, bucket-level configurations and policies applied next, access control granted third, and data ingestion validated last. In what sequence should the engineer execute these operational steps?
Drag items to arrange them in the correct order
An e-commerce enterprise is planning its compute architecture on Google Compute Engine for two distinct operational workloads:
1. Core Order API: A mission-critical 24/7 web application requiring continuous uptime and predictable CPU/memory resources without unexpected terminations.
2. Nightly Catalog Indexer: A fault-tolerant batch processing job that runs for 2 hours each night, writes incremental checkpoints to Cloud Storage, and can withstand sudden instance preemption.
Which TWO cost-effective provisioning strategies should the cloud engineer implement? (Select TWO)
Select all that apply
A cloud engineer is tasked with using the Google Cloud Pricing Calculator to estimate monthly infrastructure expenses for two upcoming workloads: a fault-tolerant, stateless batch job pipeline that can tolerate sudden instance terminations, and a long-term compliance archive where exported files are stored for several years and accessed less than once a year. Which combination of service configurations in the Pricing Calculator provides the most accurate and cost-effective estimate for these requirements?
An enterprise is architecture-planning a global web application deployed across Compute Engine instance groups in the us-east1 and europe-west3 regions. The application serves dynamic REST API requests along with large static media assets. The design must meet three strict constraints:
1. Terminate client HTTPS connections at the Google Cloud edge and cache static media assets to minimize backend latency and bandwidth usage.
2. Steer public end-user DNS queries for app.example.com to the nearest healthy regional backend pool based on client geographic origin.
3. Automatically divert DNS traffic away from a region if its backend instances fail health checks.
Which combination of Google Cloud networking services and configurations fulfills these requirements while adhering to Google recommended practices?
A software company is architecting a custom high-throughput transaction processing engine deployed on Compute Engine virtual machines. The engine requires ultra-low latency block storage for temporary operational scratch data during execution, but requires durable storage for its primary relational data store with continuous low latency, high random IOPS, availability across VM restarts, and support for automated disk snapshots. Which storage configuration meets these requirements according to Google Cloud best practices?
A cloud engineer is deploying a new Google Cloud Storage bucket named `gs://media-ingest-pipeline-2026` in the `us-central1` region for an automated processing workflow. The project requirements specify configuring security standards (Uniform Bucket-Level Access), applying a lifecycle transition policy to lower long-term storage costs, and uploading initial assets. In what order should the engineer execute the following operational steps to establish the bucket and its initial configuration following Google Cloud best practices?
Drag items to arrange them in the correct order
A cloud engineer needs to deploy a web application to an existing Google Kubernetes Engine (GKE) cluster and verify its operational readiness. Arrange the following steps in the correct chronological order from first to last.
Drag items to arrange them in the correct order
A DevOps engineering team is upgrading an automated infrastructure deployment pipeline to adhere to current Google Cloud CLI best practices. They need to deploy a new Cloud Storage bucket named `gs://compliance-audit-logs-2026` in the `us-central1` region. Security and governance policies mandate that the bucket must enforce Uniform Bucket-Level Access (UBLA), set a default storage class of `COLDLINE` for all newly ingested objects, and enforce an unalterable object retention duration of 365 days. The team mandates using the modern `gcloud storage` CLI component rather than legacy `gsutil` commands. Which `gcloud storage` command correctly provisions this bucket with all specified configurations in a single step?
A DevOps team is automating the deployment of a Compute Engine instance named `analytics-worker` in zone `us-central1-a` using the Google Cloud CLI. The VM requires a local file `/opt/scripts/init.sh` to run as a startup script during boot. Additionally, the VM must have custom metadata configured with a key of `environment` set to `production`, attach a custom service account `[email protected]`, and be granted read-only access to Cloud Storage via API access scopes. Which `gcloud compute instances create` command correctly provisions this virtual machine according to all requirements?
A cloud engineer must configure access for a finance team member who needs to link newly provisioned Google Cloud projects to the company's central Billing Account and monitor project cost data. The finance team member must not be allowed to modify project infrastructure resources or manage billing account administrators and budgets. Which IAM role assignment strategy adheres to the principle of least privilege?