exam questions

Exam AZ-204 All Questions

View all questions & answers for the AZ-204 exam

Exam AZ-204 topic 5 question 40 discussion

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

You are building an application to track cell towers that are available to phones in near real time. A phone will send information to the application by using the Azure Web PubSub service. The data will be processed by using an Azure Functions app. Traffic will be transmitted by using a content delivery network (CDN).

The Azure function must be protected against misconfigured or unauthorized invocations.

You need to ensure that the CDN allows for the Azure function protection.

Which HTTP header should be on the allowed list?

  • A. Authorization
  • B. WebHook-Request-Callback
  • C. Resource
  • D. WebHook-Request-Origin
Show Suggested Answer Hide Answer
Suggested Answer: D 🗳️

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
halfway
Highly Voted 2 years ago
Selected Answer: D
https://learn.microsoft.com/en-us/azure/azure-web-pubsub/howto-develop-eventhandler#upstream-and-validation
upvoted 21 times
...
AndySmith
Highly Voted 1 year, 5 months ago
Most likely, it's A, since they ask about "Unauthorized protection" instead of "Abuse Protection", which are both supported by underlying "CloudEvents HTTP protocols" (web-hooks). https://github.com/cloudevents/spec/blob/v1.0/http-webhook.md#4-abuse-protection So, if we read attentively about Abuse Protection / webhook-request-origin, we can find this excerpt: "It is important to understand is that the handshake does not aim to establish an authentication or authorization context. It only serves to protect the sender from being told to a push to a destination that is not expecting the traffic. While this specification mandates use of an authorization model, this mandate is not sufficient to protect any arbitrary website from unwanted traffic if that website doesn't implement access control and therefore ignores the Authorization header." And this is Authorization header description in this protocol: https://github.com/cloudevents/spec/blob/v1.0/http-webhook.md#3-authorization
upvoted 5 times
...
Iaminall
Most Recent 2 months ago
Selected Answer: D
The answer is D: WebHook-Request-Origin Authorization: Generic auth header, not specific to WebPubSub validation WebHook-Request-Callback: Not used for origin validation Resource: Not relevant for webhook validation WebHook-Request-Origin: Used by WebPubSub to identify itself
upvoted 1 times
...
Vichu_1607
5 months, 1 week ago
Selected Answer: A
Authorization
upvoted 2 times
...
Mattt
5 months, 3 weeks ago
Selected Answer: A
A should be correct
upvoted 1 times
...
Greenozaur
6 months, 2 weeks ago
Selected Answer: A
WebHook-Request-Origin cannot protect from unauthorized invocations as it contains just DNS name https://github.com/cloudevents/spec/blob/main/cloudevents/http-webhook.md#412-webhook-request-origin
upvoted 3 times
...
Vichu_1607
6 months, 4 weeks ago
Selected Answer: A
The Authorization header is used to authenticate a user agent with a server. In the context of Azure Functions, this header is used to pass the function or system keys when making HTTP requests to the function. By allowing this header, you can ensure that only authorized requests can invoke the function.
upvoted 1 times
...
0cc50bf
8 months, 1 week ago
Selected Answer: A
Guys. Webhook-Request-Origin does nothing to protect against *unauthorized* requests. The Authorization header must be allowed by the CDN.
upvoted 3 times
...
8ac3742
8 months, 2 weeks ago
The original question could indeed be clearer. The focus should be on ensuring that the CDN allows for the protection of the data being transmitted to the phone, rather than the Azure Function itself.
upvoted 1 times
...
Stel0Papad4
10 months, 3 weeks ago
Selected Answer: A
Copilot: A. Authorization - Correct The Authorization header is used to authenticate the client/user in the application by including authorization credentials. It’s crucial for protecting the Azure function against misconfigured invocations. B. WebHook-Request-Callback - Incorrect The WebHook-Request-Callback is not a standard HTTP header and it’s not typically used for authorization or protection against misconfigured invocations. C. Resource - Incorrect The Resource is not a standard HTTP header and it’s not typically used for authorization or protection against misconfigured invocations. D. WebHook-Request-Origin - Incorrect The WebHook-Request-Origin is not a standard HTTP header and it’s not typically used for authorization or protection against misconfigured invocations.
upvoted 1 times
1CY1
10 months, 1 week ago
This does not look like it's from the PubSub documentation. From the documentation... The WebHook-Request-Origin request header is set to the service domain name xxx.webpubsub.azure.com, and it expects the response to have a header WebHook-Allowed-Origin to contain this domain name or .... For now, we don't support WebHook-Request-Rate and WebHook-Request-Callback. Authorisation and Resource headers are not mentioned.
upvoted 1 times
1CY1
10 months, 1 week ago
Am going with Answer : D.
upvoted 1 times
...
...
...
AndySmith
1 year, 5 months ago
On exam 3-Nov-2023. Went with most-voted answer - 932/1000.
upvoted 3 times
...
dddddd111
1 year, 6 months ago
Selected Answer: A
The Authorization header (Option A) is widely used for authentication in HTTP requests. It is a standard header for including credentials, tokens, or other authentication information. By allowing the Authorization header on the CDN, you can ensure that only requests with valid authorization tokens or credentials can invoke your Azure function, providing a secure method of protection against unauthorized invocations.
upvoted 4 times
...
Ciupaz
1 year, 7 months ago
Selected Answer: A
Why not A? To ensure that the Azure Function is protected against misconfigured or unauthorized invocations when using a CDN, you should allow the "Authorization" HTTP header.
upvoted 4 times
Christian_garcia_martin
8 months, 3 weeks ago
actually is A
upvoted 1 times
...
...
JH81
1 year, 10 months ago
This cannot possibly be a real question the way it is written.
upvoted 4 times
...
adilkhan
1 year, 12 months ago
B. Enable Application Insights site extensions. E. Enable the Always On setting for the app service. D. Enable Profiler. chat gpt
upvoted 1 times
damianadalid
1 year, 11 months ago
wrong questions, this relates to #39
upvoted 6 times
...
...
adilkhan
2 years ago
D is correct
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