Free Professional Cloud Developer Exam Braindumps (page: 22)

Page 22 of 82

You are porting an existing Apache/MySQL/PHP application stack from a single machine to Google
Kubernetes Engine. You need to determine how to containerize the application. Your approach should follow Google-recommended best practices for availability.
What should you do?

  1. Package each component in a separate container. Implement readiness and liveness probes.
  2. Package the application in a single container. Use a process management tool to manage each component.
  3. Package each component in a separate container. Use a script to orchestrate the launch of the components.
  4. Package the application in a single container. Use a bash script as an entrypoint to the container, and then spawn each component as a background job.

Answer(s): A


Reference:

https://cloud.google.com/architecture/best-practices-for-building-containers



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


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



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



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