Google Cloud Professional Cloud Developer Free Sample Questions

Description

Covers designing high-performing and secure cloud-native applications, building and testing code, deploying to Cloud Run and GKE, and integrating with Google Cloud APIs and data services.

12 free sample questions156 in the full practice test Other version: PCD(289)

Try simulator

GCP-PCD Sample Questions

  1. Question 1

    Advanced

    Designing Highly Scalable, Available, and Reliable Cloud-Native Applications · Storing and accessing data

    A global gaming company is designing the backend for a new real-time multiplayer mobile game. The player profile service requires a database that offers strong consistency, horizontal scalability to handle millions of concurrent users globally, and 99.999% availability. The schema is relational, and players must see their stats updated immediately after a match, regardless of their region. Which Google Cloud storage solution should the architect select?

    Answer and explanation

    Correct answer: C

    Cloud Spanner is the only Google Cloud service that provides a relational database structure (SQL) combined with horizontal scalability and global strong consistency (using TrueTime). It is designed specifically for this use case (global scale, relational data, high availability up to 99.999%). Cloud SQL is regional (or requires manual sharding for writes). Bigtable is NoSQL, not relational.

  2. Question 2

    Intermediate

    Designing Highly Scalable, Available, and Reliable Cloud-Native Applications · Designing high-performing applications and APIs

    A developer is building a cloud-native application that processes uploaded images. The application needs to be event-driven. When a user uploads an image to a Cloud Storage bucket, a service should automatically be triggered to resize the image. The solution must be serverless and require minimal operational overhead. Which architecture should the developer implement?

    Answer and explanation

    Correct answer: B

    Eventarc is the preferred Google Cloud service for unifying event ingestion. It can listen for Cloud Storage events (via Audit Logs or direct notification) and push them to a Cloud Run service. This is a fully serverless, push-based architecture that avoids polling and operational overhead.

  3. Question 3

    Intermediate

    Designing Highly Scalable, Available, and Reliable Cloud-Native Applications · Storing and accessing data

    You are migrating a legacy monolithic application to Google Cloud. The application requires a file system interface to read and write configuration files shared across multiple instances. You plan to containerize the application and deploy it to Google Kubernetes Engine (GKE). Which storage option should you mount to the GKE pods to support read/write many (RWX) access?

    Answer and explanation

    Correct answer: B

    Filestore provides fully managed NFS file servers on Google Cloud. GKE supports mounting Filestore instances as PersistentVolumes with ReadWriteMany (RWX) access mode, allowing multiple pods to read and write to the same shared file system simultaneously. Standard Persistent Disks generally support ReadWriteOnce (RWO).

  4. Question 4

    Intermediate

    Designing Highly Scalable, Available, and Reliable Cloud-Native Applications · Designing secure applications

    A financial services company needs to securely store API keys and database credentials. The security team mandates that these secrets must be rotated automatically every 30 days and accessed only by authorized applications via IAM. Which combination of services fulfills these requirements?

    Answer and explanation

    Correct answer: B

    Secret Manager is the dedicated service for storing sensitive data like API keys. It supports automatic rotation by triggering a Cloud Function (via Pub/Sub) that executes the logic to change the credential in the external system and update the Secret Manager version.

  5. Question 5

    Beginner

    Designing Highly Scalable, Available, and Reliable Cloud-Native Applications · Designing high-performing applications and APIs

    You are designing an API for a retail application hosted on Cloud Run. The API must support high-volume reads for product catalog data. To improve performance and reduce latency, you decide to implement a caching layer. The cache should be fully managed and support Redis data structures. Which service should you integrate?

    Answer and explanation

    Correct answer: B

    Memorystore for Redis is Google Cloud's fully managed in-memory data store service. It provides sub-millisecond latency and is compatible with the Redis protocol, making it the ideal choice for a caching layer in this scenario.

  6. Question 6

    Advanced

    Designing Highly Scalable, Available, and Reliable Cloud-Native Applications · Designing secure applications

    A development team is building a microservices application on GKE. Service A needs to call Service B. Both services are in the same cluster but different namespaces. The security team requires that Service B only accepts traffic from Service A and denies all other internal traffic. What Kubernetes native resource should you configure?

    Answer and explanation

    Correct answer: C

    Kubernetes NetworkPolicies enable you to control traffic flow at the IP address or port level (OSI layer 3 or 4). By creating a NetworkPolicy that selects Service B's pods and defines an Ingress rule allowing traffic only from Service A's pods (using podSelector or namespaceSelector), you can enforce the required traffic isolation within the cluster.

Register free for 6 more questions

Or unlock all 156 GCP-PCD questions with explanations, timed mode and flashcards.