exam questions

Exam AZ-204 All Questions

View all questions & answers for the AZ-204 exam

Exam AZ-204 topic 5 question 37 discussion

Actual exam question from Microsoft's AZ-204
Question #: 37
Topic #: 5
[All AZ-204 Questions]

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.

  • A. Create and register a sentinel key in the App Configuration store. Set the refreshAll parameter of the Register method to true.
  • B. Increase the App Configuration cache expiration from the default value.
  • C. Decrease the App Configuration cache expiration from the default value.
  • D. Create and configure Azure Key Vault. Implement the Azure Key Vault configuration provider.
  • E. Register all keys in the App Configuration store. Set the refreshAll parameter of the Register method to false.
  • F. Create and implement environment variables for each App Configuration store setting.
Show Suggested Answer Hide Answer
Suggested Answer: AB 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
halfway
Highly Voted 2 years, 1 month ago
Selected Answer: AB
Quotes from the reference below: "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
upvoted 13 times
lamvit
4 months, 1 week ago
Creating a sentinel key and setting the refreshAll parameter to true is sufficient for a dynamic reload, so its definitely AB https://learn.microsoft.com/en-us/azure/azure-app-configuration/enable-dynamic-configuration-aspnet-core#reload-data-from-app-configuration
upvoted 1 times
...
...
whiteblack
Highly Voted 2 years, 4 months ago
Correct Answers Link: https://learn.microsoft.com/en-us/azure/azure-app-configuration/enable-dynamic-configuration-aspnet-netfx
upvoted 10 times
...
Vichu_1607
Most Recent 6 months ago
Selected Answer: AB
A. Create and register a sentinel key in the App Configuration store. Set the refreshAll parameter of the Register method to true. B. Increase the App Configuration cache expiration from the default value.
upvoted 1 times
...
130nk3r5
1 year, 5 months ago
Selected Answer: AB
A / B Creating and registering a sentinel key in the App Configuration store with the refreshAll parameter set to true will ensure the consistency of all configuration data when changes to individual settings occur. This is because when the sentinel key changes, all configuration data is refreshed. Increasing the App Configuration cache expiration from the default value will reduce the overall number of requests made to App Configuration APIs. This is because the application will cache the configuration data for a longer period of time before it needs to request updated data from the App Configuration APIs.
upvoted 1 times
...
athli
1 year, 6 months ago
Selected Answer: AB
AB - Increase the refresh timeout, especially if your configuration values do not change frequently. - Watch a single sentinel key, rather than watching individual keys. Refresh all configuration only if the sentinel key changes Ref: https://learn.microsoft.com/en-us/azure/azure-app-configuration/howto-best-practices#reduce-requests-made-to-app-configuration
upvoted 2 times
...
AndySmith
1 year, 6 months ago
It's AB for sure, since it fully follows the best practices of AzureAppConfig service: https://learn.microsoft.com/en-us/azure/azure-app-configuration/howto-best-practices#reduce-requests-made-to-app-configuration It can't be D since there is no any word about a secret in the Q.
upvoted 2 times
...
dddddd111
1 year, 7 months ago
Selected Answer: AD
Option B. Increase the App Configuration cache expiration from the default value is a valid consideration for reducing the number of requests made to App Configuration APIs, but it does not directly address the requirement of dynamic configuration updates without causing the application to restart. In fact, the default behavior of Azure App Configuration already includes caching to minimize the number of requests to the configuration store. Adjusting the cache expiration might help reduce the frequency of requests, but it won't handle dynamic updates without application restarts. For achieving dynamic configuration updates without restarting the application, options A (sentinel key) and D (Azure Key Vault configuration provider) are more relevant. These options allow you to implement dynamic configuration changes and ensure consistency without requiring application restarts.
upvoted 1 times
...
drkpnsh
1 year, 8 months ago
Selected Answer: AD
I had to go for A & D. For B "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." explanation makes no sense for me.
upvoted 1 times
...
Arr14487
1 year, 9 months ago
Selected Answer: AF
Option B, Increase the App Configuration cache expiration from the default value, is not a good solution for dynamic configuration updates.
upvoted 2 times
...
adilkhan
2 years ago
A,B 100% correct answer!
upvoted 2 times
...
adilkhan
2 years, 1 month ago
B makes no sense A and D are correct!
upvoted 1 times
...
Dats1987
2 years, 1 month ago
Selected Answer: AB
AB , looks correct.
upvoted 2 times
...
adilkhan
2 years, 2 months ago
A. Create and register a sentinel key in the App Configuration store. Set the refreshAll parameter of the Register method to true. D. Create and configure Azure Key Vault. Implement the Azure Key Vault configuration provider. Chat GPT B n C are related to Cache and has nothing to do with the question. Chat GPT
upvoted 1 times
...
CODE_STS
2 years, 2 months ago
Selected Answer: AD
A. Create and register a sentinel key in the App Configuration store. Set the refreshAll parameter of the Register method to true: By creating a sentinel key in the App Configuration store, you can ensure that all configuration data remains consistent when changes to individual settings occur. You can register the sentinel key and set the refreshAll parameter of the Register method to true to refresh all settings in the App Configuration store. D. Create and configure Azure Key Vault. Implement the Azure Key Vault configuration provider: The Azure Key Vault configuration provider enables you to store configuration data in Azure Key Vault. By using the Azure Key Vault configuration provider, you can implement dynamic configuration updates in your app without causing the app to restart. This approach also reduces the overall number of requests made to the App Configuration APIs.
upvoted 1 times
...
Sriniv
2 years, 3 months ago
The two ways to achieve dynamic configuration updates in an ASP.NET Core app that uses Azure App Configuration are: A. Create and register a sentinel key in the App Configuration store. Set the refreshAll parameter of the Register method to true. D. Create and configure Azure Key Vault. Implement the Azure Key Vault configuration provider.
upvoted 1 times
...
SEEKER31
2 years, 3 months ago
Selected Answer: AB
correct answer
upvoted 1 times
...
OlavG
2 years, 3 months ago
Selected Answer: AB
Correct
upvoted 1 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...