Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Exam (elaborations)

DEVOPS GCP (GOOGLE CLOUD) EXAM QUESTIONS AND ANSWERS

Rating
-
Sold
-
Pages
16
Grade
A+
Uploaded on
11-02-2025
Written in
2024/2025

DEVOPS GCP (GOOGLE CLOUD) EXAM QUESTIONS AND ANSWERS

Institution
Google Cloud
Course
Google Cloud

Content preview

DEVOPS GCP (GOOGLE CLOUD) EXAM
QUESTIONS AND ANSWERS
You are running an application in a virtual machine (VM) using a custom Debian image.
The image has the Stack driver Logging agent installed. The VM has the cloud-platform
scope. The application is logging information via syslog. You want to use Stack driver
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?
A. Look for the agent‫ג‬€™s test log entry in the Logs Viewer.
B. Install the most recent version of the Stack driver agent.
C. Verify the VM service account access scope includes the monitoring. Write scope.
D. SSH to the VM and execute the following commands on your VM: ps ax | grep
fluentd. - ANSWER-C. Verify the VM service account access scope includes the
monitoring. Write scope.

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?
A. Add logic to each Cloud Build step to HTTP POST the build information to a
webhook.
B. Add a new step at the end of the pipeline in Cloud Build to HTTP POST the build
information to a webhook.
C. Use Stack driver Logging to create a logs-based metric from the Cloud Build logs.
Create an Alert with a Webhook notification type.
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. - 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.

You use Spinnaker to deploy your application and have created a canary deployment
stage in the pipeline. Your application has an in-memory cache that loads objects at
start time. You want to automate the comparison of the canary version against the
production version. How should you configure the canary analysis?
A. Compare the canary with a new deployment of the current production version.
B. Compare the canary with a new deployment of the previous production version.
C. Compare the canary with the existing deployment of the current production version.
D. Compare the canary with the average performance of a sliding window of previous
production versions. - ANSWER-A. Compare the canary with a new deployment of the
current production version.

You support a high-traffic web application and want to ensure that the home page loads
in a timely manner. As a first step, you decide to implement a Service

,Level Indicator (SLI) to represent home page request latency with an acceptable page
load time set to 100 ms. What is the Google-recommended way of calculating this SLI?
A. Bucketize the request latencies into ranges, and then compute the percentile at 100
ms.
B. Bucketize the request latencies into ranges, and then compute the median and 90th
percentiles.
C. Count the number of home page requests that load in under 100 ms, and then divide
by the total number of home page requests.
D. Count the number of home page request that load in under 100 ms, and then divide
by the total number of all web application request. - ANSWER-C. Count the number of
home page requests that load in under 100 ms, and then divide by the total number of
home page requests.

You deploy a new release of an internal application during a weekend maintenance
window when there is minimal user tragic. After the window ends, you learn that one of
the new features isn't working as expected in the production environment. After an
extended outage, you roll back the new release and deploy a fix.You want to modify
your release process to reduce the mean time to recovery so you can avoid extended
outages in the future. What should you do? (Choose two.)
A. Before merging new code, require 2 different peers to review the code changes.
B. Adopt the blue/green deployment strategy when releasing new code via a CD server.
C. Integrate a code linting tool to validate coding standards before any code is accepted
into the repository.
D. Require developers to run automated integration tests on their local development
environments before release.
E. Configure a CI server. Add a suite of unit tests to your code - ANSWER-B. Adopt the
blue/green deployment strategy when releasing new code via a CD server.
E. Configure a CI server. Add a suite of unit tests to your code and have your CI server
run them on commit and verify any changes.

You have a pool of application servers running on Compute Engine. You need to
provide a secure solution that requires the least amount of configuration and allows
developers to easily access application logs for troubleshooting. How would you
implement the solution on GCP?
A. ‫ג‬€¢ Deploy the Stackdriver logging agent to the application servers. ‫ג‬€¢ Give the
developers the IAM Logs Viewer role to access Stackdriver and view logs.
B. ‫ג‬€¢ Deploy the Stackdriver logging agent to the application servers. ‫ג‬€¢ Give the
developers the IAM Logs Private Logs Viewer role to access Stackdriver and view logs.
C. ‫ג‬€¢ Deploy the Stackdriver monitoring agent to the application servers. ‫ג‬€¢ Give the
developers the IAM Monitoring Viewer role to access Stackdriver and view metrics.
D. ‫ג‬€¢ Install the gsutil command line tool on your application servers. ‫ג‬€¢ Write a script
using gsutil to upload your appli - ANSWER-A. ‫ג‬€¢ Deploy the Stackdriver logging
agent to the application servers. ‫ג‬€¢ Give the developers the IAM Logs Viewer role to
access Stackdriver and view logs.

, 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.
B. Configure your network services on the Standard Tier.
C. Configure your Kubernetes duster as a Private Cluster.
D. Configure a Google Cloud HTTP Load Balancer as Ingress. - ANSWER-D. Configure
a Google Cloud HTTP Load Balancer as Ingress.

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 to explain what happened.
B. Develop a post-mortem to be distributed to stakeholders.
C. Send the Incident State Document to all the stakeholders.
D. Require the engineer responsible to write an apology email to all stakeholders. -
ANSWER-B. Develop a post-mortem to be distributed to stakeholders.

You are performing a semi-annual 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. Verify the maximum node pool size, enable a horizontal pod autoscaler, and then
perform a load test to verify your expected resource needs.
B. Because you are deployed on GKE and are using a cluster autoscaler, your G -
ANSWER-A. Verify the maximum node pool size, enable a horizontal pod autoscaler,
and then perform a load test to verify your expected resource needs.

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.
B. Use Cloud Pub/Sub to bigger a Spinnaker pipeline.
C. Use a custom builder in Cloud Build to trigger Jenkins pipeline.
D. Use Cloud Pub/Sub to trigger a custom deployment service running in Google
Kubernetes Engine (GKE).
Reveal Solution Discussion 10 - ANSWER-B. Use Cloud Pub/Sub to bigger a Spinnaker
pipeline.

Written for

Institution
Google Cloud
Course
Google Cloud

Document information

Uploaded on
February 11, 2025
Number of pages
16
Written in
2024/2025
Type
Exam (elaborations)
Contains
Questions & answers

Subjects

CA$24.32
Get access to the full document:

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF


Also available in package deal

Get to know the seller

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
biggdreamer Havard School
Follow You need to be logged in order to follow users or courses
Sold
274
Member since
2 year
Number of followers
67
Documents
18340
Last sold
18 hours ago

4.0

43 reviews

5
24
4
7
3
6
2
2
1
4

Recently viewed by you

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Frequently asked questions