Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Microsoft AZ-204 Exam - Topic 3 Question 132 Discussion

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 conn I answer presents part of the solution.NOTE: Each correct selection is worth one point.
B) Retrieve records from Offline Data Sync using an Incremental Sync. and E) Return the updatedAt column from the Mobile Service Backend and implement sorting by the message id.
A) Retrieve records from Offline Data Sync on every call to the PullAsync method.
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.

Microsoft AZ-204 Exam - Topic 3 Question 132 Discussion

Actual exam question for Microsoft's AZ-204 exam
Question #: 132
Topic #: 3
[All AZ-204 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 conn I answer presents part of the solution.

NOTE: Each correct selection is worth one point.

Show Suggested Answer Hide Answer
Suggested Answer: B, E

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.


https://docs.microsoft.com/en-us/azure/app-service-mobile/app-service-mobile-offline-data-sync

Contribute your Thoughts:

0/2000 characters
Trinidad
4 days ago
I think A is also important for pulling data.
upvoted 0 times
...
Tamra
10 days ago
B and C are the way to go for incremental sync.
upvoted 0 times
...
Dudley
15 days ago
I remember that pulling data on every call could lead to performance issues, so maybe we should avoid option A. Incremental Sync sounds like a better approach.
upvoted 0 times
...
Daniela
20 days ago
I practiced a similar question where we had to decide between pushing and pulling data. I feel like pushing records might be necessary, but I can't recall the exact details.
upvoted 0 times
...
Chaya
25 days ago
I'm not entirely sure about the options, but I remember something about using the updatedAt column for sorting. That might be important for keeping messages in order.
upvoted 0 times
...
Yoko
2 months ago
I think we should definitely consider using Incremental Sync for retrieving records. It seems more efficient for offline data.
upvoted 0 times
...

Save Cancel