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 course 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!
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 are made available to you.
This hands-on lab lets you do the lab activities in a real cloud environment, not in a simulation or demo environment. It does so by giving you new, temporary credentials 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 (recommended) or private browser window to run this lab. This prevents 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: Use only the student account for this lab. If you use a different Google Cloud account, you may incur charges to that account.
Challenge scenario
Pet Theory, a veterinary practice, is eager to adopt serverless architecture for modernizing their current systems.
In this challenge lab, as a member of the development team, your assignment is to transition a specific service to a serverless framework. It's crucial to follow the detailed instructions given to accomplish this task successfully.
Architecture overview
For this project, Pet Theory has selected their current monolithic Billing application to undergo transformation into a serverless model.
Throughout this lab, your responsibility is to execute this architectural upgrade, ensuring a seamless transition to the serverless design.
The development team will provide either the code or an image to be deployed as part of the solution.
Developing a minimal viable product (MVP)
You will build a prototype solution for Pet Theory that meets the following high level requirement specification:
Ref
Definition of Done
1
Deploy Staging Architecture
2
Deploy Prod Architecture
3
Secure Access between components in the Prod Architecture
Provision the lab environment
During the lab, ensure the environment is provisioned to support the deployment of the resources.
Open a Cloud Shell in an Incognito Browser Window.
Set the default project for the environment:
gcloud config set project \
$(gcloud projects list --format='value(PROJECT_ID)' \
--filter='qwiklabs-gcp')
Set the region for the run deployments:
gcloud config set run/region {{{project_0.default_region | REGION}}}
Set the Cloud Run platform type:
gcloud config set run/platform managed
Clone the repo with the Pet Theory code:
git clone https://github.com/rosera/pet-theory.git && cd pet-theory/lab07
Note: You have been given access to the development repository. Note the location and use the assets to build to the stated requirement.
Task 1. Enable a public service
Overview
Set up a Rest API for the billing service. Use the information in the table below:
FIELD
VALUE
Billing Image
billing-staging-api:0.1
Billing Service
Authentication
unauthenticated
Code
pet-theory/lab07/unit-api-billing
Architecture
Using the available code, deploy the Billing Service.
Assessment
To complete this task successfully, you are required to implement the following:
Build an image using Cloud Build.
Deploy a Cloud Run service as an unauthenticated service.
Test service responds when the endpoint is accessed.
Note: Activity Tracking can take some time to register. Wait 30 seconds before retrying.
Click Check my progress to verify that you've performed the above task. Deploy a Public Billing Service
Task 2. Deploy a frontend service
Overview
Set up a Frontend Service. Use the information in the table below:
FIELD
VALUE
Image Name
frontend-staging:0.1
Service Name
Authentication
unauthenticated
Code
pet-theory/lab07/staging-frontend-billing
Architecture
Assessment
To complete this section successfully, you are required to implement the following tasks:
Build an image using Cloud Build.
Deploy the image to Cloud Run as an unauthenticated service.
Service should respond when the endpoint is accessed.
Click Check my progress to verify that you've performed the above task. Deploy the Frontend Service
Task 3. Deploy a private service
Overview
The development team updated their application and would like this deployed to the staging environment:
FIELD
VALUE
Image Name
billing-staging-api:0.2
Service Name
Repository
gcr.io
Authentication
authenticated
Code
pet-theory/lab07/staging-api-billing
Architecture
Assessment: Cloud Run development
To complete this section successfully, you are required to implement the following tasks:
Delete the existing Billing Service.
Build an image using Cloud Build.
Deploy the image to Cloud Run requiring authentication.
Assign the SERVICE_URL to an environment variable.
Click Check my progress to verify that you've performed the above task. Deploy the Billing Service
Task 6. Frontend service account
Overview
Create a new Service Account for the Frontend capable of invoking the Billing Service:
FIELD
VALUE
Service Account
Display Name
Billing Service Cloud Run Invoker
Service Name
frontend-prod-service
Role
run.invoker
Architecture
Assessment
To complete this section successfully, you are required to implement the following tasks:
Create a Service Account.
Apply Service Account for Frontend Service.
Give Service Account run.invoker permission.
Bind Account to Service.
Click Check my progress to verify that you've performed the above task. Create the Frontend Service Account
Task 7. Redeploy the frontend service
Overview
Use the new Service Account and redeploy the Frontend Service:
FIELD
VALUE
Image Name
frontend-prod:0.1
Service Name
Repository
gcr.io
Authentication
unauthenticated
Code
pet-theory/lab07/prod-frontend-billing
Service Account
Architecture
Assessment: Cloud Run development
To complete this section successfully, you are required to implement the following tasks:
Deploy the image to Cloud Run.
Enable Authentication.
Enable Service Account.
Service should respond when the endpoint is accessed.
Click Check my progress to verify that you've performed the above task. Deploy the Frontend Service
Now access the production frontend service to display the user interface.
Information on screen is consumed from the private billing service using the service account.
Congratulations!
Over this course of this challenge lab you have demonstrated your knowledge of Cloud Run and Google Cloud infrastructure. You have successfully deployed a serverless architecture for Pet Theory, a veterinary practice, and have transitioned their monolithic billing application to a serverless model.
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 UpdatedMarch 22, 2024
Lab Last Tested November 28, 2023
Copyright 2025 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.
Les ateliers créent un projet Google Cloud et des ressources pour une durée déterminée.
Les ateliers doivent être effectués dans le délai imparti et ne peuvent pas être mis en pause. Si vous quittez l'atelier, vous devrez le recommencer depuis le début.
En haut à gauche de l'écran, cliquez sur Démarrer l'atelier pour commencer.
Utilisez la navigation privée
Copiez le nom d'utilisateur et le mot de passe fournis pour l'atelier
Cliquez sur Ouvrir la console en navigation privée
Connectez-vous à la console
Connectez-vous à l'aide des identifiants qui vous ont été attribués pour l'atelier. L'utilisation d'autres identifiants peut entraîner des erreurs ou des frais.
Acceptez les conditions d'utilisation et ignorez la page concernant les ressources de récupération des données.
Ne cliquez pas sur Terminer l'atelier, à moins que vous n'ayez terminé l'atelier ou que vous ne vouliez le recommencer, car cela effacera votre travail et supprimera le projet.
Ce contenu n'est pas disponible pour le moment
Nous vous préviendrons par e-mail lorsqu'il sera disponible
Parfait !
Nous vous contacterons par e-mail s'il devient disponible
Un atelier à la fois
Confirmez pour mettre fin à tous les ateliers existants et démarrer celui-ci
Utilisez la navigation privée pour effectuer l'atelier
Ouvrez une fenêtre de navigateur en mode navigation privée pour effectuer cet atelier. Vous éviterez ainsi les conflits entre votre compte personnel et le compte temporaire de participant, qui pourraient entraîner des frais supplémentaires facturés sur votre compte personnel.
In this challenge lab, you will be tested on serverless development using Cloud Run and Cloud Build.
Durée :
1 min de configuration
·
Accessible pendant 60 min
·
Terminé après 60 min