exam questions

Exam AZ-203 All Questions

View all questions & answers for the AZ-203 exam

Exam AZ-203 topic 2 question 3 discussion

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

You are developing a mobile instant messaging app for a company.
The mobile app must meet the following requirements:
✑ Support offline data sync.
✑ Update the latest messages during normal sync cycles.
You need to implement Offline Data Sync.
Which two actions should you perform? Each correct answer presents part of the solution.
NOTE: Each correct selection is worth one point.

  • A. Retrieve records from Offline Data Sync on every call to the PullAsync method.
  • B. Retrieve records from Offline Data Sync using an Incremental Sync.
  • C. Push records to Offline Data Sync using an Incremental Sync.
  • D. Return the updatedAt column from the Mobile Service Backend and implement sorting by using the column.
  • E. Return the updatedAt column from the Mobile Service Backend and implement sorting by the message id.
Show Suggested Answer Hide Answer
Suggested Answer: BE 🗳️
B: Incremental Sync: the first parameter to the pull operation is a query name that is used only on the client. If you use a non-null query name, the Azure Mobile
SDK performs an incremental sync. Each time a pull operation returns a set of results, the latest updatedAt timestamp from that result set is stored in the SDK local system tables. Subsequent pull operations retrieve only records after that timestamp.
E (not D): To use incremental sync, your server must return meaningful updatedAt values and must also support sorting by this field. However, since the SDK adds its own sort on the updatedAt field, you cannot use a pull query that has its own orderBy clause.
References:
https://docs.microsoft.com/en-us/azure/app-service-mobile/app-service-mobile-offline-data-sync

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
Az203test
Highly Voted 5 years, 2 months ago
Correct answer: B and D
upvoted 24 times
Jay_2pt0
5 years, 2 months ago
I believe you are right. https://docs.microsoft.com/en-us/azure/app-service-mobile/app-service-mobile-offline-data-sync
upvoted 3 times
...
riley5
5 years, 1 month ago
I think you are perhaps right as well.
upvoted 1 times
...
Mvii
5 years, 1 month ago
Sorting by messageId column wouldn't sort by latest - sort by updatedAt descending instead. D makes more sense than E.
upvoted 2 times
...
...
AK89
Highly Voted 5 years ago
Correct answer: B and D Link : https://docs.microsoft.com/en-us/previous-versions/azure/app-service-mobile/app-service-mobile-offline-data-sync Phrase for clarification : "To use incremental sync, your server must return meaningful updatedAt values and must also support sorting by this field. "
upvoted 6 times
...
Kumar1988
Most Recent 4 years, 2 months ago
How its option D , it should be E because sort by latest message id and get in offline sync
upvoted 1 times
...
silentsouls
4 years, 4 months ago
Message-Id is usually even more convoluted then a guid. Sorting on that would be a bad thing. so E is false. D is correct.
upvoted 1 times
...
Larry616
4 years, 9 months ago
Correct answer is B and D, coz it clearly said sorting by "updatedAt" column and doesn't support its own orderBy clause as below - To use incremental sync, your server must return meaningful updatedAt values and must also support sorting by this field. However, since the SDK adds its own sort on the updatedAt field, you cannot use a pull query that has its own orderBy clause.
upvoted 1 times
...
bluego78
4 years, 10 months ago
Answers are B and D... (not E) !! You can't order a query in an offline data async operation, because the query "is always" and "must be" ordered by "updatedAt" field.
upvoted 2 times
...
ChandraShekhar
4 years, 11 months ago
Hi, since the UpdateAt is already sorted we can't add our sorting. "To use incremental sync, your server must return meaningful updatedAt values and must also support sorting by this field. However, since the SDK adds its own sort on the updatedAt field, you cannot use a pull query that has its own orderBy clause." So Answer should be B and E
upvoted 3 times
...
Anjalianju
4 years, 11 months ago
are we sure is it B and D?
upvoted 1 times
...
malawneh
5 years, 1 month ago
the latest updatedAt timestamp from that result set is stored in the SDK local system tables. Subsequent pull operations retrieve only records after that timestamp. updatedAt is a column inside the local table, so the correct answer is B&D https://docs.microsoft.com/en-us/previous-versions/azure/app-service-mobile/app-service-mobile-offline-data-sync
upvoted 5 times
Jedik
5 years ago
"To use incremental sync, your server must return meaningful updatedAt values and must also support sorting by this field. " field/column - i guess
upvoted 2 times
...
...
Nids087
5 years, 1 month ago
Everywhere I see answer as B and E. Need more explanation as to by it is D and not E
upvoted 1 times
...
riley5
5 years, 2 months ago
Can you please explain why it’s not b and e?
upvoted 1 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 ...