menu
arrow_back

Optimizing Cost with Google Cloud Storage

Optimizing Cost with Google Cloud Storage

1 个小时 7 个积分

GSP649

Google Cloud Self-Paced Labs

Overview

In this lab, you use Cloud Functions and Cloud Scheduler to identify and clean up wasted cloud resources. You trigger a Cloud Function to migrate a storage bucket from a Cloud Monitoring alerting policy to a less expensive storage class.

Google Cloud provides storage object lifecycle rules that automatically moves objects to different storage classes based on a set of attributes, such as their creation date or live state. However, these rules can’t take into account whether the objects have been accessed. Sometimes, you might want to move newer objects to Nearline storage if they haven’t been accessed for a certain period of time.

What you'll do

  • Create two storage buckets, add a file to the serving-bucket, and generate traffic against it.

  • Create a Cloud Monitoring dashboard to visualize bucket utilization.

  • Deploy a Cloud Function to migrate the idle bucket to a less expensive storage class, and trigger the function by using a payload intended to mock a notification received from a Cloud alerting policy.

加入 Qwiklabs 即可阅读本实验的剩余内容…以及更多精彩内容!

  • 获取对“Google Cloud Console”的临时访问权限。
  • 200 多项实验,从入门级实验到高级实验,应有尽有。
  • 内容短小精悍,便于您按照自己的节奏进行学习。
加入以开始此实验
分数

—/100

Enable the Cloud Scheduler API

运行步骤

/ 10

Create a Cloud Storage bucket

运行步骤

/ 10

Make bucket public

运行步骤

/ 10

Create another cloud storage bucket

运行步骤

/ 10

Deploy cloud function

运行步骤

/ 30

Confirm the migration of bucket to Nearline.

运行步骤

/ 30