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 create a new Kubernetes Secret?

  1. `gsutil cp`

  2. `kubectl create secret`

  3. `kubectl get deployments`

  4. RDP over port 3389

The correct answer is: `kubectl create secret`

The command used to create a new Kubernetes Secret is indeed `kubectl create secret`. This command allows you to store sensitive information, such as passwords, OAuth tokens, and SSH keys, in a way that is accessible to your Kubernetes resources while keeping it secure. By utilizing this command, you facilitate the management of sensitive data within your cluster, ensuring that it is handled in a more controlled manner compared to hardcoding credentials within your application deployments. The other options serve different purposes: for instance, `gsutil cp` is used to copy files to and from Google Cloud Storage, `kubectl get deployments` retrieves information about existing deployments in a Kubernetes cluster, and RDP over port 3389 refers to a protocol used for connecting to Windows machines, which is not relevant in the context of creating secrets in a Kubernetes environment.