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
Question
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)- A82% (27)
- C3% (1)
- D9% (3)
- F6% (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
Community Discussion
No community discussion yet for this question.