Google Cloud Associate Cloud Engineer — Question 231

You installed the Google Cloud CLI on your workstation and set the proxy configuration. However, you are worried that your proxy credentials will be recorded in the gcloud CLI logs. You want to prevent your proxy credential from being logged. What should you do?

Answer options

Correct answer: D

Explanation

The correct answer is D because using environment variables to set CLOUDSDK_PROXY_USERNAME and CLOUDSDK_PROXY_PASSWORD prevents the credentials from being logged in gcloud logs. Options A and C would still record the credentials in the logs because they involve direct configuration within the gcloud CLI. Option B is not a valid method for preventing logging of proxy credentials.