DP-420 Exam QuestionsBrowse all questions from this exam

DP-420 Exam - Question 119


HOTSPOT -

You have an Azure Cosmos DB Core (SQL) API account named account1.

In account1, you run the following query in a container that contains 100GB of data.

Exam DP-420 Question 119

You view the following metrics while performing the query.

Exam DP-420 Question 119

For each of the following statements, select Yes if the statement is true. Otherwise, select No.

NOTE: Each correct selection is worth one point.

Hot Area:

Exam DP-420 Question 119
Show Answer
Correct Answer:
Exam DP-420 Question 119

Box 1: No -

Each physical partition should have its own index, but since no index is used, the query is not cross-partition.

Box 2: No -

Index utilization is 0% and Index Look up time is also zero.

Box 3: Yes -

A partition key index will be created, and the query will perform across the partitions.

Reference:

https://docs.microsoft.com/en-us/azure/cosmos-db/sql/how-to-query-container

Discussion

6 comments
Sign in to comment
[Removed]
Feb 28, 2024

YNY "This query's filter uses the system function UPPER, which isn't served from the index." https://learn.microsoft.com/en-us/azure/cosmos-db/nosql/query-metrics-performance#scan-queries-commonly-slow-and-expensive

[Removed]
Mar 3, 2024

YNN < correction

[Removed]
Oct 25, 2024

This is the correct answer

[Removed]
Oct 25, 2024

This is the correct answer

TRUESON
Nov 3, 2023

To correctly answer the question one would have to know the partionkey https://learn.microsoft.com/en-us/azure/cosmos-db/nosql/how-to-query-container

EvanG
Dec 11, 2023

using a function like Lower on the left side of equality won't use the index in relational dbs. Not sure about Cosmosdb

bcd_6
May 17, 2024

how do we know if it's cross partition query or not?

8fe085a
Dec 6, 2024

The third question ask waht happens when the container is recreated with the customerid as partition key, so it is not currently the partition key, therfore the query is cross partition.

matejka
Mar 27, 2025

I would say YNY

WimTS
Apr 17, 2025

YNN When you apply the LOWER() function to c.categoryid, the query engine cannot determine the exact value of the partition key without evaluating the function. As a result, Cosmos DB cannot route the query to a specific partition and must perform a cross-partition query, which can be less efficient.