Free PCD sample questions
Real questions from the Professional Cloud Developer practice bank, with the correct answer and an explanation for each one. No junk, no filler.
Try them in the simulator Same questions, with study, timed and flashcard modes.
Showing 10 of 20 free sample questions.
A developer is building an event-driven processing pipeline. The architecture requires that when a file is uploaded to a Cloud Storage bucket, a message containing the file's metadata is sent to a Pub/Sub topic. This message should then trigger a Cloud Run service for processing. The developer wants to set this up using a direct, event-based mechanism without writing custom trigger code. Which Google Cloud service should be used to connect the Cloud Storage event to the Pub/Sub topic?
A developer needs to deploy a containerized application to a new GKE cluster. The application has a web frontend and a backend processing service that communicate with each other. For security, the developer must prevent all other pods in the cluster from communicating with the backend service, while still allowing the frontend pods to reach it. Which Kubernetes object should be created to enforce this traffic rule?
You are building a CI/CD pipeline using Cloud Build. The build process requires a specific version of a proprietary code analysis tool that is not available in the standard Cloud Build builder images. You want to make this tool available to your build steps while following security best practices and ensuring build reproducibility. What is the recommended approach?
A new developer on your team is using Gemini Code Assist in their IDE. They want to generate unit tests for a complex function they have written in Python. Which TWO of the following actions are best practices for effectively using Gemini Code Assist for this task? (Select TWO).
You are deploying a new version of a critical microservice to Cloud Run. To minimize the risk of a faulty deployment affecting all users, you want to first deploy the new version without sending it any production traffic. After verifying its health through internal tests, you then want to gradually shift 100% of the traffic to it. Which deployment command sequence should you use?
Your application, running on Compute Engine, needs to read sensitive configuration data stored in Secret Manager. To adhere to the principle of least privilege and avoid managing service account keys, what is the most secure method for the application to authenticate to the Secret Manager API?
True or False: When using the Cloud SQL Auth Proxy to connect from a GKE pod to a Cloud SQL instance, you must configure a firewall rule to allow TCP traffic on port 3307 from the GKE nodes to the Cloud SQL instance's public IP address.
An e-commerce application experiences performance degradation during peak traffic. Analysis with Cloud Profiler reveals that a significant amount of CPU time is spent serializing and deserializing JSON payloads for service-to-service communication. The development team wants to replace the existing REST/JSON communication with a more efficient, high-performance alternative suitable for internal microservices. What should they use?
A batch processing job running on a GKE cluster frequently fails with a `429 Too Many Requests` error when writing a high volume of small files to a Cloud Storage bucket. The application code currently has no retry logic. To make the uploads more reliable, you need to implement a retry strategy. According to Google Cloud best practices, what is the proper way to handle these errors?
10 more free samples are waiting
Create a free account to unlock the whole PCD sample bank, or get full access to all 289 practice questions in the simulator.