exam questions

Exam DP-201 All Questions

View all questions & answers for the DP-201 exam

Exam DP-201 topic 13 question 1 discussion

Actual exam question from Microsoft's DP-201
Question #: 1
Topic #: 13
[All DP-201 Questions]

HOTSPOT -
You need to design the authentication and authorization methods for sensors.
What should you recommend? 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:
Sensor data must be stored in a Cosmos DB named treydata in a collection named SensorData
Sensors must have permission only to add items to the SensorData collection

Box 1: Resource Token -
Resource tokens provide access to the application resources within a Cosmos DB database.
Enable clients to read, write, and delete resources in the Cosmos DB account according to the permissions they've been granted.

Box 2: Cosmos DB user -
You can use a resource token (by creating Cosmos DB users and permissions) when you want to provide access to resources in your Cosmos DB account to a client that cannot be trusted with the master key.
Reference:
https://docs.microsoft.com/en-us/azure/cosmos-db/secure-access-to-data

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
extraego
Highly Voted 4 years, 10 months ago
I initially thought why not 'Azure managed identity', but realized that sensor is not an Azure service.
upvoted 12 times
...
syu31svc
Highly Voted 4 years, 6 months ago
Answer is correct and provided link validates it
upvoted 7 times
...
MMM777
Most Recent 3 years, 12 months ago
https://docs.microsoft.com/en-us/azure/iot-hub/iot-hub-dev-guide-sas?tabs=node#create-a-token-service-to-integrate-existing-devices You can use the IoT Hub identity registry to configure per-device/module security credentials and access control using tokens.
upvoted 1 times
...
savin
4 years ago
would sensors talk directly to cosmos db? I think Sensors should communicate to an IOT hub or event hub and then out put should be directed to cosmos db via analytic job.
upvoted 2 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 ...