Free Professional Cloud Developer Exam Braindumps (page: 24)

Page 24 of 82

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?

  1. Retry the failures in batch after a set number of failures is logged.
  2. Retry each failure at a set time interval up to a maximum number of times.
  3. Retry each failure at increasing time intervals up to a maximum number of tries.
  4. Retry each failure at decreasing time intervals up to a maximum number of tries.

Answer(s): C



You need to redesign the ingestion of audit events from your authentication service to allow it to handle a large increase in traffic. Currently, the audit service and the authentication system run in the same Compute Engine virtual machine. You plan to use the following Google Cloud tools in the new architecture:
•Multiple Compute Engine machines, each running an instance of the authentication service
•Multiple Compute Engine machines, each running an instance of the audit service
•Pub/Sub to send the events from the authentication services.

How should you set up the topics and subscriptions to ensure that the system can handle a large volume of messages and can scale efficiently?

  1. Create one Pub/Sub topic. Create one pull subscription to allow the audit services to share the messages.
  2. Create one Pub/Sub topic. Create one pull subscription per audit service instance to allow the services to share the messages.
  3. Create one Pub/Sub topic. Create one push subscription with the endpoint pointing to a load balancer in front of the audit services.
  4. Create one Pub/Sub topic per authentication service. Create one pull subscription per topic to be used by one audit service.
  5. Create one Pub/Sub topic per authentication service. Create one push subscription per topic, with the endpoint pointing to one audit service.

Answer(s): A



You are developing a marquee stateless web application that will run on Google Cloud. The rate of the incoming user traffic is expected to be unpredictable, with no traffic on some days and large spikes on other days. You need the application to automatically scale up and down, and you need to minimize the cost associated with running the application.
What should you do?

  1. Build the application in Python with Firestore as the database. Deploy the application to Cloud Run.
  2. Build the application in C# with Firestore as the database. Deploy the application to App Engine flexible environment.
  3. Build the application in Python with CloudSQL as the database. Deploy the application to App Engine standard environment.
  4. Build the application in Python with Firestore as the database. Deploy the application to a Compute Engine managed instance group with autoscaling.

Answer(s): A



You have written a Cloud Function that accesses other Google Cloud resources. You want to secure the environment using the principle of least privilege.
What should you do?

  1. Create a new service account that has Editor authority to access the resources. The deployer is given permission to get the access token.
  2. Create a new service account that has a custom IAM role to access the resources. The deployer is given permission to get the access token.
  3. Create a new service account that has Editor authority to access the resources. The deployer is given permission to act as the new service account.
  4. Create a new service account that has a custom IAM role to access the resources. The deployer is given permission to act as the new service account.

Answer(s): D


Reference:

https://cloud.google.com/blog/products/application-development/least-privilege-for-cloud-functions-using-cloud-iam



Page 24 of 82



Post your Comments and Discuss Google Professional Cloud Developer exam with other Community members:

DaveP commented on November 19, 2023
Some of these answers are wrong according to the Google sample questions.
UNITED STATES
upvote

devansh commented on June 21, 2023
does anyone recently took the exam , i have it in 2 days , are these dumps only enough for the prep?
Anonymous
upvote