Google Cloud CLI Cheat Sheet
12 Questions
0 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</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</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</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</p> Signup and view all the answers

    Which command displays all the properties for the current configuration?

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

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

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

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

    <p>gcloud config configurations activate</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</p> Signup and view all the answers

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

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

    More Like This

    Use Quizgecko on...
    Browser
    Browser