Free Professional Cloud Developer Exam Braindumps (page: 28)

Page 27 of 82

You are deploying your application on a Compute Engine instance that communicates with Cloud SQL. You will use Cloud SQL Proxy to allow your application to communicate to the database using the service account associated with the application's instance. You want to follow the Google-recommended best practice of providing minimum access for the role assigned to the service account.
What should you do?

  1. Assign the Project Editor role.
  2. Assign the Project Owner role.
  3. Assign the Cloud SQL Client role.
  4. Assign the Cloud SQL Editor role.

Answer(s): C


Reference:

https://cloud.google.com/sql/docs/mysql/sql-proxy



Your team develops stateless services that run on Google Kubernetes Engine (GKE). You need to deploy a new service that will only be accessed by other services running in the GKE cluster. The service will need to scale as quickly as possible to respond to changing load.
What should you do?

  1. Use a Vertical Pod Autoscaler to scale the containers, and expose them via a ClusterIP Service.
  2. Use a Vertical Pod Autoscaler to scale the containers, and expose them via a NodePort Service.
  3. Use a Horizontal Pod Autoscaler to scale the containers, and expose them via a ClusterIP Service.
  4. Use a Horizontal Pod Autoscaler to scale the containers, and expose them via a NodePort Service.

Answer(s): C



You recently migrated a monolithic application to Google Cloud by breaking it down into microservices. One of the microservices is deployed using Cloud
Functions. As you modernize the application, you make a change to the API of the service that is backward-incompatible. You need to support both existing callers who use the original API and new callers who use the new API.
What should you do?

  1. Leave the original Cloud Function as-is and deploy a second Cloud Function with the new API. Use a load balancer to distribute calls between the versions.
  2. Leave the original Cloud Function as-is and deploy a second Cloud Function that includes only the changed API. Calls are automatically routed to the correct function.
  3. Leave the original Cloud Function as-is and deploy a second Cloud Function with the new API. Use Cloud Endpoints to provide an API gateway that exposes a versioned API.
  4. Re-deploy the Cloud Function after making code changes to support the new API. Requests for both versions of the API are fulfilled based on a version identifier included in the call.

Answer(s): C


Reference:

https://cloud.google.com/endpoints/docs/openapi/get-started-cloud-functions



You are developing an application that will allow users to read and post comments on news articles. You want to configure your application to store and display user-submitted comments using Firestore. How should you design the schema to support an unknown number of comments and articles?

  1. Store each comment in a subcollection of the article.
  2. Add each comment to an array property on the article.
  3. Store each comment in a document, and add the comment's key to an array property on the article.
  4. Store each comment in a document, and add the comment's key to an array property on the user profile.

Answer(s): A






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

Exam Discussions & Posts