Google certification · Exam Professional-Cloud-DevOps-Engineer

Professional-Cloud-DevOps-Engineer Mock Exam

Google Cloud Certified - Professional Cloud DevOps Engineer Exam

Find out if you're ready for Professional-Cloud-DevOps-Engineer. Take the free timed mock exam and get your score in minutes, or study the free Professional-Cloud-DevOps-Engineer questions below with answers and explanations.

20 questions · 33 minutes · free, no sign-up

Free Professional-Cloud-DevOps-Engineer questions

1–10 of 21 free
Question 1 Choose 1

Your application services run in Google Kubernetes Engine (GKE). You want to make sure that only images from your centrally-managed Google Container Registry (GCR) image registry in the altostrat-images project can be deployed to the cluster while minimizing development time. What should you do?

Show answerHide answer

Correct answer: B

Use a Binary Authorization policy that includes the whitelist name pattern
gcr.io/attostrat-images/.

Question 2 Choose 1

You support a high-traffic web application with a microservice architecture. The home page
of the application displays multiple widgets containing content such as the current weather,
stock prices, and news headlines. The main serving thread makes a call to a dedicated
microservice for each widget and then lays out the homepage for the user. The
microservices occasionally fail; when that happens, the serving thread serves the
homepage with some missing content. Users of the application are unhappy if this
degraded mode occurs too frequently, but they would rather have some content served
instead of no content at all. You want to set a Service Level Objective (SLO) to ensure that
the user experience does not degrade too much. What Service Level Indicator {SLI) should
you use to measure this?

Show answerHide answer

Correct answer: B

An availability SLI: the ratio of healthy microservices to the total number of
microservices

Explanation

Explanation: https://cloud.google.com/blog/products/gcp/available-or-not-that-is-thequestion-
cre-life-lessons

Question 3 Choose 1

You use Cloud Build to build and deploy your application. You want to securely incorporate database credentials and other application secrets into the build pipeline. You also want to minimize the development effort. What should you do?

Show answerHide answer

Correct answer: D

Use Cloud Key Management Service (Cloud KMS) to encrypt the secrets and include
them in your Cloud Build deployment configuration. Grant Cloud Build access to the
KeyRing.

Question 4 Choose 1

You are running an application in a virtual machine (VM) using a custom Debian image. The image has the Stackdriver Logging agent installed. The VM has the cloud-platform scope. The application is logging information via syslog. You want to use Stackdriver Logging in the Google Cloud Platform Console to visualize the logs. You notice that syslog is not showing up in the "All logs" dropdown list of the Logs Viewer. What is the first thing you should do?

Show answerHide answer

Correct answer: D

SSH to the VM and execute the following commands on your VM: ps ax I grep fluentd

Explanation

Explanation: https://cloud.google.com/compute/docs/access/serviceaccounts#
associating_a_service_account_to_an_instance

Question 5 Choose 1

Your team has recently deployed an NGINX-based application into Google Kubernetes Engine (GKE) and has exposed it to the public via an HTTP Google Cloud Load Balancer (GCLB) ingress. You want to scale the deployment of the application's frontend using an appropriate Service Level Indicator (SLI). What should you do?

Show answerHide answer

Correct answer: C

Install the Stackdriver custom metrics adapter and configure a horizontal pod autoscaler to use the number of requests provided by the GCLB.

Explanation

Explanation: https://cloud.google.com/kubernetes-engine/docs/tutorials/autoscalingmetrics

Question 6 Choose 1

Your application runs on Google Cloud Platform (GCP). You need to implement Jenkins for deploying application releases to GCP. You want to streamline the release process, lower operational toil, and keep user data secure. What should you do?

Show answerHide answer

Correct answer: D

Implement Jenkins on Compute Engine virtual machines.

Question 7 Choose 2

You are writing a postmortem for an incident that severely affected users. You want to prevent similar incidents in the future. Which two of the following sections should you include in the postmortem? (Choose two.)

Show answerHide answer

Correct answer: A, B

An explanation of the root cause of the incident

A list of employees responsible for causing the incident

Question 8 Choose 1

Your application images are built using Cloud Build and pushed to Google Container Registry (GCR). You want to be able to specify a particular version of your application for deployment based on the release version tagged in source control. What should you do when you push the image?

Show answerHide answer

Correct answer: B

Supply the source control tag as a parameter within the image name.

Explanation

Explanation: https://cloud.google.com/container-registry/docs/pushing-and-pulling

Question 9 Choose 1

You use a multiple step Cloud Build pipeline to build and deploy your application to Google
Kubernetes Engine (GKE). You want to integrate with a third-party monitoring platform by
performing a HTTP POST of the build information to a webhook. You want to minimize the
development effort. What should you do?

Show answerHide answer

Correct answer: D

Create a Cloud Pub/Sub push subscription to the Cloud Build cloud-builds PubSub topic
to HTTP POST the build information to a webhook.

Question 10 Choose 1

You are responsible for creating and modifying the Terraform templates that define your Infrastructure. Because two new engineers will also be working on the same code, you need to define a process and adopt a tool that will prevent you from overwriting each other's code. You also want to ensure that you capture all updates in the latest version. What should you do?

Show answerHide answer

Correct answer: B

• Store your code in a Git-based version control system.
• Establish a process that includes code reviews by peers and unit testing to ensure
integrity and functionality before integration of code.
• Establish a process where the fully integrated code in the repository becomes the latest
master version.

Full mock exam

Sit the Professional-Cloud-DevOps-Engineer exam before exam day

Full-length mocks with the same number of questions and the same time limit as the real Professional-Cloud-DevOps-Engineer exam. Every attempt draws a new set of questions from the full bank, so you can keep going until you pass comfortably.

Get full Professional-Cloud-DevOps-Engineer mock exam
  • 65questions per mock
  • 105 mintime limit
  • 72questions in the bank
  • Newmock on every attempt