Microsoft DevOps Engineer Expert AZ-400 Practice Question
Your company runs an ASP.NET Core 6.0 web API in Azure Kubernetes Service. The application retrieves configuration and feature flags from Azure App Configuration by using the Microsoft.FeatureManagement libraries. Product owners want to turn feature flags on or off in the Azure portal and see the change reflected in production within 30 seconds, without recycling pods or redeploying the application. Which approach should you implement to satisfy this requirement?
Enable the RefreshAll feature in the Azure portal and set a global cache TTL of 30 seconds for the App Configuration store.
Add UseAzureAppConfiguration and UseFeatureFlags in Program.cs and call ConfigureRefresh to register a sentinel key with SetCacheExpiration(TimeSpan.FromSeconds(30)).
Define a CacheExpiration setting in appsettings.json for Microsoft.FeatureManagement and rely on IOptionsMonitor to reload configuration.
Send configuration change events to Azure Event Grid and trigger an AKS rolling restart to apply updated environment variables.
In an ASP.NET Core application, live refresh of feature flags from Azure App Configuration is provided by the Azure App Configuration provider middleware. By calling UseAzureAppConfiguration and UseFeatureFlags, then enabling ConfigureRefresh to register a sentinel key and setting SetCacheExpiration to 30 seconds, the configuration provider polls the service on that interval. When the sentinel key changes, all cached configuration and feature flags are refreshed, allowing flag state to change without restarting containers. The other options either rely on mechanisms that do not automatically pull updates from App Configuration, describe non-existent settings, or require restarting pods, so they do not meet the 30-second, no-restart requirement.
Ask Bash
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.
What is Azure App Configuration?
Open an interactive chat with Bash
What is the purpose of ConfigureRefresh in Azure App Configuration?
Open an interactive chat with Bash
How does SetCacheExpiration work in configuration updates?
Open an interactive chat with Bash
Microsoft DevOps Engineer Expert AZ-400
Design and implement build and release pipelines
Your Score:
Report Issue
Bash, the Crucial Exams Chat Bot
AI Bot
Loading...
Loading...
Loading...
Pass with Confidence.
IT & Cybersecurity Package
You have hit the limits of our free tier, become a Premium Member today for unlimited access.
Military, Healthcare worker, Gov. employee or Teacher? See if you qualify for a Community Discount.
Monthly
$19.99
$19.99/mo
Billed monthly, Cancel any time.
3 Month Pass
$44.99
$14.99/mo
One time purchase of $44.99, Does not auto-renew.
MOST POPULAR
Annual Pass
$119.99
$9.99/mo
One time purchase of $119.99, Does not auto-renew.
BEST DEAL
Lifetime Pass
$189.99
One time purchase, Good for life.
What You Get
All IT & Cybersecurity Package plans include the following perks and exams .