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 credentials from being logged What should you do?
Suggested Answer: D
Get Premium Associate Cloud Engineer Questions
as Interactive Web-Based Practice Test or PDF
Real Exam Format
Detailed Explanations
Instant Access
Get Your Practice Test
33 comments · newest first
CL
Clorinda
11 months ago
Just use D, it's straightforward and keeps things clean!
SC
Scarlet
11 months ago
Option C sounds like a solid choice too, but I’m not sure.
LA
Lavonda
11 months ago
Wait, can you really trust those logs? Seems risky.
CO
Corazon
11 months ago
Yeah, I agree with D! Environment variables are the way to keep it secure.
RE
Reid
12 months ago
I think option D is the best way to go.
EL
Elke
12 months ago
I’m leaning towards option C because it seems like a safer way to manage credentials without logging them, but I’m not entirely confident.
NA
Na
1 year ago
I vaguely recall something about using gcloud configure for proxy settings, but I can't remember if that includes setting username and password directly.
PE
Pedro
1 year ago
I think I practiced a question similar to this where we had to avoid logging credentials. I feel like option D might be the right choice.
NA
Nakita
1 year ago
I remember discussing how sensitive information should be handled in CLI tools, but I'm not sure if setting environment variables is the best approach here.
MA
Macy
1 year ago
Ah, I see. The question is asking us to prevent the proxy credentials from being logged. I think option D, using environment variables, is the way to go. That should keep the credentials out of the logs.
FA
Fairy
1 year ago
Hmm, I'm a bit confused on the best approach here. Should I be using environment variables or some kind of configuration file? I want to make sure I don't accidentally expose my credentials.
KR
Kristeen
1 year ago
This seems like a straightforward question about securing proxy credentials in the gcloud CLI. I think the key is to find a way to avoid storing the credentials in plain text.
VE
Veronique
1 year ago
Okay, I think I've got this. Option D looks like the right choice - setting the CLOUDSDK_PROXY_USERNAME and CLOUDSDK_PROXY_PASSWORD environment variables. That way the credentials won't end up in the gcloud logs. Nice and secure!
TR
Tracey
1 year ago
I think the real-time update option is the key here, so I'll go with C.
YO
Youlanda
2 years ago
Has anyone else noticed that the options are getting increasingly complex? First it's a simple command, then it's encoding, then it's configuration files. I'm glad the answer is just setting some environment variables!
CO
Corazon
2 years ago
I was a bit confused at first, but D is definitely the right answer. Using environment variables is a simple and secure way to handle the proxy credentials.
IS
Isabelle
2 years ago
Great, I'll make sure to set the environment variables for my proxy credentials. Thanks for the advice!
PA
Pa
2 years ago
Definitely, it's a simple solution to prevent proxy credentials from being logged.
MI
Micheline
2 years ago
I agree, setting environment variables is a good practice for handling sensitive information.
ST
Stephen
2 years ago
I think D is the best option. It's secure and easy to use.
AL
Allene
2 years ago
D makes the most sense to me. No need to mess around with encoding or configuration files. Just set the environment variables and you're good to go.
TA
Tarra
2 years ago
Yeah, D is definitely the most convenient option. Thanks for the suggestion!
JO
Joanna
2 years ago
I think I'll go with option D as well. It's straightforward and easy to implement.
DI
Dierdre
2 years ago
I agree, setting environment variables seems like the simplest solution.
LE
Letha
2 years ago
Hmm, I think D is the way to go. Setting the proxy credentials as environment variables is the best way to keep them out of the logs.
EL
Elli
2 years ago
Definitely. It's a simple and effective way to prevent sensitive information from being logged.
AR
Armando
2 years ago
I agree. Using environment variables is a common practice for keeping credentials secure.
TR
Tracey
2 years ago
That's a good point. It's important to protect sensitive information like proxy credentials.
LY
Lynda
2 years ago
I think D is the way to go. Setting the proxy credentials as environment variables is the best way to keep them out of the logs.
ME
Merlyn
2 years ago
I prefer option C, it seems like the most straightforward solution.
PA
Paola
2 years ago
I'm not sure, but I think option B could also work.
DO
Dorothy
2 years ago
I disagree, I believe option D is more secure.
GI
Gilbert
2 years ago
I think option A is the best choice.