exam questions

Exam AZ-500 All Questions

View all questions & answers for the AZ-500 exam

Exam AZ-500 topic 4 question 5 discussion

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

You company has an Azure subscription named Sub1. Sub1 contains an Azure web app named WebApp1 that uses Azure Application Insights. WebApp1 requires users to authenticate by using OAuth 2.0 client secrets.
Developers at the company plan to create a multi-step web test app that preforms synthetic transactions emulating user traffic to Web App1.
You need to ensure that web tests can run unattended.
What should you do first?

  • A. In Microsoft Visual Studio, modify the .webtest file.
  • B. Upload the .webtest file to Application Insights.
  • C. Register the web test app in Azure AD.
  • D. Add a plug-in to the web test app.
Show Suggested Answer Hide Answer
Suggested Answer: C 🗳️

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
Elpresidento27
Highly Voted 4 years, 2 months ago
C is correct answer. The context of the question is from a Security/Access/Identities perspective, and not from developer's perspective. Check the answer here, section "Client Secret": https://docs.microsoft.com/en-us/azure/azure-monitor/app/availability-multistep#dealing-with-sign-in
upvoted 41 times
sureshatt
4 years, 1 month ago
I will also go with this answer. I would accept B if the app did not needed the client secret. But in this case, you need to get a token using client secret. For this, you need to first of all register your test app in Azure AD so that it can request tokens.
upvoted 12 times
...
...
111ssy
Highly Voted 4 years, 8 months ago
Correct answer: B
upvoted 16 times
...
91743b3
Most Recent 9 months, 1 week ago
On exam Aug 6 2024
upvoted 3 times
...
wardy1983
1 year, 5 months ago
Answer: C Explanation: The context of the question is from a Security/Access/Identities perspective, and not from developer's perspective. Check the answer here, section "Client Secret": https://docs.microsoft.com/en-us/azure/azure-monitor/app/availability-multistep#dealing-with-sign-in
upvoted 2 times
...
heatfan900
1 year, 8 months ago
The answer is C. The question clearly states that WebApp1 requries OAuth 2.0 which is performed via Azure AD. Also, from MICROSOFT BELOW: You'll need to create an app registration to use in your test environment. This is the premise of this question. What is required from authentication standpoint to get this going.
upvoted 5 times
...
fahrulnizam
2 years ago
Selected Answer: B
B. Upload the .webtest file to Application Insights
upvoted 2 times
...
d365ppp
2 years, 1 month ago
Selected Answer: C
https://learn.microsoft.com/en-us/azure/active-directory/develop/test-setup-environment Multi-step test is deprecated. The answer is C
upvoted 4 times
...
d365ppp
2 years, 1 month ago
Most likely, this question will not appear as it is deprecated.
upvoted 2 times
...
ExamStudy68
2 years, 1 month ago
I think the answer is correct. Looking at this link it doesn't say anywhere to register first... https://learn.microsoft.com/en-us/previous-versions/azure/azure-monitor/app/availability-multistep#dealing-with-sign-in In addition, multi-step web tests have been deprecated "Multistep web tests have been deprecated. We recommend using TrackAvailability() to submit custom availability tests instead of multistep web tests."
upvoted 1 times
...
majstor86
2 years, 2 months ago
Selected Answer: B
B. Upload the .webtest file to Application Insights.
upvoted 1 times
...
rgbykkk
2 years, 4 months ago
Going by the question, the web app is already registered 'sub1 contains azure web app name webApp1'. So answer must be B
upvoted 3 times
Fal991l
2 years, 2 months ago
AI: Azure Application Insights is a service that helps developers monitor and diagnose issues in web applications by collecting telemetry data from various sources, including web servers, custom code, and other Azure services. In order to authenticate users and authorize access to resources in Azure, web apps need to be registered in Azure AD. Therefore, to ensure that the web test app can authenticate with WebApp1, you would need to register the WebApp1 in Azure AD and configure it to use OAuth 2.0 client secrets for authentication.
upvoted 3 times
...
...
Kelly8023
2 years, 7 months ago
Multi-step web test has been deprecated. https://learn.microsoft.com/en-us/azure/azure-monitor/app/availability-multistep
upvoted 2 times
mung
2 years, 5 months ago
So it won't come up on the exam right?
upvoted 2 times
...
...
omkhan
2 years, 9 months ago
B is the correct Answer in this scenario
upvoted 2 times
...
[Removed]
2 years, 9 months ago
Answer B is correct https://docs.microsoft.com/en-us/azure/azure-monitor/app/availability-multistep
upvoted 2 times
...
Irishtk
2 years, 11 months ago
Answer A. Use Visual Studio to mod the token parameters returned during OAuth authentication. see the Open Authentication section https://docs.microsoft.com/en-us/azure/azure-monitor/app/availability-multistep f your test must sign in using OAuth, the general approach is: Use a tool such as Fiddler to examine the traffic between your web browser, the authentication site, and your app. Perform two or more sign-ins using different machines or browsers, or at long intervals (to allow tokens to expire). By comparing different sessions, identify the token passed back from the authenticating site, that is then passed to your app server after sign-in. Record a web test using Visual Studio. Parameterize the tokens, setting the parameter when the token is returned from the authenticator, and using it in the query to the site.
upvoted 1 times
...
samatar
3 years, 4 months ago
Selected Answer: C
C is correct answer
upvoted 6 times
...
rsharma007
3 years, 9 months ago
You need your WebTest App to be emulate your user and interact with your WebApp1. In order to do that both WebTest and WebApp1 need to be registered with AzureAD. WebTest App can then use the clientSecret obtained after registration to authorize with WebApp1 for unassisted testing. Answer C
upvoted 4 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