All practice questions
1591 questions
A site reliability engineer is managing an existing Compute Engine Managed Instance Group (MIG) hosting a microservice. The application startup script requires approximately 4 minutes to download dependencies and launch the server on port 8080. After configuring an autohealing health check, newly provisioned instances are continuously marked unhealthy and recreated in a continuous cycle before completing initialization. Which configuration change should the engineer make to resolve this issue?
An e-commerce enterprise is planning its Google Cloud Compute Engine resource strategy for two distinct backend services:
1. An image processing service that runs batch resizing jobs on user-uploaded media. The jobs are stateless, fault-tolerant, and support checkpointing.
2. A 24/7 high-performance in-memory inventory caching service that requires massive RAM capacity and uninterrupted availability.
Which TWO deployment strategies should the cloud engineer implement to optimize cost and performance for these workloads? (Select TWO.)
Select all that apply
A retail enterprise uses an automated provisioning script executed by a service account named `[email protected]`. The script is designed to create new workload projects within a specific organizational folder named `Digital-Storefronts` and link those newly created projects to the company's central Cloud Billing Account. Which IAM role assignments are required for the service account to execute this workflow while adhering to the principle of least privilege? (Select TWO.)
Select all that apply
An organization is designing a new cloud architecture for two distinct workloads:
1. A stateless containerized HTTP API that experiences unpredictable traffic spikes and requires automatic scaling down to zero instances during idle periods to minimize costs with zero node-management overhead.
2. A fault-tolerant nightly batch processing worker that processes queued images for several hours and can tolerate sudden node interruptions without data loss.
Which TWO Google Cloud compute deployment options should the cloud engineer select to meet these requirements while optimizing cost and operational efficiency? (Select TWO.)
Select all that apply
An enterprise is deploying an application on Google Cloud Compute Engine that requires two distinct storage mechanisms: (1) a temporary session state cache requiring sub-millisecond latency and high IOPS where data persistence across VM stops/starts is not required, and (2) a relational database engine for order management requiring strict ACID compliance, regional high availability, automated backups, and minimal database administration overhead. Which TWO storage and database configurations should you select to meet these requirements? (Select TWO.)
Select all that apply
Arrange the components of the Google Cloud resource hierarchy in sequence, starting from the highest level of administrative control down to the lowest level where individual services exist.
Drag items to arrange them in the correct order
An enterprise architecture team is planning the serverless compute deployment strategy for two distinct workloads:
• Workload 1: A real-time telemetry ingestion service requiring persistent WebSocket connections, custom C-based system dependencies, and high per-instance concurrency.
• Workload 2: A stateless background worker processing individual object creation events from a Google Cloud Storage bucket.
Which TWO architectural decisions correctly satisfy these operational requirements using Google Cloud serverless services? (Select TWO.)
Select all that apply
A system administrator needs permissions to fully manage Cloud SQL database instances and view Pub/Sub topics within a single Google Cloud project. Following Google Cloud security best practices for least privilege without using primitive roles, which TWO predefined IAM roles should be assigned to the administrator?
Select all that apply
A company needs to deploy a stateless, containerized web application to Google Cloud. The workload requires automatic scaling in response to incoming HTTP request volume while minimizing the operational overhead of managing underlying virtual machine infrastructure. Which Google Cloud compute service best satisfies these requirements?
An organization is planning to deploy a large in-memory relational database on Google Cloud Compute Engine. The workload requires high memory-to-vCPU ratios and continuous, uninterrupted operational availability. Which Compute Engine machine family should you select?
A financial company is planning to migrate a stateless API backend written in Go to Google Cloud. The service must handle incoming REST HTTP requests, scale to zero during off-peak hours to minimize costs, and process up to 250 concurrent requests per container instance to reduce cold starts and optimize memory utilization. The engineering team has already packaged the application into a custom OCI/Docker container image that listens on the PORT environment variable. Which serverless compute option best satisfies these requirements with the lowest operational overhead?
Your organization structures its Google Cloud resources using a resource hierarchy where the Finance department operates within a dedicated folder containing several workload projects. A compliance auditor requires read-only permissions to inspect configuration settings across all current projects within the Finance folder, as well as any new projects created inside this folder in the future. Following Google Cloud recommended practices and the principle of least privilege, which action should you take?
You are setting up a new project environment and need to enable the Compute Engine API using the Google Cloud CLI (`gcloud`). Which of the following represents the correct sequence of steps to safely verify context, enable the API, and confirm activation?
Drag items to arrange them in the correct order
You need to allow a team of developers to enable and disable Google Cloud service APIs within a specific project. Following the principle of least privilege, you must avoid granting unnecessary administrative permissions over other project resources. Which IAM role should you grant to the developers?
Your development team has developed a stateless HTTP web application packaged inside a custom Docker container image. You need to deploy this application to Google Cloud using a fully managed serverless platform that automatically scales up with traffic and scales down to zero when idle. Which Google Cloud service should you choose?
A company is planning to deploy a stateless containerized web service packaged as a custom Docker image. The workload experiences unpredictable HTTP traffic spikes, requires automatic scaling down to zero instances during idle periods to minimize operational costs, and must be deployed with zero virtual machine or Kubernetes cluster management overhead. Which Google Cloud compute platform best meets these requirements?
Your organization is initializing a new Google Cloud project named `analytics-prod-12` to deploy containerized application workloads. A Cloud Engineer needs to enable the Cloud Run API (`run.googleapis.com`) for `analytics-prod-12` using the `gcloud` CLI while strictly adhering to the principle of least privilege. Which command and IAM role grant should the engineer use to successfully enable the service API?
A financial services company is planning to deploy a dedicated transaction reporting microservice on Google Cloud Compute Engine. The service runs continuously 24/7 and requires an uninterrupted baseline of 4 vCPUs and 26 GB of RAM to meet strict Service Level Agreements (SLAs). Standard machine types offer either insufficient memory or excess unneeded vCPUs for this specific memory ratio. Which compute provisioning strategy should you choose to meet the operational requirements while minimizing costs?
Your organization uses a central CI/CD project named `proj-pipeline` hosting a deployment service account. This service account is configured to provision microservices inside a dedicated workload project named `proj-microservices-prod`. During the initial deployment execution, the pipeline fails with an error indicating that the Cloud Run API (`run.googleapis.com`) is not enabled. Following Google Cloud security and operational best practices, which action should be performed to resolve this issue?
An enterprise organization is onboarding a specialized engineering team and needs to establish a new, isolated project environment under an existing Organization node. The administrator must create a dedicated folder, create a project inside it, link an active enterprise billing account, enable the Compute Engine API, and grant the team necessary permissions using least-privilege predefined roles via the gcloud CLI. What is the correct sequence of administrative steps to configure this environment?
Drag items to arrange them in the correct order