OpenExamsFREE PRACTICE — ANY EXAM

Free Professional Cloud Developer Practice Questions

200 free questions · Answer explanations · No signup required

View examination details, outline and sources

Loading selected examination banks…

Sample Practice Questions

Try these 10 sample questions from the Professional Cloud Developer practice bank. Each includes the answer and explanation. Continue with the interactive practice above to review the full question set.

  1. 1A Cloud Run API has sporadic traffic. Its design requires one idle instance to remain available between requests. Which setting directly meets that requirement?

    1. A. Set maximum instances to one.
    2. B. Set minimum instances to one.
    3. C. Set maximum concurrency to one.
    4. D. Set the request timeout to one minute.

    Answer: B

    Explanation: "To keep idle instances permanently available, use the min-instance setting." A minimum of one keeps one idle instance available. Maximum instances, concurrency, and timeout settings do not establish this floor.

    Reference: About instance autoscaling in Cloud Run services — Idle instances and minimizing cold starts

  2. 2Which statement correctly describes the Cloud Shell development environment?

    1. A. It requires a local Docker installation before running any CLI command.
    2. B. It supplies a browser terminal with the gcloud CLI pre-installed and authenticated.
    3. C. It requires a user-managed Kubernetes cluster for every terminal session.
    4. D. It supplies only an editor and requires a separate local CLI installation.

    Answer: B

    Explanation: "the Google Cloud CLI and other utilities you need are pre-installed, fully authenticated" Cloud Shell supplies the browser-based development environment without a fresh local or VM setup.

    Reference: Cloud Shell overview — Cloud Shell documentation overview

  3. 3A developer is in a service's source directory and wants Cloud Run to build and deploy it using the standard source deployment flow. Which command fits?

    1. A. gcloud run deploy SERVICE --image .
    2. B. gcloud builds submit --no-source
    3. C. gcloud run deploy SERVICE --source .
    4. D. gcloud run services describe SERVICE

    Answer: C

    Explanation: "gcloud run deploy SERVICE --source ." The source flag supplies the current directory; an image flag expects an image reference, and describe does not deploy.

    Reference: Deploy services from source code — Deploy from source with build — gcloud

  4. 4An application opens a new Cloud SQL connection for every short request. It should reuse established connections across requests to reduce overhead. Which connection-management design provides that reuse?

    1. A. Create a fresh connection for every statement.
    2. B. Keep every request's connection permanently reserved.
    3. C. Use a connection pool and return borrowed connections after use.
    4. D. Create a new connection pool for each request and discard it afterward.

    Answer: C

    Explanation: "A connection pool is a cache of database connections that are shared and reused" Reusing pooled connections avoids repeatedly establishing connections; permanently reserving each request's connection exhausts resources.

    Reference: Manage database connections — Connection pools

  5. 5A Cloud Run design proposes scaling out whenever memory utilization reaches a target. How should the developer assess this proposal?

    1. A. It works when memory utilization exceeds the CPU target.
    2. B. It works only when the maximum instance count is unlimited.
    3. C. It is unsupported by Cloud Run's built-in autoscaler.
    4. D. It becomes the default when request concurrency is one.

    Answer: C

    Explanation: "Cloud Run doesn't support scaling based on memory utilization." CPU and request concurrency drive the built-in autoscaler; the other settings do not add memory-based scaling.

    Reference: About instance autoscaling in Cloud Run services — Metrics-based scaling

  6. 6A platform team wants reproducible Cloud Workstations environments defining VM type, container image, and persistent storage. Which resource acts as the template?

    1. A. A workstation cluster
    2. B. A workstation session
    3. C. A workstation configuration
    4. D. A Kubernetes Deployment

    Answer: C

    Explanation: "Workstation configurations act as templates for workstations." Clusters define region and networking; configurations define the environment from which individual workstations are created.

    Reference: Cloud Workstations overview — Cloud Workstations concepts

  7. 7A source directory contains a Dockerfile. When deploying it to Cloud Run with the source-with-build flow, how is the container built?

    1. A. The Dockerfile is ignored and buildpacks are always used.
    2. B. The deployment is rejected because source deployments forbid Dockerfiles.
    3. C. The Dockerfile and buildpacks run sequentially to create two separate images.
    4. D. The uploaded source is built using that Dockerfile.

    Answer: D

    Explanation: "If a Dockerfile is present in the source code directory, the uploaded source code is built using that Dockerfile." Buildpacks detect the language when no Dockerfile is present; they do not override a provided Dockerfile.

    Reference: Deploy services from source code — Deploy services from source code

  8. 8Forty application instances may each open an equal-sized Cloud SQL pool. The application's total connection budget is 200, with no other connections using that budget. What is the highest per-instance pool limit that stays within it?

    1. A. 2 connections
    2. B. 4 connections
    3. C. 10 connections
    4. D. 5 connections

    Answer: D

    Explanation: "Cloud SQL imposes overall connection limits that cannot be exceeded." Forty times five equals 200; ten exceeds the budget, while two and four are not the highest permissible value.

    Reference: Manage database connections — Connection count

  9. 9A single-threaded CPU-bound Cloud Run application uses a multi-CPU instance. One CPU is busy, but the average CPU scaling signal is low. What explains this behavior?

    1. A. CPU utilization is averaged across the allocated CPUs.
    2. B. CPU utilization is measured only while instances are idle.
    3. C. CPU utilization is inferred from the configured memory limit.
    4. D. CPU utilization excludes threads that process HTTP requests.

    Answer: A

    Explanation: "When Cloud Run scales based on CPU utilization, it considers the average CPU utilization across all CPUs allocated to an instance." A single busy thread can be diluted by idle allocated CPUs, lowering the average scaling signal.

    Reference: About instance autoscaling in Cloud Run services — Metrics-based scaling

  10. 10A Cloud Workstations administrator changes a configuration's machine type. When do associated workstations use the updated configuration?

    1. A. Only after each workstation is permanently deleted
    2. B. Immediately inside every running workstation process
    3. C. Only after its persistent home directory is erased
    4. D. When each workstation next restarts

    Answer: D

    Explanation: "Updates to a workstation configuration automatically apply to workstations when each workstation restarts" Configuration changes are applied at restart, without requiring workstation or persistent-data deletion.

    Reference: Cloud Workstations overview — Configuration updates

Topics in this practice bank

These topics describe the available practice for Professional Cloud Developer. Review the examination outline and its sources for scope and allocation details.

  • Designing highly scalable, secure, and reliable cloud-native applications
    • Designing high-performing applications and APIs
    • Designing secure applications
    • Storing and accessing data
  • Building and testing applications
    • Setting up your development environment
    • Building
    • Testing
  • Configuring cloud-native applications for deployment
    • Deploying applications to Cloud Run
    • Deploying containers to GKE
  • Integrating applications with Google Cloud services
    • Integrating applications with data and storage services
    • Consuming Google Cloud APIs
    • Troubleshooting and observability

How to use these free practice questions

Choose an answer, check the explanation, and review your progress by chapter. Practice questions and explanations are free to access without signing up.

These are independent study questions, not actual examination items. For examination requirements and official information, view Professional Cloud Developer details.