You are building a new API. You want to minimize the cost of storing and reduce the
latency of serving
images.
Which architecture should you use?
Show answerHide answer
Correct answer: BCompute Engine backed by Persistent Disk
Question 52Choose 1
Your company’s corporate policy states that there must be a copyright comment at the very
beginning of all source files. You want to write a custom step in Cloud Build that is triggered
by each source commit. You need the trigger to validate that the source contains a
copyright and add one for subsequent steps if not there. What should you do?
Show answerHide answer
Correct answer: ABuild a new Docker container that examines the files in /workspace and then checks and
adds a copyright for each source file. Changed files are explicitly committed back to the
source repository.
Question 53Choose 1
You are developing an ecommerce web application that uses App Engine standard
environment and Memorystore for Redis. When a user logs into the app, the application
caches the user’s information (e.g., session, name, address, preferences), which is stored
for quick retrieval during checkout.
While testing your application in a browser, you get a 502 Bad Gateway error. You have
determined that the application is not connecting to Memorystore. What is the reason for
this error?
Show answerHide answer
Correct answer: AYour Memorystore for Redis instance was deployed without a public IP address
Question 54Choose 1
Your company's development teams want to use Cloud Build in their projects to build and
push Docker images
to Container Registry. The operations team requires all Docker images to be published to a
centralized,
securely managed Docker registry that the operations team manages.
What should you do?
Show answerHide answer
Correct answer: AUse Container Registry to create a registry in each development team's project.
Configure the Cloud Build
build to push the Docker image to the project's registry. Grant the operations team access
to each
development team's registry.
Question 55Choose 1
You have an ecommerce application hosted in Google Kubernetes Engine (GKE) that
receives external requests and forwards them to third-party APIs external to Google Cloud.
The third-party APIs are responsible for credit card processing, shipping, and inventory
management using the process shown in the diagram.
Your customers are reporting that the ecommerce application is running slowly at
unpredictable times. The application doesn't report any metrics You need to determine the
cause of the inconsistent performance What should you do?
Show answerHide answer
Correct answer: BInstall the OpenTelemetry library for your respective language, and instrument your
application.
Question 56Choose 1
You work at a rapidly growing financial technology startup. You manage the payment
processing application written in Go and hosted on Cloud Run in the Singapore region
(asia-southeast1). The payment processing application processes data stored in a Cloud
Storage bucket that is also located in the Singapore region.
The startup plans to expand further into the Asia Pacific region. You plan to deploy the
Payment Gateway in Jakarta, Hong Kong, and Taiwan over the next six months. Each
location has data residency requirements that require customer data to reside in the
country where the transaction was made. You want to minimize the cost of these
deployments. What should you do?
Show answerHide answer
Correct answer: ACreate a Cloud Storage bucket in each region, and create a Cloud Run service of the
payment processing application in each region.
Question 57Choose 1
Your web application is deployed to the corporate intranet. You need to migrate the web
application to Google Cloud. The web application must be available only to company
employees and accessible to employees as they travel. You need to ensure the security
and accessibility of the web application while minimizing application changes. What should
you do?
Show answerHide answer
Correct answer: BConfigure Identity-Aware Proxy to allow employees to access the application through its
public IP address.
Question 58Choose 2
You are developing a microservice-based application that will run on Google Kubernetes
Engine (GKE). Some of the services need to access different Google Cloud APIs. How
should you set up authentication of these services in the cluster following Google recommended
best practices? (Choose two.)
Show answerHide answer
Correct answer: B, EEnable Workload Identity in the cluster via the gcloud command-line tool.Use gcloud to bind the Kubernetes service account and the Google service account
using roles/iam.workloadIdentity.
Question 59Choose 1
Users are complaining that your Cloud Run-hosted website responds too slowly during
traffic spikes. You want to provide a better user experience during traffic peaks. What
should you do?
Show answerHide answer
Correct answer: CPerform as much work as possible in the background after the response has been
returned to the user.
Question 60Choose 1
Your company has a BigQuery dataset named "Master" that keeps information about employee travel and
expenses. This information is organized by employee department. That means employees
should only be able
to view information for their department. You want to apply a security framework to enforce
this requirement
with the minimum number of steps.
What should you do?
Show answerHide answer
Correct answer: BCreate a separate dataset for each department. Create a data pipeline for each
department to copy
appropriate information from the Master dataset to the specific dataset for the department.
Give employees
the permission to this department-specific dataset.
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.