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.
Correct Answer: A,B
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.
Reference: https://learn.microsoft.com/en-us/azure/azure-app-configuration/enable-dynamic- configuration-aspnet-core?tabs=core6x