Solution to GSP101 – Google Cloud Essential Skills: Challenge Lab Answers

Solution to GSP101 – Google Cloud Essential Skills: Challenge Lab Answers

Challenge scenario

Your company is ready to launch a brand new product! Because you are entering a totally new space, you have decided to deploy a new website as part of the product launch. The new site is complete, but the person who built the new site left the company before they could deploy it.

Your challenge

Your challenge is to deploy the site in the public cloud by completing the tasks below. You will use a simple Apache web server as a placeholder for the new site in this exercise.

Solution

Task 1&2: Create a Compute Engine instance, add necessary firewall rules.

  • Navigation menu > Compute Engine > VM instances
  • Create a virtual machine (VM) with the name “apache” and enable “allow http traffic”

Task 3: Running a basic Apache Web Server – Configure Apache2 Web Server in your instance

  • SSH into apache VM
  • run the command >>> sudo apt-get update
  • run the command >>> sudo apt install apache2
  • after, exit ssh

Task 4: Test your server

  • Click apache VM External IP and verify Apache2 Debian Default Page showed up

Congratulations!

You have successfully accomplished your challenge.