All practice questions

1598 questions

Question 1Question

An enterprise financial organization is deploying a private Google Kubernetes Engine (GKE) cluster to host compliance-sensitive microservices. Operational policy dictates that worker nodes must not have public IP addresses and that the GKE control plane private endpoint must be accessible only to security operators connecting via an existing Cloud VPN from an on-premises network subnet (10.200.0.0/24). Public internet access to the control plane must be completely disabled. Which configuration architectural strategy should you implement to provision this cluster securely while enabling operational management?

Show answer & explanation

Answer: Provision a private GKE cluster with the private endpoint enabled and public endpoint disabled, and configure Control Plane Authorized Networks to allow the 10.200.0.0/24 subnet.

Answer

Provision a private GKE cluster with the private endpoint enabled and public endpoint disabled, and configure Control Plane Authorized Networks to allow the 10.200.0.0/24 subnet.
The correct strategy is to provision a private GKE cluster with the private endpoint enabled and public endpoint disabled, while configuring Control Plane Authorized Networks to allow the on-premises subnet (10.200.0.0/24). GKE control planes are hosted in a Google-managed tenant VPC connected via VPC Network Peering. When public access is disabled, access from remote networks connected via Cloud VPN or Dedicated Interconnect requires explicitly adding the client IP ranges to the Control Plane Authorized Networks configuration.

Step-by-Step Solution

1
Identify cluster isolation requirements
Worker nodes must have private IPs only, and the control plane must not be exposed to the public internet.
Meets compliance policies disabling public endpoints for GKE compute and master nodes.
2
Determine master endpoint accessibility mechanism
Enable private endpoint access and disable public endpoint access during GKE cluster creation.
Ensures the control plane endpoint is assigned an internal IP accessible via VPC and connected networks.
3
Configure Control Plane Authorized Networks
Explicitly add the on-premises management subnet (10.200.0.0/24) to the cluster's Control Plane Authorized Networks list.
Private control plane endpoints enforce strict IP authorization filters; non-VPC custom CIDRs reaching the cluster over VPN/Interconnect must be explicitly permitted.

Key Concept

Private GKE Cluster Control Plane Security & Authorized Networks
Question 2Question

A healthcare organization is migrating its core platform from an on-premises data center to Google Cloud. The migration scope includes 850 TB of archived historical imaging data and an active 12 TB PostgreSQL transactional database supporting critical clinical workflows. The organization has an existing 1 Gbps Dedicated Interconnect with an average baseline utilization of 70%. Security policies strictly mandate that all data must travel over private connectivity without traversing the public internet, and the maximum permissible downtime window for the transactional database during final cutover is 4 hours. Which data transfer and migration strategy should a Cloud Architect recommend to satisfy all business and technical constraints?

Show answer & explanation

Answer: Order a GCP Transfer Appliance to move the 850 TB imaging dataset offline, while using Database Migration Service over the Dedicated Interconnect with continuous change data capture (CDC) to synchronize the PostgreSQL database prior to cutover.

Answer

The optimal strategy is ordering a GCP Transfer Appliance to transport the 850 TB imaging dataset offline while utilizing Database Migration Service with continuous change data capture (CDC) over the Dedicated Interconnect for the 12 TB PostgreSQL database.
The solution combining GCP Transfer Appliance for the 850 TB unstructured dataset with Database Migration Service (DMS) continuous replication for the 12 TB database is the only strategy that satisfies all constraints. Transfer Appliance moves petabyte-scale data offline without saturating the limited 300 Mbps available bandwidth, while DMS over Dedicated Interconnect performs online CDC to keep downtime during cutover well under the 4-hour SLA without traversing the public internet.

Step-by-Step Solution

1
Calculate available network bandwidth and time required for online data transfer of the unstructured dataset.
With 70% of the 1 Gbps link utilized, only 300 Mbps (0.3 Gbps0.3\text{ Gbps}) remains available. Transferring 850 TB=6.8×106 Gb850\text{ TB} = 6.8 \times 10^6\text{ Gb} at 0.3 Gbps0.3\text{ Gbps} takes approximately 6.8×1060.322.67×106 seconds262 days\frac{6.8 \times 10^6}{0.3} \approx 22.67 \times 10^6\text{ seconds} \approx 262\text{ days}. This mandates an offline physical appliance transfer.
Large multi-hundred terabyte datasets cannot be moved online over low-bandwidth connections within reasonable operational timeframes.
2
Evaluate connectivity and security constraints for the offline data transfer.
Transfer Appliance provides hardware-encrypted physical ingestion that avoids public internet routing, satisfying compliance requirements.
Security policy strictly forbids sending sensitive healthcare data over the public internet.
3
Design the database migration path to achieve a cutover window under 4 hours.
Using Database Migration Service (DMS) over the Dedicated Interconnect enables continuous initial snapshot sync followed by Change Data Capture (CDC). During cutover, only the remaining minimal replication lag must be processed, completing cutover in minutes.
Offline dumps of a 12 TB database take many hours to export and restore, exceeding the 4-hour maximum downtime SLA.

Key Concept

Selecting appropriate GCP data transfer mechanisms based on data volume, bandwidth constraints, security policies, and downtime SLAs.
Question 3Question

An enterprise organization manages multiple Google Cloud projects across production and non-production environments using Terraform within a centralized CI/CD pipeline. Engineers report intermittent deployment failures caused by concurrent pipeline executions modifying state simultaneously, and security audits identified Terraform state files containing sensitive data stored locally on transient build runners. You need to redesign the Infrastructure as Code (IaC) architecture to align with Google Cloud security and operational best practices. Which strategy should you recommend?

Show answer & explanation

Answer: Configure a dedicated Cloud Storage bucket per environment with Object Versioning enabled as the Terraform remote backend, enforce state locking via Cloud Storage native locking mechanisms, and restrict bucket access using fine-grained IAM roles granted to the CI/CD execution service account.

Answer

Configure a dedicated Cloud Storage bucket per environment with Object Versioning enabled as the Terraform remote backend, enforce state locking via Cloud Storage native locking mechanisms, and restrict bucket access using fine-grained IAM roles granted to the CI/CD execution service account.
Configuring a dedicated Cloud Storage bucket with Object Versioning enabled as the Terraform remote backend guarantees state persistence, prevents state corruption from concurrent runs via native GCS state locking, allows point-in-time state recovery through object versions, and secures state contents by applying fine-grained IAM roles to the automated pipeline service account.

Step-by-Step Solution

1
Identify current IaC state management and pipeline vulnerabilities
Local storage on build runners exposes cleartext state files to loss/exposure and causes state corruption due to lack of concurrency locking.
Terraform state contains sensitive metadata and resource mappings that require remote persistence, encryption at rest, state locking, and point-in-time recovery capabilities.
2
Evaluate GCP remote backend features for Terraform
Google Cloud Storage (GCS) provides built-in state locking natively, object versioning for rollback capabilities, and integration with IAM for least-privilege access control.
A GCS remote backend prevents simultaneous pipeline runs from corrupting state, while Object Versioning safeguards against accidental deletion or state corruption.
3
Implement environmental separation and identity controls
Isolate environments using separate GCS buckets for each stage (e.g., development, production) and assign fine-grained predefined storage roles to dedicated pipeline service accounts.
Environment separation limits the blast radius of misconfigurations, and dedicated service accounts enforce security boundaries without over-granting primitive roles.

Key Concept

Terraform Remote State Management and Security Best Practices in GCP
Estimated Time:2m 0s
Question 4Question

A healthcare telemetry platform is deploying a bursty event-processing workload on Google Cloud using Compute Engine Managed Instance Groups (MIGs). The autoscaling policy scales compute nodes based on custom Cloud Monitoring queue depth metrics, rapidly expanding from 10 instances to over 400 N2 high-memory instances during peak ingestion windows. The deployment pipeline uses Terraform to automate infrastructure provisioning, and the worker instances must securely assume a custom identity to interact with Bigtable. During initial stress testing of a new region, scaling events stalled halfway through expansion, and Terraform updates failed. Which combination of administrative and provisioning actions must the architecture team implement to prevent these failures?

Show answer & explanation

Answer: Submit regional vCPU quota increase requests in advance for the target compute instance family, and grant the deployment pipeline service account the Service Account User role (roles/iam.serviceAccountUser) on the worker service account.

Answer

Submit regional vCPU quota increase requests in advance for the target compute instance family, and grant the deployment pipeline service account the Service Account User role (roles/iam.serviceAccountUser) on the worker service account.
Provisioning large-scale Managed Instance Groups (MIGs) requires verifying and requesting regional compute quotas (such as N2 vCPUs) prior to deployment to handle maximum autoscaling bounds. Additionally, for automated Infrastructure as Code pipelines (like Terraform) to provision instances running under a custom worker identity, the pipeline's executing principal must be granted the `roles/iam.serviceAccountUser` role on that worker service account.

Step-by-Step Solution

1
Analyze capacity requirements for burst autoscaling.
Scaling up to 400 N2 high-memory instances requires confirming that regional vCPU quotas in the destination region accommodate the peak compute footprint.
Default GCP project quotas often cap regional vCPUs below large-scale burst requirements, causing provisioning calls to fail.
2
Evaluate service account delegation for automated compute provisioning.
The deployment pipeline service account requires the `roles/iam.serviceAccountUser` role on the dedicated worker service account.
This grant enables the pipeline to attach the specific runtime identity to newly created Compute Engine instance templates without granting overly permissive administrative rights.

Key Concept

Compute Resource Provisioning, Regional Quota Planning, and Identity Delegation
Estimated Time:2m 0s
Question 5Question

A renewable energy enterprise is designing the architecture for a new web application backend that ingests real-time telemetry from solar inverter gateways over HTTPS. The application logic is packaged into a stateless container image that requires custom system-level C libraries. Traffic fluctuates heavily throughout the day, dropping to zero during nighttime hours. The engineering team has strict instructions to minimize operational overhead and avoid paying for compute resources when idle. Which compute platform should you recommend to meet these requirements?

Show answer & explanation

Answer: Deploy the application container on Cloud Run, setting the minimum number of instances to zero and allowing fully managed autoscaling based on HTTP request concurrency.

Answer

Deploy the application container on Cloud Run, setting the minimum number of instances to zero and allowing fully managed autoscaling based on HTTP request concurrency.
Cloud Run is the optimal Google Cloud compute platform for stateless containerized web microservices with variable HTTP/HTTPS traffic. It supports custom binary dependencies within standard Docker images, abstracts all underlying infrastructure management, and natively scales instances down to zero when no requests are being processed, satisfying the zero idle cost mandate.

Step-by-Step Solution

1
Analyze workload requirements
Identified a stateless containerized web service with custom binary dependencies, variable HTTPS traffic, zero night traffic, and a requirement for minimal operational overhead.
Determining container compatibility and scaling dynamics dictates compute choice.
2
Evaluate candidate compute platforms against constraints
Cloud Run supports arbitrary containers with custom C libraries, automatically scales down to 0 instances when traffic stops, and requires zero infrastructure management.
Serverless containers fit stateless HTTP workloads without cluster management overhead.
3
Eliminate non-optimal options
GKE adds unnecessary cluster management complexity, Compute Engine MIGs require OS maintenance, and Committed Use Discounts lead to paying for unused capacity during zero-traffic periods.
Avoiding operational overhead and idle costs excludes GKE and VM-based options.

Key Concept

Selecting serverless container platforms (Cloud Run) for stateless HTTP workloads with variable demand and zero-scale requirements
Estimated Time:1m 30s
Question 6Question

A DevOps engineering team is operating a microservices application deployed on Cloud Run. During peak usage, transient database connectivity issues generate log entries containing the structured field payload status: CRITICAL_DATABASE_TIMEOUT. The team needs to configure automated alerting to notify on-call engineers via an existing Cloud Monitoring notification channel whenever this log entry appears more than 10 times within any 5-minute rolling window. Which configuration should the team implement?

Show answer & explanation

Answer: Create a counter log-based metric in Cloud Logging filtered for the database timeout log payload, and configure a Cloud Monitoring alerting policy based on this metric using a 5-minute rolling alignment window.

Answer

Create a counter log-based metric in Cloud Logging filtered for the database timeout log payload, and configure a Cloud Monitoring alerting policy based on this metric using a 5-minute rolling alignment window.
Creating a counter log-based metric allows Cloud Logging to count occurrence instances of specific log entries matching a filter. Cloud Monitoring reads this metric and evaluates threshold conditions over specified time windows (such as 5 minutes) to trigger alerting policies and push notifications to operational channels.

Step-by-Step Solution

1
Define a counter log-based metric in Cloud Logging
Cloud Logging starts counting matching log entries containing status: CRITICAL_DATABASE_TIMEOUT as time-series metric data points.
Log-based metrics convert unstructured or structured log event frequencies into numerical metrics accessible by Cloud Monitoring.
2
Create an alerting policy in Cloud Monitoring
An alerting policy condition monitors the log-based metric with a 5-minute alignment period and a threshold of > 10 occurrences.
Cloud Monitoring aggregation functions compute the rate of occurrence over the specified time window.
3
Attach the notification channel to the alerting policy
When the threshold is breached, Cloud Monitoring automatically sends an operational alert to the on-call team.
Notification channels route incident alerts to external operations systems like PagerDuty or Slack.

Key Concept

Log-based Metrics and Cloud Monitoring Alert Policies
Estimated Time:1m 30s
Question 7Question

A enterprise logistics company is designing a dual-workload telemetry platform on Google Cloud. The platform consists of two main services:

1. Stateless Ingestion API: Accepts unpredictable bursts of short-lived HTTPS POST requests from IoT devices. The service must automatically scale to zero during off-peak hours to minimize cost, require minimal infrastructure management, and run standard container images.
2. Custom Protocol Engine: Maintains persistent, long-lived TCP socket connections with custom kernel-level TCP buffer configuration (`sysctl`) tunings for legacy gateway hardware.

Which architectural strategy minimizes operational overhead while satisfying the technical requirements of both workloads?

Show answer & explanation

Answer: Deploy the stateless Ingestion API on Cloud Run, and deploy the Custom Protocol Engine on Compute Engine Managed Instance Groups (MIGs).

Answer

Deploying the stateless Ingestion API on Cloud Run and the Custom Protocol Engine on Compute Engine Managed Instance Groups (MIGs) provides the optimal balance of scale-to-zero serverless efficiency and low-level OS configuration control.
The solution correctly assigns stateless HTTPS API workloads with bursty traffic patterns to Cloud Run (achieving zero operational overhead and automatic scaling to zero) while placing the custom protocol workload requiring OS kernel tuning on Compute Engine MIGs.

Step-by-Step Solution

1
Evaluate the Stateless Ingestion API requirements
Identified HTTPS payload handling, unpredictable bursty traffic, requirement to scale to zero, containerized packaging, and minimal management overhead.
Cloud Run is the recommended serverless compute platform on Google Cloud for stateless HTTP/HTTPS containerized services requiring automatic scale-to-zero functionality.
2
Evaluate the Custom Protocol Engine requirements
Identified persistent long-lived TCP socket connections and OS kernel-level tuning (`sysctl`).
Compute Engine Virtual Machines or MIGs provide full access to the underlying guest OS kernel parameters required for specialized network buffer tuning.
3
Combine compute platforms to optimize operational overhead and cost
Selected Cloud Run for the API ingestion layer and Compute Engine MIGs for the OS-customized protocol layer.
Decoupling workloads onto purpose-fit GCP compute platforms minimizes operational toil and prevents paying for unnecessary control planes or unused baseline instances.

Key Concept

Compute Platform Selection Strategy (Cloud Run vs Compute Engine MIGs vs GKE)
Estimated Time:2m 0s
Question 8Question

A global online brokerage firm is designing its hybrid network topology to connect two primary on-premises data centers (located in Chicago and London) to Google Cloud. The architecture requires a sustained throughput of 15 Gbps per location with a 99.99% availability Service Level Agreement (SLA). Additionally, on-premises systems in Chicago must be able to reach GCP resources deployed in the Europe region (europe-west2) via the GCP backbone if the direct London link experiences a physical fiber disruption, without requiring custom overlay tunnels or virtual network appliances. Which network architecture should the Principal Cloud Architect recommend to meet these performance, redundancy, and routing requirements?

Show answer & explanation

Answer: Provision two 10 Gbps Dedicated Interconnect connections at separate edge availability domains in both us-central1 and europe-west2, configure a single Shared VPC with Global Dynamic Routing enabled, and establish BGP sessions on Cloud Routers in both regions.

Answer

Provision two 10 Gbps Dedicated Interconnect connections at separate edge availability domains in both us-central1 and europe-west2, configure a single Shared VPC with Global Dynamic Routing enabled, and establish BGP sessions on Cloud Routers in both regions.
Dedicated Interconnect is required for bandwidth exceeding 3 Gbps per tunnel and for achieving a 99.99% SLA using redundant circuits across two metropolitan edge availability domains per region. Utilizing a single Shared VPC (or global VPC) with Global Dynamic Routing enables BGP route propagation across regions over GCP's private fiber backbone, allowing traffic from the Chicago data center to reach europe-west2 resources if the local London connection drops, without hitting non-transitive VPC Peering limits.

Step-by-Step Solution

1
Evaluate hybrid connectivity bandwidth and SLA requirements.
Requirements specify 15 Gbps sustained throughput and 99.99% SLA. Dedicated Interconnect (using 10 Gbps or 100 Gbps circuits across two edge availability domains per region) is required, as Cloud VPN maxes out at 3 Gbps per tunnel.
HA VPN cannot meet the 15 Gbps SLA guarantee or single-pipe performance expectations for high-throughput enterprise connectivity.
2
Analyze cross-region failover and transitivity constraints.
On-premises systems in one site must reach GCP resources in another region via the GCP global network if local link fails.
VPC Network Peering does not support transitive routing (on-premises to VPC A to VPC B is prohibited). A unified Shared VPC (or VPC connected via Cloud Router with Global Dynamic Routing) must be used.
3
Select the proper dynamic routing scope.
Enable Global Dynamic Routing on the VPC network containing the Cloud Routers.
Global Dynamic Routing allows Cloud Routers in us-central1 to advertise routes learned via BGP in europe-west2 to the Chicago data center, allowing seamless failover across GCP's global backbone.

Key Concept

Hybrid Connectivity Selection & Global Dynamic Routing Transitivity
Question 9Question

A global financial technology enterprise is designing a secure payment execution platform on Google Cloud. The architecture mandates provisioning a private Google Kubernetes Engine (GKE) cluster where worker nodes have no public IP addresses. Internal compliance requires that administrative cluster management using kubectl must strictly originate from a management VPC subnet connected via VPC Network Peering, with public access to the Kubernetes control plane completely disabled. Furthermore, containerized workloads running inside the cluster must securely consume Google Cloud API resources without embedding or downloading long-lived service account keys. Which set of provisioning actions should the cloud architect specify to fulfill these requirements while following Google Cloud best practices?

Show answer & explanation

Answer: Provision a private GKE cluster with the control plane private endpoint enabled and public endpoint disabled, define Control Plane Authorized Networks to include the management VPC subnet CIDR, and configure Workload Identity to map Kubernetes Service Accounts to GCP Service Accounts with least-privilege IAM roles.

Answer

Provision a private GKE cluster with the control plane private endpoint enabled and public endpoint disabled, define Control Plane Authorized Networks to include the management VPC subnet CIDR, and configure Workload Identity to map Kubernetes Service Accounts to GCP Service Accounts with least-privilege IAM roles.
The correct architecture requires creating a private GKE cluster with the private endpoint enabled and public endpoint disabled for complete isolation of the API server. Configuring Control Plane Authorized Networks with the management VPC CIDR permits authorized administration over VPC Network Peering. Employing Workload Identity enables pods to access GCP services using IAM service account mapping without needing static key files.

Step-by-Step Solution

1
Evaluate private GKE control plane endpoint requirements
Disabling the public endpoint requires accessing the Kubernetes API via its internal private endpoint IP within the master peering network.
Ensures zero exposure of the GKE API server to the public internet.
2
Configure Control Plane Authorized Networks for peered network access
Explicitly authorizing the CIDR range of the management VPC allows cluster management traffic from the peered network to pass to the private control plane endpoint.
GKE private master endpoints block external CIDRs by default unless explicitly permitted through Control Plane Authorized Networks.
3
Establish secure workload authentication to Google Cloud APIs
Workload Identity allows Kubernetes Service Accounts (KSAs) to impersonate Google Service Accounts (GSAs) seamlessly without long-lived keys.
Eliminates security risks associated with storing and rotating JSON service account keys in Kubernetes secrets.

Key Concept

Private GKE Cluster Provisioning, Authorized Networks, and Workload Identity
Question 10Question

A financial services organization is modernizing its transaction reconciliation architecture on Google Cloud. The architecture comprises two core workloads: (1) a stateless, containerized HTTP REST microservice that processes customer requests with highly variable traffic spikes and must scale down to zero instances when idle, and (2) a containerized batch job that processes end-of-day financial reconciliation files, running continuously for approximately 6 hours each night. The organization requires a solution that minimizes operational management overhead and eliminates compute infrastructure costs during idle periods. Which TWO compute platform selections should you recommend to meet these requirements?

Select all that apply

Show answer & explanation

Answer: Deploy the stateless HTTP REST microservice to Cloud Run.; Execute the 6-hour financial reconciliation batch job using Cloud Run Jobs.

Answer

Deploy the stateless HTTP REST microservice to Cloud Run, and execute the 6-hour financial reconciliation batch job using Cloud Run Jobs.
Cloud Run is the optimal platform for stateless containerized microservices requiring low management overhead and scale-to-zero capabilities. For containerized batch processes that run to completion over multiple hours (up to 24 hours), Cloud Run Jobs provides a fully managed execution environment that consumes resources only during active execution.

Step-by-Step Solution

1
Analyze the operational and scaling requirements of the stateless microservice
Requirement identified for automatic scaling to zero, low management overhead, and HTTP request handling.
Cloud Run provides a fully managed serverless environment that hosts containerized HTTP microservices with zero cluster setup and automatic scale-to-zero capabilities.
2
Analyze the duration and infrastructure lifecycle requirements of the reconciliation task
Requirement identified for a containerized batch job running to completion over a 6-hour window without standing cluster costs.
Cloud Run Jobs executes task containers that run up to 24 hours and automatically cleans up resources upon completion, avoiding persistent compute billing.
3
Evaluate alternative platform choices against operational overhead and cost constraints
Rejected GKE, Compute Engine MIGs, and App Engine due to added management complexity, static baseline infrastructure costs, or execution duration limits.
GKE and Compute Engine introduce unnecessary operational maintenance, while App Engine Standard is tailored for web request handling rather than multi-hour batch runs.

Key Concept

Selecting serverless compute platforms (Cloud Run services for stateless web APIs and Cloud Run Jobs for long-running batch tasks) to minimize operational overhead and idle costs.
Question 11Question

A healthcare startup plans to migrate its legacy on-premises architecture to Google Cloud. The environment consists of a 15 TB15\text{ TB} PostgreSQL transactional database and 25 TB25\text{ TB} of unstructured medical imaging files stored on an SMB file share. The company has a dedicated 1 Gbps1\text{ Gbps} network connection to GCP. The migration strategy must ensure minimal downtime for the database and direct online ingestion of the image files into Cloud Storage with automated integrity verification. Which TWO architectural solutions should be included in the migration design? (Select TWO.)

Select all that apply

Show answer & explanation

Answer: Use Database Migration Service (DMS) with continuous CDC replication to migrate the PostgreSQL database to Cloud SQL.; Use Storage Transfer Service for on-premises data transfer to migrate the medical image files directly into Cloud Storage.

Answer

The strategy should incorporate Database Migration Service (DMS) with continuous CDC for the PostgreSQL database and Storage Transfer Service for moving the file share data to Cloud Storage over the available network link.
The correct strategy combines Database Migration Service (DMS) for continuous CDC replication of the PostgreSQL database to Cloud SQL with Storage Transfer Service for streaming on-premises file share data to Cloud Storage. This design meets the requirements of minimal database downtime and online file migration over the 1 Gbps link.

Step-by-Step Solution

1
Evaluate database migration requirements for operational continuity.
Database Migration Service (DMS) provides continuous replication (CDC) from on-premises PostgreSQL to Cloud SQL, enabling minimal cutover downtime.
Offline methods or schema shifts to distributed databases like Cloud Spanner incur significant downtime or unnecessary architecture modifications.
2
Evaluate bandwidth limits for the 25 TB file transfer.
A 25 TB dataset over a 1 Gbps link takes approximately 55 to 60 hours at theoretical full saturation, which easily fits within online transfer windows using Storage Transfer Service.
Storage Transfer Service automates checksum verification and agent-based multi-threaded transfer over existing network lines without needing physical appliance logistics.

Key Concept

Selecting optimal online migration services (DMS and Storage Transfer Service) based on dataset scale, minimal downtime requirements, and network throughput.
Question 12Question

A Lead Cloud Architect is transitioning an enterprise infrastructure automation platform from Google Cloud Deployment Manager to Terraform within Cloud Build CI/CD pipelines. The new deployment pipeline must support multi-developer concurrent executions without state corruption, maintain recoverable state history, and strictly observe GCP least-privilege identity access controls during resource provisioning. Which TWO configurations must the architect implement to satisfy these security and operational requirements?

Select all that apply

Show answer & explanation

Answer: Configure a remote Google Cloud Storage (GCS) backend for Terraform state files with object versioning enabled.; Grant the Cloud Build service account the roles/iam.serviceAccountUser role on specific target provisioning service accounts.

Answer

The architect must configure a remote Google Cloud Storage backend with object versioning enabled and grant the Cloud Build service account the Service Account User role on fine-grained target provisioning service accounts.
Configuring a Google Cloud Storage backend with object versioning ensures state locking during execution and retains state backup history. Combining this with granting the Service Account User role on specific target service accounts enforces least-privilege impersonation for Cloud Build deployments.

Step-by-Step Solution

1
Analyze Terraform remote state management requirements for enterprise CI/CD workflows.
Identified that native GCS backends provide automatic object locking and object versioning to protect against concurrent modification and state loss.
Remote state backends prevent race conditions when multiple deployment pipelines run simultaneously.
2
Evaluate IAM least-privilege requirements for automated deployment agents.
Determined that Cloud Build service accounts should use service account impersonation by holding the Service Account User role on dedicated target provisioning service accounts.
Impersonation eliminates the need for primitive roles or static long-lived service account keys.

Key Concept

Enterprise Terraform state backend configuration and secure service account impersonation in Google Cloud.
Question 13Question

A global gaming enterprise is preparing to launch a real-time multiplayer backend hosted on Google Cloud using automated Infrastructure as Code (IaC) pipelines with Terraform. The design requires deploying regional Compute Engine Managed Instance Groups (MIGs) across multiple zones to process high-throughput UDP traffic. To support the upcoming launch of 50,000 concurrent game instances, the deployment automation must prevent state concurrency conflicts, ensure successful automated resource creation without runtime quota rejections, and strictly observe least-privilege security principles. Which TWO architectural and administrative actions should the team perform as part of the initial provisioning strategy?

Select all that apply

Show answer & explanation

Answer: Configure the Terraform deployment pipeline to use a Cloud Storage backend configured with bucket versioning and object state locking enabled.; Submit a request to increase the regional Compute Engine N2 vCPU quota in the target deployment regions prior to triggering the automated provisioning pipeline.

Answer

The correct provisioning strategy requires storing the Terraform state file in a Cloud Storage backend configured with versioning and object locking, and requesting regional Compute Engine vCPU quota increases before initiating the deployment.
Establishing a remote Cloud Storage backend with object versioning and state locking protects the IaC environment from concurrent modification and state file corruption. Concurrently, requesting regional Compute Engine vCPU quota increases prior to triggering large automated deployments ensures that compute provisioning requests succeed without hitting default quota caps.

Step-by-Step Solution

1
Evaluate IaC state management requirements for automated pipelines
Configuring a Cloud Storage remote backend with state locking prevents race conditions and state corruption during concurrent pipeline executions.
Enterprise IaC automation requires centralized, lockable, and version-controlled remote state.
2
Analyze capacity requirements for large-scale compute resource provisioning
Requesting regional vCPU quota increases prior to deployment guarantees that Compute Engine MIG scaling operations will not be blocked by default quota limits.
Default project quotas in GCP often fall below the requirements of large-scale enterprise deployments, leading to runtime resource creation errors if not increased in advance.
3
Audit security and service choices against GCP architectural best practices
Reject primitive IAM roles and excessive administrative grants in favor of targeted roles like Service Account User, and avoid running non-containerized monoliths on GKE.
Adhering to least-privilege security and matching compute platforms to workload types prevents operational and compliance issues.

Key Concept

Provisioning Compute Engine Resources and IaC State Management
Estimated Time:2m 0s
Question 14Question

A healthcare research organization needs to migrate its core data assets to Google Cloud within a strict 6-week timeframe. The workload consists of 3.5 PB3.5\text{ PB} of static genomic sequence files on an on-premises SAN and an active 15 TB15\text{ TB} transactional PostgreSQL database. The facility has a single 1 Gbps1\text{ Gbps} dedicated internet connection. The migration plan must ensure minimal database downtime with continuous synchronization, and governance rules mandate strict perimeter security controls to prevent data exfiltration to unauthorized external cloud resources. Which TWO architectural strategies should you incorporate into the migration design?

Select all that apply

Show answer & explanation

Answer: Utilize Google Cloud Transfer Appliance devices to perform an offline bulk migration of the 3.5 PB3.5\text{ PB} genomic dataset, and deploy Database Migration Service (DMS) with continuous Change Data Capture (CDC) for the PostgreSQL database.; Configure VPC Service Controls around the target Cloud Storage buckets and database instances to establish a secure perimeter and block unauthorized data movement.

Answer

The correct architecture requires ordering Transfer Appliance devices for the petabyte-scale static dataset while using Database Migration Service with CDC for continuous database replication, combined with VPC Service Controls to prevent perimeter data exfiltration.
Moving 3.5 PB3.5\text{ PB} over a 1 Gbps1\text{ Gbps} network connection is mathematically impossible within 6 weeks, making offline Transfer Appliance devices mandatory for the static storage. Database Migration Service with CDC handles the live PostgreSQL replication. VPC Service Controls provide the required network perimeter boundary to safeguard against exfiltration to outside GCP projects.

Step-by-Step Solution

1
Calculate data transfer throughput for the 3.5 PB3.5\text{ PB} static dataset.
At 1 Gbps1\text{ Gbps}, uploading 3.5 PB3.5\text{ PB} online requires 3.5×1015×8109×86400324\frac{3.5 \times 10^{15} \times 8}{10^9 \times 86400} \approx 324 days. This violates the 6-week constraint, necessitating an offline transfer solution like Transfer Appliance.
Petabyte-scale data transfers over constrained WAN links require physical offline hardware appliances.
2
Select database replication mechanism for zero/minimal downtime.
Database Migration Service (DMS) utilizing Change Data Capture (CDC) allows continuous replication of PostgreSQL WAL logs up to the final cutover window.
CDC minimizes operational downtime by allowing live transactional databases to sync continuously.
3
Select perimeter security mechanism to address data exfiltration requirements.
VPC Service Controls form a logical perimeter isolating target Cloud Storage and database resources.
VPC Service Controls prevent data egress to unauthorized GCP projects even if an identity has legitimate IAM read permissions.

Key Concept

Selecting data transfer appliances vs online transfer services based on bandwidth limitations, paired with VPC Service Controls for perimeter exfiltration defense.
Question 15Question

A global media streaming organization currently manages its core Google Cloud Virtual Private Cloud (VPC) subnets and Compute Engine template deployments using legacy Google Cloud Deployment Manager deployments. The enterprise platform team is executing a strategic migration to standardize all infrastructure automation on Terraform. The Cloud Architect must establish a state migration workflow that imports existing live resources into Terraform without destroying active workloads or causing configuration drift, while ensuring automated CI/CD execution complies with Google Cloud identity and state management security best practices. Which migration and operational workflow should the Cloud Architect recommend?

Show answer & explanation

Answer: Define equivalent HCL resource declarations in Terraform, configure a remote Cloud Storage backend with object versioning and state locking enabled, authenticate the automated CI/CD pipeline using short-lived Service Account impersonation via Workload Identity Federation, and execute terraform import commands for existing resources.

Answer

Define equivalent HCL resource declarations in Terraform, configure a remote Cloud Storage backend with object versioning and state locking enabled, authenticate the automated CI/CD pipeline using short-lived Service Account impersonation via Workload Identity Federation, and execute terraform import commands for existing resources.
The recommended approach combines remote state governance in Cloud Storage with state locking and object versioning, keyless pipeline authentication using Workload Identity Federation, and non-destructive state ingestion via terraform import. This ensures active live resources managed by Cloud Deployment Manager are seamlessly mapped into Terraform management without service downtime, while enforcing Google Cloud security standards.

Step-by-Step Solution

1
Configure Remote State Management
Establish a Cloud Storage backend configured with object versioning and state locking (via Cloud KMS or native GCS state lock support) to prevent state corruption and enable state history recovery.
Enterprise Terraform execution requires centralized, locked, and versioned state storage to allow concurrent pipeline executions safely.
2
Implement Keyless CI/CD Pipeline Authentication
Configure Workload Identity Federation to allow external CI/CD pipelines to impersonate dedicated deployment service accounts with fine-grained IAM roles without static JSON keys.
Eliminates security risks associated with managing and storing long-lived service account keys.
3
Import Legacy Deployment Manager Resources into Terraform State
Write corresponding HCL resource blocks matching existing cloud infrastructure parameters and execute `terraform import` targeting existing Google Cloud resource IDs.
Binds existing live infrastructure to the Terraform state file without destroying or redeploying running workloads, avoiding downtime.

Key Concept

Terraform Remote State Locking, Resource Import, and Workload Identity Impersonation
Estimated Time:2m 30s
Question 16Question

A multinational e-commerce company plans to migrate its legacy product management system to Google Cloud. The environment includes an active 2 TB MySQL database requiring continuous replication with near-zero downtime cutover, along with 80 TB80\text{ TB} of static product image assets stored on an on-premises NAS network. The company already maintains an active 10 Gbps Dedicated Interconnect with Google Cloud with ample unutilized bandwidth. Which migration strategy should the Cloud Architect recommend to minimize cutover downtime and operational overhead?

Show answer & explanation

Answer: Use Storage Transfer Service with on-premises agents to stream static media assets over the Dedicated Interconnect into Cloud Storage, and deploy Database Migration Service (DMS) with continuous Change Data Capture (CDC) to replicate the MySQL database to Cloud SQL.

Answer

Use Storage Transfer Service with on-premises agents over Dedicated Interconnect for static media files, combined with Database Migration Service using continuous CDC for the MySQL database migration to Cloud SQL.
The combination of Storage Transfer Service for file ingestion and Database Migration Service (DMS) with continuous CDC for relational database replication provides an automated, managed migration path. Because an active 10 Gbps Dedicated Interconnect with spare capacity exists, online transfer of 80 TB80\text{ TB} is optimal and avoids the delay of physical appliance shipping, while DMS ensures near-zero database downtime during cutover.

Step-by-Step Solution

1
Analyze data volume and network throughput capacity
An 80 TB80\text{ TB} dataset over a 10 Gbps Dedicated Interconnect can easily be transferred online via network streaming within a few days, eliminating the need for offline physical appliance shipping.
Calculating network transfer capacity ensures online tools like Storage Transfer Service are prioritized when high-speed dedicated connectivity is active.
2
Evaluate database continuous replication requirements
Database Migration Service (DMS) supports native MySQL binlog-based Change Data Capture (CDC) to keep target Cloud SQL instances synchronized until final cutover.
Continuous CDC minimizes cutover downtime to just the time needed to switch application connection endpoints.
3
Select optimal managed GCP services
Combining Storage Transfer Service for unstructured files and Database Migration Service for transactional databases provides a fully managed, low-overhead migration architecture.
Using native GCP managed migration services minimizes operational overhead and custom script maintenance.

Key Concept

Combining Storage Transfer Service for online file transfer over Interconnect with Database Migration Service for low-downtime database cutover.
Question 17Question

An enterprise media processing team is setting up an automated Deployment Manager pipeline to provision a fleet of Compute Engine instances managed by a regional Managed Instance Group (MIG). The deployment pipeline runs under a dedicated deployment service account `[email protected]`. The Compute Engine instances must run under a separate application runtime service account `[email protected]`. During the initial pipeline run, instance template creation fails with an IAM permission error when attempting to attach `app-runner` to the VM template. Which IAM configuration resolves the deployment failure while adhering to the principle of least privilege?

Show answer & explanation

Answer: Grant the Service Account User role (roles/iam.serviceAccountUser) on the app-runner service account to the deploy-sa service account.

Answer

Granting the Service Account User role (`roles/iam.serviceAccountUser`) on the `app-runner` service account to the `deploy-sa` deployment service account allows the deployment pipeline to attach `app-runner` to Compute Engine instances under the principle of least privilege.
To attach a service account to a Compute Engine instance template or VM, the identity running the provisioning job must have the `iam.serviceAccounts.actAs` permission on the target service account. The predefined role `roles/iam.serviceAccountUser` grants this permission. Applying this role at the resource level on the target service account enforces least privilege.

Step-by-Step Solution

1
Identify the cause of the provisioning failure
The deployment pipeline service account (`deploy-sa`) requires permission to impersonate or bind the runtime service account (`app-runner`) to the compute resources being created.
Compute Engine instance creation requires the acting entity to possess authority to attach the target service account to the virtual machine.
2
Evaluate required IAM roles against the least privilege principle
The `roles/iam.serviceAccountUser` role grants permission to act on behalf of the service account without allowing administrative modifications to IAM policies or key management.
Predefined granular roles prevent over-provisioning security access during automated deployments.
3
Select resource-level binding target
Binding `roles/iam.serviceAccountUser` specifically on the `app-runner` resource (rather than project-wide) limits scope to only the intended runtime identity.
Resource-level IAM bindings restrict access exclusively to the specific identity needed by the deployment pipeline.

Key Concept

Compute Engine Service Account Impersonation and Attachment Permissions
Question 18Question

A multinational pharmaceutical enterprise is designing a hybrid network topology to connect its primary on-premises genomic research laboratory with Google Cloud. The hybrid interconnect must support a continuous sustained throughput of 15 Gbps for genomic payload ingestion and mandate an uptime SLA of 99.99%. Furthermore, multiple application teams operating in distinct regional VPC networks must access on-premises databases through a central network architecture. Which networking solution fulfills the SLA, bandwidth, and transitive connectivity requirements while maintaining operational simplicity?

Show answer & explanation

Answer: Provision two Dedicated Interconnect connections across two distinct Google Cloud edge availability domains (EADs) in a Shared VPC host project, configure Cloud Routers with global dynamic routing, and attach spoke service projects to the Shared VPC network.

Answer

The optimal architecture requires deploying redundant Dedicated Interconnect connections across two edge availability domains in a Shared VPC network with global dynamic routing configured on Cloud Routers.
Provisioning two Dedicated Interconnect circuits across distinct edge availability domains satisfies the 15 Gbps bandwidth requirement and the 99.99% availability SLA. Integrating Cloud Routers with global dynamic routing inside a Shared VPC host project allows regional service project workloads to natively access on-premises resources while respecting GCP network transitivity rules.

Step-by-Step Solution

1
Evaluate throughput and SLA requirements for hybrid connectivity.
Sustained 15 Gbps bandwidth exceeds the capacity of individual Cloud VPN tunnels (3 Gbps per tunnel), necessitating Dedicated Interconnect (10 Gbps or 100 Gbps circuits). A 99.99% SLA requires dual circuits across two edge availability domains (EADs).
HA VPN is unsuitable for high-throughput baseline traffic >10 Gbps, whereas Dedicated Interconnect meets enterprise SLA and bandwidth standards.
2
Evaluate cross-VPC topology and routing transit limits.
VPC Network Peering is strictly non-transitive in GCP. Spoke VPCs cannot route traffic to on-premises via an Interconnect attached to a central Peered Transit VPC.
To grant multiple regional workload teams access to the hybrid Interconnect without overlay overhead, Shared VPC must be used where spoke service projects directly share the host project's network resources.
3
Configure dynamic routing mode.
Global dynamic routing must be enabled on Cloud Routers so that routes learned from on-premises BGP sessions are propagated across all GCP regions in the Shared VPC network.
Regional dynamic routing limits route propagation to the region of the Cloud Router, failing multi-region access requirements.

Key Concept

Designing 99.99% SLA Hybrid Connectivity and Transitive Routing with Shared VPC
Question 19Question

An enterprise financial organization is migrating mission-critical systems to Google Cloud. The solution requires a hybrid connectivity architecture between their primary on-premises data center and a multi-region Google Cloud VPC network. The design must satisfy three mandatory requirements:
1. Maintain a SLA-backed availability SLA of 99.99% for hybrid connectivity.
2. Ensure all data in transit across the hybrid connection is encrypted using IPsec.
3. Provide sustained aggregate encrypted throughput exceeding 20 Gbps.

How should the Principal Cloud Architect design and provision this hybrid connectivity architecture to satisfy all requirements?

Show answer & explanation

Answer: Provision a 99.99% HA Dedicated Interconnect deployment across two distinct metropolitan locations with four total VLAN attachments, and configure HA VPN over Private IP across the interconnect attachments with multiple scaled IPsec tunnels.

Answer

Deploy a 99.99% HA Dedicated Interconnect architecture across two metropolitan locations with four VLAN attachments, and establish HA VPN over Private IP across those attachments.
To achieve a 99.99% availability SLA on Google Cloud hybrid connectivity alongside IPsec transit encryption and >20 Gbps throughput, the architecture must combine 99.99% HA Dedicated Interconnect (4 VLAN attachments across 2 metros and 2 regions) with HA VPN over Private IP. This setup uses Dedicated Interconnect links to transport IPsec-encrypted private traffic while delivering high availability and deterministic performance.

Step-by-Step Solution

1
Analyze availability and SLA requirements
Determined that achieving a 99.99% SLA requires Dedicated Interconnect provisioned across two distinct edge availability domains (metropolitan locations) with at least 4 total VLAN attachments connected to Cloud Routers in two GCP regions.
Google Cloud guarantees 99.99% availability for Dedicated Interconnect only when deployed across dual metros and dual regions.
2
Evaluate bandwidth and transit encryption requirements
Identified HA VPN over Private IP (HA VPN over Cloud Interconnect) as the required architecture to combine IPsec encryption with high-capacity Dedicated Interconnect capacity.
Standard IPsec VPN over public internet cannot guarantee high-throughput SLAs, whereas HA VPN running over Private IP on Dedicated Interconnect provides encrypted transit at scale over dedicated links.
3
Validate BGP dynamic routing and tunnel scaling
Configured multiple HA VPN tunnels over the private IP attachments using Cloud Routers with dynamic BGP to scale past individual tunnel limits and achieve over 20 Gbps aggregate throughput.
Multiple private IP VPN tunnels load balanced with ECMP BGP routing deliver the necessary aggregate throughput while keeping all traffic encrypted.

Key Concept

HA VPN over Dedicated Interconnect (Private IP IPsec Encryption with 99.99% SLA Topology)
Question 20Question

A smart energy grid company plans to migrate its legacy telemetry and management infrastructure to Google Cloud within a strict 4-week window. The environment consists of 800 TB800\text{ TB} of historical meter reading archives stored on an on-premises NFS storage system and an active 12 TB12\text{ TB} transactional PostgreSQL database. The organization has an existing dedicated 1 Gbps1\text{ Gbps} network connection to Google Cloud, which is currently heavily utilized by business-critical operations. The business requires minimal downtime for the transactional database during cutover and must complete the entire static file migration within the 4-week timeframe. Which data transfer and migration strategy should you recommend?

Show answer & explanation

Answer: Order a Google Cloud Transfer Appliance to physically transport the 800 TB800\text{ TB} of historical meter archives to Cloud Storage, and deploy Database Migration Service (DMS) with continuous Change Data Capture (CDC) over the existing network connection to replicate the PostgreSQL database prior to cutover.

Answer

Order a Google Cloud Transfer Appliance for the 800 TB800\text{ TB} static archives and use Database Migration Service (DMS) with CDC for the PostgreSQL database.
The correct strategy combines Google Cloud Transfer Appliance for offline transfer of the 800 TB800\text{ TB} historical archives and Database Migration Service (DMS) with continuous Change Data Capture (CDC) for the 12 TB12\text{ TB} PostgreSQL database. Network calculations show that transferring 800 TB800\text{ TB} over a 1 Gbps1\text{ Gbps} link requires over 74 days, making online streaming impossible within the 4-week window. Transfer Appliance avoids network congestion and completes the bulk load on time. Meanwhile, DMS with CDC handles continuous database replication in the background, allowing a near-zero downtime cutover.

Step-by-Step Solution

1
Calculate network bandwidth capacity for static data transfer
Streaming 800 TB800\text{ TB} over 1 Gbps1\text{ Gbps} takes 800×1012×81096.4×106 seconds74 days\frac{800 \times 10^{12} \times 8}{10^9} \approx 6.4 \times 10^6\text{ seconds} \approx 74\text{ days}, exceeding the 4-week (28-day) constraint.
Large multi-hundred terabyte or petabyte dataset transfers over low or shared bandwidth links must use offline physical appliances to meet time limits.
2
Select the appropriate offline data transfer method
Google Cloud Transfer Appliance enables shipping 800 TB800\text{ TB} of data securely within a few days without using network bandwidth.
Transfer Appliance bypasses network constraints and protects production traffic on the existing 1 Gbps1\text{ Gbps} link.
3
Select the database migration pattern for minimal downtime
Database Migration Service (DMS) uses Change Data Capture (CDC) to perform an initial backfill followed by real-time continuous sync.
Continuous replication allows the application to stay online until a very quick final cutover phase.

Key Concept

Selecting data transfer appliances vs. online transfer services based on bandwidth calculations and choosing CDC-based database migration tools for minimal downtime cutovers.
Page 1 / 80Next