Examlex

Solved

You've Deployed a Microservice Called Myapp1 to a Google Kubernetes

question 15

Multiple Choice

You've deployed a microservice called myapp1 to a Google Kubernetes Engine cluster using the YAML file specified below: 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. 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?


Definitions:

Garbage Collector

A component of the runtime environment responsible for automatically freeing memory by collecting and disposing objects that are no longer in use.

Sentence.length()

A method typically used in programming to find the length of a string or sentence.

Sentence.substring()

A method in Java that extracts and returns a new string that is a part of the original string, starting from a specified index to the end or between specified indices.

Writing Output

The process of displaying or sending out data from a program to a device, such as a screen or file.

Related Questions