nerdexam
Microsoft

AZ-204 · Question #158

You are developing an application to manage shipping information for cargo ships. The application will use Azure Cosmos D8 for storage. The application must run offline when ships are at sea. The…

The correct answer is C. Cassandra. For an application managing shipping information that requires offline operation at sea and online synchronization in port, the Azure Cosmos DB Cassandra API is the most suitable choice.

Submitted by jaden.t· Mar 30, 2026Develop for Azure storage

Question

You are developing an application to manage shipping information for cargo ships. The application will use Azure Cosmos D8 for storage. The application must run offline when ships are at sea. The application must be connected to Azure when ships are in port. Which Azure Cosmos D8 API should you use for the application?

Options

  • ACore
  • BMongoDe
  • CCassandra
  • DGremlin

How the community answered

(24 responses)
  • A
    8% (2)
  • B
    13% (3)
  • C
    75% (18)
  • D
    4% (1)

Why each option

For an application managing shipping information that requires offline operation at sea and online synchronization in port, the Azure Cosmos DB Cassandra API is the most suitable choice.

ACore

While Core (SQL) API can support offline sync with custom SDK logic, the Cassandra API's inherent distributed nature and consistency models align more directly with the requirements of robust offline operations and eventual consistency.

BMongoDe

The MongoDB API is a document database, and although it can be integrated with offline synchronization patterns, Cassandra's distributed write capabilities are often a better native fit for demanding disconnected scenarios.

CCassandraCorrect

The Azure Cosmos DB Cassandra API is a distributed database with a strong focus on high availability and eventual consistency, making it well-suited for applications that need to operate in disconnected environments. Its architectural design allows for writes to local instances which can then be synchronized with the central Cosmos DB backend when network connectivity becomes available, enabling seamless offline-first experiences.

DGremlin

The Gremlin API is designed for graph databases, focusing on relationships, which is not the primary requirement for managing shipping information with offline synchronization needs.

Concept tested: Azure Cosmos DB API for offline synchronization

Source: https://learn.microsoft.com/en-us/azure/cosmos-db/cassandra/cassandra-introduction

Topics

#Cosmos DB#Cassandra API#offline sync#API selection

Community Discussion

No community discussion yet for this question.

Full AZ-204 Practice