You support an application that uses the Cloud Storage API. You review the logs and
discover multiple HTTP 503 Service Unavailable error responses from the API. Your
application logs the error and does not take any further action. You want to implement
Google-recommended retry logic to improve success rates. Which approach should you
take?
Show answerHide answer
Correct answer: CRetry each failure at increasing time intervals up to a maximum number of tries.
Question 62Choose 1
You are monitoring a web application that is written in Go and deployed in Google
Kubernetes Engine. You notice an increase in CPU and memory utilization. You need to
determine which source code is consuming the most CPU and memory resources. What
should you do?
Show answerHide answer
Correct answer: BImport the Cloud Profiler package into your application, and initialize the Profiler agent.
Review the generated flame graph in the Google Cloud console to identify time-intensive
functions.
Question 63Choose 1
You are developing a new application that has the following design requirements:
Creation and changes to the application infrastructure are versioned and auditable.
The application and deployment infrastructure uses Google-managed services as much as
possible.
The application runs on a serverless compute platform. How should you design the application’s architecture?
Show answerHide answer
Correct answer: D1. Deploy the application infrastructure using gcloud commands.
2. Use Cloud Build to define a continuous integration pipeline for changes to the application
source code.
3. Configure a pipeline step to pull the application source code from a Git repository, and
create a containerized application.
4. Deploy the new container on Cloud Run as a pipeline step.
Question 64Choose 1
You are developing an application that will handle requests from end users. You need to
secure a Cloud Function called by the application to allow authorized end users to
authenticate to the function via the application while restricting access to unauthorized
users. You will integrate Google Sign-In as part of the solution and want to follow Google recommended
best practices. What should you do?
Show answerHide answer
Correct answer: CDeploy from your local machine using gcloud and grant users the roles/cloudfunctions.admin role
Question 65Choose 1
This architectural diagram depicts a system that streams data from thousands of devices.
You want to ingest data into a pipeline, store the data, and analyze the data using SQL
statements. Which Google Cloud services should you use for steps 1, 2, 3, and 4?
You are using Cloud Run to host a global ecommerce web application. Your company's
design team is creating a new color scheme for the web app. You have been tasked with
determining whether the new color scheme will increase sales You want to conduct testing
on live production traffic How should you design the study?
Show answerHide answer
Correct answer: AUse an external HTTP(S) load balancer to route a predetermined percentage of traffic to
two different color
schemes of your application Analyze the results to determine whether there is a statistically
significant
difference in sales.
Question 67Choose 1
You have been tasked with planning the migration of your company’s application from onpremises
to Google Cloud. Your company’s monolithic application is an ecommerce
website. The application will be migrated to microservices deployed on Google Cloud in
stages. The majority of your company’s revenue is generated through online sales, so it is important to minimize risk during the migration. You need to prioritize features and select
the first functionality to migrate. What should you do?
Show answerHide answer
Correct answer: AMigrate the Product catalog, which has integrations to the frontend and product
database.
Question 68Choose 1
You need to configure a Deployment on Google Kubernetes Engine (GKE). You want to
include a check that verifies that the containers can connect to the database. If the Pod is
failing to connect, you want a script on the container to run to complete a graceful
shutdown. How should you configure the Deployment?
Show answerHide answer
Correct answer: BCreate the Deployment with a livenessProbe for the container that will fail if the
container can't connect to the database. Configure a Prestop lifecycle handler that runs the
shutdown script if the container is failing.
Question 69Choose 1
You have deployed a Java application to Cloud Run. Your application requires access to a
database hosted on Cloud SQL Due to regulatory requirements: your connection to the
Cloud SQL instance must use its internal IP address. How should you configure the
connectivity while following Google-recommended best practices'?
Show answerHide answer
Correct answer: AConfigure your Cloud Run service with a Cloud SQL connection.
Question 70Choose 1
You have a container deployed on Google Kubernetes Engine. The container can
sometimes be slow to launch, so you have implemented a liveness probe. You notice that
the liveness probe occasionally fails on launch. What should you do?
Show answerHide answer
Correct answer: BIncrease the initial delay for the liveness probe.
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.