ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 42 - Associate Cloud Engineer discussion

Report
Export

You've deployed a microservice called myapp1 to a Google Kubernetes Engine cluster using the YAML file specified below:

You need to refactor this configuration so that the database password is not stored in plain text. You want to follow Google-recommended practices. What should you do?

A.
Store the database password inside the Docker image of the container, not in the YAML file.
Answers
A.
Store the database password inside the Docker image of the container, not in the YAML file.
B.
Store the database password inside a Secret object. Modify the YAML file to populate the DB_PASSWORD environment variable from the Secret.
Answers
B.
Store the database password inside a Secret object. Modify the YAML file to populate the DB_PASSWORD environment variable from the Secret.
C.
Store the database password inside a ConfigMap object. Modify the YAML file to populate the DB_PASSWORD environment variable from the ConfigMap.
Answers
C.
Store the database password inside a ConfigMap object. Modify the YAML file to populate the DB_PASSWORD environment variable from the ConfigMap.
D.
Store the database password in a file inside a Kubernetes persistent volume, and use a persistent volume claim to mount the volume to the container.
Answers
D.
Store the database password in a file inside a Kubernetes persistent volume, and use a persistent volume claim to mount the volume to the container.
Suggested answer: B

Explanation:

https://cloud.google.com/config-connector/docs/how-to/secrets#gcloud

asked 18/09/2024
Sterling White
47 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first