exam questions

Exam AZ-304 All Questions

View all questions & answers for the AZ-304 exam

Exam AZ-304 topic 2 question 13 discussion

Actual exam question from Microsoft's AZ-304
Question #: 13
Topic #: 2
[All AZ-304 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:
HTTP 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.
Reference:
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
LT
Highly Voted 4 years, 1 month ago
Correct answer..!!!!
upvoted 25 times
...
wai107
Highly Voted 4 years ago
anonymous: No API key is required. function: A function-specific API key is required. This is the default value if none is provided. admin: The master key is required. https://docs.microsoft.com/en-us/java/api/com.microsoft.azure.functions.annotation.httptrigger.authlevel?view=azure-java-stable
upvoted 11 times
LillyLiver
2 years, 11 months ago
This is good information as to the "why" of option 2.
upvoted 1 times
...
...
gauravit43
Most Recent 2 years, 2 months ago
I have passed AZ-305 on 15th April,2023 and this question was there in the exam
upvoted 1 times
...
dasEnder
3 years ago
I say is wrong! The question says Customers need to access the data. If you make it anonymous then everyone can access the data!
upvoted 1 times
AberdeenAngus
2 years, 11 months ago
Anonymous only means that no key is required. You can still set up authentication, for example with Azure AD, which is probably a better option most of the time. I thought this page explained it clearly https://docs.microsoft.com/en-us/azure/azure-functions/security-concepts?tabs=v4
upvoted 2 times
...
...
plmmsg
3 years, 3 months ago
GET Method Anonymous
upvoted 1 times
...
Dpejic
3 years, 5 months ago
Appere on exam 23-dec-2021
upvoted 3 times
...
syu31svc
3 years, 8 months ago
"public read-only" GET Method and Anonymous level are correct
upvoted 4 times
...
dkltruong88
3 years, 8 months ago
Was in exam today 1-10-2021. I passed with score 896. I chose the provided answer
upvoted 5 times
...
Gautam1985
3 years, 9 months ago
correct
upvoted 2 times
...
gssd4scoder
4 years ago
Very trivial
upvoted 2 times
examineezer
3 years, 6 months ago
Maybe for you but not necessarily for others. I dont see how your comment is any benefit to anyone.
upvoted 14 times
...
...
onlyonetime
4 years, 1 month ago
Correct
upvoted 1 times
...
Meedeh
4 years, 1 month ago
Correct answer
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 ...