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?
- A.options.Select("Api:*", "Production")Correct answer
- B.options.Select("Api:*", LabelFilter.Null)
- C.options.Select("Production", "Api:*")
- 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
- 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 uses Azure App Configuration feature flags. The team wants to evaluate flags through IFeatureManager in applica…
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