All Google Cloud exams
Free Professional Cloud Architect practice test: 30 questions with answers
30 original questions for Professional Cloud Architect, drawn from every topic area. Answer each one to see whether you got it right and why. No sign-up.
- Free questions
- 30
- Full bank
- 112 questions
- Real exam
- 120 min
Professional Cloud Architect exam guide: topics, cost and format
All 30 Professional Cloud Architect questions with answers
The same questions as the test above, grouped by exam topic. Open any question to see the answer and explanation.
Design and plan a cloud solution architecture (5 questions)
Question 1
A retailer runs its order system on-premises and is moving to Google Cloud. The business needs an order database with strong consistency, very high availability across regions, and automatic horizontal scaling. Which service should the architect choose?
- AFirestore in Native mode with a single-region location near headquarters
- BCloud SQL for PostgreSQL with cross-region read replicas in each continent
- CBigtable with replication enabled in three regions and a single cluster per region
- DCloud Spanner in a multi-region configuration
Show answer and explanationHide answer
Correct answer: DCloud Spanner provides relational transactions with strong consistency, horizontal scaling and a multi-region configuration built for the highest availability. Cross-region Cloud SQL replicas do not give globally consistent writes, because writes still go to one primary. Bigtable is not a relational store with multi-row transactions, and a single-region Firestore location does not meet the cross-region goal.
Question 2
A media company stores 900 TB of raw video in an on-premises NAS and must move it to Cloud Storage over a 10 Gbps link that is already in place. Most of the data is cold and rarely read. Which approach is best?
- AStorage Transfer Service over the existing link, into Archive storage class
- BCopy the files with gsutil from a laptop, one folder at a time, over the public internet
- CMount the NAS in Cloud Storage with a FUSE client and let applications read it in place
- DShip the data on a Transfer Appliance and keep the existing link for daily reads only
Show answer and explanationHide answer
Correct answer: AStorage Transfer Service uses the existing 10 Gbps link for a managed, resumable transfer, and Archive storage suits cold data that is rarely read. A Transfer Appliance is for when bandwidth is the constraint, and this link is already available. A laptop copy over the internet is slow and fragile at this volume, and a FUSE mount is not a migration path.
Question 3
A financial services firm needs on-premises workloads to reach Google Cloud privately, with 10 Gbps of consistent bandwidth and no traffic over the public internet. Which connectivity option fits best?
- ADedicated or Partner Interconnect, with private access to Google APIs
- BHA VPN over the public internet, with a single tunnel and static routes
- CCloud NAT gateway that lets on-premises hosts reach Google privately
- DSite-to-site VPN over consumer broadband, with a backup on a second line
Show answer and explanationHide answer
Correct answer: ADedicated or Partner Interconnect provides private, high-bandwidth connections that avoid the public internet, which meets the requirement. HA VPN still crosses the internet, even when encrypted, and does not guarantee consistent bandwidth. Cloud NAT is for outbound access from private instances, and consumer broadband is not an enterprise link.
Question 4
A SaaS company must serve customers in the EU, and EU customer data must remain in the EU. The company wants one application design with regional data stores. Which design best meets the requirement?
- AStore all customer data in one US multi-region, encrypted with keys held by the EU team
- BStore EU data in EU regional resources and route EU users to them
- CKeep all data in one US region and cache EU customer records at the CDN edge
- DCopy each customer's data to every region every night, so the data is always close to the user
Show answer and explanationHide answer
Correct answer: BKeeping EU data in EU regional resources and routing EU users to them satisfies residency and keeps latency low. Encryption with local keys does not change where the data is stored. Copying data nightly to every region spreads residency-protected data everywhere, and a CDN caches content but does not satisfy a rule about where customer records are stored.
Question 5
A company has a legacy monolith that cannot be changed quickly. The business wants to move it to Google Cloud now and modernise it later, with minimal code change. Which migration strategy best fits?
- ARetire the monolith and replace it with a SaaS product chosen for the same business function
- BRewrite the monolith as microservices on GKE before the move, so the migration happens only once
- CRehost on Compute Engine with Migrate to VMs, then refactor later
- DKeep the monolith on-premises indefinitely, and expose it through an API gateway on Google Cloud
Show answer and explanationHide answer
Correct answer: CRehosting with minimal change gets the workload into Google Cloud quickly, and refactoring later reduces risk. A full rewrite before migration delays the benefit and raises risk. Replacing the system with SaaS is a business decision the scenario does not support, and keeping it on-premises does not complete the move.
Manage and provision the cloud solution infrastructure (5 questions)
Question 6
A company uses a Shared VPC across several projects. Each application team must create its own Compute Engine instances, but it must not be able to change the network configuration. Which design is correct?
- AA separate VPC per service project, peered, so each team manages its own network settings
- BHost project owns the network, and service projects get Network User on selected subnets
- CGive each application team the Editor role on the host project, so that they can create networks as needed
- DThe default network in each project, with firewall rules managed by each team in its own project
Show answer and explanationHide answer
Correct answer: BIn Shared VPC the host project owns the network, and service projects receive the Network User role on specific subnets, so teams deploy without changing network configuration. Editor on the host project allows network changes. Peered VPCs duplicate management, and default networks are not governed centrally.
Question 7
A team must provision identical infrastructure in development, test and production from version-controlled definitions, and detect manual changes that drift from the declared state. Which practice best meets this?
- ACreate resources in the console for each environment, and export the configuration once a quarter for records
- BWrite a shell script of gcloud create commands, and run it by hand in each environment
- CTerraform with per-environment state and a plan step before each apply
- DUse a Deployment Manager template once, and copy the deployment into each environment by hand with new names
Show answer and explanationHide answer
Correct answer: CTerraform with per-environment state and a plan step makes changes reviewable and shows drift as a difference between declared and actual state. Console creation and quarterly exports do not detect drift in time. Hand-run scripts are not repeatable, and copying a deployment by hand bypasses the template.
Question 8
A GKE cluster's pods must call an external payment API that accepts traffic only from a fixed set of IP addresses. The nodes must not have public IP addresses. Which design meets this requirement?
- ACloud NAT with reserved static IP addresses, which the payment provider allowlists
- BAssign each node an ephemeral public IP address, and allowlist the nodes' current addresses with the provider
- CExpose the payment API through a public load balancer inside the cluster, so the provider can call the cluster
- DRoute the payment provider over a VPN to the pod network, so that traffic never leaves the cluster
Show answer and explanationHide answer
Correct answer: ACloud NAT with reserved static addresses gives outbound traffic a fixed source IP without giving nodes public addresses. Ephemeral node addresses change, so the allowlist would break. A load balancer handles inbound traffic in the wrong direction, and a VPN to the pod network does not give the provider a stable source address.
Question 9
A company wants VMs without external IP addresses to reach Google APIs such as Cloud Storage over Google's network, with no traffic going to the public internet. Which configuration achieves this?
- AAssign each VM an external IP address and restrict it with firewall rules that allow only Google's ranges
- BCreate a Cloud NAT gateway for the subnet, and send all Google API traffic through the gateway
- CEnable Private Google Access on the subnet and use the restricted.googleapis.com endpoint
- DConfigure a Cloud VPN tunnel back to the data centre, and route Google API traffic through it
Show answer and explanationHide answer
Correct answer: CPrivate Google Access on the subnet, with the restricted API endpoint, lets VMs without external IPs reach Google APIs over Google's network. External IPs contradict the requirement, and Cloud NAT sends traffic out to the internet. A VPN back to the data centre adds a detour that does not reach Google APIs privately.
Question 10
A team needs to run a containerised HTTP service on Google Cloud. It wants no cluster to operate, automatic scaling to zero, and a simple deployment model. Which service fits?
- ACloud Run, which runs containers serverlessly and scales to zero when no requests arrive
- BCompute Engine managed instance groups running the container on a custom image with a startup script
- CGoogle Kubernetes Engine in Standard mode, with node pools sized for the peak load
- DApp Engine flexible environment with a fixed minimum of three instances in every region
Show answer and explanationHide answer
Correct answer: ACloud Run is fully managed, runs containers serverlessly and scales to zero, which matches the requirements. GKE needs cluster operation and does not scale to zero by default. Managed instance groups require VM management, and flexible App Engine keeps a minimum number of instances running.
Analyze and optimize technical and business processes (5 questions)
Question 11
A company runs a steady, predictable batch workload on Compute Engine for three years and wants to cut cost without changing the architecture. Which option gives the largest saving?
- ACommitted use discounts for the compute the workload needs steadily
- BSpot VMs for the database servers, which are the largest part of the monthly bill
- CPreemptible VMs for every instance, since Google can reclaim them at any time
- DA larger machine type, so that the job finishes faster and uses fewer hours overall
Show answer and explanationHide answer
Correct answer: ACommitted use discounts reduce the price of steady usage for a fixed term, which suits a three-year batch workload. Preemptible or Spot VMs can be reclaimed at any time and are unsuitable for databases or steady work. A larger machine type costs more per hour and does not reduce the bill.
Question 12
A company's Cloud Storage costs rose sharply. Most objects are read during their first 30 days and then never read again, but they must be kept for seven years for compliance. Which approach reduces cost while meeting the retention requirement?
- AKeep all objects in Standard storage, and delete the oldest 10 percent each month to save space
- BLifecycle rules to colder classes after 30 days, plus a seven-year retention policy
- CMove every object to Archive storage on upload, and accept high retrieval costs
- DEnable object versioning on the bucket, so older versions are kept without a retention policy
Show answer and explanationHide answer
Correct answer: BLifecycle rules that move objects to colder classes after the active period cut cost, and a retention policy enforces the seven-year requirement. Deleting objects breaks compliance, and Archive from upload makes the active first 30 days expensive to read. Versioning adds cost and does not enforce retention.
Question 13
A company wants to find which projects pay for idle or oversized resources, with recommendations it can act on. Which tool provides this?
- AA Cloud Logging export to BigQuery, which stores every API call so that analysts can search it
- BThe Cloud Billing budget alert, which emails finance when spending crosses a fixed threshold
- CThe Recommender service, which suggests rightsizing, idle removal and committed-use options
- DA Cloud Monitoring uptime check, which tests whether each application responds to outside requests
Show answer and explanationHide answer
Correct answer: CRecommender analyses usage and suggests rightsizing, idle resource removal and committed-use options. A budget alert reports spend rather than recommending changes. Logs and uptime checks describe activity and availability, not optimisation opportunities.
Question 14
A company is moving a 50-node Hadoop cluster to Google Cloud. The nightly jobs must run with minimal change in the first phase, and the cluster should cost nothing while idle. Which service best fits?
- ADataproc, which runs Hadoop and Spark with little change, and can be deleted when idle
- BA permanently running GKE cluster that the team builds with a custom Hadoop image
- CBigQuery, after rewriting every Hadoop job in SQL before any cutover
- DHadoop installed by hand on Compute Engine VMs, with no scaling or deletion automation
Show answer and explanationHide answer
Correct answer: ADataproc runs Hadoop and Spark with little change to the jobs, and ephemeral clusters can be deleted after each nightly run so they cost nothing while idle. A custom GKE image is significant effort, and a full SQL rewrite is not needed for a first phase. Hand-run VMs lose the automation benefit.
Question 15
A company wants to lower its monthly Google Cloud bill without reducing service levels. Which two actions are most likely to help? (Choose two.)
- AMove all workloads to the largest machine types, so that each job completes quickly and total hours fall
- BReview Recommender suggestions for rightsizing and idle resources, and act on the lowest-risk ones first
- CKeep every development environment running around the clock, so that engineers never wait for a resource
- DBuy committed use for the peak load of the year, and run that capacity all year round at full price
- ETurn on autoscaling for stateless tiers, with scale-in policies that remove capacity when demand drops
Show answer and explanationHide answer
Correct answer: B, EActing on Recommender suggestions for idle or oversized resources removes waste directly, and autoscaling with scale-in removes capacity that demand no longer needs. Large machine types cost more per hour, and always-on development environments waste money. Committing to peak capacity for the whole year pays for unused capacity.
Design for security and compliance (5 questions)
Question 16
A healthcare company must prevent its BigQuery data from being copied to projects outside its organisation, even by administrators who hold the owner role in a project. Which control best fits?
- AAn organisation policy that restricts the regions in which BigQuery datasets can be created
- BA custom IAM role that removes the export permission from every user in the organisation
- CA Cloud Audit Logs export to Cloud Storage, so that any copy to an outside project is visible afterwards
- DA VPC Service Controls perimeter around the projects that hold the data
Show answer and explanationHide answer
Correct answer: DA VPC Service Controls perimeter blocks data movement out of the perimeter even when identities have IAM permissions, which addresses the exfiltration risk. Region restrictions do not stop copies, and an owner can reassign a removed permission. Audit logs record copies after the fact but do not prevent them.
Question 17
A company requires control of the encryption keys for data in Cloud Storage and Cloud SQL, and the ability to cut off access to that data by disabling the keys. Which feature meets this requirement?
- AGoogle-managed encryption keys with an annual rotation policy set in the organisation
- BCustomer-managed encryption keys in Cloud KMS, used with each service that supports them
- CClient-side encryption with a password that each engineer types when uploading a file
- DDefault encryption at rest, with IAM conditions that block reads outside business hours
Show answer and explanationHide answer
Correct answer: BCustomer-managed encryption keys in Cloud KMS let the company control rotation and disable keys to cut off access. Google-managed keys are operated by Google, so the company cannot disable them. Per-engineer passwords are hard to govern, and business-hours conditions do not control the key itself.
Question 18
A web application is attacked with a high volume of HTTP requests from many IP addresses. The company wants to block malicious traffic before it reaches the backend, with rules that can be updated quickly. Which service should the architect use?
- ACloud Armor security policies on the external Application Load Balancer backend
- BCloud NAT with a deny list of source IP addresses taken from the attack logs
- CCloud Interconnect with a dedicated link, so that only the company's routers can send traffic
- DCloud Storage bucket policies that block requests from the attacking IP addresses at the object level
Show answer and explanationHide answer
Correct answer: BCloud Armor policies on the external load balancer filter traffic at Google's edge before it reaches the backend, and rules change without redeploying the application. Cloud NAT handles outbound traffic and does not filter inbound requests. Interconnect is a private link, and bucket policies do not protect an application backend.
Question 19
A regulated company must restrict how its Cloud Storage data is accessed by its own staff and by Google Cloud services. Which two controls help most? (Choose two.)
- AGrant the Storage Admin role to every developer, so that they can manage access requests without a ticket
- BUse uniform bucket-level access and public access prevention, so that IAM is the only way to grant access
- CMake the buckets public for read access, and rely on obscure object names to protect the content
- DEnable Access Transparency logs and review them regularly, to see when Google staff access the company's data
- EStore the data in a bucket in a region chosen only for its low price, and ignore the region's compliance profile
Show answer and explanationHide answer
Correct answer: B, DUniform bucket-level access with public access prevention keeps access under IAM and blocks public exposure. Access Transparency logs show when Google personnel access customer data, which regulated reviews require. Broad admin roles, public buckets and ignoring compliance profiles all weaken the controls.
Question 20
A service account key was found in a public code repository. Which combination of actions limits the damage most effectively?
- ARotate the key once a year, and add an IP restriction to the key file so that only office addresses can use it
- BDelete the repository's commit history only, since the key will expire automatically after a few weeks
- CDisable and delete the key, restrict key creation, and use attached identities
- DEnable Cloud Audit Logs for the project and review them weekly to see if the key was used for anything unusual
Show answer and explanationHide answer
Correct answer: CDisabling and deleting the exposed key stops its use at once, restricting key creation prevents repeats, and attached identities remove long-lived keys from workloads. Annual rotation and IP restrictions do not stop an attacker who holds the key, and audit logs only show what happened. Commit history is copied and cached elsewhere, and keys do not expire on their own.
Ensure solution and operations excellence (5 questions)
Question 21
A company wants an alert when its checkout service is on track to breach a 99.9 percent availability target over 30 days, with an early warning when the error budget is burning quickly. Which Cloud Monitoring capability fits?
- AA CPU utilisation alert that fires when any VM exceeds 80 percent for five minutes
- BAn uptime check every minute from one region, paging the on-call phone
- CA log-based metric that counts every log line containing the word error, emailed daily
- DService-level objectives with error budget burn-rate alerting policies
Show answer and explanationHide answer
Correct answer: DSLOs in Cloud Monitoring measure availability against a target over a window, and burn-rate alerts warn before the budget is exhausted. CPU alerts do not measure user-facing availability, and daily log counts are too slow. A single-region uptime check sees reachability from one vantage point only.
Question 22
A company's applications produce logs in many projects. Security needs all audit and application logs kept for seven years in a location protected from tampering, and operations needs the last 30 days searchable in Cloud Logging. Which design meets both needs?
- AKeep every log in Cloud Logging with a seven-year retention setting for querying
- BExport logs to a shared spreadsheet each week, stored in a folder that engineers can edit
- CDelete logs after 30 days, and use Cloud Monitoring metrics as the long-term record of events
- DA 30-day Logging bucket, plus a sink to a locked seven-year Cloud Storage bucket
Show answer and explanationHide answer
Correct answer: DA 30-day Logging bucket serves day-to-day queries, and a sink to a locked Cloud Storage bucket with retention meets the long-term requirement and resists tampering. Keeping everything in Logging for seven years costs far more than needed. Spreadsheets are editable and not a tamper-resistant record, and metrics do not replace event logs.
Question 23
A company's on-call team is overloaded with alerts, many of which need no action. Which two changes most improve the alerting design? (Choose two.)
- APage the on-call engineer for every warning-level log line, so that nothing is ever missed by the team
- BSend every alert to every engineer in the company, so that the right person sees it no matter the service
- CAlert on SLO burn rate for user-facing symptoms, rather than on individual low-level resource metrics
- DSet static thresholds on CPU only, because CPU is the single most reliable signal of a healthy service
- EAdd a runbook link to each alert, and remove alerts that nobody has acted on in the past quarter
Show answer and explanationHide answer
Correct answer: C, EAlerting on SLO burn rate focuses pages on user impact, and runbook links with removal of unused alerts reduce noise and speed response. Paging for every warning and sending everything to everyone increase fatigue. CPU alone is not a reliable signal of user-facing health.
Question 24
The operations team wants alert notifications to trigger an automated response system outside the Cloud Monitoring console. Which notification channel type fits?
- AA log sink to Cloud Storage, which stores each alert as a file for the automation to read later
- BAn uptime check configured to send an email to a shared inbox that engineers read each morning
- CA Pub/Sub notification channel that feeds an automation topic
- DA dashboard widget that displays the alert status, which automation polls every fifteen minutes
Show answer and explanationHide answer
Correct answer: CA Pub/Sub notification channel delivers alert events to a topic that automation can subscribe to, which allows an immediate automated response. Email to a shared inbox depends on human reading. A log sink and dashboard polling both add delay and do not deliver the alert as an event.
Question 25
The company wants releases to be safer, with automatic rollback when the error rate rises after a deployment. Which practice fits best?
- ARoll back manually after support receives complaints from customers about errors
- BCanary deployment with automated SLO analysis and rollback
- CDeploy the whole fleet in one step at night, so that fewer users see any problem
- DFreeze all deployments on Fridays, so that any errors appear during the working week
Show answer and explanationHide answer
Correct answer: BA canary with automated analysis against an SLO catches regressions on a small share of traffic and rolls back without waiting for complaints. Manual rollback reacts late, and Friday freezes do not detect problems. A one-step night deployment exposes the whole fleet at once.
Manage implementations of cloud architecture (5 questions)
Question 26
A company is migrating a 4 TB MySQL database. It needs continuous replication during the migration and a cutover with minimal downtime. Which service should the architect use?
- AA nightly mysqldump to Cloud Storage, followed by a manual import during a weekend outage
- BStorage Transfer Service, which copies MySQL data files and restores them on a new server
- CA VM with MySQL installed by hand, with the data copied across by a daily script
- DDatabase Migration Service with continuous replication and a planned cutover
Show answer and explanationHide answer
Correct answer: DDatabase Migration Service supports continuous replication from MySQL into Cloud SQL, which allows a short, planned cutover. Nightly dumps and manual imports produce long downtime. Storage Transfer Service copies files rather than a consistent live database, and a daily script on a hand-built VM gives poor consistency.
Question 27
A multi-tier application has a web tier, an application tier and a database tier. The web tier must accept public HTTPS traffic, and the database must accept traffic only from the application tier. Which firewall design meets this?
- AAllow all ingress to the web and database tiers from the internet, and rely on the database password
- BAllow 3306 from anywhere to the database, and allow 443 only from the office range
- CAllow 443 to the web tier, and 3306 to the database from the application tier's service account
- DPut all tiers in one network tag, and allow all traffic between tags on every port
Show answer and explanationHide answer
Correct answer: CAllowing 443 publicly to the web tier and limiting database access to the application tier's service account gives least exposure and uses identity rather than IP ranges. Relying on a password while exposing the database is unsafe. Tag-wide rules permit every port between tiers.
Question 28
A team is building a CI/CD pipeline for a microservice. Production releases need approval after staging, and the production artifact must be the same one that was tested. Which design meets this requirement?
- ARebuild the image in the production stage from the latest source, so production gets the newest dependencies
- BBuild separate images for staging and production from the same branch on each deployment run
- CBuild once, store the image by digest in Artifact Registry, and promote the same digest after approval
- DDeploy to production from a developer's workstation once a staging pass is posted in a chat thread
Show answer and explanationHide answer
Correct answer: CBuilding once and promoting the same digest after approval keeps the production artifact identical to the tested one. Rebuilding in production means the tested artifact is not the one deployed. Separate builds from the same branch can differ, and a workstation deploy bypasses the approval gate.
Question 29
An 80 TB file archive must move to Cloud Storage. The current link is 200 Mbps and cannot be upgraded before the migration deadline. Which option best meets the deadline?
- ATransfer Appliance, with the data shipped on physical devices to Google
- BStorage Transfer Service over the existing 200 Mbps link, running continuously
- CA single gsutil stream from a laptop that runs overnight for the full project
- DA daily rsync over SSH from the file server to a Compute Engine VM with a local disk
Show answer and explanationHide answer
Correct answer: AAt 200 Mbps, 80 TB would take far longer than a typical migration window even at full utilisation, so shipping the data on a Transfer Appliance is the faster route. Continuous transfer over the same link, a laptop stream and daily rsync are all bounded by the same bandwidth.
Question 30
A team has a cutover plan for a database migration and wants confidence that it will work on the production date. Which practice gives the most reliable evidence?
- AAsk the database owner to read the plan and confirm that each step looks reasonable
- BSkip the rollback steps, because a successful migration rarely needs to be reversed in practice
- CA full rehearsal of the cutover in a staging copy, with timed steps
- DSchedule the cutover at night without tests, since the team has done migrations before
Show answer and explanationHide answer
Correct answer: CA full rehearsal in a staging copy measures real timings and proves that rollback works before production. Reading the plan only checks the wording, and a night cutover without tests adds risk. Skipping rollback removes the safety net exactly when it is needed.