ExamGecko
Home Home / Google / Professional Cloud DevOps Engineer

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

Question list
Search
Search

List of questions

Search

Related questions











You manage an application that is writing logs to Stackdriver Logging. You need to give some team members the ability to export logs. What should you do?

A.
Grant the team members the IAM role of logging.configWriter on Cloud IAM.
A.
Grant the team members the IAM role of logging.configWriter on Cloud IAM.
Answers
B.
Configure Access Context Manager to allow only these members to export logs.
B.
Configure Access Context Manager to allow only these members to export logs.
Answers
C.
Create and grant a custom IAM role with the permissions logging.sinks.list and logging.sink.get.
C.
Create and grant a custom IAM role with the permissions logging.sinks.list and logging.sink.get.
Answers
D.
Create an Organizational Policy in Cloud IAM to allow only these members to create log exports.
D.
Create an Organizational Policy in Cloud IAM to allow only these members to create log exports.
Answers
Suggested answer: A

Explanation:

https://cloud.google.com/logging/docs/access-control

The logging.configWriter role grants permissions to create, update, and delete log exports.This is the correct role to give team members who need to export logs2.

You support the backend of a mobile phone game that runs on a Google Kubernetes Engine (GKE) cluster. The application is serving HTTP requests from users. You need to implement a solution that will reduce the network cost. What should you do?

A.
Configure the VPC as a Shared VPC Host project.
A.
Configure the VPC as a Shared VPC Host project.
Answers
B.
Configure your network services on the Standard Tier.
B.
Configure your network services on the Standard Tier.
Answers
C.
Configure your Kubernetes duster as a Private Cluster.
C.
Configure your Kubernetes duster as a Private Cluster.
Answers
D.
Configure a Google Cloud HTTP Load Balancer as Ingress.
D.
Configure a Google Cloud HTTP Load Balancer as Ingress.
Answers
Suggested answer: B

Explanation:

The Standard Tier network service offers lower network costs than the Premium Tier.This is the correct option to reduce the network cost for the application3.

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?

A.
Configure the horizontal pod autoscaler to use the average response time from the Liveness and Readiness probes.
A.
Configure the horizontal pod autoscaler to use the average response time from the Liveness and Readiness probes.
Answers
B.
Configure the vertical pod autoscaler in GKE and enable the cluster autoscaler to scale the cluster as pods expand.
B.
Configure the vertical pod autoscaler in GKE and enable the cluster autoscaler to scale the cluster as pods expand.
Answers
C.
Install the Stackdriver custom metrics adapter and configure a horizontal pod autoscaler to use the number of requests provided by the GCLB.
C.
Install the Stackdriver custom metrics adapter and configure a horizontal pod autoscaler to use the number of requests provided by the GCLB.
Answers
D.
Expose the NGINX stats endpoint and configure the horizontal pod autoscaler to use the request metrics exposed by the NGINX deployment.
D.
Expose the NGINX stats endpoint and configure the horizontal pod autoscaler to use the request metrics exposed by the NGINX deployment.
Answers
Suggested answer: C

Explanation:

https://cloud.google.com/kubernetes-engine/docs/tutorials/autoscaling-metrics

The Google Cloud HTTP Load Balancer (GCLB) provides metrics on the number of requests and the response latency for each backend service. These metrics can be used as custom metrics for the horizontal pod autoscaler (HPA) to scale the deployment based on the load. This is the correct solution to use an appropriate SLI for scaling.

Your company experiences bugs, outages, and slowness in its production systems. Developers use the production environment for new feature development and bug fixes. Configuration and experiments are done in the production environment, causing outages for users. Testers use the production environment for load testing, which often slows the production systems. You need to redesign the environment to reduce the number of bugs and outages in production and to enable testers to load test new features. What should you do?

A.
Create an automated testing script in production to detect failures as soon as they occur.
A.
Create an automated testing script in production to detect failures as soon as they occur.
Answers
B.
Create a development environment with smaller server capacity and give access only to developers and testers.
B.
Create a development environment with smaller server capacity and give access only to developers and testers.
Answers
C.
Secure the production environment to ensure that developers can't change it and set up one controlled update per year.
C.
Secure the production environment to ensure that developers can't change it and set up one controlled update per year.
Answers
D.
Create a development environment for writing code and a test environment for configurations, experiments, and load testing.
D.
Create a development environment for writing code and a test environment for configurations, experiments, and load testing.
Answers
Suggested answer: D

Explanation:

Creating a development environment for writing code and a test environment for configurations, experiments, and load testing is the best practice to reduce the number of bugs and outages in production and to enable testers to load test new features. This way, the production environment is isolated from changes that could affect its stability and performance.

Your company follows Site Reliability Engineering practices. You are the Incident Commander for a new. customer-impacting incident. You need to immediately assign two incident management roles to assist you in an effective incident response. What roles should you assign?

Choose 2 answers

A.
Operations Lead
A.
Operations Lead
Answers
B.
Engineering Lead
B.
Engineering Lead
Answers
C.
Communications Lead
C.
Communications Lead
Answers
D.
Customer Impact Assessor
D.
Customer Impact Assessor
Answers
E.
External Customer Communications Lead
E.
External Customer Communications Lead
Answers
Suggested answer: A, C

Explanation:

https://sre.google/workbook/incident-response/

'The main roles in incident response are the Incident Commander (IC), Communications Lead (CL), and Operations or Ops Lead (OL).'

The Operations Lead is responsible for managing the operational aspects of the incident, such as deploying fixes, rolling back changes, or restoring backups. The External Customer Communications Lead is not a standard role in incident response, but it could be delegated by the Communications Lead if needed.

Your company follows Site Reliability Engineering principles. You are writing a postmortem for an incident, triggered by a software change, that severely affected users. You want to prevent severe incidents from happening in the future. What should you do?

A.
Identify engineers responsible for the incident and escalate to their senior management.
A.
Identify engineers responsible for the incident and escalate to their senior management.
Answers
B.
Ensure that test cases that catch errors of this type are run successfully before new software releases.
B.
Ensure that test cases that catch errors of this type are run successfully before new software releases.
Answers
C.
Follow up with the employees who reviewed the changes and prescribe practices they should follow in the future.
C.
Follow up with the employees who reviewed the changes and prescribe practices they should follow in the future.
Answers
D.
Design a policy that will require on-call teams to immediately call engineers and management to discuss a plan of action if an incident occurs.
D.
Design a policy that will require on-call teams to immediately call engineers and management to discuss a plan of action if an incident occurs.
Answers
Suggested answer: B

Explanation:

The best way to prevent severe incidents from happening in the future is to ensure that test cases that catch errors of this type are run successfully before new software releases. This is aligned with the Site Reliability Engineering principle of testing for reliability.

Your team is designing a new application for deployment both inside and outside Google Cloud Platform (GCP). You need to collect detailed metrics such as system resource utilization. You want to use centralized GCP services while minimizing the amount of work required to set up this collection system. What should you do?

A.
Import the Stackdriver Profiler package, and configure it to relay function timing data to Stackdriver for further analysis.
A.
Import the Stackdriver Profiler package, and configure it to relay function timing data to Stackdriver for further analysis.
Answers
B.
Import the Stackdriver Debugger package, and configure the application to emit debug messages with timing information.
B.
Import the Stackdriver Debugger package, and configure the application to emit debug messages with timing information.
Answers
C.
Instrument the code using a timing library, and publish the metrics via a health check endpoint that is scraped by Stackdriver.
C.
Instrument the code using a timing library, and publish the metrics via a health check endpoint that is scraped by Stackdriver.
Answers
D.
Install an Application Performance Monitoring (APM) tool in both locations, and configure an export to a central data storage location for analysis.
D.
Install an Application Performance Monitoring (APM) tool in both locations, and configure an export to a central data storage location for analysis.
Answers
Suggested answer: A

Explanation:

The easiest way to collect detailed metrics such as system resource utilization is to import the Stackdriver Profiler package, and configure it to relay function timing data to Stackdriver for further analysis. This way, you can use centralized GCP services without modifying your code or setting up additional tools.

Your application images are built and pushed to Google Container Registry (GCR). You want to build an automated pipeline that deploys the application when the image is updated while minimizing the development effort. What should you do?

A.
Use Cloud Build to trigger a Spinnaker pipeline.
A.
Use Cloud Build to trigger a Spinnaker pipeline.
Answers
B.
Use Cloud Pub/Sub to trigger a Spinnaker pipeline.
B.
Use Cloud Pub/Sub to trigger a Spinnaker pipeline.
Answers
C.
Use a custom builder in Cloud Build to trigger a Jenkins pipeline.
C.
Use a custom builder in Cloud Build to trigger a Jenkins pipeline.
Answers
D.
Use Cloud Pub/Sub to trigger a custom deployment service running in Google Kubernetes Engine (GKE).
D.
Use Cloud Pub/Sub to trigger a custom deployment service running in Google Kubernetes Engine (GKE).
Answers
Suggested answer: B

Explanation:

https://cloud.google.com/architecture/continuous-delivery-toolchain-spinnaker-cloud

https://spinnaker.io/guides/user/pipeline/triggers/pubsub/

The most efficient way to build an automated pipeline that deploys the application when the image is updated is to use Cloud Pub/Sub to trigger a Spinnaker pipeline. This way, you can leverage the built-in integration between GCR and Cloud Pub/Sub, and use Spinnaker as a continuous delivery platform for deploying your application .

You support a high-traffic web application that runs on Google Cloud Platform (GCP). You need to measure application reliability from a user perspective without making any engineering changes to it. What should you do?

Choose 2 answers

A.
Review current application metrics and add new ones as needed.
A.
Review current application metrics and add new ones as needed.
Answers
B.
Modify the code to capture additional information for user interaction.
B.
Modify the code to capture additional information for user interaction.
Answers
C.
Analyze the web proxy logs only and capture response time of each request.
C.
Analyze the web proxy logs only and capture response time of each request.
Answers
D.
Create new synthetic clients to simulate a user journey using the application.
D.
Create new synthetic clients to simulate a user journey using the application.
Answers
E.
Use current and historic Request Logs to trace customer interaction with the application.
E.
Use current and historic Request Logs to trace customer interaction with the application.
Answers
Suggested answer: D, E

Explanation:

The most effective ways to measure application reliability from a user perspective without making any engineering changes are to create new synthetic clients to simulate a user journey using the application, and to use current and historic Request Logs to trace customer interaction with the application. These methods can help you monitor the availability, latency, and errors of your application from an end-user perspective .

You support an application deployed on Compute Engine. The application connects to a Cloud SQL instance to store and retrieve dat

a. After an update to the application, users report errors showing database timeout messages. The number of concurrent active users remained stable. You need to find the most probable cause of the database timeout. What should you do?

A.
Check the serial port logs of the Compute Engine instance.
A.
Check the serial port logs of the Compute Engine instance.
Answers
B.
Use Stackdriver Profiler to visualize the resources utilization throughout the application.
B.
Use Stackdriver Profiler to visualize the resources utilization throughout the application.
Answers
C.
Determine whether there is an increased number of connections to the Cloud SQL instance.
C.
Determine whether there is an increased number of connections to the Cloud SQL instance.
Answers
D.
Use Cloud Security Scanner to see whether your Cloud SQL is under a Distributed Denial of Service (DDoS) attack.
D.
Use Cloud Security Scanner to see whether your Cloud SQL is under a Distributed Denial of Service (DDoS) attack.
Answers
Suggested answer: C

Explanation:

The most probable cause of the database timeout is an increased number of connections to the Cloud SQL instance. This could happen if the application does not close connections properly or if it creates too many connections at once. You can check the number of connections to the Cloud SQL instance using Cloud Monitoring or Cloud SQL Admin API .

Total 166 questions
Go to page: of 17