Free practice · No sign-up required

Professional Cloud Developer free practice test

15 questions with answer explanations. Choose an answer below to begin.

Question 1 of 15

Which service is best suited for running containerized applications with minimal infrastructure management?

Show hint

Compare and contrast core infrastructure and application services

0/15 answered · Bookmark questions to review later. Focus the practice area to use keys 1–9 and Enter.

Learn by doing

Put your answers into practice

Use official documentation and hands-on labs to work through topics you missed.

Explore all study resources →
Google Cloud Foundation Fabric

Terraform modules and infrastructure blueprints for advanced exploration of Google Cloud design. This is supporting engineering material, not an exam course.

Try it: Read one small VPC or service-account module. Draw the resources and permission boundaries it creates, and explain a least-privilege change without deploying an entire landing zone.

Reading the code is free. Deployment requires suitable permissions and can create billable infrastructure.

Google Cloud certification guides

Official certification paths with exam-specific guides and preparation links for cloud roles.

Try it: Open the guide for your chosen role. For each weak domain, write one service-selection decision you cannot yet explain and find its product documentation.

Public certification information is free; training, labs, and exam registration may be paid.

All questions and explanations

Prefer to read at your own pace? Work through each question below, then open its answer to check your reasoning. You can link directly to a question or print this reference.

  1. Which service is best suited for running containerized applications with minimal infrastructure management?

    1. Cloud Run

    2. Compute Engine

    3. App Engine

    4. Kubernetes Engine

    Show answer and explanation

    Correct answer

    • Cloud Run

    Cloud Run is a fully managed service that automatically scales containerized applications based on request volume. It removes the need to manage servers or clusters, making it ideal for event-driven workloads.

  2. What is the primary purpose of a service account in Google Cloud?

    1. To authenticate automated processes and applications

    2. To provide temporary user login credentials

    3. To manage billing for a project

    4. To define network firewall rules

    Show answer and explanation

    Correct answer

    • To authenticate automated processes and applications

    Service accounts are used by applications and virtual machines to interact with Google Cloud APIs securely. They use keys or short-lived tokens for authentication instead of user credentials.

  3. Which storage class is optimized for data that is accessed less frequently but requires rapid access when needed?

    1. Archive Storage

    2. Standard Storage

    3. Coldline Storage

    4. Regional Storage

    Show answer and explanation

    Correct answer

    • Coldline Storage

    Coldline Storage is designed for data with low access frequency but needing quick retrieval within minutes. It is more cost-effective than Archive Storage for such access patterns.

  4. What does Infrastructure as Code (IaC) enable teams to do?

    1. Automate the provisioning and management of resources

    2. Monitor application performance in real time

    3. Secure network perimeters using firewalls

    4. Optimize database query performance

    Show answer and explanation

    Correct answer

    • Automate the provisioning and management of resources

    IaC allows teams to define infrastructure using configuration files, enabling consistent deployments and version control. Tools like Deployment Manager support this approach on Google Cloud.

  5. Which feature ensures high availability for applications across multiple zones?

    1. Zonal persistent disks

    2. Regional managed instance groups

    3. Single-zone Compute Engine instances

    4. Static external IP addresses

    Show answer and explanation

    Correct answer

    • Regional managed instance groups

    Regional managed instance groups distribute instances across multiple zones within a region. This protects applications from zone-level failures and supports autoscaling.

  6. What is the main benefit of using Cloud Build over local CI/CD tools?

    1. It provides integrated artifact storage and scalable build workers

    2. It eliminates the need for source code repositories

    3. It automatically fixes code quality issues

    4. It reduces the need for container images

    Show answer and explanation

    Correct answer

    • It provides integrated artifact storage and scalable build workers

    Cloud Build runs builds in the cloud with managed resources, reducing local infrastructure needs. It integrates with source repositories and can produce container images for deployment.

  7. Which networking component allows internal resources to communicate with external endpoints without a public IP address?

    1. External HTTP(S) Load Balancer

    2. Cloud NAT

    3. VPC Peering

    4. Firewall Rules

    Show answer and explanation

    Correct answer

    • Cloud NAT

    Cloud NAT enables outbound internet access for instances without public IPs by performing network address translation. It is commonly used in private subnet designs.

  8. When should you use a preemptible VM instead of a regular Compute Engine instance?

    1. For production databases requiring high reliability

    2. For fault-tolerant, batch-oriented workloads

    3. For applications needing consistent low latency

    4. For services requiring static external IPs

    Show answer and explanation

    Correct answer

    • For fault-tolerant, batch-oriented workloads

    Preemptible VMs are short-lived and significantly cheaper, making them suitable for interruptible tasks like batch processing or testing. They are not appropriate for critical stateful services.

  9. What is the primary use case for Cloud Pub/Sub in application architecture?

    1. To store structured data for analytics

    2. To enable asynchronous messaging between services

    3. To manage user authentication flows

    4. To host static website content

    Show answer and explanation

    Correct answer

    • To enable asynchronous messaging between services

    Pub/Sub is a messaging service that decouples services by allowing them to publish and subscribe to events. It supports reliable delivery and real-time data streaming use cases.

  10. Question 10

    Link to question

    Which practice helps reduce the risk of misconfigured resources in Google Cloud?

    1. Using default service account permissions

    2. Applying organization policies and constraints

    3. Disabling audit logging

    4. Allowing unrestricted ingress access

    Show answer and explanation

    Correct answer

    • Applying organization policies and constraints

    Organization policies enforce governance rules across projects, such as restricting resource locations or required tags. This prevents unintended configurations and improves security posture.

  11. Question 11

    Link to question

    What is a key advantage of using Cloud Functions over traditional virtual machines?

    1. You must manage operating system patches

    2. You pay only for execution time and resources used

    3. You need to configure load balancing manually

    4. You have to provision long-running instances

    Show answer and explanation

    Correct answer

    • You pay only for execution time and resources used

    Cloud Functions is a serverless execution environment that runs code in response to events. You are charged per invocation and do not manage infrastructure, which reduces operational overhead.

  12. Question 12

    Link to question

    Which tool is commonly used to manage container images and automate deployments on Google Cloud?

    1. Cloud Scheduler

    2. Artifact Registry

    3. Cloud Monitoring

    4. Cloud DNS

    Show answer and explanation

    Correct answer

    • Artifact Registry

    Artifact Registry securely stores container images and packages, and integrates with deployment pipelines. It provides fine-grained access control and vulnerability scanning.

  13. Question 13

    Link to question

    What does autoscaling help maintain in a cloud application?

    1. Fixed monthly costs

    2. Consistent performance under variable load

    3. Static IP address assignment

    4. Manual instance configuration

    Show answer and explanation

    Correct answer

    • Consistent performance under variable load

    Autoscaling adjusts the number of running instances based on metrics like CPU utilization or request rate. This helps maintain performance and availability while optimizing costs.

  14. Question 14

    Link to question

    Which logging practice supports security investigation and compliance requirements?

    1. Disabling log exports to BigQuery

    2. Retaining logs for a defined period

    3. Storing logs only in local disk

    4. Ignoring admin activity logs

    Show answer and explanation

    Correct answer

    • Retaining logs for a defined period

    Centralized log retention enables analysis of security events and meets regulatory requirements. Google Cloud Logging allows exporting logs to storage and analytics platforms for long-term use.

  15. Question 15

    Link to question

    Which mechanism ensures that only authorized services can access specific resources in a zero-trust security model?

    1. Identity and Access Management (IAM) policies

    2. Static IP whitelisting

    3. VPC firewall rules

    4. Cloud Armor preconfigured rules

    Show answer and explanation

    Correct answer

    • Identity and Access Management (IAM) policies

    Identity and Access Management (IAM) policies enforce the principle of least privilege by granting granular access to resources based on authenticated identity, aligning with zero-trust principles.

Read all flashcards

Recall the answer before opening each card.

What Google Cloud service runs containerized apps with minimal management?

Cloud Run. It fully manages scaling, networking, and infrastructure, so you only provide the container image and request configuration.

What is the primary use of a service account?

To authenticate automated processes and applications. Service accounts enable secure, programmatic access to Google Cloud APIs without human credentials.

Which storage class is for data accessed infrequently but needs quick retrieval?

Coldline Storage. It balances lower cost with retrieval times in minutes, suitable for quarterly backups or archival with occasional access.

What does Infrastructure as Code (IaC) enable?

Automating provisioning and management of resources using configuration files. This ensures consistency, version control, and repeatable deployments.

Which feature provides high availability across zones?

Regional managed instance groups. They distribute VM instances across multiple zones within a region, protecting against zone failures.

What is the main benefit of Cloud Build over local CI/CD tools?

Integrated artifact storage and scalable build workers. Cloud Build runs builds in the cloud without managing infrastructure and stores outputs in Container Registry/Artifact Registry.

Which component allows private instances outbound internet without a public IP?

Cloud NAT. It performs network address translation so instances in private subnets can reach external services while remaining unreachable from the internet.

When should you use a preemptible VM?

For fault-tolerant, batch-oriented workloads. Preemptible VMs are cheaper but can be terminated at any time, so they are ideal for jobs that can be interrupted and restarted.

What is the primary use case for Cloud Pub/Sub?

To enable asynchronous messaging between services. It decouples publishers and subscribers, providing reliable event delivery for real-time data streaming.

Which practice reduces risk of misconfigured resources?

Applying organization policies and constraints. These policies enforce rules like allowed locations or required tags across all projects, preventing non-compliant configurations.

What is a key advantage of Cloud Functions over VMs?

You pay only for execution time and resources used. Cloud Functions is serverless – no infrastructure management, scaling automatically per event.

Which tool manages container images and automates deployments?

Artifact Registry. It securely stores container images and packages, integrates with CI/CD, and provides vulnerability scanning and fine-grained access control.

What does autoscaling maintain in a cloud application?

Consistent performance under variable load. Autoscaling adjusts the number of instances based on metrics like CPU or request rate to meet demand while optimizing costs.

Which logging practice supports security investigation and compliance?

Retaining logs for a defined period. Log retention enables analysis of past events, forensics, and meeting regulatory requirements. Google Cloud Logging allows custom retention and export.

What mechanism ensures only authorized services access resources in zero-trust?

Identity and Access Management (IAM) policies. IAM grants granular permissions based on authenticated identity, enforcing the principle of least privilege.

How does Cloud Run differ from Cloud Functions in execution model?

Cloud Run runs containers with gRPC/HTTP request handling, while Cloud Functions runs single-purpose functions triggered by events. Cloud Run supports more complex runtimes and continuous requests.

What is a service account key used for?

To authenticate as a service account. Keys are JSON files or short-lived tokens that allow external applications or VMs to access Google Cloud APIs securely.

What is the difference between Coldline and Archive Storage retrieval?

Coldline retrieves data in minutes; Archive takes hours to days. Coldline is for data needing quick access less than quarterly; Archive for rarely accessed data with long retrieval times.

How does Cloud Build integrate with source repositories?

Cloud Build triggers automatically on changes to GitHub, Cloud Source Repositories, etc. It clones the code, runs defined build steps, and pushes artifacts to Artifact Registry or Container Registry.

What is a use case for Cloud NAT in a hybrid network?

For private instances in a VPC that need to download updates or access Google APIs without public IPs. Cloud NAT allows outbound connections while keeping the instances isolated.

Active recall deck

Practice Professional Cloud Developer with real flashcards

Read the prompt, commit to an answer, then flip the card. Move through the deck at your own pace and repeat any topic that does not come back quickly.

20 free cards

Card 1 of 20

1 reviewed this session

Connect the concepts

Your Professional Cloud Developer study mind map

Open a branch to connect a topic with its practice questions and explanations. Use the map to choose your next review topic.

Professional Cloud Developer15 questions in this practice set
Compare and contrast core infrastructure and application services(1)
Understand identity and access management concepts(1)
Select appropriate storage classes based on access patterns(1)
Apply DevOps principles using infrastructure as code(1)
Design highly available and fault-tolerant architectures(1)
Implement continuous integration and delivery practices(1)
Design secure and hybrid network architectures(1)
Choose compute options based on workload requirements and cost considerations(1)
Design event-driven and message-driven architectures(1)
Implement governance and compliance practices(1)
Compare serverless and traditional compute models(1)
Manage container images and streamline deployments(1)
More practice connections(3)
Exam-focused analysis

What this Professional Cloud Developer practice set measures

This is an analysis of the practice bank, not a claim about the vendor's live exam blueprint. Use it to identify the knowledge, judgment, and recall patterns exercised here, then verify your coverage against the current official exam guide.

Serverless and Compute Choices

This section focuses on selecting the appropriate compute service based on workload characteristics. Cloud Run is highlighted for containerized applications with minimal infrastructure management, while Cloud Functions is best for event-driven, pay-per-use execution. Preemptible VMs are recommended for fault-tolerant batch jobs to reduce costs. Understanding when to use each service helps optimize performance and budget. The practice bank emphasizes that serverless options reduce operational overhead but are subject to execution time limits, whereas VMs offer more control but require management.

  • Cloud Run fully manages containers and scales based on request volume.
  • Cloud Functions charges per invocation and is ideal for lightweight event handlers.
  • Preemptible VMs are short-lived and cheaper, suited for interruptible batch processing.

Identity, Security, and Governance

Security and governance are core to cloud development. Service accounts authenticate automated processes without user credentials. IAM policies enforce least privilege in a zero-trust model. Organization policies prevent misconfigurations by restricting resource locations or enabling required constraints. Cloud NAT allows private instances to reach external endpoints securely. The practice bank reinforces that proper identity management and policy enforcement are critical for compliance and protection against misconfigurations.

  • Service accounts use keys or short-lived tokens for API access.
  • IAM policies grant granular permissions based on identity.
  • Organization policies set guardrails across projects (e.g., location restrictions).
  • Cloud NAT enables outbound internet for instances without public IPs.

Storage, Messaging, and Containers

Choosing the right storage class and messaging service impacts cost and performance. Coldline Storage balances infrequent access with rapid retrieval. Cloud Pub/Sub decouples services via asynchronous messaging, enabling event-driven architectures. Artifact Registry securely stores container images and integrates with CI/CD pipelines. The practice bank shows how these services fit into application designs for reliability and scalability.

  • Coldline Storage is cost-effective for data accessed less than once a quarter.
  • Pub/Sub supports reliable, real-time messaging and event ingestion.
  • Artifact Registry provides vulnerability scanning and access control for container images.

Automation, Scalability, and Observability

Automation and observability are key to operating cloud applications efficiently. Infrastructure as Code (IaC) enables consistent and version-controlled deployments. Cloud Build provides scalable build workers and integrated artifact storage. Regional managed instance groups ensure high availability across zones, and autoscaling maintains performance under variable load. Log retention supports security investigations and compliance. These practices reduce manual effort and improve system resilience.

  • IaC tools like Deployment Manager automate resource provisioning.
  • Cloud Build integrates with source repos and produces container images.
  • Regional managed instance groups distribute instances across zones for HA.
  • Autoscaling adjusts capacity based on CPU or request metrics.
  • Log retention enables forensic analysis and meets regulatory requirements.

Study workflow

Turn one Professional Cloud Developer attempt into a study plan

  1. 1

    Identify Workload Characteristics

    For any application component, first determine if it is event-driven, long-running, stateful, or fault-tolerant. This drives compute choice: serverless for short-lived events, containers for portable microservices, VMs for full control. Also assess access patterns to select storage class.

  2. 2

    Apply Security Baseline

    Create a service account for each application component with minimal IAM roles. Use Cloud NAT for private instances needing outbound access. Apply organization policies to enforce resource location and required tags. Enable audit logging for critical operations.

  3. 3

    Design for Resilience

    Use regional managed instance groups or Cloud Run multi-region to survive zone failures. Implement autoscaling with appropriate metrics. Decouple services with Pub/Sub to avoid cascading failures. Use preemptible VMs only for interruptible workloads.

  4. 4

    Automate Build and Deploy

    Store container images in Artifact Registry. Configure Cloud Build to build from source and deploy to Cloud Run or GKE. Use IaC templates (e.g., Deployment Manager) to define infrastructure. Integrate with source repos for automatic triggers.

  5. 5

    Monitor and Log Effectively

    Set up Cloud Logging to collect logs from all services. Define log retention periods based on compliance needs. Export logs to BigQuery or Cloud Storage for analysis. Create alerts for error rates and performance anomalies.

FAQ

Questions about this exam practice page

Clear boundaries on what the bank covers, how to use it, and where official vendor information still matters.

When should I choose Cloud Run over Google Kubernetes Engine (GKE)?+

Cloud Run abstracts cluster management and is ideal for stateless containers that scale quickly per request. GKE offers more control over orchestration and is better for complex stateful or long-running workloads. Use Cloud Run for simple microservices; use GKE when you need fine-grained scheduling or sidecar patterns.

How do service accounts differ from user accounts in IAM?+

Service accounts are non-human identities used by applications and VMs to authenticate to Google Cloud APIs. They have roles assigned like user accounts but use keys or short-lived tokens instead of passwords. They enable automated access without sharing user credentials.

What is the advantage of Coldline Storage over Nearline?+

Coldline Storage is cheaper for data accessed less than once every 90 days, while Nearline is for data accessed less than once a month. Coldline has a 90-day minimum storage duration and retrieval costs, making it cost-effective for cold data that still needs quick access (within minutes).

Can Cloud NAT be used for inbound traffic?+

No. Cloud NAT only provides outbound internet connectivity for private instances. It does not allow inbound connections from the internet. For inbound, you need a public IP, load balancer, or Cloud VPN/Interconnect for hybrid scenarios. Cloud NAT is used to let instances initiate outbound connections without public IPs.

How does an organization policy differ from an IAM policy?+

An organization policy sets constraints on Google Cloud resources across projects (e.g., allowed locations, resource types). IAM policies control who (users/service accounts) has what role on specific resources. Organization policies are like guardrails, while IAM policies grant permissions within those guardrails.

Keep studying

Build the next review session

Browse another free bank or use the study strategy guide to turn your misses into spaced review.