Free Professional Cloud Developer Exam Braindumps
Professional Cloud Developer Questions 86–90 (page: 19)

Updated On: 10-Feb-2026

You are developing an application that will be launched on Compute Engine instances into multiple distinct projects, each corresponding to the environments in your software development process (development, QA, staging, and production). The instances in each project have the same application code but a different configuration. During deployment, each instance should receive the application’s configuration based on the environment it serves. You want to minimize the number of steps to configure this flow. What should you do?

  1. When creating your instances, configure a startup script using the gcloud command to determine the project name that indicates the correct environment.
  2. In each project, configure a metadata key “environment” whose value is the environment it serves. Use your deployment tool to query the instance metadata and configure the application based on the “environment” value.
  3. Deploy your chosen deployment tool on an instance in each project. Use a deployment job to retrieve the appropriate configuration file from your version control system, and apply the configuration when deploying the application on each instance.
  4. During each instance launch, configure an instance custom-metadata key named “environment” whose value is the environment the instance serves. Use your deployment tool to query the instance metadata, and configure the application based on the “environment” value.

Answer(s): D


Reference:

https://cloud.google.com/compute/docs/metadata/overview



You are developing an ecommerce application that stores customer, order, and inventory data as relational tables inside Cloud Spanner. During a recent load test, you discover that Spanner performance is not scaling linearly as expected. Which of the following is the cause?

  1. The use of 64-bit numeric types for 32-bit numbers.
  2. The use of the STRING data type for arbitrary-precision values.
  3. The use of Version 1 UUIDs as primary keys that increase monotonically.
  4. The use of LIKE instead of STARTS_WITH keyword for parameterized SQL queries.

Answer(s): B



You are developing an application that reads credit card data from a Pub/Sub subscription. You have written code and completed unit testing. You need to test the Pub/Sub integration before deploying to Google Cloud. What should you do?

  1. Create a service to publish messages, and deploy the Pub/Sub emulator. Generate random content in the publishing service, and publish to the emulator.
  2. Create a service to publish messages to your application. Collect the messages from Pub/Sub in production, and replay them through the publishing service.
  3. Create a service to publish messages, and deploy the Pub/Sub emulator. Collect the messages from Pub/Sub in production, and publish them to the emulator.
  4. Create a service to publish messages, and deploy the Pub/Sub emulator. Publish a standard set of testing messages from the publishing service to the emulator.

Answer(s): D



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): C


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): A


Reference:

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



Viewing page 19 of 52
Viewing questions 91 - 95 out of 379 questions


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

AI Tutor AI Tutor 👋 I’m here to help!