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: CRetry the request with a truncated exponential backoff strategy.
Question 42Choose 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: ACreate a Cloud Logging log export to Pub/Sub.
Question 43Choose 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: CUse signed URLs to upload files.
Question 44Choose 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: BUse 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 45Choose 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: CAssign the Cloud SQL Client role.
Question 46Choose 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: CConfigure a Firebase function that executes your application and is triggered when an
object is updated in Cloud Storage.
Question 47Choose 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?
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: CThe service account key has been rotated but not updated on the application server.
Question 49Choose 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: BCreate a PersistentVolumeClaim on the GKE cluster. Access the configuration files from
the volume, and start the service using an ENTRYPOINT script.
Question 50Choose 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: DAdd 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.