nerdexam
MicrosoftMicrosoft

DP-420 · Question #199

DP-420 Question #199: Real Exam Question with Answer & Explanation

Sign in or unlock DP-420 to reveal the answer and full explanation for question #199. The question stem and answer options stay visible for context.

Optimize an Azure Cosmos DB solution

Question

You have an Azure Cosmos DB for NoSQL account that contains a database named DB1. Users run the following query against DB1. SELECT * FROM c WHERE c.bikeParts = "Frame, Chain, Peddles" ORDER BY c.bikeParts ASC You add an index to the recordset. You need to change the ORDER BY syntax of the query to optimize the use of the index. The solution must NOT change the result set. Which syntax should you use?

Options

  • AORDER BY c._ts ASC, c.bikeParts DESC
  • BORDER BY c._ts DESC, c.bikeParts ASC
  • CORDER BY c.bikeParts ASC, c._ts ASC
  • DORDER BY c.bikeParts DESC, c._ts ASC

Unlock DP-420 to see the answer

You've previewed enough free DP-420 questions. Unlock DP-420 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.

Topics

#Query optimization#Indexing#Composite indexes#ORDER BY clause
Full DP-420 PracticeBrowse All DP-420 Questions