Question 42 of 179 from exam ACE: Associate Cloud Engineer

Question 42 of 179 from exam ACE: Associate Cloud Engineer

Question

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

apiversion: apps/v1
kind: Deployment
metadata:
name: myapp1-deployment
spec:
selector:
matchLabels:
app: myappl
replicas: 2

containers:
- name: main-container
image: gcr.io/my-company-repo/myapp1:1.4
env:
- name: DB_PASSWORD
value: "tOugh2guess!"
ports:
- containerPort: 8080

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?

Answers

Explanations

Click on the arrows to vote for the correct answer

A. B. C. D.

C.