Google certification · Exam Professional-Cloud-Developer

Professional-Cloud-Developer Mock Exam

Google Certified Professional - Cloud Developer

Find out if you're ready for Professional-Cloud-Developer. Take the free timed mock exam and get your score in minutes, or study the free Professional-Cloud-Developer questions below with answers and explanations.

20 questions · 33 minutes · free, no sign-up

Free Professional-Cloud-Developer questions

1–10 of 75 free
Question 1 Choose 2
Your company wants to expand their users outside the United States for their popular application. The company wants to ensure 99.999% availability of the database for their application and also wants to minimize the read latency for their users across the globe. Which two actions should they take? (Choose two.)
Show answerHide answer

Correct answer: B, F Create a multi-regional Cloud Spanner instance with "nam3" configuration. Create a Cloud Dataflow pipeline to replicate data across different databases.

Question 2 Choose 1
You need to load-test a set of REST API endpoints that are deployed to Cloud Run. The API responds to HTTP POST requests Your load tests must meet the following requirements:
• Load is initiated from multiple parallel threads
• User traffic to the API originates from multiple source IP addresses.
• Load can be scaled up using additional test instances
You want to follow Google-recommended best practices How should you configure the load testing'?
Show answerHide answer

Correct answer: C Deploy a distributed load testing framework on a private Google Kubernetes Engine Cluster Deploy additional Pods as needed to initiate more traffic and support the number of concurrent users.

Question 3 Choose 1
You are planning to deploy your application in a Google Kubernetes Engine (GKE) cluster. Your application can scale horizontally, and each instance of your application needs to have a stable network identity and its own persistent disk. Which GKE object should you use?
Show answerHide answer

Correct answer: B StatefulSet

Question 4 Choose 1
Your company’s development teams want to use various open source operating systems in their Docker builds. When images are created in published containers in your company’s environment, you need to scan them for Common Vulnerabilities and Exposures (CVEs). The scanning process must not impact software development agility. You want to use managed services where possible. What should you do?
Show answerHide answer

Correct answer: A Enable the Vulnerability scanning setting in the Container Registry.

Question 5 Choose 1
You are a developer at a large organization. You are deploying a web application to Google Kubernetes Engine (GKE). The DevOps team has built a CI/CD pipeline that uses Cloud Deploy to deploy the application to Dev Test, and Prod clusters in GKE. After Cloud Deploy successfully deploys the application to the Dev cluster you want to automatically promote it to the Test Cluster. How should you configure this process following Google-recommended best practices?
Show answerHide answer

Correct answer: B

  1. Create a Cloud Function that calls the Google Cloud Deploy API to promote the application to the Test cluster.
  2. Configure this function to be triggered by SUCCEEDED Pub/Sub messages from the cloud-builds topic.

Question 6 Choose 1
Your team is setting up a build pipeline for an application that will run in Google Kubernetes Engine (GKE). For security reasons, you only want images produced by the pipeline to be deployed to your GKE cluster. Which combination of Google Cloud services should you use?
Show answerHide answer

Correct answer: A Google Cloud Deploy. Artifact Registry, and Google Cloud Armor

Question 7 Choose 2
Your team develops services that run on Google Kubernetes Engine. You need to standardize their log data using Google-recommended practices and make the data more useful in the fewest number of steps. What should you do? (Choose two.)
Show answerHide answer

Correct answer: A, C Create aggregated exports on application logs to BigQuery to facilitate log analytics. Write log output to standard output (stdout) as single-line JSON to be ingested into Cloud Logging as structured logs.

Question 8 Choose 1
You recently developed an application that monitors a large number of stock prices. You need to configure Pub/Sub to receive a high volume messages and update the current stock price in a single large in-memory database The downstream service needs only the most up-to-date prices in the in-memory database to perform stock trading transactions.
Each message contains three pieces of information.
• Stock symbol
• Stock price
• Timestamp for the update .
How should you set up your Pub/Sub subscription?
Show answerHide answer

Correct answer: C Create a push subscription with exactly-once delivery enabled

Question 9 Choose 1
You have an application deployed in Google Kubernetes Engine (GKE) that reads and processes Pub/Sub messages. Each Pod handles a fixed number of messages per minute. The rate at which messages are published to the Pub/Sub topic varies considerably throughout the day and week, including occasional large batches of messages published at a single moment. You want to scale your GKE Deployment to be able to process messages in a timely manner. What GKE feature should you use to automatically adapt your workload?
Show answerHide answer

Correct answer: C Horizontal Pod Autoscaler based on an external metric

Question 10 Choose 1
Your development team has built several Cloud Functions using Java along with corresponding integration and service tests. You are building and deploying the functions and launching the tests using Cloud Build. Your Cloud Build job is reporting deployment failures immediately after successfully validating the code. What should you do?
Show answerHide answer

Correct answer: D Verify that the Cloud Build service account is assigned the Cloud Functions Developer role.

Full mock exam

Sit the Professional-Cloud-Developer exam before exam day

Full-length mocks with the same number of questions and the same time limit as the real Professional-Cloud-Developer exam. Every attempt draws a new set of questions from the full bank, so you can keep going until you pass comfortably.

Get full Professional-Cloud-Developer mock exam
  • 65questions per mock
  • 105 mintime limit
  • 253questions in the bank
  • Newmock on every attempt