exam questions

Exam AZ-204 All Questions

View all questions & answers for the AZ-204 exam

Exam AZ-204 topic 5 question 36 discussion

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

HOTSPOT
-

You develop new functionality in a web application for a company that provides access to seismic data from around the world. The seismic data is stored in Redis Streams within an Azure Cache for Redis instance.

The new functionality includes a real-time display of seismic events as they occur.

You need to implement the Azure Cache for Redis command to receive seismic data.

How should you complete the command? To answer, select the appropriate options in the answer area.

NOTE: Each correct selection is worth one point.

Show Suggested Answer Hide Answer
Suggested Answer:

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
Michael2023
Highly Voted 2 years, 3 months ago
puuh... knowing all this little things/ remembering all this little things for the exam sounds impossible :(
upvoted 67 times
macobuzi
1 year, 8 months ago
Exactly! That's why we study the exam in question bank :)
upvoted 24 times
Ciupaz
1 year, 7 months ago
Agree!
upvoted 5 times
...
...
...
2fa
Highly Voted 2 years, 3 months ago
Correct. BLOCK 0 means that we will wait infinitely (timeout 0 means it will never expire) for new items in a stream. $ ID means that we will receive only new messages, starting from the time we started listening https://redis.io/docs/data-types/streams-tutorial/#listening-for-new-items-with-xread
upvoted 22 times
...
Christian_garcia_martin
Most Recent 9 months ago
Given answer is correct.
upvoted 1 times
...
fuji36850
12 months ago
I would go with BLOCK -1 because its waiting for new events realtime while BLOCK 0 returns empty response if no data is received.
upvoted 1 times
...
piotrbugla
1 year, 2 months ago
This https://learn.microsoft.com/en-us/training/modules/azure-redis-publish-subscribe-streams/ Should be part of AZ-204 learning path
upvoted 2 times
...
130nk3r5
1 year, 4 months ago
Answer is correct! To receive seismic data in real-time from Redis Streams, you should use the XREAD command. The XREAD command is a blocking command that allows a client to wait for new data to be added to a stream. This is perfect for real-time applications as it allows the client to receive new data as soon as it is available. The command should be completed as follows: XREAD BLOCK 0 STREAMS seismic_data $ Here, "BLOCK 0" means the command will block indefinitely until new data is available. "STREAMS" is followed by the name of the stream(s) to read from, in this case "seismic_data". The "$" symbol is a special ID which represents the last message in the stream, so the command will only return new messages that arrive after the command is run.
upvoted 5 times
...
subarna530
1 year, 4 months ago
XREAD, BLOCK 0, and $ is the answer that I memorized! I have no clue why!
upvoted 6 times
...
dddddd111
1 year, 6 months ago
I failed on my first attempt. I only got 646/1000. I chose C#. MS has recently updated the AZ-204 (Oct 2023), so please be guided that some highly voted answers here might not be correct.
upvoted 2 times
AndySmith
1 year, 6 months ago
Did they add any new Qs outside of this "tutorial"? Or they just updated existing Qs - e.g. answer options, etc.
upvoted 2 times
...
...
BaoNguyen2411
1 year, 9 months ago
got this question on 29/06/2023
upvoted 7 times
...
brwilli1
1 year, 9 months ago
This was on the test 07/14/2023
upvoted 8 times
...
KarthikCS
2 years ago
These AZ exam questions are some of the most ridiculous ones ever. Looks like MS wants you to fail unless you senselessly memorize stupid things. I wonder how dumb the team that sets these questions must be.
upvoted 15 times
...
surprise0011
2 years ago
wtf is that haha
upvoted 12 times
...
mmdex
2 years, 2 months ago
This question is so ridiculous that I actually remember its answer better than any other.
upvoted 17 times
...
uffuchsi
2 years, 2 months ago
Agree with the others here - seems quite silly to be expected to remember detail like this. Would be interested to know if anyone recieved this question in their exam
upvoted 4 times
...
NombreFalso
2 years, 2 months ago
Feels like anything goes and they can ask you about anything that's ever existed
upvoted 10 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