exam questions

Exam AZ-301 All Questions

View all questions & answers for the AZ-301 exam

Exam AZ-301 topic 2 question 29 discussion

Actual exam question from Microsoft's AZ-301
Question #: 29
Topic #: 2
[All AZ-301 Questions]

HOTSPOT -
A company plans to implement an HTTP-based API to support a web app. The web app allows customers to check the status of their orders.
The API must meet the following requirements:
✑ Implement Azure Functions
✑ Provide public read-only operations
✑ Do not allow write operations
You need to recommend configuration options.
What should you recommend? To answer, configure the appropriate options in the dialog box in the answer area.
NOTE: Each correct selection is worth one point.
Hot Area:

Show Suggested Answer Hide Answer
Suggested Answer:
Allowed authentication methods: GET only

Authorization level: Anonymous -
The option is Allow Anonymous requests. This option turns on authentication and authorization in App Service, but defers authorization decisions to your application code. For authenticated requests, App Service also passes along authentication information in the HTTP headers.
This option provides more flexibility in handling anonymous requests.
References:
https://docs.microsoft.com/en-us/azure/app-service/overview-authentication-authorization

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
vihanc
Highly Voted 4 years, 11 months ago
testddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd
upvoted 7 times
...
glam
Most Recent 4 years, 5 months ago
Allowed authentication methods: GET only Authorization level: Anonymous
upvoted 1 times
...
sanketshah
4 years, 6 months ago
1. Get 2. Anonymous
upvoted 1 times
...
Stbalo
4 years, 9 months ago
answers are correct
upvoted 1 times
...
abhii87
4 years, 9 months ago
Answer is correct
upvoted 1 times
...
clearexam6677
4 years, 9 months ago
correct answer
upvoted 1 times
...
uhclstud
4 years, 9 months ago
Answer is correct
upvoted 1 times
...
Test_Taker
4 years, 11 months ago
Not sure i agree with the given answer. Sometimes you need to use POST to perform reads. You might have sufficiently complex search criteria that better fits in a body instead of the query string. In such cases you would need to permit POST as well. Consider how GraphQL uses GET and POST.
upvoted 3 times
maheshwary
4 years, 11 months ago
GET is used to read the data. POST is used for update the data. The requirement here is to allow only 'read'
upvoted 5 times
Test_Taker
4 years, 10 months ago
Not entirely accurate. POST (outside of the cases i mentioned above) generally are for creating data, PUT is generally for updating data. But anyone that been around API design/Architecture knows the "rules" aren't hard and fast and also don't fit well into every scenario, hence my previous note above.
upvoted 3 times
...
...
AhmedAL
4 years, 8 months ago
not to check a status for customer orders :)
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 ...