Microsoft
DP-420 · Question #172
You have an Azure subscription that contains an Azure Cosmos DB for NoSQL account. You need to write a SQL query that will return multiple items. The solution must meet the following requirements: - F
Sign in or unlock DP-420 to reveal the answer and full explanation for question #172. The question stem and answer options stay visible for context.
Design and implement data models
Question
You have an Azure subscription that contains an Azure Cosmos DB for NoSQL account. You need to write a SQL query that will return multiple items. The solution must meet the following requirements:
- For each item returned, include the current Coordinated Universal
Time (UTC) date and time, formatted as an ISO 8601 string.
- Minimize development effort.
What should you use?
Options
- Aa user-defined function
- BGetCurrentTimestamp()
- CGetCurrentDateTime()
- DDateTimePart()
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
#Cosmos DB SQL API#Date and Time Functions#Querying Data#ISO 8601