exam questions

Exam AZ-204 All Questions

View all questions & answers for the AZ-204 exam

Exam AZ-204 topic 4 question 8 discussion

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

HOTSPOT -
You are developing an ASP.NET Core app that includes feature flags which are managed by Azure App Configuration. You create an Azure App Configuration store named AppFeatureFlagStore that contains a feature flag named Export.
You need to update the app to meet the following requirements:
✑ Use the Export feature in the app without requiring a restart of the app.
✑ Validate users before users are allowed access to secure resources.
✑ Permit users to access secure resources.
How should you complete the code segment? To answer, select the appropriate options in the answer area.
NOTE: Each correct selection is worth one point.
Hot Area:

Show Suggested Answer Hide Answer
Suggested Answer:

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
hobob
Highly Voted 4 years, 1 month ago
UseAuthentication, Use Authorization, UseAzureAppConfiguration. The last option allows dynamic configuration to be reloaded without an app restart. https://docs.microsoft.com/en-us/azure/azure-app-configuration/enable-dynamic-configuration-aspnet-core?tabs=core5x
upvoted 166 times
Pooochie
4 years, 1 month ago
According to the site provided by you it should be 1. UseAzureAppConfiguration 2.UseAuthentication 3. Use Authorization
upvoted 13 times
xRiot007
2 years, 10 months ago
It is irrelevant in this case, the boxes only have ONE correct option each and those are, box1: authentication, box2: authorization, box3: app config.
upvoted 2 times
...
hobob
4 years, 1 month ago
And that's what I said. Just in a different order.
upvoted 9 times
avanthasiriwardana
4 years, 1 month ago
Order matters
upvoted 12 times
Kerrits
4 years ago
The UseAzureAppConfiguration is not available in the first list of options, only the last list of options. Also, for configuring the app the order only matters sometimes. It doesn't in this case.
upvoted 7 times
...
...
OPT_001122
2 years, 8 months ago
i have doubt regarding UseAuthentication UseAuthentication - this is not in the code snippet in the above link public void Configure(IApplicationBuilder app, IWebHostEnvironment env) { .......... app.UseAzureAppConfiguration(); app.UseHttpsRedirection(); app.UseStaticFiles(); app.UseRouting(); app.UseAuthorization(); }
upvoted 1 times
...
...
...
rdemontis
4 years, 1 month ago
correct, you're right!
upvoted 4 times
...
...
mlantonis
Highly Voted 3 years, 11 months ago
Box 1: UseAuthentication Need to validate users before users are allowed access to secure resources. UseAuthentication adds the AuthenticationMiddleware to the specified IApplicationBuilder, which enables authentication capabilities. To verify users, we need to use the Authentication middleware. Box 2: UseAuthorization Need to permit users to access secure resources. UseAuthorization adds the AuthorizationMiddleware to the specified IApplicationBuilder, which enables authorization capabilities. To authorize users to access resources , we need to use the Authorization middleware. Box 3: UseAzureAppConfiguration Adding the UseAzureAppConfiguration middleware to allow the configuration settings registered for refresh to be updated while the ASP.NET Core web app continues to receive requests. For using feature flags, you need to make use of the Azure App Configuration service. To ensure the configuration settings are refreshed without the need to restart the web app, you can use the middleware of UseAzureAppConfiguration();
upvoted 60 times
mlantonis
3 years, 11 months ago
Reference: https://docs.microsoft.com/en-us/azure/azure-app-configuration/enable-dynamic-configuration-aspnet-core?tabs=core5x https://docs.microsoft.com/en-us/dotnet/api/microsoft.aspnetcore.builder.iapplicationbuilder?view=aspnetcore-5.0
upvoted 12 times
...
...
ciamp
Most Recent 8 months, 2 weeks ago
the middleware get declare in specific sequence so UseAuthentication UseAuthorization UseAzureAppConfiguration
upvoted 1 times
...
raymond_abcd
1 year, 3 months ago
Answer is: UseAuthentication, UseAuthorization, UseAzureAppConfiguration. You need to use the feature flags for the requirement to enable the export feature. For that you have to call UseAzureAppConfiguration. See: https://learn.microsoft.com/en-us/azure/azure-app-configuration/use-feature-flags-dotnet-core?tabs=core6x The UseStaticFiles should normally be called first before authentication, but it does not meet any requirement to choose this as an option.
upvoted 1 times
...
HimGarg
1 year, 6 months ago
Why no one from ExamTopics bother to correct the answers?
upvoted 4 times
Ciupaz
1 year, 3 months ago
This is the real mystery.
upvoted 1 times
...
...
gmishra88
2 years, 6 months ago
And Microsoft claims this exam does not require specific knowledge of .Net SDK.
upvoted 6 times
macobuzi
1 year, 8 months ago
I doubt it ever stated that
upvoted 1 times
...
...
tushar1812
2 years, 9 months ago
Drop down 1 UseAuthentication Drop down 2 Use Authorization Drop down 3 UseAzureAppConfiguration. The last option allows dynamic configuration to be reloaded without an app restart. Refer https://docs.microsoft.com/en-us/azure/azure-app-configuration/enable-dynamic-configuration-aspnet-core?tabs=core5x
upvoted 2 times
...
Eltooth
2 years, 10 months ago
Authentication Authorisation Appconfig
upvoted 3 times
...
tramlong888
3 years, 4 months ago
the correct answer should be UseAuthentication, Use Authorization, UseAzureAppConfiguration.
upvoted 3 times
...
doudou123
3 years, 7 months ago
according Udemy, 1. UseAuthentication 2.Use Authorization 3. UseAzureAppConfiguration
upvoted 5 times
burakcive
2 years, 10 months ago
Which course on udemy?
upvoted 1 times
...
...
kondapaturi
3 years, 10 months ago
app.UseAuthentication(); - To verify users ,we need to use the Authentication middleware. app.UseAuthorization(); -To authorize users to access resources , we need to use the Authorization middleware. app.UseAzureAppConfiguration(); -For using feature flags, you need to make use of the Azure App Configuration service. To ensure the configuration settings are refreshed without the need to restart the web app, you can use the middleware of UseAzureAppConfiguration();
upvoted 2 times
...
UnknowMan
3 years, 11 months ago
1.UseAuthentication, -> Login 2.Use Authorization, -> Authorization 3.UseAzureAppConfiguration. -> Dynamic App settings
upvoted 3 times
...
glam
3 years, 11 months ago
UseAuthentication, Use Authorization, UseAzureAppConfiguration.
upvoted 3 times
...
pavan555manjunath
3 years, 11 months ago
Any one please confirm the answer is correct 1.UseAuthentication, 2.Use Authorization, 3.UseAzureAppConfiguration.
upvoted 6 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 ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago