nerdexam
Microsoft

AZ-204 · Question #493

You develop an ASP.NET Core app that uses Azure App Configuration. You also create an App Configuration containing 100 settings. The app must meet the following requirements: - Ensure the consistency

The correct answer is A. Create and register a sentinel key in the App Configuration store. Set the refreshAll parameter of B. Increase the App Configuration cache expiration from the default value.. A sentinel key is a key that you update after you complete the change of all other keys. Your app monitors the sentinel key. When a change is detected, your app refreshes all configuration values. This approach helps to ensure the consistency of configuration in your app and redu

Submitted by chiamaka_o· Mar 30, 2026Connect to and consume Azure services and third-party services

Question

You develop an ASP.NET Core app that uses Azure App Configuration. You also create an App Configuration containing 100 settings. The app must meet the following requirements: - Ensure the consistency of all configuration data when changes to individual settings occur. - Handle configuration data changes dynamically without causing the application to restart. - Reduce the overall number of requests made to App Configuration APIs. You must implement dynamic configuration updates in the app. What are two ways to achieve this goal? Each correct answer presents part of the solution. NOTE: Each correct selection is worth one point.

Options

  • ACreate and register a sentinel key in the App Configuration store. Set the refreshAll parameter of
  • BIncrease the App Configuration cache expiration from the default value.
  • CDecrease the App Configuration cache expiration from the default value.
  • DCreate and configure Azure Key Vault. Implement the Azure Key Vault configuration provider.
  • ERegister all keys in the App Configuration store. Set the refreshAll parameter of the Register
  • FCreate and implement environment variables for each App Configuration store setting.

How the community answered

(33 responses)
  • A
    82% (27)
  • C
    3% (1)
  • D
    9% (3)
  • F
    6% (2)

Explanation

A sentinel key is a key that you update after you complete the change of all other keys. Your app monitors the sentinel key. When a change is detected, your app refreshes all configuration values. This approach helps to ensure the consistency of configuration in your app and reduces the overall number of requests made to your App Configuration store, compared to monitoring all keys for changes. You can add a call to the refreshOptions.SetCacheExpiration method to specify the minimum time between configuration refreshes. In this example, you use the default value of 30 seconds. Adjust to a higher value if you need to reduce the number of requests made to your App Configuration store. configuration-aspnet-core?tabs=core6x

Topics

#Azure App Configuration#dynamic configuration#sentinel key#cache expiration

Community Discussion

No community discussion yet for this question.

Full AZ-204 Practice