Google certification · Exam Professional-Cloud-Developer

Professional-Cloud-Developer Mock Exam Page 5

Google Certified Professional - Cloud Developer

Free Professional-Cloud-Developer questions on Topic 2: Misc. Questions, each with the answer and an explanation.

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

Topic 2: Misc. Questions questions

41–50 of 70 free
Question 41 Choose 1
Your service adds text to images that it reads from Cloud Storage. During busy times of the year, requests to Cloud Storage fail with an HTTP 429 "Too Many Requests" status code. How should you handle this error?
Show answerHide answer

Correct answer: C Retry the request with a truncated exponential backoff strategy.

Question 42 Choose 1
Your company uses Cloud Logging to manage large volumes of log data. You need to build a real-time log analysis architecture that pushes logs to a third-party application for processing. What should you do?
Show answerHide answer

Correct answer: A Create a Cloud Logging log export to Pub/Sub.

Question 43 Choose 1
You need to migrate an internal file upload API with an enforced 500-MB file size limit to App Engine. What should you do?
Show answerHide answer

Correct answer: C Use signed URLs to upload files.

Question 44 Choose 1
Your team detected a spike of errors in an application running on Cloud Run in your production project. The application is configured to read messages from Pub/Sub topic A, process the messages, and write the messages to topic B. You want to conduct tests to identify the cause of the errors. You can use a set of mock messages for testing. What should you do?
Show answerHide answer

Correct answer: B Use the gcloud CLI to write mock messages to topic A. Change the logging level in the application to DEBUG or INFO, and then analyze the logs.

Question 45 Choose 1
You are deploying your application on a Compute Engine instance that communicates with Cloud SQL. You will use Cloud SQL Proxy to allow your application to communicate to the database using the service account associated with the application’s instance. You want to follow the Google-recommended best practice of providing minimum access for the role assigned to the service account. What should you do?
Show answerHide answer

Correct answer: C Assign the Cloud SQL Client role.

Question 46 Choose 1
You are developing a new application. You want the application to be triggered only when a given file is updated in your Cloud Storage bucket. Your trigger might change, so your process must support different types of triggers. You want the configuration to be simple so that multiple team members can update the triggers in the future. What should you do?
Show answerHide answer

Correct answer: C Configure a Firebase function that executes your application and is triggered when an object is updated in Cloud Storage.

Question 47 Choose 1
Your App Engine standard configuration is as follows:
service: production
instance_class: B1
You want to limit the application to 5 instances. Which code snippet should you include in your configuration?
Show answerHide answer

Correct answer: C basic_scaling:instances: 5min_pending_latency: 30ms

Question 48 Choose 1
You have an on-premises application that authenticates to the Cloud Storage API using a user-managed service account with a user-managed key. The application connects to Cloud Storage using Private Google Access over a Dedicated Interconnect link. You discover that requests from the application to access objects in the Cloud Storage bucket are failing with a 403 Permission Denied error code. What is the likely cause of this issue?
Show answerHide answer

Correct answer: C The service account key has been rotated but not updated on the application server.

Question 49 Choose 1
You have containerized a legacy application that stores its configuration on an NFS share. You need to deploy this application to Google Kubernetes Engine (GKE) and do not want the application serving traffic until after the configuration has been retrieved. What should you do?
Show answerHide answer

Correct answer: B Create a PersistentVolumeClaim on the GKE cluster. Access the configuration files from the volume, and start the service using an ENTRYPOINT script.

Question 50 Choose 1
Your application performs well when tested locally, but it runs significantly slower when you deploy it to App Engine standard environment. You want to diagnose the problem. What should you do?
Show answerHide answer

Correct answer: D Add logging commands to the application and use Stackdriver Logging to check where the latency problem occurs.

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