Host a Static Website Using a Cloud Storage Bucket and Cloud CDN

Lab Steps

lock
Signing In to Google Cloud Console
lock
Creating a Cloud Storage Bucket from the Console
lock
Uploading the Website Files to the Bucket
lock
Granting Public Access to Your Website's Files
lock
Creating a Load Balancer and Associating a CDN Distribution
lock
Testing the Functionality of the Website

The hands-on lab is part of this learning path

Google Professional Cloud Developer Exam Preparation
course-steps
13
certification
1
lab-steps
11

Ready for the real environment experience?

DifficultyBeginner
Time Limit45m
Students75
Ratings
5/5
starstarstarstarstar

Description

Google Cloud Storage is one of the most used GCP services. It allows users to create buckets and store objects into them. Because a static website is composed of simple HTML, CSS, and JavaScript files, you can upload them into a cloud storage bucket and serve your static website from a single storage bucket. Using a cloud storage bucket for serving your website is a good choice instead of using a server because it allows you to deep-handle the security of the objects you upload, it allows you not to have a standard monthly fee but you only pay for the storage spaces you are using, and you can distribute your content within a single region, dual-region, or multi-region. In this lab, you will create a regional cloud storage bucket and you will upload the files of your static website to it. You will then create a load balancer and a CDN distribution to be able to have an efficient caching and file serving approach.

Learning Objectives

Upon completion of this lab you will be able to:

  • Create a storage bucket and upload files to it
  • Make the objects inside the bucket publicly accessible
  • Define a load balancer to balance the traffic to your bucket
  • Create a CDN that points to the load balancer

Intended Audience

This lab is intended for:

  • Google Cloud Professional Cloud Developer (PCD) certification candidates
  • Individuals who want to improve their skills in content delivery solutions
  • Solutions architects who want to host static websites and globally delivery them

Prerequisites

This lab has no prerequisites.

Environment before
PREVIEW
arrow_forward
Environment after
PREVIEW

About the Author

Students2429
Labs23
Learning paths1

Stefano studies Computer Science and is passionate about technology. He loves working with Cloud services and learning all the best practices for them. Google Cloud Platform and Amazon Web Services are the cloud providers he prefers. He is a Google Cloud Certified Associate Cloud Engineer. Node.js is the programming language he always uses to code. When he's not involved in studying or working, Stefano loves riding his motorbike and exploring new places.