AWS Certified Developer – Associate (DVA-C02)Development with AWS ServicesMedium

A developer is building a mobile application that needs to securely store user-specific configuration settings and preferences. These settings should be synchronized across multiple devices for the same user and remain available even if the device is offline. Which AWS service is BEST suited for this requirement?

  1. AAWS AppSync
  2. BAmazon DynamoDB
  3. CAmazon Cognito Sync
  4. DAmazon S3
Show answer & explanation

Correct answer: C. Amazon Cognito Sync

Amazon Cognito Sync is specifically designed to synchronize user profile data and application settings across mobile devices, even when offline. It stores data in a dataset that can be accessed and updated by the user's devices.

Why the other options are wrong

  • A. AppSync is a GraphQL service for real-time data synchronization, primarily for client-server communication, but Cognito Sync is more focused on user profile and preference synchronization across devices, including offline capabilities.
  • B. DynamoDB can store user data, but it requires custom logic for offline synchronization and cross-device syncing, which Cognito Sync provides out-of-the-box.
  • D. S3 is object storage and not optimized for small, frequently updated, user-specific synchronized data across devices.

Amazon Cognito Sync

A service that enables developers to synchronize application-related user data across mobile devices and the web without requiring you to write any backend code.

  • Synchronizes user data across multiple devices.
  • Supports offline data access and eventual consistency.
  • Integrates with Amazon Cognito Identity Pools.
  • Stores data in datasets for each user.

Memory trick: Cognito Sync keeps your mobile app's memories alive, even offline.

More Development with AWS Services questions