Cloud Shell Flashcards

1
Q

What is Cloud Shell and what are its 5 main features?

A

Cloud Shell is a free VM used to develop applications and manage GCP services.

  1. 5GB of free storage mounted to the $HOME directory
  2. gcloud CLI
  3. Code Editor with Cloud Code support
  4. Pre-installed packages (relevant):
    1. Text editors: Emacs, Vim, Nano
    2. Build tools: Gradle, Maven
    3. Git
    4. Docker
    5. Terraform
    6. Java
  5. Web preview

You can install additional software that will persist if you use the $HOME directory.

To see the full list of pre-installed software, visit: https://cloud.google.com/shell/docs/how-cloud-shell-works#tools

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What are the 3 different ways to configure Cloud Shell?

A
  1. Configure $HOME/.bashrc script
  2. Configure the $Home/.customize_environment script
  3. Use a container image
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is gcloud CLI?

A

gcloud CLI is the CLI used to manage GCP services

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is Cloud Code?

A

Cloud Code is an IDE plugin that makes it easier to create, deploy, and integrate applications with GCP.Cloud Code allows you to enable GCP APIs and download client libraries without leaving your IDE.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Is it possible to connect to Cloud Shell using a local CLI?

A

Yes. You will need to install gcloud CLI locally and use the gcloud cloud-shellcommand.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Cloud Shell is not directly associated with or managed by any specific project. In fact, Cloud Shell has the ability to point to any project.

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is the preferred command line tool to interact with Cloud Storage?

A

Google recommends using gcloud storage instead of gsutil which is now considered legacy.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Which gcloud command allows you to install a specific component?

A

gcloud components install <component-name>

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Does Cloud Code integrate with Secret Manager?

A

Yes. This lets you manage your sensitive data within your IDE.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Which gcloud command does Google recommand using for emulators?

A

gcloud beta emulators <emulator-name>

There are 4 available emulators:
1. Spanner
2. Firestore
3. Bigtable
4. Pub/Sub

How well did you know this?
1
Not at all
2
3
4
5
Perfectly