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. Engage with interactive quizzes and detailed explanations tailored to help you master key concepts. Ensure you're ready for a successful career in the cloud computing industry!

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.