Free Professional Cloud Developer Exam Braindumps (page: 26)

Page 26 of 82

You are developing a web application that will be accessible over both HTTP and HTTPS and will run on Compute Engine instances. On occasion, you will need to SSH from your remote laptop into one of the Compute Engine instances to conduct maintenance on the app. How should you configure the instances while following Google-recommended best practices?

  1. Set up a backend with Compute Engine web server instances with a private IP address behind a TCP proxy load balancer.
  2. Configure the firewall rules to allow all ingress traffic to connect to the Compute Engine web servers, with each server having a unique external IP address.
  3. Configure Cloud Identity-Aware Proxy API for SSH access. Then configure the Compute Engine servers with private IP addresses behind an HTTP(s) load balancer for the application web traffic.
  4. Set up a backend with Compute Engine web server instances with a private IP address behind an HTTP(S) load balancer. Set up a bastion host with a public IP address and open firewall ports. Connect to the web instances using the bastion host.

Answer(s): C


Reference:

https://cloud.google.com/compute/docs/instances/connecting-advanced#cloud_iap



You have a mixture of packaged and internally developed applications hosted on a Compute Engine instance that is running Linux. These applications write log records as text in local files. You want the logs to be written to Cloud Logging.
What should you do?

  1. Pipe the content of the files to the Linux Syslog daemon.
  2. Install a Google version of fluentd on the Compute Engine instance.
  3. Install a Google version of collectd on the Compute Engine instance.
  4. Using cron, schedule a job to copy the log files to Cloud Storage once a day.

Answer(s): B


Reference:

https://cloud.google.com/logging/docs/agent/logging/configuration



You want to create `fully baked` or `golden` Compute Engine images for your application. You need to bootstrap your application to connect to the appropriate database according to the environment the application is running on (test, staging, production).
What should you do?

  1. Embed the appropriate database connection string in the image. Create a different image for each environment.
  2. When creating the Compute Engine instance, add a tag with the name of the database to be connected. In your application, query the Compute Engine API to pull the tags for the current instance, and use the tag to construct the appropriate database connection string.
  3. When creating the Compute Engine instance, create a metadata item with a key of “DATABASE” and a value for the appropriate database connection string. In your application, read the “DATABASE” environment variable, and use the value to connect to the appropriate database.
  4. When creating the Compute Engine instance, create a metadata item with a key of “DATABASE” and a value for the appropriate database connection string. In your application, query the metadata server for the “DATABASE” value, and use the value to connect to the appropriate database.

Answer(s): D



You are developing a microservice-based application that will be deployed on a Google Kubernetes Engine cluster. The application needs to read and write to a
Spanner database. You want to follow security best practices while minimizing code changes. How should you configure your application to retrieve Spanner credentials?

  1. Configure the appropriate service accounts, and use Workload Identity to run the pods.
  2. Store the application credentials as Kubernetes Secrets, and expose them as environment variables.
  3. Configure the appropriate routing rules, and use a VPC-native cluster to directly connect to the database.
  4. Store the application credentials using Cloud Key Management Service, and retrieve them whenever a database connection is made.

Answer(s): A


Reference:

https://cloud.google.com/sql/docs/mysql/connect-kubernetes-engine



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