Google Cloud Professional Cloud Architect · Domain 2 of 6 · 18% of the exam

Google Cloud Professional Cloud Architect Domain 2: Managing and Provisioning a Solution Infrastructure

36 free practice questions for Managing and Provisioning a Solution Infrastructure in the Google Cloud Professional Cloud Architect (PCA) exam. Try each question first, then open "Show answer" for the correct option and explanation.

Managing and Provisioning a Solution Infrastructure practice questions

  1. Question 1. Infrastructure must be provisioned repeatedly across dev, test, and prod with code review and drift visibility. What should the architect recommend?

    1. Manual changes in the Google Cloud console
    2. Shell scripts run from each engineer's laptop
    3. Terraform with remote state in Cloud Storage, run through CI/CD
    4. Deployment Manager templates edited by hand in prod
    Show answer

    Answer: C. Terraform with remote state in Cloud Storage, run through CI/CD

    Infrastructure as code makes changes reviewable and repeatable, and Infrastructure Manager can run Terraform as a service.

  2. Question 2. A team wants Google Cloud to run Terraform deployments and store state without managing its own runners. What service fits?

    1. Cloud Scheduler
    2. Infrastructure Manager
    3. Artifact Registry
    4. Cloud Deploy
    Show answer

    Answer: B. Infrastructure Manager

    Infrastructure Manager runs Terraform with Cloud Build and manages state and revisions.

  3. Question 3. A GKE cluster must scale nodes automatically when pods can't be scheduled. What should be enabled?

    1. Horizontal Pod Autoscaler only
    2. Vertical Pod Autoscaler in Off mode
    3. Cluster autoscaler on the node pools
    4. A fixed node count with a larger machine type
    Show answer

    Answer: C. Cluster autoscaler on the node pools

    The cluster autoscaler adds nodes for pending pods and removes underused nodes.

  4. Question 4. A deployment's pods should scale by CPU usage between 3 and 30 replicas. What should be configured?

    1. A cluster autoscaler with 30 nodes
    2. A PodDisruptionBudget with minAvailable 3
    3. A HorizontalPodAutoscaler with min 3 and max 30
    4. A Vertical Pod Autoscaler in Auto mode only
    Show answer

    Answer: C. A HorizontalPodAutoscaler with min 3 and max 30

    HPA changes replica counts based on metrics such as CPU, memory, or custom metrics.

  5. Question 5. During GKE node upgrades, at least two replicas of a critical service must always stay running. What protects this?

    1. A HorizontalPodAutoscaler with min 2
    2. A PodDisruptionBudget with minAvailable set to 2
    3. A node taint on every node in the pool
    4. A ResourceQuota on the namespace
    Show answer

    Answer: B. A PodDisruptionBudget with minAvailable set to 2

    PDBs limit voluntary disruptions such as drains during upgrades.

  6. Question 6. GKE upgrades must happen only on weekends in a controlled way. What should be configured?

    1. Disabling auto-upgrade permanently for all clusters
    2. A Cloud Scheduler job that deletes old nodes
    3. Maintenance windows and exclusions on the cluster
    4. Pod anti-affinity rules for each deployment
    Show answer

    Answer: C. Maintenance windows and exclusions on the cluster

    Maintenance windows limit when automatic upgrades happen, and exclusions block them for set periods.

  7. Question 7. A regional managed instance group must replace VMs that stop responding to HTTP health checks. What should be configured?

    1. Autohealing with a health check on the MIG
    2. A larger boot disk on the instance template
    3. A snapshot schedule on each VM's disk
    4. A static external IP for every VM
    Show answer

    Answer: A. Autohealing with a health check on the MIG

    Autohealing recreates instances that fail application health checks.

  8. Question 8. A new VM image must be rolled out to a MIG gradually with no more than one instance down at a time. What should be used?

    1. Deleting and recreating the MIG with the new template
    2. Stopping all instances before changing the template
    3. A rolling update with maxUnavailable 1 on the MIG
    4. A canary using a separate unmanaged instance group
    Show answer

    Answer: C. A rolling update with maxUnavailable 1 on the MIG

    Rolling updates replace instances in batches, and maxSurge and maxUnavailable control the pace.

  9. Question 9. Compute Engine VMs need a standard hardened OS image built and patched on a schedule. What should be designed?

    1. Manually patching each running VM over SSH
    2. Using a different public image for each team
    3. A pipeline that builds custom images and publishes them to an image family
    4. Keeping VMs running without patches for stability
    Show answer

    Answer: C. A pipeline that builds custom images and publishes them to an image family

    Image families point to the latest image, so new instances use the current hardened version.

  10. Question 10. A company must patch the OS of hundreds of VMs on a schedule and report compliance. What should be used?

    1. Cloud Scheduler with SSH scripts
    2. Persistent disk snapshots
    3. VM Manager OS patch management
    4. Cloud Deploy delivery pipelines
    Show answer

    Answer: C. VM Manager OS patch management

    VM Manager runs patch jobs, schedules deployments, and reports patch compliance.

  11. Question 11. Which Compute Engine feature keeps a VM running during host maintenance?

    1. Preemptible provisioning model
    2. Shielded VM with Secure Boot on
    3. Live migration on host maintenance
    4. Sole-tenant node affinity labels
    Show answer

    Answer: C. Live migration on host maintenance

    Live migration moves VMs to another host without rebooting during maintenance events.

  12. Question 12. A data processing app needs very high IOPS scratch space that doesn't need to survive VM stops. What should be attached?

    1. Standard persistent disk
    2. A Cloud Storage bucket mount
    3. Local SSD
    4. Filestore Basic HDD
    Show answer

    Answer: C. Local SSD

    Local SSDs are physically attached for high performance, but data is lost when the VM stops.

  13. Question 13. A database VM needs block storage with performance set independently of capacity. Which disk type fits?

    1. Hyperdisk Balanced or Extreme
    2. Standard persistent disk only
    3. Local SSDs combined in RAID 0
    4. A Cloud Storage FUSE mount
    Show answer

    Answer: A. Hyperdisk Balanced or Extreme

    Hyperdisk lets IOPS and throughput be provisioned separately from size.

  14. Question 14. A zonal persistent disk is a single point of failure for a stateful app. What improves availability?

    1. A larger zonal persistent disk in the same zone
    2. A local SSD added to the VM for read caching
    3. A snapshot schedule that runs every 24 hours
    4. A regional persistent disk replicated across two zones
    Show answer

    Answer: D. A regional persistent disk replicated across two zones

    Regional disks replicate synchronously, so the disk can be attached to a VM in the other zone after a failure.

  15. Question 15. VM disk backups must be taken daily and kept for 30 days automatically. What should be configured?

    1. A Cloud Scheduler job that copies disks to buckets
    2. Object versioning on a bucket
    3. A MIG autohealing policy
    4. A snapshot schedule attached to the disks
    Show answer

    Answer: D. A snapshot schedule attached to the disks

    Snapshot schedules create and delete snapshots based on the retention policy.

  16. Question 16. Backups of Compute Engine, GKE, and databases must be managed centrally with immutable backup vaults. What should be used?

    1. Object versioning on each bucket
    2. Cloud Scheduler with custom scripts
    3. Google Cloud Backup and DR Service
    4. Persistent disk cloning
    Show answer

    Answer: C. Google Cloud Backup and DR Service

    Backup and DR Service manages backup plans and backup vaults that can enforce retention.

  17. Question 17. A container image repository with vulnerability scanning and regional replication is needed. What should be used?

    1. Container Registry backed by public buckets
    2. Cloud Storage buckets with image tarballs
    3. Artifact Registry with scanning enabled
    4. Filestore with Docker layers
    Show answer

    Answer: C. Artifact Registry with scanning enabled

    Artifact Registry stores containers and packages, and Artifact Analysis scans for vulnerabilities.

  18. Question 18. A company needs to provision new projects with standard IAM, networking, and logging for every team. What pattern fits?

    1. Letting each team create projects manually
    2. A project factory using Terraform with organization policies
    3. One shared project for every team
    4. Creating projects in personal Gmail accounts
    Show answer

    Answer: B. A project factory using Terraform with organization policies

    Automated project creation gives consistent guardrails, labels, and billing setup.

  19. Question 19. Resources must be organized so that policies apply to all projects of the finance department. How should the hierarchy be designed?

    1. A label named finance on each project only
    2. A separate billing account per project
    3. A single project for the finance department
    4. A Finance folder under the organization, with projects inside
    Show answer

    Answer: D. A Finance folder under the organization, with projects inside

    Folders group projects, and IAM and organization policies set on a folder are inherited.

  20. Question 20. Which Cloud Storage feature protects against accidental overwrites or deletion by keeping older versions?

    1. Requester pays
    2. Object versioning (or soft delete)
    3. Signed URLs
    4. Uniform bucket-level access
    Show answer

    Answer: B. Object versioning (or soft delete)

    Versioning keeps noncurrent versions. Soft delete keeps deleted objects for a retention period.

  21. Question 21. A company needs to copy 200 TB from another cloud's object storage into Cloud Storage on a schedule. What fits?

    1. gsutil on one laptop
    2. Transfer Appliance shipped monthly
    3. Dataflow reading each file by hand
    4. Storage Transfer Service
    Show answer

    Answer: D. Storage Transfer Service

    Storage Transfer Service moves data from other clouds, HTTP sources, and on-premises at scale.

  22. Question 22. A data center has 1 PB to move with limited bandwidth and a tight deadline. What should be recommended?

    1. Storage Transfer Service over a 100 Mbps link
    2. gcloud storage cp from one server
    3. Transfer Appliance
    4. Pub/Sub messages with file chunks
    Show answer

    Answer: C. Transfer Appliance

    Transfer Appliance is a physical device for large offline data migration.

  23. Question 23. An on-premises MySQL database must move to Cloud SQL with minimal downtime using continuous replication. What should be used?

    1. A one-time mysqldump during business hours
    2. Database Migration Service
    3. Storage Transfer Service
    4. BigQuery Data Transfer Service
    Show answer

    Answer: B. Database Migration Service

    DMS sets up continuous replication and a short cutover for supported databases.

  24. Question 24. VMs from VMware and AWS must be migrated to Compute Engine with testing before cutover. What should be used?

    1. Database Migration Service
    2. Migrate to Virtual Machines
    3. Transfer Appliance only
    4. Storage Transfer Service
    Show answer

    Answer: B. Migrate to Virtual Machines

    Migrate to Virtual Machines replicates VMs and supports test clones before cutover.

  25. Question 25. Outbound internet access is needed for private VMs without external IPs, for downloading updates. What should be configured?

    1. An ephemeral external IP on every VM
    2. Private Google Access on the subnet only
    3. Cloud NAT on a Cloud Router in that region
    4. A VPC peering connection to the internet
    Show answer

    Answer: C. Cloud NAT on a Cloud Router in that region

    Cloud NAT provides outbound connectivity for private instances without allowing inbound connections.

  26. Question 26. Private VMs without external IPs must reach Google APIs such as Cloud Storage. What should be enabled on the subnet?

    1. Cloud NAT with inbound rules
    2. VPC Flow Logs
    3. Private Google Access
    4. Cloud Armor
    Show answer

    Answer: C. Private Google Access

    Private Google Access lets instances with internal IPs reach Google APIs and services.

  27. Question 27. Which approach lets a firewall rule apply only to VMs running a specific workload, independent of IPs?

    1. Target by service account or secure tag
    2. Target by instance name only
    3. Target by boot disk image
    4. Target by billing account
    Show answer

    Answer: A. Target by service account or secure tag

    Rules can target service accounts or tags, which move with the workload.

  28. Question 28. Network firewall rules must be managed once and applied to many VPCs across projects. What should be used?

    1. Separate VPC firewall rules copied in each project
    2. Hierarchical firewall policies at the organization or folder level
    3. Cloud NAT rules at the folder level
    4. Route priorities on each subnet
    Show answer

    Answer: B. Hierarchical firewall policies at the organization or folder level

    Hierarchical policies are evaluated before VPC rules and apply across all projects under the node.

  29. Question 29. A GKE cluster's nodes must not have public IPs, and the control plane must be reachable only from internal networks. What should be created?

    1. A private cluster with authorized networks for the control plane
    2. A public cluster with basic authentication
    3. A cluster with legacy ABAC enabled
    4. A cluster using the default network with external IPs
    Show answer

    Answer: A. A private cluster with authorized networks for the control plane

    Private nodes use only internal IPs, and control plane access can be restricted to specific ranges.

  30. Question 30. A company wants to separate network administration from project administration for many projects. Which roles belong to the network team in a Shared VPC?

    1. Shared VPC Admin in the host, Network User for service projects
    2. Project Owner on every one of the service projects
    3. Billing Account Administrator on the host project only
    4. Organization Viewer for the network team only
    Show answer

    Answer: A. Shared VPC Admin in the host, Network User for service projects

    The host project team controls networks, and service project users get Network User on specific subnets.

  31. Question 31. A Compute Engine VM must be placed on dedicated hardware for licensing reasons. What should be used?

    1. Spot VMs
    2. Sole-tenant nodes
    3. Shielded VMs
    4. Confidential VMs
    Show answer

    Answer: B. Sole-tenant nodes

    Sole-tenant nodes are physical servers dedicated to one project's VMs.

  32. Question 32. An app needs guaranteed GPU capacity in a zone for a planned training run next month. What should be done?

    1. Rely on Spot VMs being available
    2. Request a quota increase only
    3. Use sustained use discounts
    4. Create a future reservation for the GPU VMs
    Show answer

    Answer: D. Create a future reservation for the GPU VMs

    Reservations guarantee capacity. Quota alone doesn't ensure resources are available in the zone.

  33. Question 33. A MIG must scale based on the number of undelivered messages in a Pub/Sub subscription. What should be configured?

    1. Autoscaling on the Pub/Sub backlog metric
    2. CPU-based autoscaling with a 90% target
    3. A fixed number of instances in the group
    4. Load balancing serving capacity per instance
    Show answer

    Answer: A. Autoscaling on the Pub/Sub backlog metric

    MIGs can autoscale on Cloud Monitoring metrics, including per-instance backlog targets.

  34. Question 34. A workload running on Cloud Run needs to reach a Cloud SQL instance using a private IP. What should be configured?

    1. An external IP on the Cloud Run service
    2. Direct VPC egress (or a Serverless VPC Access connector)
    3. Cloud NAT only
    4. VPC peering from Cloud Run to the VPC
    Show answer

    Answer: B. Direct VPC egress (or a Serverless VPC Access connector)

    Cloud Run needs a VPC egress path to reach private IP resources in the VPC.

  35. Question 35. A company wants all provisioning done only through CI/CD service accounts, not by people in the console. What helps enforce this?

    1. Give every engineer the Owner role on each project
    2. Viewer roles for humans; deployer roles only for pipeline service accounts
    3. Disable Cloud Audit Logs for the deployment projects
    4. Share one service account key across the whole team
    Show answer

    Answer: B. Viewer roles for humans; deployer roles only for pipeline service accounts

    Least-privilege roles for humans push changes through reviewed pipelines.

  36. Question 36. Which statement about labels and tags in Google Cloud is correct?

    1. Labels enforce IAM permissions directly on resources
    2. Tags are only visible in the billing export data
    3. Neither labels nor tags can be applied to projects
    4. Labels organize costs; tags can also drive IAM and firewall conditions
    Show answer

    Answer: D. Labels organize costs; tags can also drive IAM and firewall conditions

    Tags are organization-level resources that support policy conditions. Labels are key-value metadata for filtering and billing.

Google Cloud is a trademark of Google LLC. These questions are original study material, not questions from the real exam.