Developing ASP.NET MVC Web Applications — Question 169

You are developing an ASP.NET Core web application. The web application requires sensitive configuration data.
The web application will be tested in an Acceptance Test environment. The Acceptance Test environment must be identical to the production environment.
You need to protect the configuration data.
What should you use?

Answer options

Correct answer: D

Explanation

Using environment variables is an effective way to protect sensitive configuration data, especially in environments that need to mirror production settings. They allow for secure storage without hardcoding sensitive information in the application code. The other options may not provide the same level of isolation or ease of use for this particular scenario.