exam questions

Exam DP-420 All Questions

View all questions & answers for the DP-420 exam

Exam DP-420 topic 4 question 13 discussion

Actual exam question from Microsoft's DP-420
Question #: 13
Topic #: 4
[All DP-420 Questions]

You have an Azure Cosmos DB database named database1 that contains a container named container1. The container1 container stores product data and has the following indexing policy.

Which path will be indexed?

  • A. /product/category
  • B. /product/brand/tailspin
  • C. /product/brand
  • D. /product/[]/category
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
monniq
Highly Voted 1 year, 1 month ago
Selected Answer: A
A matches the included path: /product/category/? https://learn.microsoft.com/en-us/azure/cosmos-db/index-policy#include-exclude-paths
upvoted 7 times
xRiot007
10 months ago
it doesn't. The path "product/category/toys" for example would match, but not "product/category"
upvoted 1 times
...
...
UNIFYSolutions
Highly Voted 1 year, 2 months ago
Selected Answer: B
This should be B) based on the wildcard for path inclusion which is applied before the exclusions
upvoted 6 times
Norvegec
11 months, 4 weeks ago
Incorrect. Wildcard is "*". "?" stands for scalar (non-complex) values.
upvoted 2 times
...
...
8fe085a
Most Recent 5 months ago
Actualy none as the whole index policy will generate an error: Failed to update container products: Message: {"code":"BadRequest","message":"Message: {\"Errors\":[\"The indexing path '\\/product\\/brand' could not be accepted, failed near position '14'. ... } But as this is not an accepted answer, mayby A would be the best one.
upvoted 1 times
...
[Removed]
6 months, 1 week ago
Selected Answer: B
Only B matches the pattern
upvoted 2 times
...
xRiot007
10 months ago
Selected Answer: B
B - product/brand/tailspin will be indexed. The exclusion is on product/brand not product/brand/*
upvoted 4 times
...
edavison
11 months, 1 week ago
A /brand/* is being excluded below.
upvoted 1 times
xRiot007
10 months ago
Answer is B
upvoted 1 times
...
xRiot007
10 months ago
It's "product/brand" not "product/brand/*" - very different things.
upvoted 1 times
...
...
b890yc
1 year, 1 month ago
Selected Answer: B
/product/brand/tailspin
upvoted 3 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago