Free Professional Cloud Developer Exam Braindumps (page: 23)

Page 23 of 82

You are designing an application that will subscribe to and receive messages from a single Pub/Sub topic and insert corresponding rows into a database. Your application runs on Linux and leverages preemptible virtual machines to reduce costs. You need to create a shutdown script that will initiate a graceful shutdown.
What should you do?

  1. Write a shutdown script that uses inter-process signals to notify the application process to disconnect from the database.
  2. Write a shutdown script that broadcasts a message to all signed-in users that the Compute Engine instance is going down and instructs them to save current work and sign out.
  3. Write a shutdown script that writes a file in a location that is being polled by the application once every five minutes. After the file is read, the application disconnects from the database.
  4. Write a shutdown script that publishes a message to the Pub/Sub topic announcing that a shutdown is in progress. After the application reads the message, it disconnects from the database.

Answer(s): A


Reference:

https://cloud.google.com/compute/docs/shutdownscript



You work for a web development team at a small startup. Your team is developing a Node.js application using Google Cloud services, including Cloud Storage and Cloud Build. The team uses a Git repository for version control. Your manager calls you over the weekend and instructs you to make an emergency update to one of the company's websites, and you're the only developer available. You need to access Google Cloud to make the update, but you don't have your work laptop. You are not allowed to store source code locally on a non-corporate computer. How should you set up your developer environment?

  1. Use a text editor and the Git command line to send your source code updates as pull requests from a public computer.
  2. Use a text editor and the Git command line to send your source code updates as pull requests from a virtual machine running on a public computer.
  3. Use Cloud Shell and the built-in code editor for development. Send your source code updates as pull requests.
  4. Use a Cloud Storage bucket to store the source code that you need to edit. Mount the bucket to a public computer as a drive, and use a code editor to update the code. Turn on versioning for the bucket, and point it to the team's Git repository.

Answer(s): C


Reference:

https://docs.github.com/en/enterprise-server@3.3/get-started/quickstart/contributing-to-projects



Your team develops services that run on Google Kubernetes Engine. You need to standardize their log data using Google-recommended practices and make the data more useful in the fewest number of steps.
What should you do? (Choose two.)

  1. Create aggregated exports on application logs to BigQuery to facilitate log analytics.
  2. Create aggregated exports on application logs to Cloud Storage to facilitate log analytics.
  3. Write log output to standard output (stdout) as single-line JSON to be ingested into Cloud Logging as structured logs.
  4. Mandate the use of the Logging API in the application code to write structured logs to Cloud Logging.
  5. Mandate the use of the Pub/Sub API to write structured data to Pub/Sub and create a Dataflow streaming pipeline to normalize logs and write them to BigQuery for analytics.

Answer(s): A,C



You are designing a deployment technique for your new applications on Google Cloud. As part of your deployment planning, you want to use live traffic to gather performance metrics for both new and existing applications. You need to test against the full production load prior to launch.
What should you do?

  1. Use canary deployment
  2. Use blue/green deployment
  3. Use rolling updates deployment
  4. Use A/B testing with traffic mirroring during deployment

Answer(s): D


Reference:

https://cloud.google.com/architecture/application-deployment-and-testing-strategies



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