Overview

Google Cloud is a suite of cloud services hosted on Google's infrastructure. From computing and storage, to data analytics, machine learning, and networking, Google Cloud offers a wide variety of services and APIs that can be integrated with any cloud-computing application or project, from personal to enterprise-grade.

In this introductory-level lab, you will take your first steps with Google Cloud by getting hands-on practice with the Cloud Console—an in-browser UI that lets you access and manage Google Cloud services. You will identify key features of Google Cloud and also learn about the details of the Qwiklabs environment. If you are new to cloud computing or looking for an overview of Google Cloud and Qwiklabs, you are in the right place. Read on to learn about the specifics of this lab and areas that you will get hands-on practice with.

What you will learn

In this lab, you will do the following:

  • Learn about the Qwiklabs platform, and identify key features of a lab environment.

  • Learn about (and possibly purchase) Qwiklabs credits, and launch an instance of a lab.

  • Learn how to access the Cloud Console with specific credentials.

  • Learn about Google Cloud projects, and identify common misconceptions about them.

  • Learn how to use the Google Cloud Navigation menu to identify types of Google Cloud services.

  • Learn about primitive roles, and use the Cloud IAM service to inspect actions available to specific users.

  • Learn about Cloud Shell, and run commands that use the gcloud toolkit.

  • Learn about the API library, and examine its chief features.

  • Use tools that are pre-installed in Cloud Shell, and run commands like touchnano, and cat to create, edit, and output the content of files.

Prerequisites

This is an introductory-level lab and the first lab you should take if you're unfamiliar with Google Cloud or Qwiklabs. If you are already experienced with Qwiklabs and the Cloud Console, consider taking one of the following labs:

If you decide to take one, be sure to end this lab now.

If you have a personal or corporate Google Cloud account or project, sign out of that account. If you stay logged in to your personal/corporate account and run the lab in the same browser, your credentials could get confused, resulting in get logged out of the lab accidentally.

If you are use a Pixelbook, run your lab an Incognito window.

Qwiklabs fundamentals

Features and components

Regardless of topic or expertise level, all Qwiklabs share a common interface. The lab that you're taking should look similar to this:

lab_view.png

Read the following lab component definitions, and then locate them in the interface.

Start Lab (button)

Clicking this button creates a temporary Google Cloud environment, with all the necessary services and credentials enabled, so you can get hands-on practice with the lab's material. This also starts a countdown timer.

Credit

The price of a lab. 1 Credit is usually equivalent to 1 US dollar (discounts are available when you purchase credits in bulk). Some introductory-level labs (like this one) are free. The more specialized labs cost more because they involve heavier computing tasks and demand more Google Cloud resources.

Time

Specifies the amount of time you have to complete a lab. When you click the Start Lab button, the timer will count down until it reaches 00:00:00. When it does, your temporary Google Cloud environment and resources are deleted. Ample time is given to complete a lab, but make sure you don't work on something else while a lab is running: you risk losing all of your hard work!

Score

Many labs include a score. This feature is called "activity tracking" and ensures that you complete specified steps in a lab. To pass a lab with activity tracking, you need to complete all the steps in order. Only then will you receive completion credit.

Paying for a lab

Some labs are free, but others require you to pay. For those, when you click the Start Lab button, a dialog gives you the choice to launch the lab with an access code or credits. If you don't have either, click Buy credits and follow the instructions.

buy_credit.gif

Reading and following instructions

This browser tab contains the lab instructions. When you start a lab, the lab environment—in this case, the Google Cloud Console user interface—opens in a new browser tab. You will need to switch between the two browser tabs to read the instructions and then perform the tasks. Depending on your physical computer setup, you could also move the two tabs to separate monitors.

Test your understanding

Answer the following multiple choice questions to reinforce your understanding of the concepts we've covered so far.

This builds a temporary environment in Google Cloud.

When the timer reaches 00:00:00, you will lose access to your temporary Google Cloud environment.

Some labs have tracking, which scores your completion of hands-on lab activities.

In order to receive completion credit for a lab that has tracking, you must complete the required hands-on lab activities.

Accessing the Cloud Console

Start the lab

  • Now that you understand the key features and components of a lab, click Start Lab.

It may take a moment for the Google Cloud environment and credentials to spin up. When the timer starts counting down and the Start Lab button changes to a red End Lab button, everything is in place and you're ready to sign in to the Cloud Console.

Connection Details pane

Now that your lab instance is up and running, look at the left pane. It contains an Open Google Console button, credentials (username and password), and a Project ID field.

Open_Google_Console.png

Now examine each of these components.

Open Google Console

This button opens the Cloud Console: the web console and central development hub for Google Cloud. You will do the majority of your work in Google Cloud from this interface. All of the Google Cloud Qwiklabs use the Cloud Console in some form.

Project ID

Google Cloud project is an organizing entity for your Google Cloud resources. It often contains resources and services; for example, it may hold a pool of virtual machines, a set of databases, and a network that connects them together. Projects also contain settings and permissions, which specify security rules and who has access to what resources.

Project ID is a unique identifier that is used to link Google Cloud resources and APIs to your specific project. Project IDs are unique across Google Cloud: there can be only one qwiklabs-gcp-xxx...., which makes it globally identifiable.

Username and Password

These credentials represent an identity in the Cloud Identity and Access Management (Cloud IAM) service. This identity has access permissions (a role or roles) that allow you to work with Google Cloud resources in the project you've been allocated. These credentials are temporary and will only work for the access time of the lab. When the timer reaches 00:00:00, you will no longer have access your Google Cloud project with those credentials.

Task 1: Sign in to Google Cloud

Now that you have a better understanding of the Connection Details pane, use its contents to sign in to the Cloud Console.

  1. Click Open Google Console.

This opens the Google Cloud sign-in page in a new browser tab.

SignInPage.png

If you've ever signed in to a Google application like Gmail, this page should look familiar.

Tip Open the tabs in separate windows, side-by-side.

  1. Copy the Username from the Connection Details pane, paste it in the Email or phone field, and click Next.

Wait! Make sure to use the googlexxxxxx_student@qwiklabs.net email to sign in, NOT your personal or company email address!

  1. Copy the Password from the Connection Details pane, paste it in the Password field, and click Next.

  2. Click Accept to indicate your acknowledgement of Google's terms of service and privacy policy.

  3. On the Protect your account page, click Confirm.

Because this is a temporary account, don't worry about updating recovery phone numbers or emails.

  1. On the Welcome student! page, check Terms of Service to agree to Google Cloud's terms of service, and click Agree and continue.

You've successfully accessed the Cloud Console with your Qwiklabs credentials! Your page should now look like this:

35a55968748df7c0.png

Test your understanding

Answer the following multiple choice questions to reinforce your understanding of the concepts covered so far.

What field is NOT found in the left pane?

The username in the left panel, which resembles googlexxxxxx_student@qwiklabs.net, is a Cloud IAM identity.

Now that you have signed in to the Cloud Console and understand the basics of your credentials, it's time to learn a little bit more about Google Cloud projects.

Projects in the Cloud Console

Google Cloud projects were explained in the section about the contents of the Connection Details pane. Here's the definition once again:

Google Cloud project is an organizing entity for your Google Cloud resources. It often contains resources and services; for example, it may hold a pool of virtual machines, a set of databases, and a network that connects them together. Projects also contain settings and permissions, which specify security rules and who has access to what resources.

The upper-left corner of the central pane contains a card labeled Project info that looks like this:

76370a4185212435.png

Your project has a nameID, and number. These identifiers are frequently used when interacting with Google Cloud services. You are working with one project to get experience with a specific service or feature of Google Cloud.

Task 2: View all projects

You actually have access to more than one Google Cloud project. In fact, in some labs you may be given more than one project in order to complete the assigned tasks.

  1. In the Google Cloud Console title bar, next to your project name, click the drop-down menu.
  2. In the Select a project dialog, click All. The resulting list of projects includes a "Qwiklabs Resources" project.

66c73e22ea578f78.png

It's not uncommon for large enterprises or experienced users of Google Cloud to have dozens to thousands of Google Cloud projects. Organizations use Google Cloud in different ways, so projects are a good method for organizing cloud computing services (by team or product, for example.)

The "Qwiklabs Resources" project contains files, datasets, and machine images for certain labs and can be accessed from every Google Cloud lab environment. It's important to note that "Qwiklabs Resources" is shared (read only) with all Qwiklabs users, which means that you cannot delete or modify it.

The Google Cloud project that you are working with is temporary, which means that the project and everything it contains will be deleted when the lab ends. Whenever you start a new lab, you will be given access to one or more new Google Cloud projects, and there (not "Qwiklabs Resources") is where you will run all of the lab steps.

Test your understanding

Answer the following multiple choice questions to reinforce your understanding of the concepts covered so far.

An organizing entity for anything you build with Google Cloud.

Qwiklabs Resources is shared (read only) with all Qwiklabs users, which means that you cannot delete or modify it.

Qwiklabs Resources is the project where you run all of your lab steps.

Navigation menu and services

The Google Cloud Console title bar also contains a button labeled with a three-line icon:

818684f8e0d0a523.png

Clicking this button opens (or hides) the Navigation menu that provides quick access to Google Cloud's core services.

  • If the menu isn't open, click the button now and scroll through to see the types of services available:

5012e407e81c6d07.png

There are seven categories of Google Cloud services:

  • Compute: A variety of machine types that support any type of workload. The different computing options let you decide how much control you want over operational details and infrastructure.
  • Storage: Data storage and database options for structured or unstructured, relational or nonrelational data.
  • Networking: Services that balance application traffic and provision security rules.
  • Cloud Operations: A suite of cross-cloud logging, monitoring, trace, and other service reliability tools.
  • Tools: Services that help developers manage deployments and application build pipelines.
  • Big Data: Services that allow you to process and analyze large datasets.
  • Artificial Intelligence: A suite of APIs that run specific artificial intelligence and machine learning tasks on Google Cloud.

This link takes you to documentation that covers each of these categories in more detail.

Roles and permissions

Earlier you learned that, in addition to cloud computing services, Google Cloud also contains a collection of permissions and roles that define who has access to what resources. You can use the Cloud Identity and Access Management (Cloud IAM) service to inspect and modify these roles and permissions.

Task 3: View your roles and permissions

  1. On the Navigation menu (Navigation menu), click IAM & Admin. This opens a page that contains a list of users and specifies permissions and roles granted to specific accounts.

87534f555ed17b88.png

  1. Find the "@qwiklabs" username you signed in with:

iam.png "Find Qwiklabs Member"

The Member column displays googlexxxxxx_student@qwiklabs.net (which matches the username you signed in with), and the Name column displays googlexxxxxx_student@qwiklabs.net student. The Role column displays Editor, which is one of three basic roles offered by Google Cloud. Basic roles set project-level permissions and, unless otherwise specified, control access and management to all Google Cloud services.

The following table pulls definitions from the roles documentation, which gives a brief overview of viewer, editor, and owner role permissions:

Role NamePermissions
roles/viewerPermissions for read-only actions that do not affect state, such as viewing (but not modifying) existing resources or data.
roles/editorAll viewer permissions, plus permissions for actions that modify state, such as changing existing resources.
roles/ownerAll editor permissions and permissions for the following actions: manage roles and permissions for a project and all resources within the project; set up billing for a project.

As an editor, you can create, modify, and delete Google Cloud resources. However, you can't add or delete members from Google Cloud projects.

Test your understanding

Answer the following multiple choice questions to reinforce your understanding of the concepts covered so far.

Offers quick access to the platform's services and also outlines its offerings.

Primitive roles set project-level permissions and, unless otherwise specified, control access and management to all Google Cloud services.

Provides all viewer permissions, plus permissions for actions that modify state, such as changing existing resources.

APIs and services

Google Cloud APIs are a key part of Google Cloud. Like services, the 200+ APIs, in areas that range from business administration to machine learning, all easily integrate with Google Cloud projects and applications.

APIs are application programming interfaces that you can call directly or via our client libraries. Cloud APIs use resource-oriented design principles as described in our API Design Guide.

When Qwiklabs provisions a new Google Cloud project for a lab instance, it enables most APIs automatically so you can quickly start work on the lab's tasks. When you create your own Google Cloud projects outside of Qwiklabs, you will have to enable certain APIs yourself.

Most Cloud APIs provide you with detailed information on your project’s usage of that API, including traffic levels, error rates, and even latencies, which helps you quickly triage problems with applications that use Google services.

Task 4: View available APIs

  1. On the Navigation menu (Navigation menu), click APIs & Services > Library. The left pane, under the header CATEGORY, displays the different categories available.

apis.gif

  1. In the API search bar, type Dialogflow, and then click Dialogflow API. The Dialogflow description page opens.

dialogflow.png

The Dialogflow API allows you to build rich conversational applications (e.g., for Google Assistant) without having to understand the underlying machine learning and natural language schema.

  1. Click Enable. The Dialogflow description page opens.

  2. Click the back button in your browser to verify that the API is now enabled.

enabled.png

  1. Click Try this API. A new browser tab displays documentation for the Dialogflow API. Explore this information, and close the tab when you're finished.

  2. To return to the main page of the Cloud Console, on the Navigation menu, click Home.

If you're interested in learning more about APIs, open the new hands-on tool in Google Cloud called Google APIs Explorer. Google also has a lab, APIs Explorer: Qwik Start, that will give you hands-on experience with the tool, using a simple example.

Test your understanding

Answer the following multiple choice question to reinforce your understanding of the concepts covered so far.

When you start a lab in Qwiklabs, you need to enable APIs in your project to start working with Google Cloud.

Cloud Shell

Now that you understand the key features of Google Cloud and the Cloud Console, you will get hands-on practice with Cloud Shell. Cloud Shell is an in-browser command prompt execution environment that allows you to enter commands at a terminal prompt in order to manage resources and services in your Google Cloud project.

Cloud Shell lets you run all of your shell commands without leaving the Console and includes pre-installed command line tools.

Work in Cloud Shell

  1. In the Google Cloud Console title bar, click Activate Cloud Shell, and then click Continue if prompted.

819af82459550c67.png

After Cloud Shell is provisioned, a new pane opens at the bottom of the console with messages and prompts like this:

Welcome to Cloud Shell! Type "help" to get started.
Your Cloud Platform project in this session is set to qwiklabs-gcp-76ad0f1342e20013.
Use "gcloud config set project [PROJECT_ID]" to change to a different project.
gcpstaging23396_student@cloudshell:~ (qwiklabs-gcp-76ad0f1342e20013)$

You now have a Cloud Shell session up and running.

  1. Run the following command and then click Authorize if prompted.

gcloud auth list

You should receive an output similar to this, where ACTIVE ACCOUNT is set to your Cloud IAM identity (gcpstagingxxxxx_student@qwiklabs.net):

Credentialed Accounts
ACTIVE  ACCOUNT
*       gcpstaging23396_student@qwiklabs.net
To set the active account, run:
    $ gcloud config set account `ACCOUNT`

As mentioned earlier, Cloud Shell is preinstalled with specific command line tools. The main Google Cloud toolkit is gcloud, which is used for many tasks on the platform, such as resource management and user authentication.

You just ran a gcloud command—auth list—which lists the credentialed accounts in your Google Cloud project. This account name matches the Qwiklabs username you used to sign in to the Cloud Console.

In addition to pre-installed toolkits, Cloud Shell also comes with the standard unix command line interface (CLI) tools and text editors like nano. You can use these to create and edit files inside Cloud Shell.

  1. To create a file called test.txt, run the following touch command:

touch test.txt

touch won't generate any output.

  1. Run the unix command ls to list the files in your current directory:

ls

You should receive the following output:

README-cloudshell.txt  test.txt

Your new test.txt file has been added to your working directory.

  1. To edit a file, type nano, followed by the filename you want to edit in Cloud Shell:

nano test.txt

This will open the empty file in the Nano text editor:

nano.png

  1. Type in a message like the following, but do not press ENTER:

Google Cloud and Qwiklabs are the best!
  1. To save the file with your new message, press CNTRL+X, press Y, and then press ENTER.

Another helpful command is cat, which will output the contents of a file.

  1. To confirm that your file was updated correctly, run the following command:

cat test.txt

The text you entered in step 6 should be displayed in your Cloud Shell session.

With just a few commands, you were able to create, edit, and output the contents of a file all in Cloud Shell (without having to leave your browser.)

Ending your lab

Now that you're finished with the lab, click End Lab and then click Ok to confirm it.

end_lab.gif

Please rate each lab you take in Qwiklabs. five_stars.png

Rate the lab if you were satisfied, and something less if you weren't. Leave comments about your experiences in the "Comment" window; Google always appreciates thoughtful feedback.

Ending a lab will remove your access to the Google Cloud project and the work you've done in it. If you return to the Cloud Console, you will see that you've been signed out automatically. You can close that tab now.

Congratulations!

GCP_Essentials_125x135_new.png

In just 30 minutes, you developed a solid understanding of the Cloud Console and the platform's key features. You learned about projects, roles, and the types of services the platform offers. You also practiced with Cloud IAM, the APIs library, and Cloud Shell. You are now ready to take more Google Cloud labs in Qwiklabs.

Continue your Quest

A Quest is a series of related labs that form a learning path. This lab is part of the Google Cloud Essentials Quest. Enroll in this Quest to get immediate credit for completing this lab. Completing this Quest will earn you the badge above to recognize your achievement. You can make your badge (or badges) public and link to them in your online résumé or social media account. See other available Qwiklabs Quests.

Next steps/Learn more

Be sure to check out the following labs for more practice with essential Google Cloud services:

Google Cloud Training & 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 March 18, 2021
Lab Last Tested March 18, 2021

Copyright 2021 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.