Google Professional Cloud DevOps Engineer Exam Practice Questions (P. 2)
- Full Access (196 questions)
- Six months of Premium Access
- Access to one million comments
- Seamless ChatGPT Integration
- Ability to download PDF files
- Anki Flashcard files for revision
- No Captcha & No AdSense
- Advanced Exam Configuration
Question #6
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?
- AAdd logic to each Cloud Build step to HTTP POST the build information to a webhook.
- BAdd a new step at the end of the pipeline in Cloud Build to HTTP POST the build information to a webhook.
- CUse Stackdriver Logging to create a logs-based metric from the Cloud Build logs. Create an Alert with a Webhook notification type.
- DCreate a Cloud Pub/Sub push subscription to the Cloud Build cloud-builds PubSub topic to HTTP POST the build information to a webhook.Most Voted
Correct Answer:
D
D

Choosing option D, which involves creating a Cloud Pub/Sub push subscription to the Cloud Build “cloud-builds” PubSub topic to HTTP POST build information, is advantageous because it leverages Pub/Sub’s inherent capabilities to efficiently handle message delivery through push subscriptions, minimizing development efforts. This method automatically sends updates to a specified webhook endpoint as they happen, bypassing the need for additional coding within each build step or setting up specific logging or alerting systems for this purpose. This preserves your resources and focus for other development tasks.
send
light_mode
delete
Question #7
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?
- ACompare the canary with a new deployment of the current production version.Most Voted
- BCompare the canary with a new deployment of the previous production version.
- CCompare the canary with the existing deployment of the current production version.
- DCompare the canary with the average performance of a sliding window of previous production versions.
Correct Answer:
D
Reference:
https://cloud.google.com/solutions/automated-canary-analysis-kubernetes-engine-spinnaker
D
Reference:
https://cloud.google.com/solutions/automated-canary-analysis-kubernetes-engine-spinnaker
send
light_mode
delete
Question #8
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?
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?
- ABucketize the request latencies into ranges, and then compute the percentile at 100 ms.
- BBucketize the request latencies into ranges, and then compute the median and 90th percentiles.
- CCount the number of home page requests that load in under 100 ms, and then divide by the total number of home page requests.Most Voted
- DCount the number of home page request that load in under 100 ms, and then divide by the total number of all web application requests.
Correct Answer:
C
Reference:
https://sre.google/workbook/implementing-slos/
C
Reference:
https://sre.google/workbook/implementing-slos/
send
light_mode
delete
Question #9
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.)
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.)
- ABefore merging new code, require 2 different peers to review the code changes.
- BAdopt the blue/green deployment strategy when releasing new code via a CD server.Most Voted
- CIntegrate a code linting tool to validate coding standards before any code is accepted into the repository.
- DRequire developers to run automated integration tests on their local development environments before release.
- EConfigure 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.Most Voted
Correct Answer:
AC
AC

Incorporating a rigorous peer review process (Option A) and a code linting tool (Option C) before merging any changes can significantly reduce errors and improve code quality. More eyes on the code means a higher chance of catching mistakes early, and linting enforces a consistent style and can catch potential errors, making your codebase more maintainable. While linting primarily addresses formatting, it also assists in standardizing code, which indirectly reduces errors before they reach production, aiding in quicker recovery during incidents.
send
light_mode
delete
Question #10
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.Most Voted
- 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 application log to a Cloud Storage bucket, and then schedule it to run via cron every 5 minutes. ג€¢ Give the developers the IAM Object Viewer access to view the logs in the specified bucket.
Correct Answer:
B
B

The correct answer is B, which involves deploying the Stackdriver logging agent and granting developers the IAM Logs Private Logs Viewer role to access Stackdriver and view logs. This setup is ideal as it also encompasses access to Data Access audit logs and Access Transparency logs, which can be crucial for comprehensive troubleshooting and security audits. It ensures developers have all necessary log access, thereby maintaining compliance and enhancing the capability to diagnose issues efficiently within a secure environment.
send
light_mode
delete
All Pages