Launch price: every exam for $29.99 a year, for the first 300 buyers. See the price

CertStreak
Menu

Implement feature flags by using Azure App Configuration Feature Manager

A worked example

Single answer

An ASP.NET Core app uses the feature manager with the flag declaration shown in the exhibit. No other settings are applied to the NewCheckout flag. The following table shows each request's time and the result the Percentage filter would return:

RequestRequest time (UTC)Percentage filter
Request 12026-06-15 12:00:00Not enabled
Request 22026-07-01 12:00:00Enabled
Request 32026-07-02 12:00:00Not enabled
"FeatureManagement": {
    "NewCheckout": {
        "EnabledFor": [
            {
                "Name": "TimeWindow",
                "Parameters": {
                    "Start": "Mon, 01 Jun 2026 00:00:00 GMT",
                    "End": "Tue, 30 Jun 2026 23:59:59 GMT"
                }
            },
            {
                "Name": "Percentage",
                "Parameters": {
                    "Value": 50
                }
            }
        ]
    }
}

For which requests is the NewCheckout feature flag on?

Choose one answer
Why

The configured filters enable the feature when at least one returns true. Request 1 occurs during the time window, so evaluation stops with the feature enabled. Request 2 occurs outside that window but is enabled by the Percentage filter. Request 3 meets neither condition, so the feature is off.

  • Correct: Request 1 and Request 2. Request 1 falls within the configured time window, so its first filter enables the feature. Request 2 falls outside the window, but its Percentage filter enables the feature. Neither filter enables Request 3.
  • Not correct: Request 1. Request 1 is within the time window, but it is not the only enabled request. Evaluation continues when a filter returns false, so the Percentage filter also enables Request 2.
  • Not correct: Request 1, Request 2, and Request 3. Request 3 occurs after the time window ends, and its Percentage filter also returns false. With neither filter enabling the feature, Request 3 remains off.
  • Not correct: Request 2. Request 1 is within the time window and is therefore enabled by the first filter. Once a filter enables the feature, the remaining filters are skipped.

Practise this topic until it's automatic.

Ten questions a day, every answer explained, and misses that come back until you beat them.

Start free