Google Cloud Certified Associate Cloud Engineer Practice

Disable ads (and more) with a membership for a one time $2.99 payment

Prepare for the Google Cloud Certified Associate Cloud Engineer Exam with flashcards and multiple choice questions. Each question includes hints and explanations to help you study effectively. Get ready to pass your certification exam!

Each practice test/flash card set has 50 randomly selected questions from a bank of over 500. You'll get a new set of questions each time!

Practice this question and more.


Which command is used to list Kubernetes deployments?

  1. `kubectl create secret`

  2. `kubectl get deployments`

  3. `gsutil cp`

  4. RDP over port 3389

The correct answer is: `kubectl get deployments`

The command used to list Kubernetes deployments is `kubectl get deployments`. This command allows users to retrieve the current status of all deployments within a specified namespace or within the default namespace if none is specified. It provides essential information such as the number of replicas, available pods, and the overall health of the deployments, making it a crucial command for managing applications running in a Kubernetes cluster. Other commands listed serve entirely different functions. For instance, creating a secret has no relation to deployments but is focused on storing sensitive information. The command related to `gsutil cp` is used for copying files to and from Google Cloud Storage and does not interact with Kubernetes in any capacity. Lastly, RDP over port 3389 pertains to remote desktop services, which is unrelated to managing Kubernetes resources. These distinctions clarify why the correct command specifically targets the listing of deployments within a Kubernetes context.