Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Microsoft Exam DP-420 Topic 15 Question 43 Discussion

Actual exam question for Microsoft's DP-420 exam
Question #: 43
Topic #: 15
[All DP-420 Questions]

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

You run the following query against a container in the account.

SELECT

IS_NUMBER("1234") AS A,

IS_NUMBER(1234) AS B,

IS_NUMBER({prop: 1234}) AS C

What is the output of the query?

Show Suggested Answer Hide Answer
Suggested Answer: B

Contribute your Thoughts:

Emogene
29 days ago
Is this the Azure Cosmos DB version of 'Is it a bird? Is it a plane? No, it's Superman!'? This is too easy, I was hoping for some real cosmic-level questions.
upvoted 0 times
Hubert
11 hours ago
User1: A) [{\'A\': false, \'B\': true, \'C\': false}]
upvoted 0 times
...
...
Talia
1 months ago
I can't believe they're asking us to check if something is a number. Next thing you know, they'll be asking us to check if the sky is blue. But hey, at least it's an easy point on the exam.
upvoted 0 times
...
Donette
1 months ago
Hmm, this question is really testing our understanding of JSON and data types. I'm gonna go with option D just to see what happens. Who knows, maybe the Azure Cosmos DB API has some surprises up its sleeve!
upvoted 0 times
Dana
8 days ago
User 3
upvoted 0 times
...
Cristy
18 days ago
User 2
upvoted 0 times
...
Catarina
20 days ago
User 1
upvoted 0 times
...
...
Anglea
1 months ago
Aha! I know this one. The IS_NUMBER function returns true if the input is a valid number, and false otherwise. Let's see, the first one is a string, the second one is a number, and the third one is an object with a numeric property. Gotta be option C!
upvoted 0 times
Hannah
20 days ago
Looks like option C is the winner here.
upvoted 0 times
...
Nicolette
21 days ago
So, A is false, B is true, and C is false in this case.
upvoted 0 times
...
Margo
23 days ago
Yeah, the IS_NUMBER function should return true for the string and number, but false for the object.
upvoted 0 times
...
Gennie
28 days ago
I think you're right, option C seems to be the correct output.
upvoted 0 times
...
...
Floyd
2 months ago
No problem, happy to help.
upvoted 0 times
...
Tonja
2 months ago
That makes sense, thanks for explaining.
upvoted 0 times
...
Floyd
2 months ago
Because the IS_NUMBER function will return true for a number and false for a string, so option B makes sense.
upvoted 0 times
...
Jill
2 months ago
Wait, is the query supposed to check if the input is a number? That's too easy, I was expecting something more complex.
upvoted 0 times
Eveline
16 days ago
I agree, I was expecting a more complex query as well.
upvoted 0 times
...
In
23 days ago
It's a simple query to check if the input is a number.
upvoted 0 times
...
Rosamond
1 months ago
User 2: I agree, it seems pretty straightforward.
upvoted 0 times
...
Cornell
1 months ago
The output will be [{'A' false, 'B' true, 'C' false}]
upvoted 0 times
...
Valentin
1 months ago
Yes, the query is checking if the input is a number.
upvoted 0 times
...
Dalene
1 months ago
User 1: Yes, the query is checking if the input is a number.
upvoted 0 times
...
...
Tonja
2 months ago
Why do you think it's option B?
upvoted 0 times
...
Floyd
2 months ago
I disagree, I believe the correct answer is option B.
upvoted 0 times
...
Tonja
2 months ago
I think the output of the query is option A.
upvoted 0 times
...

Save Cancel