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?

  1. A.Call UseFeatureFlags() on the App Configuration provider and register feature management with AddFeatureManagement().Correct answer
  2. B.Store each feature flag as a connection string and register it with AddDbContext().
  3. C.Call UseKeyVault() and register IConfiguration as a singleton.
  4. 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

All of Azure App Configuration

Practise more Implement Azure Security

Sign up free for adaptive practice on this chapter, with instant feedback and hints on every question.

Start practising free

Free to start · No credit card needed