Google Cloud CLI Cheat Sheet
12 Questions
1 Views

Choose a study mode

Play Quiz
Study Flashcards
Spaced Repetition
Chat to Lesson

Podcast

Play an AI-generated podcast conversation about this lesson

Questions and Answers

Which command is used to create a custom IAM role for a project or organization?

  • gcloud iam service-accounts add-iam-policy-binding
  • gcloud iam roles create (correct)
  • gcloud iam service-accounts create
  • gcloud iam list-grantable-roles

Which command is used to list all the credentialed accounts on the current system?

  • gcloud auth print-access-token
  • gcloud auth revoke
  • gcloud auth activate-service-account
  • gcloud auth list (correct)

Which command is used to register the gcloud CLI as a Docker credential helper?

  • gcloud container images list-tags
  • gcloud container clusters create
  • gcloud auth configure-docker (correct)
  • gcloud compute instances create

Which command is used to display the metadata for a Google Cloud project, including its ID?

<p>gcloud projects describe (D)</p> Signup and view all the answers

Which command is used to create a snapshot of persistent disks in Compute Engine?

<p>gcloud compute disks snapshot (D)</p> Signup and view all the answers

Which command is used to deploy your application's code and configuration to the App Engine server?

<p>gcloud app deploy (A)</p> Signup and view all the answers

What command is used to authorize the gcloud CLI with your Google Cloud user credentials and set the current account as active?

<p>gcloud auth login (A)</p> Signup and view all the answers

Which command displays all the properties for the current configuration?

<p>gcloud config list (B)</p> Signup and view all the answers

What is the purpose of the gcloud config configurations create command?

<p>Create a new named configuration (C)</p> Signup and view all the answers

Which command is used to switch to an existing named configuration?

<p>gcloud config configurations activate (D)</p> Signup and view all the answers

What is the purpose of the gcloud help command?

<p>Search the gcloud CLI reference documents for specific terms (C)</p> Signup and view all the answers

Which command is used to provide feedback to the gcloud CLI team?

<p>gcloud feedback (A)</p> Signup and view all the answers

More Like This

Use Quizgecko on...
Browser
Browser