Limited-Time Offer: Enjoy 50% Savings! - Ends In 0d 00h 00m 00s Coupon code: 50OFF
Welcome to QA4Exam

Free practice questions with explanations

Google Professional-Cloud-Developer Dumps 2026 with Free Practice Questions and Answers

12 original Professional Cloud Developer exam practice questions with answers and explanations.

Covers Building And Testing Applications, Configuring Cloud-Native Applications For Deployment, Designing Highly Scalable, Secure, And Reliable Cloud-Native Applications and Integrating Applications With Google Cloud Services.

Question types: single answer, multiple answers, drag and drop, dropdown and order list. A new question is added every 15 days.

Professional-Cloud-Developer Practice Set Details

Vendor
Google
Exam Code
Professional-Cloud-Developer
Questions On This Page
12
Exam Topics Covered
4 of 4
Question Types
5
Newest Question
New Question
Every 15 days
Full Question Set
265
Certification
Google Cloud Certified
12 questions

Google Professional-Cloud-Developer Exam Questions and Answers by Topic

Designing Highly Scalable, Secure, and Reliable Cloud-Native Applications

32% of the exam

3 practice questions on this topicWhat this topic covers

Question 1

Added

Drag And Drop

A platform team is selecting hosting options for three services. One service is a stateless HTTP API with variable traffic and no need to manage Kubernetes. A second requires Kubernetes APIs and custom cluster-level networking. A third is a legacy application that must run on a custom operating system image and needs direct control of its virtual machine. Match each requirement to the most appropriate Google Cloud platform.

Drag each item onto its matching target. On a phone: tap an item, then tap a target.

Application requiring Kubernetes APIs and cluster-level networking
Variable-traffic stateless HTTP API without cluster management
Legacy service requiring a custom OS image and VM control
Cloud Run
Google Kubernetes Engine
Compute Engine
Correct answer:
  • Variable-traffic stateless HTTP API without cluster management → Cloud Run
  • Application requiring Kubernetes APIs and cluster-level networking → Google Kubernetes Engine
  • Legacy service requiring a custom OS image and VM control → Compute Engine

Cloud Run is the managed choice for stateless HTTP containers with variable demand when the team does not need Kubernetes control. GKE provides Kubernetes APIs and cluster-level capabilities required by the second service. Compute Engine is appropriate when a workload needs VM-level control, including a custom operating system image. Choosing GKE for the first service adds cluster operations without meeting an additional requirement, while Cloud Run cannot provide the requested cluster-level networking or custom VM image.

Question 2

Added

Single Answer

A customer-facing API is deployed in two regions behind a global external Application Load Balancer. The service is stateless, but clients repeatedly request the same frequently updated product metadata, and database reads are the main source of latency and cost. The team needs a low-latency shared cache accessible by application instances in both regions and is willing to tolerate brief staleness. Which design is the best fit?

Correct answer: D

Memorystore for Redis provides a managed in-memory cache that application instances can share, reducing repeated database reads and latency. An expiration or invalidation policy addresses the accepted brief staleness. Session affinity may keep a client on one backend, but it neither caches metadata nor shares cached values across instances. Container-local files are not synchronized by a load balancer and can become inconsistent. Larger connection pools increase database concurrency rather than reducing redundant reads.

Question 3

Added

Dropdown

A team is preparing a container image for deployment to Cloud Run. The image has already been pushed to Artifact Registry, and the team wants a new revision built from the repository source without maintaining a Dockerfile. Complete the deployment command with the appropriate source and region values.

Choose the correct value for each blank.

gcloud run deploy catalog-api --source --region
Correct answer:

gcloud run deploy catalog-api --source . --region us-central1

For a deployment from the current source directory, --source . directs the Cloud Run deployment workflow to build from that directory. Cloud Run services are deployed to a region, so us-central1 is a valid regional location. A Dockerfile path is not the source-directory value requested here, and an Artifact Registry API URL is not a source argument. A zone or generic multi-region label is not the correct Cloud Run deployment region value.

Building and Testing Applications

23% of the exam

3 practice questions on this topicWhat this topic covers

Question 4

Added

Single Answer

A team is developing a service that reads and writes Firestore data. Developers need fast local unit tests that exercise Firestore request handling without connecting to a shared cloud project or risking changes to real data. The application uses the Firestore client library, and the team wants to keep the production data-access code unchanged. Which approach best meets these requirements?

Correct answer: C

The Firestore emulator provides a local datastore endpoint that supported Firestore client libraries can use, allowing tests to exercise real request and data behavior without touching cloud data. A separate production database still uses a cloud project and risks accidental production coupling. Mocking every client call cannot validate the integration behavior the team wants to test. Cloud Build tests against a shared project add infrastructure and still do not provide the requested local isolation.

Question 5

Added

Multiple Answers

A company builds a container from source in Cloud Build and deploys it to a production GKE cluster that enforces Binary Authorization. The security team requires deployable images to be stored in Artifact Registry, and production must accept only images whose build provenance has been verified by an authorized attestor. The team wants the build pipeline to produce the evidence needed for policy enforcement rather than manually attest each image. Which two actions should the team take? (Choose two.)

Correct answer: A, C

Cloud Build can produce build provenance for an image, while Artifact Registry stores the image and associated build artifacts. Binary Authorization must then enforce the policy requiring a trusted attestation before deployment. Giving cluster nodes build permissions reverses the trust boundary and does not establish build provenance. A log entry or release-style tag is not an attestation that Binary Authorization can use to verify authorization. Vulnerability scanning assesses image vulnerabilities; it does not substitute for the required provenance attestation.

Question 6

Added

Single Answer

A development team uses Cloud Workstations with a managed IDE to work on a Cloud Run service. Developers need to inspect deployed resources and application logs from the IDE, while the organization prohibits storing long-lived service account keys in workstation images or source repositories. Each developer already authenticates to Google Cloud through the workstation environment. What is the best way to configure the IDE's Google Cloud integration?

Correct answer: A

Using the developer's authenticated credentials lets IDE integrations call Google Cloud APIs without distributing long-lived service account keys. A per-developer key still violates the stated key prohibition. A shared key embedded in an image creates broad, hard-to-rotate credentials. The Cloud Run runtime identity is intended for the deployed service and does not provide the appropriate developer identity or workstation authorization.

Integrating Applications with Google Cloud Services

21% of the exam

3 practice questions on this topicWhat this topic covers

Question 7

Added

Single Answer

A service reads many objects from a Google Cloud API using a client library. The API returns paginated results, but the application currently requests every available field and retries failures immediately, causing excess bandwidth and repeated throttling. The application only needs each object's name and state. Which change best reduces response volume and makes transient failures safer to handle?

Correct answer: D

Field selection limits returned data to the name and state the application uses, while following page tokens ensures the full result set is read. Exponential backoff spaces retries for transient, retryable failures and helps avoid amplifying throttling. Requesting all fields wastes bandwidth even if they are discarded locally, and fixed-delay retries can synchronize repeated load. Disabling pagination can omit results, and a longer timeout does not correct request volume or retry behavior. A service account key is unnecessary and indefinite caching risks stale or incomplete data.

Question 8

Added

Single Answer

An application running on Cloud Run writes records to Cloud SQL for PostgreSQL. After a traffic increase, the database reports connection exhaustion even though each request closes its connection when finished. The service can scale to many instances, and the team must preserve its current database schema and avoid increasing the database connection limit. What is the best next change?

Correct answer: B

Cloud Run can scale out quickly, so even short-lived per-request connections can exceed a database's connection capacity. Reusing pooled connections and bounding the pool per instance limits aggregate database connections without changing the schema or database limit. Increasing maximum instances can worsen connection pressure. Creating a connection per query increases connection churn and does not provide pooling. A longer request timeout can prolong connection use rather than resolving exhaustion.

Question 9

Added

Single Answer

A Cloud Run service intermittently returns HTTP 503 responses. Cloud Logging shows the failures occur when downstream calls slow down, but the team cannot determine which dependency consumes the request latency or whether retries amplify the incident. The service already emits structured logs, and the team wants to diagnose production behavior with minimal changes to its deployment architecture. What should the team do next?

Correct answer: B

Distributed traces can show the timing and relationship of a request and its downstream calls, making it possible to identify the dependency responsible for latency and observe retry behavior. This adds observability without changing the service architecture. More instances may change capacity but do not reveal where time is spent. Session affinity is unrelated to dependency timing. Log arrival timestamps are not a reliable substitute for spans that measure request and dependency durations.

Configuring Cloud-Native Applications for Deployment

24% of the exam

3 practice questions on this topicWhat this topic covers

Question 10

Added

Single Answer

A company packages a stateless HTTP service as a container and wants to deploy it to Cloud Run. The source repository is ready, but the team has no Dockerfile and wants Google Cloud to build the container from the source code. The service must be private by default, with access granted to a specific calling service account after deployment. Which approach best meets these requirements?

Correct answer: A

Cloud Run supports deployment from source, using Google Cloud buildpacks and a build service to produce the container. Keeping unauthenticated invocation disabled makes the service private, and granting the calling identity the Cloud Run Invoker role enables authenticated requests. Public access plus a shared secret does not meet the private-by-default requirement. App Engine is a different deployment target, and Cloud Run Invoker permissions do not control an App Engine service. Eventarc is not a mechanism for building and deploying repository source.

Question 11

Added

Order List

A team must deploy a containerized web application to GKE and make it available only after its pods are ready to serve traffic. The container exposes an HTTP readiness endpoint, and the cluster already has a Deployment and Service manifest. Arrange the steps in the order they must be performed to apply the readiness behavior and verify rollout.

Drag the steps into the correct order, or use the arrows.

  1. Apply the updated Deployment manifest to the cluster.
  2. Wait for the Deployment rollout to complete.
  3. Verify the Service endpoints include ready pods.
  4. Add an HTTP readiness probe to the container specification.
Correct answer:
  1. Add an HTTP readiness probe to the container specification.
  2. Apply the updated Deployment manifest to the cluster.
  3. Wait for the Deployment rollout to complete.
  4. Verify the Service endpoints include ready pods.

A readiness probe must be declared in the pod specification before the Deployment is updated. Applying the manifest causes GKE to create pods with that probe, and waiting for rollout completion confirms the desired replicas become available. The Service routes traffic only to ready endpoints, so checking its endpoints after rollout verifies that serving pods are eligible. Verifying endpoints before applying the change would inspect the old deployment state.

Question 12

Added

Multiple Answers

A GKE workload experiences sustained increases in request load, and the application is stateless so additional replicas can serve traffic independently. The team wants Kubernetes to scale pod count automatically based on CPU utilization, while retaining a minimum number of replicas for baseline availability. The cluster has metrics available to the Horizontal Pod Autoscaler, and node capacity is sufficient for expected peak load. Which two configuration choices meet the requirements? (Choose two.)

Correct answer: C, D

A HorizontalPodAutoscaler can scale a Deployment based on observed CPU utilization, and its minimum and maximum replica settings bound the automated replica count while preserving the baseline. A fixed peak replica count does not provide demand-based scaling. A readiness probe controls whether a pod receives traffic, not replica count. A PodDisruptionBudget constrains voluntary disruptions and does not scale a workload in response to load.

More Google Practice Questions

Get the Full Google Professional-Cloud-Developer Dumps as PDF and Practice Test

12 questions are free on this page and the full set has 265. It comes as a PDF and an online practice test, with 90 days of free updates.