Google certification · Exam Professional-Cloud-Developer

Professional-Cloud-Developer Mock Exam Page 7

Google Certified Professional - Cloud Developer

Free Professional-Cloud-Developer mock exam questions 61–70, each with the answer and an explanation.

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

Free Professional-Cloud-Developer questions

61–70 of 75 free
Question 61 Choose 1
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: C Retry each failure at increasing time intervals up to a maximum number of tries.

Question 62 Choose 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: B Import 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 63 Choose 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: D 1. 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 64 Choose 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: C Deploy from your local machine using gcloud and grant users the roles/cloudfunctions.admin role

Question 65 Choose 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?
Show answerHide answer

Correct answer: D 1) Pub/Sub
2) Dataflow
3) Firestore
4) BigQuery

Question 66 Choose 1
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: A Use 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 67 Choose 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: A Migrate the Product catalog, which has integrations to the frontend and product database.

Question 68 Choose 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: B Create 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 69 Choose 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: A Configure your Cloud Run service with a Cloud SQL connection.

Question 70 Choose 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: B Increase 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.

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