exam questions

Exam AZ-220 All Questions

View all questions & answers for the AZ-220 exam

Exam AZ-220 topic 4 question 6 discussion

Actual exam question from Microsoft's AZ-220
Question #: 6
Topic #: 4
[All AZ-220 Questions]

HOTSPOT -
You create an Azure Stream Analytics job that has the following query.

The job is configured to have an Azure IoT Hub input and an output to an Azure function.
For each of the following statements, select Yes if the statement is true. Otherwise, select No.
NOTE: Each correct selection is worth one point.
Hot Area:

Show Suggested Answer Hide Answer
Suggested Answer:
Box 1: Yes -
All time handling operations in Azure Stream Analytics are in UTC.

Box 2: No -
Tumbling windows are a series of fixed-sized, non-overlapping and contiguous time intervals.

Box 3: Yes -
Reference:
https://docs.microsoft.com/en-us/stream-analytics-query/time-management-azure-stream-analytics

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
tita_tovenaar
Highly Voted 4 years ago
answers are: - No. the function has a 24h tumbling window, but that doesn’t mean ot starts at midnight. it can start any time. - No - No. see first answer. a restart will just kick off tumbling windows from that moment. first and last points hang together. yes-no or no-yes are impossible.
upvoted 16 times
...
ADC88
Highly Voted 4 years, 2 months ago
-NO -NO -YES
upvoted 9 times
liberty123
3 years, 3 months ago
Agree with you
upvoted 1 times
...
zartheus
4 years, 2 months ago
Ignore my upvote. I would actually go for YES, NO, NO.
upvoted 6 times
...
...
LaggAt
Most Recent 2 years, 5 months ago
Yes/No/No I was confused by the wording. 'function' relates to the output calling a function, not to the execution of the query. Once I got this, it seems the given Answers are correct except the last one which shouldn't happen. Yes: function will be invoked when the time window ends, so at midnight. No: function should not be called for a time window still open, nor for previous data as we are streaming No: as during the day the window isn't closed, there should be no output. Hope we will find out someday which answer is right :)
upvoted 1 times
...
tztztz
2 years, 9 months ago
1. NO - Tumbling Window's end time is inclusive by default, so any data from midnight will need to be included in the last window. Meaning the earliest possible function invocation is 00:01, possibly even later after accounting for processing time. The event timestamp will be at midnight, but the function will not be invoked at midnight. 2. YES - As far as I know, no output data will be generated if there is no input data for the window. 3. NO - The job could run many times. The number of run times will depend on what the job start time was set to and the amount of time remaining in the day. The default job start time is when you press the Start button. If the job is started soon after midnight, the function will be executed 23 times during that day (24 times per day thereafter).
upvoted 1 times
tztztz
2 years, 9 months ago
I'm changing my vote for number 2 to NO, the function will be invoked if the job start time is changed from its default to a date further in the past. Meaning the function could be invoked even if the IoT Hub receives no telemetry data. Regarding number 3, I made a mistake thinking the tumbling window was hourly, but it's not, it's 24 hours. Doesn't change the answer though, as the job start time could be set to a date further in the past, causing the function to be invoked more than once in a day.
upvoted 1 times
...
PreetDP900
2 years, 3 months ago
Please don't confused and don't confused other people. The function will run only once in 24 hours. The statement is saying TumblingWindow(Hour,24) means a window of 24 hour NOT function is going to run 24 times.
upvoted 2 times
...
...
kohmaksimka
3 years, 5 months ago
I believe answers are YES - YES - YES. 1. Invoked at midnight: unlike mentioned in other responses, tumbling window function is executed at the end of the window. Executing query in image from docs (https://docs.microsoft.com/en-us/stream-analytics-query/tumbling-window-azure-stream-analytics) will return midnight as execution time (the System.Timestamp value). No matter when you start the function. 2. Invoked only when telemetry is received: if you choose a query with tumbling window less than the time property difference between messages, no record output is generated. So as long as there is no telemetry data coming in, no result from window is generated. 3. If you restart a function from last time it was stopped, it will catch up on all the queued data. The window duration affects the timestamp property, so not current time clock
upvoted 3 times
liberty123
3 years, 3 months ago
I agree with you about the third point, 3. If you restart a function from last time it was stopped, it will catch up on all the queued data.
upvoted 1 times
...
...
wooyay
4 years, 2 months ago
Not sure about the invoked at midnight one. I would guess tumbling windows start at the moment they are defined, not at the start of the day.
upvoted 3 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 ...