Integrate an Azure Cosmos DB solution
Drill 13 practice questions focused entirely on Integrate an Azure Cosmos DB solution for the Microsoft DP-420 exam. Tap an answer for instant feedback and a full explanation — no sign-up, always free.
A retail company exposes its Azure Cosmos DB for NoSQL product catalog through an Azure AI Search index using an indexer. Products are frequently discontinued, and when they are, the corresponding document is physically deleted from the Cosmos DB container. Users complain that discontinued products still appear in search results even after the indexer runs on schedule. Which action should you take so the indexer removes deleted products from the search index?
A retail company stores product documents in an Azure Cosmos DB for NoSQL container. The product catalog team wants to add a semantic product search feature to their website that returns products based on meaning rather than exact keyword matches. They plan to use Azure AI Search over the Cosmos DB data. The team already generates text embeddings for each product description. Which Azure AI Search capability should they configure to satisfy this semantic-similarity requirement?
A retail analytics team enables Azure Synapse Link on a Cosmos DB for NoSQL container. The transactional data must be purged after 30 days to control storage costs, but the data science team needs to query up to 2 years of historical data through the analytical store via Synapse serverless SQL pools. How should the team configure retention to meet both requirements?
A retail team stores a product catalog in an Azure Cosmos DB for NoSQL container. They want to expose full-text and faceted search over the catalog using Azure AI Search, and the index must automatically pick up new and modified products without re-crawling the entire container each run. Products are updated frequently throughout the day. What is the most appropriate way to configure the Azure AI Search indexer for this requirement?
An e-commerce platform stores individual order documents in a Cosmos DB container partitioned by /customerId. The analytics team needs a separate 'customerSummary' container that maintains a running total of each customer's lifetime spend and order count, updated within seconds of any new order. The solution must scale automatically and avoid expensive periodic full-container scans. Which approach best meets these requirements?
An e-commerce platform stores each customer's order in an 'orders' container partitioned by /customerId. The team needs an Azure Function triggered by the Cosmos DB change feed that, for every new or updated order, must (1) write a denormalized summary document to a 'customerOrderHistory' container and (2) push a message to a Service Bus queue for downstream fulfillment. The function must process changes reliably and scale across partitions automatically. Which approach correctly implements this integration?
Your team built an Azure Function with a Cosmos DB trigger to process the change feed of an 'Orders' container for real-time fraud scoring. During a marketing campaign, order volume increases tenfold. You observe that a single Function instance is processing all changes and cannot keep up, causing rising latency. The container has 20 physical partitions. What is the correct way to enable the Function to scale out and process changes in parallel across multiple instances?
A retail company stores order documents in an Azure Cosmos DB for NoSQL container. Compliance requires that once an order document reaches a 'Completed' status, a copy must be moved to Azure Blob Storage for long-term archival, and the archived record must never be lost even if processing fails temporarily. The team wants a serverless, low-maintenance approach that automatically reacts to changes. Which design best meets these requirements?
An e-commerce platform stores Customers and Orders in separate Azure Cosmos DB for NoSQL containers. When a customer record is soft-deleted (a 'deleted' flag set to true), the business requires that all of that customer's orders be automatically marked as orphaned within seconds, without impacting the write latency of the customer-facing application. Which approach best satisfies this requirement?
A retail company streams order events from an Azure Cosmos DB container into Azure Event Hubs using an Azure Function bound to the change feed. The analytics team wants every raw event automatically persisted to an Azure Data Lake Storage Gen2 account in Avro format for long-term compliance archiving, without writing or maintaining any additional consumer code. What should you configure?
A retail company stores order documents in an Azure Cosmos DB for NoSQL container. The architecture team wants every new or updated order to be streamed to multiple independent downstream systems: a real-time fraud-detection service, a Spark streaming job, and a long-term data lake archive. Each consumer must process the same stream independently at its own pace, and the solution should require minimal custom polling code against Cosmos DB. Which approach best meets these requirements?
Your company runs an operational Azure Cosmos DB for NoSQL account that backs a retail order-processing app. The BI team wants to run Spark and T-SQL queries over the operational data in Microsoft Fabric with near real-time freshness, without provisioning analytical throughput, writing ETL pipelines, or affecting the transactional workload's RU consumption. They also want the replicated data stored in OneLake in an open Delta/Parquet format so it can be reused by other Fabric engines. Which approach best meets these requirements?
Your team is starting a brand-new analytics initiative on top of an existing Azure Cosmos DB for NoSQL account. The goal is to run large-scale analytical queries and build Power BI reports over operational data without impacting transactional RU consumption, and without building or maintaining ETL pipelines. Following current Microsoft recommendations for new analytics projects, which approach should you choose?
More DP-420 practice
Keep going with the other Microsoft Azure Cosmos DB Developer Specialty (DP-420) domains, or take a full timed mock exam.
← Back to DP-420 overview