Confirm that a Google Cloud Storage bucket exists that contains a file

Check my progress

/ 25

Confirm that a compute instance has been created that has a remote startup script called install-web.sh configured

Check my progress

/ 25

Confirm that a HTTP access firewall rule exists with tag that applies to that virtual machine

Check my progress

/ 25

Connect to the server ip-address using HTTP and get a non-error response

Check my progress

/ 25

This lab may incorporate AI tools to support your learning.

GSP301

Google Cloud 自學實驗室

總覽

在挑戰研究室中,您會在特定情境下完成一系列任務。挑戰研究室不會提供逐步說明,您將運用從課程研究室學到的技巧,自行找出方法完成任務!自動評分系統 (如本頁所示) 將根據您是否正確完成任務來提供意見回饋。

在您完成任務的期間,挑戰研究室不會介紹新的 Google Cloud 概念。您須靈活運用所學技巧,例如變更預設值或詳讀並研究錯誤訊息,解決遇到的問題。

若想滿分達標,就必須在時限內成功完成所有任務!

這個實驗室適合報名「雲端架構:設計、實作與管理」技能徽章課程的學員,或是準備 Google Cloud 認證專業 Cloud 架構師測驗的學員。準備好迎接挑戰了嗎?

挑戰情境

您負責管理貴機構的 Google Cloud 虛擬機器設定,並決定變更用來管理部署與設定機器的框架,希望修改初始化運算執行個體的開機指令碼時能更加輕鬆。您決定不直接將開機指令碼儲存在執行個體的中繼資料,而是保存於 Cloud Storage bucket,然後設定虛擬機器,指向 bucket 中的相關指令碼檔案。

我們提供了基本 bash 指令碼做為範例開機指令碼,用於安裝 Apache 網路伺服器軟體 install-web.sh。您可以透過頁面左側的「Student Resources」連結下載這個指令碼,也可以前往 gs://spls/gsp301/install-web.sh,在公開 Cloud Storage bucket 找到開機指令碼。

您的挑戰

設定 Linux Compute Engine 執行個體,以遠端開機指令碼安裝 Apache 網路伺服器軟體。如果想確認運算執行個體已成功安裝 Apache,就必須能夠在網際網路上透過 HTTP 存取這個 Compute Engine 執行個體。請務必在以下可用區中建立執行個體:

注意:為確保能準確追蹤活動,請勿修改或變更任何預先建立的實驗室資源,尤其是由實驗室監控的 Compute Engine 執行個體。

工作 1:建立儲存空間 bucket

建立儲存空間 bucket

工作 2:使用遠端開機指令碼建立 VM 執行個體

使用遠端開機指令碼建立 VM 執行個體

工作 3:建立防火牆規則來允許流量 (80/tcp)

建立防火牆規則來允許流量 (80/tcp)

工作 4:測試 VM 正在提供網路內容

測試 VM 正在提供網路內容

提示與祕訣

  • 設定執行個體中繼資料。若要瞭解如何使用 Compute Engine 執行個體中繼資料設定開機指令碼,請參閱開機指令碼執行作業說明文件頁面。
  • 確認 Compute Engine 執行個體是否在執行開機指令碼。請使用運作中虛擬機器的序列控制台,查看開機事件,確保正在執行開機指令碼。
  • 檢查權限。您的 Compute Engine 執行個體可能沒有必要的適當權限,無法讀取儲存空間 bucket 中的開機指令碼。虛擬機器需要取得與儲存空間權限相符的權限。
  • 檢查防火牆。如果開機指令碼已安裝軟體,但防火牆設定有誤,您可能會無法連線。
  • 檢查網址和位址。如果嘗試透過 HTTPS (而非 HTTP) 位址存取 Compute Engine 執行個體,或是使用不正確的 IP 位址,就無法連線至 Apache 網路伺服器。請確認網址為 http://[EXTERNAL_IP],而不是 https://[EXTERNAL_IP]http://[INTERNAL_IP]

恭喜!

恭喜!您已在本實驗室中設定 Linux Compute Engine 執行個體,以遠端開機指令碼安裝 Apache 網路伺服器軟體。此外,也將 Compute Engine 執行個體設為可在網際網路上透過 HTTP 存取。

Google Cloud 教育訓練與認證

協助您瞭解如何充分運用 Google Cloud 的技術。我們的課程會介紹專業技能和最佳做法,讓您可以快速掌握要領並持續進修。我們提供從基本到進階等級的訓練課程,並有隨選、線上和虛擬課程等選項,方便您抽空參加。認證可協助您驗證及證明自己在 Google Cloud 技術方面的技能和專業知識。

使用手冊上次更新日期:2024 年 4 月 4 日

實驗室上次測試日期:2024 年 4 月 4 日

Copyright 2026 Google LLC 保留所有權利。Google 和 Google 標誌是 Google LLC 的商標,其他公司和產品名稱則有可能是其關聯公司的商標。

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 will notify you via email when it becomes available

Great!

We will 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.

Complete this quick step to start your lab.