exam questions

Exam DP-203 All Questions

View all questions & answers for the DP-203 exam

Exam DP-203 topic 2 question 33 discussion

Actual exam question from Microsoft's DP-203
Question #: 33
Topic #: 2
[All DP-203 Questions]

HOTSPOT -
You are designing a monitoring solution for a fleet of 500 vehicles. Each vehicle has a GPS tracking device that sends data to an Azure event hub once per minute.
You have a CSV file in an Azure Data Lake Storage Gen2 container. The file maintains the expected geographical area in which each vehicle should be.
You need to ensure that when a GPS position is outside the expected area, a message is added to another event hub for processing within 30 seconds. The solution must minimize cost.
What should you include in the solution? 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:
Box 1: Azure Stream Analytics -

Box 2: Hopping -
Hopping window functions hop forward in time by a fixed period. It may be easy to think of them as Tumbling windows that can overlap and be emitted more often than the window size. Events can belong to more than one Hopping window result set. To make a Hopping window the same as a Tumbling window, specify the hop size to be the same as the window size.

Box 3: Point within polygon -
Reference:
https://docs.microsoft.com/en-us/azure/stream-analytics/stream-analytics-window-functions

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
Alekx42
Highly Voted 3 years, 11 months ago
You do not need a Window function. You just process the data and perform the geospatial check as it arrives. See the same example here: https://docs.microsoft.com/en-us/azure/stream-analytics/geospatial-scenarios
upvoted 90 times
captainbee
3 years, 11 months ago
That's what I thought, there's no reporting over time periods. It's just a case of when this happens, ping it off.
upvoted 7 times
...
isuru89
3 years, 4 months ago
It works, But not the most const effective.
upvoted 8 times
...
Vanq69
1 year, 7 months ago
The constraint is: "a message is added to another event hub for processing within 30 seconds". The example you provided specifies that: "Devices can emit their ID and location every minute through a stream called DeviceStreamInput" so does DeviceStreamInput only emit every minute or can you adapt it? Else you would need a window.
upvoted 1 times
...
...
JackArmitage
Highly Voted 3 years, 10 months ago
1. Azure Stream Analytics 2. No Window 3. Point within Polygon
upvoted 85 times
...
Pisha
Most Recent 10 months, 3 weeks ago
Got this question in exam 22/06/2024. but only 3 options in Window without tumbling
upvoted 4 times
...
KarlGardnerDataEngineering
11 months, 2 weeks ago
I see that people are mentioning tumbling window here for this question. Would the query look something like this? SELECT Collect() as allEvents INTO Output FROM DeviceStreamInput JOIN GeoFenceReference ON ST_WITHIN(DeviceStreamInput.GeoPosition, SiteReferenceInput.Geofence) = 0 WHERE DeviceStreamInput.DeviceID = GeoFenceReference.DeviceID GROUP BY TumblingWindow(second, 30)
upvoted 1 times
...
blazy001
1 year, 4 months ago
1. Azure Stream Analytics 2. Sliding (change on event) or No window for me 3. Point within Polygon
upvoted 1 times
...
Momoanwar
1 year, 5 months ago
Wrong, chatgpt : - **Service**: Azure Stream Analytics – This service is ideal for processing real-time streaming data from IoT devices. - **Window**: No window – As you're processing each GPS event as it arrives, you don't need to aggregate over a time window but process each event individually to check if it's within the expected area. - **Analysis type**: Point within polygon – This analysis type is used for geospatial analytics, where you're checking if a point (the GPS position) is within a predefined polygon (the expected geographical area for the vehicle).
upvoted 2 times
...
ThisAlreadyTaken
1 year, 9 months ago
It is clear tumbling window guys. requirements:- 1) new data created in every 1 min 2) if any out of range problem is there then need to send with in 30 sec. so window size is 1 min, we will have 1 min of data., so we will not miss data. hop size will be 30 sec, so we can process the data in 30 sec and report the problem if any.
upvoted 3 times
...
janaki
1 year, 11 months ago
Correct answers are: 1. Azure Stream analytics 2. Tumbling window 3. Point within Polygon
upvoted 8 times
...
akk_1289
2 years, 4 months ago
It sounds like you want to use Azure Stream Analytics for this task. Stream Analytics is a real-time analytics service that allows you to analyze and process high volumes of streaming data from various sources, such as Azure Event Hubs. For the window, you should use a Tumbling window. A tumbling window is a fixed-sized, non-overlapping window of data. It is well-suited for this scenario because you want to process the data once per minute, and a tumbling window with a size of 1 minute would allow you to do this. For the analysis type, you should use Point within polygon. This analysis type allows you to determine whether a GPS position falls within a specific geographical area. You can use the CSV file in the Azure Data Lake Storage Gen2 container to define the expected geographical areas for each vehicle.
upvoted 9 times
...
youngbug
2 years, 4 months ago
Choosing no window is totally wrong. No window means you have to process a msg everytime a event happened. It's costly. But a session window can be trigged when there is a event and can combine all the events in maxduration size(here is 30s) to add a packet of events at one time. And other types of windows are not suitable for the situation here.
upvoted 9 times
...
hoangcv
2 years, 6 months ago
I think the answer is correct, should be hopping window with window size is 30 seconds and hope size is 1 minute.
upvoted 2 times
semauni
1 year, 9 months ago
Why exactly? That means that every point is going to fall inside two events, so you'll be pinged two times.
upvoted 3 times
...
...
Deeksha1234
2 years, 9 months ago
Answer is correct, agree to the point made by VyshakhUnnikrishnan
upvoted 3 times
...
vishal10
2 years, 9 months ago
when a GPS position is outside the expected area, a message is added to another event hub for processing within 30 seconds. - this has to be taken in to account No Window
upvoted 3 times
...
vishal10
2 years, 9 months ago
1. Azure Stream Analytics 2. No Window 3. Point within Polygon
upvoted 2 times
...
Aurelkb
2 years, 11 months ago
i thing it is correct
upvoted 2 times
...
nefarious_smalls
2 years, 12 months ago
I am not sure about tumbling window here. I think it would work but what would be the requirement to send an event out every thirty seconds with no data i.e no vehicle has traveled outside the geographic area. In my opinion, a no window could send data to another event hub as needed.
upvoted 3 times
...
Khiem
3 years, 1 month ago
It's Tumbling. No Window: it should run 500 times per minute (500 messages are sent per minute) -> costly. Tumbling Window: if we configure 15s -> it runs 4 times per minute -> much better. Hopping Window: Some messages are processed twice (don't care allowing duplication or not) -> costly.
upvoted 12 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