Questions

  1. How does the CloudKit server notify apps about updates?

a) Background Fetch.
b) Silent push notifications.
c) It doesn't. Apps should ask for changes on launch.

  1. Which object do you send along with a fetch request to CloudKit so you only receive new changes?

a) A change token.
b) A timestamp.
c) The last object you received updates for.

  1. How does your code know whether a certain CKRecord is a movie, family member, or something else?

a) Through recordName.
b) By checking what properties are available.
c) Through recordType.

  1. What kind of data do you have to store alongside your objects in Core Data to be able to properly sync local data with CloudKit?

a) Their change tokens.
b) The encoded CloudKit metadata.
c) The zone they were retrieved from.

  1. What's a good place to store server change tokens?

a) Core Data.
b) In an array.
c) UserDefaults.

  1. Why is it smart to import CloudKit data on a background managed object context?

a) Because you don't know how long the import will take and you don't want to block the main thread.
b) Because background contexts are faster at writing data.
c) To prevent simultaneous read and write operations.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.135.219.166