Professional Cloud Developer Practice Test

Professional Cloud Developer Practice Test practice questions, page 11 of 15, with answer review and explanations.

Question 51

Your application is running in multiple Google Kubernetes Engine clusters. It is managed by a Deployment in each cluster. The Deployment has created multiple replicas of your Pod in each cluster. You want to view the logs sent to stdout for all of the replicas in your Deployment in all clusters. Which command should you use?

  1. kubectl logs [PARAM]
  2. gcloud logging read [PARAM]
  3. kubectl exec ג€"it [PARAM] journalctl
  4. gcloud compute ssh [PARAM] ג€"-command= ג€sudo journalctlג€

Question 52

You are using Cloud Build to create a new Docker image on each source code commit to a Cloud Source Repositories repository. Your application is built on every commit to the master branch. You want to release specific commits made to the master branch in an automated method. What should you do?

  1. Manually trigger the build for new releases.
  2. Create a build trigger on a Git tag pattern. Use a Git tag convention for new releases.
  3. Create a build trigger on a Git branch name pattern. Use a Git branch naming convention for new releases.
  4. Commit your source code to a second Cloud Source Repositories repository with a second Cloud Build trigger. Use this repository for new releases only.

Question 53

You are designing a schema for a table that will be moved from MySQL to Cloud Bigtable. The MySQL table is as follows: How should you design a row key for Cloud Bigtable for this table?

  1. Set Account_id as a key.
  2. Set Account_id_Event_timestamp as a key.
  3. Set Event_timestamp_Account_id as a key.
  4. Set Event_timestamp as a key.

Question 54

You want to view the memory usage of your application deployed on Compute Engine. What should you do?

  1. Install the Stackdriver Client Library.
  2. Install the Stackdriver Monitoring Agent.
  3. Use the Stackdriver Metrics Explorer.
  4. Use the Google Cloud Platform Console.

Question 55

You have an analytics application that runs hundreds of queries on BigQuery every few minutes using BigQuery API. You want to find out how much time these queries take to execute. What should you do?

  1. Use Stackdriver Monitoring to plot slot usage.
  2. Use Stackdriver Trace to plot API execution time.
  3. Use Stackdriver Trace to plot query execution time.
  4. Use Stackdriver Monitoring to plot query execution times.