Measure Site Reliability using Cloud Operations Suite: Challenge Lab

Join Sign in

Measure Site Reliability using Cloud Operations Suite: Challenge Lab

1 hour 30 minutes 5 Credits


Google Cloud self-paced labs logo


In a challenge lab you’re given a scenario and a set of tasks. Instead of following step-by-step instructions, you will use the skills learned from the labs in the quest to figure out how to complete the tasks on your own! An automated scoring system (shown on this page) will provide feedback on whether you have completed your tasks correctly.

When you take a challenge lab, you will not be taught new Google Cloud concepts. You are expected to extend your learned skills, like changing default values and reading and researching error messages to fix your own mistakes.

To score 100% you must successfully complete all tasks within the time period!

This lab is recommended for students enrolled in the Measure Site Reliability using Cloud Operations Suite skill badge quest. Are you ready for the challenge?


Before you click the Start Lab button

Read these instructions. Labs are timed and you cannot pause them. The timer, which starts when you click Start Lab, shows how long Google Cloud resources will be made available to you.

This hands-on lab lets you do the lab activities yourself in a real cloud environment, not in a simulation or demo environment. It does so by giving you new, temporary credentials that you use to sign in and access Google Cloud for the duration of the lab.

To complete this lab, you need:

  • Access to a standard internet browser (Chrome browser recommended).
Note: Use an Incognito or private browser window to run this lab. This prevents any conflicts between your personal account and the Student account, which may cause extra charges incurred to your personal account.
  • Time to complete the lab---remember, once you start, you cannot pause a lab.
Note: If you already have your own personal Google Cloud account or project, do not use it for this lab to avoid extra charges to your account.

Task 1. Create a logs-based metric

  • Create a logs-based metric with the name "Application_Error" and severity "Error". Connect to your application which is deployed to a kubernetes cluster named cloud-ops-sandbox to find and trap the application issue. Create a logs-based metric for the service with the error.

  1. currencyservice

  2. adservice

  3. recommendationservice

  4. paymentservice

Create a logs-based metric

Task 2. Fix the application issue

Based on your findings from the Cloud Trace metric, which service has the issue?

  1. currencyservice

  2. adservice

  3. recommendationservice

  4. paymentservice

  • Connect to the kubernetes cluster and run the following commands to remediate the issue.
Note: Remember to put the service facing the issue in here {REPLACE WITH CORRECT SERVICE} and remove the curly braces. kubectl set env deployment/{REPLACE WITH CORRECT SERVICE} MAX_RESPONSES- kubectl delete pod $(kubectl get pod -l app={REPLACE WITH CORRECT SERVICE} -o jsonpath='{.items[0]}') kubectl wait --for=condition=available --timeout=600s deployment/{REPLACE WITH CORRECT SERVICE} Service no longer faulty after remediation efforts taken.


Measure Site Reliability using Cloud Operations Suite badge

Earn Your Next Skill Badge

This self-paced lab is part of the Measure Site Reliability using Cloud Operations Suite skill badge quest. Completing this skill badge quest earns you the badge above, to recognize your achievement. Share your badge on your resume and social platforms, and announce your accomplishment using #GoogleCloudBadge.

This skill badge quest is part of Google’s Cloud DevOps Engineer learning path. If you have already completed the other skill badge quests in this learning path, search the catalog for 20+ other skill badge quests in which you can enroll.

Google Cloud training and certification

...helps you make the most of Google Cloud technologies. Our classes include technical skills and best practices to help you get up to speed quickly and continue your learning journey. We offer fundamental to advanced level training, with on-demand, live, and virtual options to suit your busy schedule. Certifications help you validate and prove your skill and expertise in Google Cloud technologies.

Manual Last Updated: September 25, 2022

Lab Last Tested: March 23, 2023

Copyright 2023 Google LLC All rights reserved. Google and the Google logo are trademarks of Google LLC. All other company and product names may be trademarks of the respective companies with which they are associated.