Initialize App Engine and download the Hello World app

Vérifier ma progression

/ 30

Deploy the application

Vérifier ma progression

/ 35

Deploy updates to your application

Vérifier ma progression

/ 35

Cet atelier peut intégrer des outils d'IA pour vous accompagner dans votre apprentissage.
Ce contenu n'est pas encore optimisé pour les appareils mobiles.
Pour une expérience optimale, veuillez accéder à notre site sur un ordinateur de bureau en utilisant un lien envoyé par e-mail.

ARC112

Google Cloud self-paced labs

Overview

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!

Setup and requirements

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 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

You're a junior cloud engineer who is just starting out in your career. So far you have been helping teams create and manage Google Cloud resources.

You are expected to have the skills and knowledge for these tasks.

Your challenge

For this challenge, you are asked to use Google App Engine to deploy a basic web application in your choice of language (either Python, PHP, or Golang/Go).

You need to:

  • Initialize Google App Engine in the specified region
  • Download a sample application in Cloud Shell
  • Deploy the application
  • Update the code and redeploy the application

Each task is described in detail below, good luck!

Task 1. Initialize App Engine and download the Hello World app

  1. In the Google Cloud Console, click Activate Cloud Shell (Activate Cloud Shell icon) at the top of the Google Cloud console.
Note: Run all subsequent commands in this lab inside Cloud Shell.
  1. Initialize your App Engine application in the region:
gcloud app create --region={{{primary_project.startup_script.app_gcp_region | Region}}}
  1. Download a simple Hello World app by running git clone <Repository_URL> according to your choice of language in Cloud Shell at your $HOME directory (~/):

    Language Repository Target Sample Directory
    Python https://github.com/GoogleCloudPlatform/python-docs-samples.git python-docs-samples/appengine/standard_python3/hello_world
    PHP https://github.com/GoogleCloudPlatform/php-docs-samples.git php-docs-samples/appengine/standard/helloworld
    Golang/Go https://github.com/GoogleCloudPlatform/golang-samples.git golang-samples/appengine/go11x/helloworld
  2. Navigate to the directory containing the helloworld sample code.

Click Check my progress to verify the objective. Initialize App Engine and download the Hello World app

Task 2. Deploy your application

For this task, you need to deploy the helloworld app to Google App Engine in the region.

  1. Navigate from the root directory to where your application's app.yaml file is located.
Note:
  • Deploy the application to the App Engine standard environment.
  • To prevent exceeding project instance quotas across deployments, limit maximum instances by appending automatic_scaling: max_instances: 1 to app.yaml:
    cat << 'EOF' >> app.yaml
    
    automatic_scaling:
      max_instances: 1
    EOF
  • If using PHP, update the runtime version in app.yaml to an active standard runtime (e.g., php83 or php82) using sed -i 's/php81/php83/g' app.yaml.
  1. Deploy the application to App Engine:
gcloud app deploy --quiet

View your application

  1. To launch and view the application in your browser, enter the following command:
gcloud app browse
  1. Click on the link that is provided. Your application is deployed and you can read the default message in your browser.

Click Check my progress to verify the objective. Deploy the application

Task 3. Deploy updates to your application

  1. Update your application code (main.py, index.php, or helloworld.go) to change the default greeting message to .

  2. Redeploy your application to Google App Engine:

gcloud app deploy --quiet

Click Check my progress to verify the objective. Deploy updates to your application

Congratulations!

Deploy and Manage Applications on Google App Engine badge

You have successfully deployed a basic Hello World web application to Google App Engine.

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 29, 2026

Lab Last Tested September 29, 2026

Copyright 2026 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.

Avant de commencer

  1. Les ateliers créent un projet Google Cloud et des ressources pour une durée déterminée.
  2. 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.
  3. En haut à gauche de l'écran, cliquez sur Démarrer l'atelier pour commencer.

Utilisez la navigation privée

  1. Copiez le nom d'utilisateur et le mot de passe fournis pour l'atelier
  2. Cliquez sur Ouvrir la console en navigation privée

Connectez-vous à la console

  1. 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.
  2. Acceptez les conditions d'utilisation et ignorez la page concernant les ressources de récupération des données.
  3. 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 pouvons vous prévenir par e-mail lorsqu'il sera disponible

Parfait !

Nous pouvons vous contacter 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

Le meilleur moyen d'exécuter cet atelier consiste à utiliser une fenêtre de navigation privée. 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.