☎  076 959 6407✉  support@quizcrazepro.co.za
Learn. Practice. Build your future.
BlogHelpContact
G

Google Associate Cloud Engineer Exam

▤ 284 Questions◷ 120 Minutes✓ 70% Passing Score▣ Updated: Sep 2026

Question 42 of 284

Single answer
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?
AStore the database password inside the Docker image of the container, not in the YAML file.
✓BStore the database password inside a Secret object. Modify the YAML file to populate the DB_PASSWORD environment variable from the Secret.
CStore the database password inside a ConfigMap object. Modify the YAML file to populate the DB_PASSWORD environment variable from the ConfigMap.
DStore 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: B

Store the database password inside a Secret object. Modify the YAML file to populate the DB_PASSWORD environment variable from the Secret.

▥
Explanation

The correct answer is highlighted above. Review the wording carefully, then use the next question to continue building your understanding of Google certification topics.

About this practice exam

Review 284 Google questions with answers and explanations. Use the navigation to move through the exam at your own pace.