Welcome to ExamTopics
ExamTopics Logo
- Expert Verified, Online, Free.
exam questions

Exam Associate Cloud Engineer All Questions

View all questions & answers for the Associate Cloud Engineer exam

Exam Associate Cloud Engineer topic 1 question 251 discussion

Actual exam question from Google's Associate Cloud Engineer
Question #: 251
Topic #: 1
[All Associate Cloud Engineer Questions]

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?

  • A. Configure username and password by using gcloud config set proxy/username and gcloud config set proxy/password commands.
  • B. Encode username and password in sha256 encoding, and save in to a text file. Use filename as a value in the gcloud config set core/custom_ca_certs_file command.
  • C. Provide values for CLOUDSDK_PROXY_USERNAME and CLOUDSDK_PROXY_PASSWORD in the gcloud CLI tool configuration file.
  • D. Set the CLOUDSDK_PROXY_USERNAME and CLOUDSDK_PROXY_PASSWORD properties by using environment variables in your command line tool.
Show Suggested Answer Hide Answer
Suggested Answer: D 🗳️

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
denno22
1 month, 3 weeks ago
Selected Answer: D
Alternatively, to avoid having the proxy credentials recorded in any logs (such as shell history or gcloud CLI logs) or in the gcloud CLI configuration file, you can set the properties using environment variables https://cloud.google.com/sdk/docs/proxy-settings
upvoted 1 times
denno22
1 month, 2 weeks ago
export CLOUDSDK_PROXY_USERNAME [USERNAME] export CLOUDSDK_PROXY_PASSWORD [PASSWORD]
upvoted 1 times
...
...
PiperMe
8 months, 3 weeks ago
Selected Answer: D
Option D is the best answer.
upvoted 1 times
...
ChemaKSado
9 months ago
Answer is D. See Google Docs: https://cloud.google.com/sdk/docs/proxy-settings Alternatively, to avoid having the proxy credentials recorded in any logs (such as shell history or gcloud CLI logs) or in the gcloud CLI configuration file, you can set the properties using environment variables. export CLOUDSDK_PROXY_USERNAME [USERNAME] export CLOUDSDK_PROXY_PASSWORD [PASSWORD]
upvoted 4 times
...
leoalvarezh
9 months, 1 week ago
Selected Answer: D
To avoid shell CLI history, logs or conf. file. Google recommends to set it on env. variables related with no storing of those values. Option D.
upvoted 1 times
...
sinh
10 months, 3 weeks ago
Selected Answer: D
https://cloud.google.com/sdk/docs/proxy-settings
upvoted 1 times
...
Cynthia2023
10 months, 3 weeks ago
Selected Answer: D
- Using Environment Variables: By setting the proxy credentials as environment variables (CLOUDSDK_PROXY_USERNAME and CLOUDSDK_PROXY_PASSWORD), you avoid having to enter them directly into the CLI tool where they might be logged. Environment variables are a common way to securely pass sensitive information like credentials. - No Logging of Credentials: The gcloud CLI typically does not log environment variables, so your credentials should be safe from being recorded in the CLI logs. - Ease of Use: Setting environment variables is straightforward and does not require modifying configuration files or encoding credentials.
upvoted 4 times
Cynthia2023
10 months, 3 weeks ago
A. Using gcloud config set for Username and Password: This approach directly enters the credentials into the gcloud CLI configuration, which could potentially be logged or exposed in the configuration file. B. Encoding Credentials and Custom CA Certs File: This option suggests a method that isn't directly related to setting proxy credentials. The core/custom_ca_certs_file is used for specifying a custom CA (Certificate Authority) certificate file, not for proxy credentials. C. Using the Configuration File: Modifying the configuration file to include proxy credentials might expose them in plain text within the file, which could be a security risk. It's generally safer to use environment variables for this purpose.
upvoted 2 times
...
...
kaby1987
10 months, 4 weeks ago
Selected Answer: D
Ans is D
upvoted 1 times
...
KelvinToo
10 months, 4 weeks ago
Selected Answer: C
Per ChatGPT, Option C is the most appropriate choice for securely providing proxy credentials to the gcloud CLI tool without risking exposure in logs or other outputs.
upvoted 1 times
PiperMe
8 months, 3 weeks ago
I think this test may have rocked you due to ChatGPT. Storing credentials in the config file increases the risk of exposure if the file is compromised. It's the same problem as A. The answer is D.
upvoted 1 times
...
...
shiowbah
11 months ago
D. Set the CLOUDSDK_PROXY_USERNAME and CLOUDSDK_PROXY_PASSWORD properties by using environment variables in your command line tool.
upvoted 1 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...