Questions
After reading this chapter, you should be able to answer the following questions:
- What takes care of providing the default configuration for an application in .NET 5?
a.
CreateDefaultBuilder
b.
ChainedConfigurationProvider
c.
JsonConfigurationProvider
d. All of the above
- Which of the following is not correct?
a. The Azure Key Vault configuration provider reads configurations from Azure Key Vault.
b. The file configuration provider reads configurations from INI, JSON, and XML files.
c. The command-line configuration provider reads configurations from a database.
d. The memory configuration provider reads configurations from in-memory collections.
- Which interface is used to access a configuration at runtime and is injected via DI?
a.
IConfig
b.
IConfiguration
c.
IConfigurationSource
d.Â
IConfigurationProvider
- Which provider/source is recommended for storing secrets in production?
a. JSON from
appsettings.json
b.
FileConfiguration
from an XML filec.
AzureKeyVaultProvider...