โ† All Microsoft Certified: Azure Developer Associate Flashcard Decks

Azure Cosmos DB Development Flashcards

7 cards from real Microsoft Certified: Azure Developer Associate practice questions. Tap to flip, then mark Knew It or Still Learning โ€” missed cards come back until you master them.

Read the first 7 Azure Cosmos DB Development flashcards as text
  1. Which Azure Cosmos DB conflict resolution policy automatically picks the write with the highest value of a user-defined property?

    Answer: Last-Write-Wins (LWW)

    Last-Write-Wins (LWW) uses a user-defined integer property (_ts by default) to resolve conflicts, keeping the write with the highest value.

  2. How does Autoscale throughput in Azure Cosmos DB differ from standard (manual) provisioned throughput?

    Answer: Autoscale automatically scales RU/s between 10% and 100% of the maximum you set based on demand

    With Autoscale, Cosmos DB automatically adjusts throughput between 10% of the configured max RU/s and the full max, so you only pay for what you use.

  3. Which Azure service can be used to process Cosmos DB change feed events in a serverless, event-driven manner?

    Answer: Azure Functions with Cosmos DB trigger

    Azure Functions has a native Cosmos DB trigger that listens to the change feed and invokes the function whenever items are inserted or updated.

  4. What does the Azure Cosmos DB emulator provide for developers?

    Answer: A local environment that emulates the Cosmos DB service for development and testing without Azure costs

    The Azure Cosmos DB emulator runs locally on Windows and emulates the Cosmos DB service so developers can build and test without connecting to Azure or incurring costs.

  5. When using Azure Cosmos DB with multi-region writes enabled, which consistency levels are supported?

    Answer: All levels except Strong and Bounded Staleness

    With multi-region writes, Strong consistency and Bounded Staleness are not supported because they require single-master coordination; the other three levels (Session, Consistent Prefix, Eventual) are available.

  6. In Azure Cosmos DB, what is a logical partition?

    Answer: A subset of items in a container that share the same partition key value

    A logical partition is the set of all items in a container that have the same partition key value; Cosmos DB distributes logical partitions across physical partitions to scale throughput.

  7. Which Azure Cosmos DB feature allows you to run a query and receive results in a paged manner using a continuation token?

    Answer: Feed iterator with continuation token

    The SDK's FeedIterator uses a continuation token to page through large result sets, allowing you to fetch results in batches and resume from where you left off.