Free Professional Cloud Developer Exam Braindumps (page: 19)

Page 19 of 82

You are using Cloud Build build to promote a Docker image to Development, Test, and Production environments. You need to ensure that the same Docker image is deployed to each of these environments.
How should you identify the Docker image in your build?

  1. Use the latest Docker image tag.
  2. Use a unique Docker image name.
  3. Use the digest of the Docker image.
  4. Use a semantic version Docker image tag.

Answer(s): C



Your company has created an application that uploads a report to a Cloud Storage bucket.
When the report is uploaded to the bucket, you want to publish a message to a Cloud Pub/Sub topic. You want to implement a solution that will take a small amount to effort to implement.
What should you do?

  1. Configure the Cloud Storage bucket to trigger Cloud Pub/Sub notifications when objects are modified.
  2. Create an App Engine application to receive the file; when it is received, publish a message to the Cloud Pub/Sub topic.
  3. Create a Cloud Function that is triggered by the Cloud Storage bucket. In the Cloud Function, publish a message to the Cloud Pub/Sub topic.
  4. Create an application deployed in a Google Kubernetes Engine cluster to receive the file; when it is received, publish a message to the Cloud Pub/Sub topic.

Answer(s): A


Reference:

https://cloud.google.com/storage/docs/pubsub-notifications



Your teammate has asked you to review the code below, which is adding a credit to an account balance in Cloud Datastore.
Which improvement should you suggest your teammate make?

  1. Get the entity with an ancestor query.
  2. Get and put the entity in a transaction.
  3. Use a strongly consistent transactional database.
  4. Don't return the account entity from the function.

Answer(s): B



Your company stores their source code in a Cloud Source Repositories repository. Your company wants to build and test their code on each source code commit to the repository and requires a solution that is managed and has minimal operations overhead.
Which method should they use?

  1. Use Cloud Build with a trigger configured for each source code commit.
  2. Use Jenkins deployed via the Google Cloud Platform Marketplace, configured to watch for source code commits.
  3. Use a Compute Engine virtual machine instance with an open source continuous integration tool, configured to watch for source code commits.
  4. Use a source code commit trigger to push a message to a Cloud Pub/Sub topic that triggers an App Engine service to build the source code.

Answer(s): A



Page 19 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