Azure App Configuration · AZ-204: Developing Solutions for Microsoft Azure Implement Azure Security

An ASP.NET Core application stores Api:BaseUrl in Azure App Configuration with separate Production and Staging labels. The production deployment must…

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.

easy · MCQ · Q-B94F88

An ASP.NET Core application stores Api:BaseUrl in Azure App Configuration with separate Production and Staging labels. The production deployment must load only the Production value for keys under Api:. Which provider configuration should be used?

  1. A.options.Select("Api:*", "Production")Correct answer
  2. B.options.Select("Api:*", LabelFilter.Null)
  3. C.options.Select("Production", "Api:*")
  4. D.options.Select("Api:*")

Solution

Select accepts the key filter first and the label filter second. Using options.Select("Api:*", "Production") loads only keys matching Api:* with the Production label.

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