ExamGecko
Home Home / Google / Professional Cloud DevOps Engineer

Google Professional Cloud DevOps Engineer Practice Test - Questions Answers, Page 5

Question list
Search
Search

List of questions

Search

Related questions











You currently store the virtual machine (VM) utilization logs in Stackdriver. You need to provide an easy-to-share interactive VM utilization dashboard that is updated in real time and contains information aggregated on a quarterly basis. You want to use Google Cloud Platform solutions. What should you do?

A.
1. Export VM utilization logs from Stackdriver to BigOuery. 2. Create a dashboard in Data Studio. 3. Share the dashboard with your stakeholders.
A.
1. Export VM utilization logs from Stackdriver to BigOuery. 2. Create a dashboard in Data Studio. 3. Share the dashboard with your stakeholders.
Answers
B.
1. Export VM utilization logs from Stackdriver to Cloud Pub/Sub. 2. From Cloud Pub/Sub, send the logs to a Security Information and Event Management (SIEM) system. 3. Build the dashboards in the SIEM system and share with your stakeholders.
B.
1. Export VM utilization logs from Stackdriver to Cloud Pub/Sub. 2. From Cloud Pub/Sub, send the logs to a Security Information and Event Management (SIEM) system. 3. Build the dashboards in the SIEM system and share with your stakeholders.
Answers
C.
1. Export VM utilization logs (rom Stackdriver to BigQuery. 2. From BigQuery. export the logs to a CSV file. 3. Import the CSV file into Google Sheets. 4. Build a dashboard in Google Sheets and share it with your stakeholders.
C.
1. Export VM utilization logs (rom Stackdriver to BigQuery. 2. From BigQuery. export the logs to a CSV file. 3. Import the CSV file into Google Sheets. 4. Build a dashboard in Google Sheets and share it with your stakeholders.
Answers
D.
1. Export VM utilization logs from Stackdriver to a Cloud Storage bucket. 2. Enable the Cloud Storage API to pull the logs programmatically. 3. Build a custom data visualization application. 4. Display the pulled logs in a custom dashboard.
D.
1. Export VM utilization logs from Stackdriver to a Cloud Storage bucket. 2. Enable the Cloud Storage API to pull the logs programmatically. 3. Build a custom data visualization application. 4. Display the pulled logs in a custom dashboard.
Answers
Suggested answer: A

You are performing a semiannual capacity planning exercise for your flagship service. You expect a service user growth rate of 10% month-over-month over the next six months. Your service is fully containerized and runs on Google Cloud Platform (GCP). using a Google Kubernetes Engine (GKE) Standard regional cluster on three zones with cluster autoscaler enabled. You currently consume about 30% of your total deployed CPU capacity, and you require resilience against the failure of a zone. You want to ensure that your users experience minimal negative impact as a result of this growth or as a result of zone failure, while avoiding unnecessary costs. How should you prepare to handle the predicted growth?

A.
Verity the maximum node pool size, enable a horizontal pod autoscaler, and then perform a load test to verity your expected resource needs.
A.
Verity the maximum node pool size, enable a horizontal pod autoscaler, and then perform a load test to verity your expected resource needs.
Answers
B.
Because you are deployed on GKE and are using a cluster autoscaler. your GKE cluster will scale automatically, regardless of growth rate.
B.
Because you are deployed on GKE and are using a cluster autoscaler. your GKE cluster will scale automatically, regardless of growth rate.
Answers
C.
Because you are at only 30% utilization, you have significant headroom and you won't need to add any additional capacity for this rate of growth.
C.
Because you are at only 30% utilization, you have significant headroom and you won't need to add any additional capacity for this rate of growth.
Answers
D.
Proactively add 60% more node capacity to account for six months of 10% growth rate, and then perform a load test to make sure you have enough capacity.
D.
Proactively add 60% more node capacity to account for six months of 10% growth rate, and then perform a load test to make sure you have enough capacity.
Answers
Suggested answer: A

Explanation:

https://cloud.google.com/kubernetes-engine/docs/concepts/horizontalpodautoscaler

The Horizontal Pod Autoscaler changes the shape of your Kubernetes workload by automatically increasing or decreasing the number of Pods in response to the workload's CPU or memory consumption

You are managing an application that exposes an HTTP endpoint without using a load balancer. The latency of the HTTP responses is important for the user experience. You want to understand what HTTP latencies all of your users are experiencing. You use Stackdriver Monitoring. What should you do?

A.
* In your application, create a metric with a metricKind set to DELTA and a valueType set to DOUBLE. * In Stackdriver's Metrics Explorer, use a Slacked Bar graph to visualize the metric.
A.
* In your application, create a metric with a metricKind set to DELTA and a valueType set to DOUBLE. * In Stackdriver's Metrics Explorer, use a Slacked Bar graph to visualize the metric.
Answers
B.
* In your application, create a metric with a metricKind set to CUMULATIVE and a valueType set to DOUBLE. * In Stackdriver's Metrics Explorer, use a Line graph to visualize the metric.
B.
* In your application, create a metric with a metricKind set to CUMULATIVE and a valueType set to DOUBLE. * In Stackdriver's Metrics Explorer, use a Line graph to visualize the metric.
Answers
C.
* In your application, create a metric with a metricKind set to gauge and a valueType set to distribution. * In Stackdriver's Metrics Explorer, use a Heatmap graph to visualize the metric.
C.
* In your application, create a metric with a metricKind set to gauge and a valueType set to distribution. * In Stackdriver's Metrics Explorer, use a Heatmap graph to visualize the metric.
Answers
D.
* In your application, create a metric with a metricKind. set toMETRlc_KIND_UNSPECIFIEDanda valueType set to INT64. * In Stackdriver's Metrics Explorer, use a Stacked Area graph to visualize the metric.
D.
* In your application, create a metric with a metricKind. set toMETRlc_KIND_UNSPECIFIEDanda valueType set to INT64. * In Stackdriver's Metrics Explorer, use a Stacked Area graph to visualize the metric.
Answers
Suggested answer: C

Explanation:

https://sre.google/workbook/implementing-slos/

https://cloud.google.com/architecture/adopting-slos/

Latency is commonly measured as a distribution. Given a distribution, you can measure various percentiles. For example, you might measure the number of requests that are slower than the historical 99th percentile.

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?

A.
* Store your code in a Git-based version control system. * Establish a process that allows developers to merge their own changes at the end of each day. * Package and upload code lo a versioned Cloud Storage bucket as the latest master version.
A.
* Store your code in a Git-based version control system. * Establish a process that allows developers to merge their own changes at the end of each day. * Package and upload code lo a versioned Cloud Storage bucket as the latest master version.
Answers
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.
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.
Answers
C.
* Store your code as text files in Google Drive in a defined folder structure that organizes the files. * At the end of each day. confirm that all changes have been captured in the files within the folder structure. * Rename the folder structure with a predefined naming convention that increments the version.
C.
* Store your code as text files in Google Drive in a defined folder structure that organizes the files. * At the end of each day. confirm that all changes have been captured in the files within the folder structure. * Rename the folder structure with a predefined naming convention that increments the version.
Answers
D.
* Store your code as text files in Google Drive in a defined folder structure that organizes the files. * At the end of each day, confirm that all changes have been captured in the files within the folder structure and create a new .zip archive with a predefined naming convention. * Upload the .zip archive to a versioned Cloud Storage bucket and accept it as the latest version.
D.
* Store your code as text files in Google Drive in a defined folder structure that organizes the files. * At the end of each day, confirm that all changes have been captured in the files within the folder structure and create a new .zip archive with a predefined naming convention. * Upload the .zip archive to a versioned Cloud Storage bucket and accept it as the latest version.
Answers
Suggested answer: B

You are running an experiment to see whether your users like a new feature of a web application. Shortly after deploying the feature as a canary release, you receive a spike in the number of 500 errors sent to users, and your monitoring reports show increased latency. You want to quickly minimize the negative impact on users. What should you do first?

A.
Roll back the experimental canary release.
A.
Roll back the experimental canary release.
Answers
B.
Start monitoring latency, traffic, errors, and saturation.
B.
Start monitoring latency, traffic, errors, and saturation.
Answers
C.
Record data for the postmortem document of the incident.
C.
Record data for the postmortem document of the incident.
Answers
D.
Trace the origin of 500 errors and the root cause of increased latency.
D.
Trace the origin of 500 errors and the root cause of increased latency.
Answers
Suggested answer: A

You need to run a business-critical workload on a fixed set of Compute Engine instances for several months. The workload is stable with the exact amount of resources allocated to it. You want to lower the costs for this workload without any performance implications. What should you do?

A.
Purchase Committed Use Discounts.
A.
Purchase Committed Use Discounts.
Answers
B.
Migrate the instances to a Managed Instance Group.
B.
Migrate the instances to a Managed Instance Group.
Answers
C.
Convert the instances to preemptible virtual machines.
C.
Convert the instances to preemptible virtual machines.
Answers
D.
Create an Unmanaged Instance Group for the instances used to run the workload.
D.
Create an Unmanaged Instance Group for the instances used to run the workload.
Answers
Suggested answer: A

You encountered a major service outage that affected all users of the service for multiple hours. After several hours of incident management, the service returned to normal, and user access was restored. You need to provide an incident summary to relevant stakeholders following the Site Reliability Engineering recommended practices. What should you do first?

A.
Call individual stakeholders lo explain what happened.
A.
Call individual stakeholders lo explain what happened.
Answers
B.
Develop a post-mortem to be distributed to stakeholders.
B.
Develop a post-mortem to be distributed to stakeholders.
Answers
C.
Send the Incident State Document to all the stakeholders.
C.
Send the Incident State Document to all the stakeholders.
Answers
D.
Require the engineer responsible to write an apology email to all stakeholders.
D.
Require the engineer responsible to write an apology email to all stakeholders.
Answers
Suggested answer: B

Your company follows Site Reliability Engineering practices. You are the person in charge of Communications for a large, ongoing incident affecting your customer-facing applications. There is still no estimated time for a resolution of the outage. You are receiving emails from internal stakeholders who want updates on the outage, as well as emails from customers who want to know what is happening. You want to efficiently provide updates to everyone affected by the outage. What should you do?

A.
Focus on responding to internal stakeholders at least every 30 minutes. Commit to 'next update' times.
A.
Focus on responding to internal stakeholders at least every 30 minutes. Commit to 'next update' times.
Answers
B.
Provide periodic updates to all stakeholders in a timely manner. Commit to a 'next update' time in all communications.
B.
Provide periodic updates to all stakeholders in a timely manner. Commit to a 'next update' time in all communications.
Answers
C.
Delegate the responding to internal stakeholder emails to another member of the Incident Response Team. Focus on providing responses directly to customers.
C.
Delegate the responding to internal stakeholder emails to another member of the Incident Response Team. Focus on providing responses directly to customers.
Answers
D.
Provide all internal stakeholder emails to the Incident Commander, and allow them to manage internal communications. Focus on providing responses directly to customers.
D.
Provide all internal stakeholder emails to the Incident Commander, and allow them to manage internal communications. Focus on providing responses directly to customers.
Answers
Suggested answer: B

Explanation:

When disaster strikes, the person who declares the incident typically steps into the IC role and directs the high-level state of the incident. The IC concentrates on the 3Cs and does the following: Commands and coordinates the incident response, delegating roles as needed. By default, the IC assumes all roles that have not been delegated yet. Communicates effectively. Stays in control of the incident response. Works with other responders to resolve the incident. https://sre.google/workbook/incident-response/

Your team is designing a new application for deployment into Google Kubernetes Engine (GKE). You need to set up monitoring to collect and aggregate various application-level metrics in a centralized location. You want to use Google Cloud Platform services while minimizing the amount of work required to set up monitoring. What should you do?

A.
Publish various metrics from the application directly to the Slackdriver Monitoring API, and then observe these custom metrics in Stackdriver.
A.
Publish various metrics from the application directly to the Slackdriver Monitoring API, and then observe these custom metrics in Stackdriver.
Answers
B.
Install the Cloud Pub/Sub client libraries, push various metrics from the application to various topics, and then observe the aggregated metrics in Stackdriver.
B.
Install the Cloud Pub/Sub client libraries, push various metrics from the application to various topics, and then observe the aggregated metrics in Stackdriver.
Answers
C.
Install the OpenTelemetry client libraries in the application, configure Stackdriver as the export destination for the metrics, and then observe the application's metrics in Stackdriver.
C.
Install the OpenTelemetry client libraries in the application, configure Stackdriver as the export destination for the metrics, and then observe the application's metrics in Stackdriver.
Answers
D.
Emit all metrics in the form of application-specific log messages, pass these messages from the containers to the Stackdriver logging collector, and then observe metrics in Stackdriver.
D.
Emit all metrics in the form of application-specific log messages, pass these messages from the containers to the Stackdriver logging collector, and then observe metrics in Stackdriver.
Answers
Suggested answer: A

Explanation:

https://cloud.google.com/kubernetes-engine/docs/concepts/custom-and-external-metrics#custom_metrics

https://github.com/GoogleCloudPlatform/k8s-stackdriver/blob/master/custom-metrics-stackdriver-adapter/README.md

Your application can report a custom metric to Cloud Monitoring. You can configure Kubernetes to respond to these metrics and scale your workload automatically. For example, you can scale your application based on metrics such as queries per second, writes per second, network performance, latency when communicating with a different application, or other metrics that make sense for your workload. https://cloud.google.com/kubernetes-engine/docs/concepts/custom-and-external-metrics

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?

A.
Create a custom builder for Cloud Build that will only push images to gcr.io/altostrat-images.
A.
Create a custom builder for Cloud Build that will only push images to gcr.io/altostrat-images.
Answers
B.
Use a Binary Authorization policy that includes the whitelist name pattern gcr.io/attostrat-images/.
B.
Use a Binary Authorization policy that includes the whitelist name pattern gcr.io/attostrat-images/.
Answers
C.
Add logic to the deployment pipeline to check that all manifests contain only images from gcr.io/altostrat-images.
C.
Add logic to the deployment pipeline to check that all manifests contain only images from gcr.io/altostrat-images.
Answers
D.
Add a tag to each image in gcr.io/altostrat-images and check that this tag is present when the image is deployed.
D.
Add a tag to each image in gcr.io/altostrat-images and check that this tag is present when the image is deployed.
Answers
Suggested answer: B
Total 166 questions
Go to page: of 17