Azure App Configuration · AZ-204: Developing Solutions for Microsoft Azure Implement Azure Security
An ASP.NET Core application uses Azure App Configuration feature flags. The team wants to evaluate flags through IFeatureManager in application code.…
Practice question from Azure App Configuration (AZ-204: Developing Solutions for Microsoft Azure Implement Azure Security), with the correct answer and a step-by-step solution.
medium · MCQ · Q-FE2BE0
An ASP.NET Core application uses Azure App Configuration feature flags. The team wants to evaluate flags through IFeatureManager in application code. Which setup is required?
- A.Call
UseFeatureFlags()on the App Configuration provider and register feature management withAddFeatureManagement().Correct answer - B.Store each feature flag as a connection string and register it with
AddDbContext(). - C.Call
UseKeyVault()and registerIConfigurationas a singleton. - D.Enable Azure App Service deployment slots and register
AddFeatureManagement()only.
Solution
The App Configuration provider loads feature flags when configured with UseFeatureFlags(). The Microsoft Feature Management library exposes them through IFeatureManager after AddFeatureManagement() is registered.
More from Azure App Configuration
- An Azure App Service uses a system-assigned managed identity to read configuration values from Azure App Configuration. The application mus…
- An ASP.NET Core application uses Azure App Configuration for application settings. A database password must not be stored as a plain value…
- An ASP.NET Core application loads settings from Azure App Configuration. The team wants changes to take effect without restarting the appli…
- An ASP.NET Core application stores Api:BaseUrl in Azure App Configuration with separate Production and Staging labels. The production deplo…
Practise more Implement Azure Security
Sign up free for adaptive practice on this chapter, with instant feedback and hints on every question.
Start practising freeFree to start · No credit card needed