Chapter 6 · AZ-204: Developing Solutions for Microsoft Azure Implement Azure Security
Azure App Configuration
20 practice questions · 5 marks weightage
Practice questions
- Question 1Q-423392See the answer and solution
An Azure App Service uses a system-assigned managed identity to read configuration values from Azure App Configuration. The application must not modify key-values or manage the App Configuration resource. Which Azure role should be assigned to the identity?
- A.App Configuration Data Reader
- B.App Configuration Data Owner
- C.Contributor
- D.Reader
- Question 2Q-A7ED65See the answer and solution
An ASP.NET Core application uses Azure App Configuration for application settings. A database password must not be stored as a plain value in App Configuration. Which design securely allows the application to retrieve the password at runtime?
- A.Store the password directly in App Configuration and grant the application App Configuration Data Owner.
- B.Store the password in Azure Key Vault, store a Key Vault reference in App Configuration, and grant the application's managed identity permission to read the secret.
- C.Encrypt the password with a customer-managed key and store the encrypted value in an App Configuration label.
- D.Store the password in an App Configuration feature flag and restrict access using a read-only connection string.
- Question 3Q-5F6092See the answer and solution
An ASP.NET Core application loads settings from Azure App Configuration. The team wants changes to take effect without restarting the application, but only after the key Settings:Sentinel changes. Refresh checks must occur at most once every five minutes during incoming requests. Which implementation satisfies these requirements?
- A.builder.Configuration.AddAzureAppConfiguration(options => { options.Connect(new Uri(endpoint), new DefaultAzureCredential()).ConfigureRefresh(refresh => refresh.Register("Settings:Sentinel", refreshAll: true).SetRefreshInterval(TimeSpan.FromMinutes(5))); }); app.UseAzureAppConfiguration();
- B.builder.Configuration.AddAzureAppConfiguration(options => { options.Connect(new Uri(endpoint), new DefaultAzureCredential()).ConfigureRefresh(refresh => refresh.Register("Settings:Sentinel", refreshAll: false)); }); app.UseAzureAppConfiguration();
- C.builder.Configuration.AddAzureAppConfiguration(options => { options.Connect(new Uri(endpoint), new DefaultAzureCredential()).ConfigureRefresh(refresh => refresh.Register("Settings:Sentinel", refreshAll: true).SetRefreshInterval(TimeSpan.Zero)); });
- D.builder.Configuration.AddAzureAppConfiguration(options => { options.Connect(new Uri(endpoint), new DefaultAzureCredential()); }); app.UseAzureAppConfiguration();
- Question 4Q-B94F88See the answer and solution
An ASP.NET Core application stores
Api:BaseUrlin Azure App Configuration with separateProductionandStaginglabels. The production deployment must load only theProductionvalue for keys underApi:. Which provider configuration should be used?- A.options.Select("Api:*", "Production")
- B.options.Select("Api:*", LabelFilter.Null)
- C.options.Select("Production", "Api:*")
- D.options.Select("Api:*")
- Question 5Q-FE2BE0See the answer and solution
An ASP.NET Core application uses Azure App Configuration feature flags. The team wants to evaluate flags through
IFeatureManagerin application code. Which setup is required?- A.Call
UseFeatureFlags()on the App Configuration provider and register feature management withAddFeatureManagement(). - 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.
- A.Call
15 more questions on Azure App Configuration
Sign up free to practise the full chapter. Questions you get wrong come back until you've mastered them.
Start practising freeFree to start · No credit card needed