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.
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.
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.
Correct Answer:
Verified
Q69: You recently deployed a new version of
Q70: You have a website hosted on App
Q71: Your company's infrastructure is on-premises, but all
Q72: You want to select and configure a
Q73: You need to produce a list of
Q75: Your development team needs a new Jenkins
Q76: You significantly changed a complex Deployment Manager
Q77: You deployed an LDAP server on Compute
Q78: You have a developer laptop with the
Q79: You have production and test workloads that
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents