<< Prev Question Next Question >>

Question 21/70

You are designing a large distributed application with 30 microservices. Each of your distributed microservices needs to connect to a database back-end. You want to store the credentials securely. Where should you store the credentials?

Recent Comments (The most recent comments are at the top.)

Kirk Hammett - Nov 07, 2018

Taken from google &quot;You can use an environment variable pointing to credentials outside of the application&#39;s source code, such as Cloud Key Management Service.&quot; so the environment variable is just POINTING the secret to the KMS service, where it is stored. So in my mind it is stored in KMS, the environment variable is just telling it to locate it at KMS.

MacDaddy - Nov 02, 2018

The Q is, how to store them and not how to pass or handle them. And this https://cloud.google.com/kms/docs/store-secrets is even called &quot;Storing Secrets&quot;.

bob - Aug 16, 2018

Even if any sort of secrets involved. You still need a way to distinguish between environments. Environment varialbes would do the trick. C

Suco - Aug 09, 2018

https://cloud.google.com/kubernetes-engine/docs/concepts/secret
Using a Secret
To use a Secret with your workloads, you can specify environment variables that reference the Secret&#39;s values, or mount a volume containing the Secret.

anonyoumust - Jul 03, 2018

@Gary if you want to be that specific, you should also consider this note from https://cloud.google.com/kms/docs/secret-management: “Note: Cloud KMS does not directly store secrets. It can encrypt secrets that you store elsewhere.“

Gary - Jun 21, 2018

environment variable store a point, not credentials
First, ADC checks to see if the environment variable GOOGLE_APPLICATION_CREDENTIALS is set. If the variable is set, ADC uses the service account file that the variable points to.

Robert - Jun 19, 2018

I would go with A, but here I'm confused because of this: https://cloud.google.com/docs/authentication/production#providing_credentials_to_your_application

So "C" could be the other right answer.

stonewealth - Jun 17, 2018

I think answer should be A.
https://cloud.google.com/kms/docs/secret-management

LEAVE A REPLY

Your email address will not be published. Required fields are marked *

Question List (70q)
2 commentQuestion 1: For this question, refer to the JencoMart case study. JencoM...
6 commentQuestion 2: You want to enable your running Google Container Engine clus...
10 commentQuestion 3: Your application needs to process credit card transactions. ...
4 commentQuestion 4: For this question refer to the TerramEarth case study Operat...
2 commentQuestion 5: For this question, refer to the TerramEarth case study Your ...
3 commentQuestion 6: You want to make a copy of a production Linux virtual machin...
10 commentQuestion 7: For this question, refer to the Dress4Win case study. As par...
6 commentQuestion 8: Your company just finished a rapid lift and shift to Google ...
7 commentQuestion 9: Your solution is producing performance bugs in production th...
6 commentQuestion 10: Your organization requires that metrics from all application...
4 commentQuestion 11: You are creating a solution to remove backup files older tha...
2 commentQuestion 12: Your organization has a 3-tier web application deployed in t...
7 commentQuestion 13: Your company's test suite is a custom C++ application that r...
1 commentQuestion 14: For this question, refer to the TerramEarth case study. Terr...
5 commentQuestion 15: A news teed web service has the following code running on Go...
10 commentQuestion 16: For this question, refer to the JencoMart case study. JencoM...
8 commentQuestion 17: For this question, refer to the Mountkirk Games case study. ...
4 commentQuestion 18: A lead engineer wrote a custom tool that deploys virtual mac...
Question 19: You want to optimize the performance of an accurate, real-ti...
5 commentQuestion 20: For this question, refer to the TerramEarth case study. To s...
8 commentQuestion 21: You are designing a large distributed application with 30 mi...
3 commentQuestion 22: For this question, refer to the JencoMart case study. JencoM...
Question 23: For this question, refer to the Dress4Win case study. You wa...
3 commentQuestion 24: One of your primary business objectives is being able to tru...
3 commentQuestion 25: Your company places a high value on being responsive and mee...
4 commentQuestion 26: For this question, refer to the Mountkirk Games case study. ...
2 commentQuestion 27: Your development team has installed a new Linux kernel modul...
2 commentQuestion 28: You have created several preemptible Linux virtual machine i...
2 commentQuestion 29: For this question, refer to the Dress4Win case study. Dress4...
4 commentQuestion 30: The application reliability team at your company has added a...
1 commentQuestion 31: For this question, refer to the Mountkirk Games case study. ...
5 commentQuestion 32: For this question, refer to the TerramEarth case study. Terr...
6 commentQuestion 33: For this question, refer to the TerramEarth case study. Terr...
5 commentQuestion 34: For this question, refer to the Dress4Win case study. Dress4...
2 commentQuestion 35: Your company's user-feedback portal comprises a standard LAM...
Question 36: You need to reduce the number of unplanned rollbacks of erro...
1 commentQuestion 37: Your company wants to try out the cloud with low risk. They ...
3 commentQuestion 38: For this question, refer to the Dress4Win case study. The Dr...
1 commentQuestion 39: Your company plans to migrate a multi-petabyte data set to t...
8 commentQuestion 40: For this question, refer to the JencoMart case study A few d...
6 commentQuestion 41: A development manager is building a new application He asks ...
1 commentQuestion 42: You set up an autoscaling instance group to serve web traffi...
13 commentQuestion 43: For this question, refer to the TerramEarth case study. Terr...
4 commentQuestion 44: To reduce costs, the Director of Engineering has required al...
2 commentQuestion 45: During a high traffic portion of the day, one of your relati...
5 commentQuestion 46: Your company runs several databases on a single MySQL instan...
Question 47: You deploy your custom Java application to Google App Engine...
4 commentQuestion 48: The database administration team has asked you to help them ...
3 commentQuestion 49: For this question, refer to the JencoMart case study. The Je...
6 commentQuestion 50: You write a Python script to connect to Google BigQuery from...
7 commentQuestion 51: For this question, refer to the Mountkirk Games case study M...
Question 52: Your company has successfully migrated to the cloud and want...
2 commentQuestion 53: A lead software engineer tells you that his new application ...
1 commentQuestion 54: For this question, refer to the Dress4Win case study. As par...
2 commentQuestion 55: For this question, refer to the JencoMart case study. JencoM...
4 commentQuestion 56: Your customer is receiving reports that their recently updat...
10 commentQuestion 57: Your company has decided to build a backup replica of their ...
Question 58: Your marketing department wants to send out a promotional em...
Question 59: Your company is forecasting a sharp increase in the number a...
8 commentQuestion 60: You have been asked to select the storage system for the cli...
Question 61: Your company wants to track whether someone is present in a ...
3 commentQuestion 62: A small number of API requests to your microservices-based a...
Question 63: Your company's test suite is a custom C++ application that r...
7 commentQuestion 64: You are helping the QA team to roll out a new load-testing t...
7 commentQuestion 65: An application development team believes their current loggi...
4 commentQuestion 66: For this question, refer to the Mountkirk Games case study. ...
5 commentQuestion 67: For this question, refer to the Dress4Win case study. Dress4...
5 commentQuestion 68: For this question, refer to the JencoMart case study. The mi...
7 commentQuestion 69: One of the developers on your team deployed their applicatio...
7 commentQuestion 70: Your customer is moving an existing corporate application to...