Google certification · Exam Professional-Cloud-Developer

Professional-Cloud-Developer Mock Exam Page 6

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

51–60 of 70 free
Question 51 Choose 1
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: B Compute Engine backed by Persistent Disk

Question 52 Choose 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: A Build 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 53 Choose 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: A Your Memorystore for Redis instance was deployed without a public IP address

Question 54 Choose 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: A Use 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 55 Choose 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: B Install the OpenTelemetry library for your respective language, and instrument your application.

Question 56 Choose 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: A Create a Cloud Storage bucket in each region, and create a Cloud Run service of the payment processing application in each region.

Question 57 Choose 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: B Configure Identity-Aware Proxy to allow employees to access the application through its public IP address.

Question 58 Choose 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, E Enable 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 59 Choose 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: C Perform as much work as possible in the background after the response has been returned to the user.

Question 60 Choose 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: B Create 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.

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