Initialize App Engine and download the Hello World app

Підтвердити виконання

/ 30

Deploy the application

Підтвердити виконання

/ 35

Deploy updates to your application

Підтвердити виконання

/ 35

This lab may incorporate AI tools to support your learning.
This content is not yet optimized for mobile devices.
For the best experience, please visit us on a desktop computer using a link sent by email.

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.

Before you begin

  1. Labs create a Google Cloud project and resources for a fixed time
  2. Labs have a time limit and no pause feature. If you end the lab, you'll have to restart from the beginning.
  3. On the top left of your screen, click Start lab to begin

Use private browsing

  1. Copy the provided Username and Password for the lab
  2. Click Open console in private mode

Sign in to the Console

  1. Sign in using your lab credentials. Using other credentials might cause errors or incur charges.
  2. Accept the terms, and skip the recovery resource page
  3. Don't click End lab unless you've finished the lab or want to restart it, as it will clear your work and remove the project

This content is not currently available

We can notify you via email when it becomes available

Great!

We can contact you via email if it becomes available

One lab at a time

Confirm to end all existing labs and start this one

Use private browsing to run the lab

Using an Incognito or private browser window is the best way 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.