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

MongoDB C100DBA Exam - Topic 1 Question 127 Discussion

Which of the following are valid json documents? Select all that apply.
A) {'a':l, 'b':{'b':l, 'c':'foo', 'd':'bar', 'e':[l,2,4]}} and D) { }
B) {'city':'New York', 'population', 7999034, boros:{'queens', 'manhattan', 'staten island', 'the bronx', u 'brooklyn'}}
C) {'name':'Fred Flintstone';'occupation':'Miner';'wife':'Wilma'}

MongoDB C100DBA Exam - Topic 1 Question 127 Discussion

Actual exam question for MongoDB's C100DBA exam
Question #: 127
Topic #: 1
[All C100DBA Questions]

Which of the following are valid json documents? Select all that apply.

Show Suggested Answer Hide Answer
Suggested Answer: A, D

Contribute your Thoughts:

0/2000 characters
Jess
7 hours ago
B is totally wrong, missing colons!
upvoted 0 times
...
Raina
5 days ago
A has errors, "l" should be a valid value.
upvoted 0 times
...
Elvera
11 days ago
D is valid, it's an empty object!
upvoted 0 times
...
Carin
16 days ago
B has some syntax errors too, like the commas and missing quotes around keys. I feel like only D is safe here.
upvoted 0 times
...
Cristina
2 months ago
I'm not sure about A; I think the "l" should be a number or a string, but I can't recall exactly.
upvoted 0 times
...
Aja
2 months ago
I practiced a similar question, and I think D is definitely valid since it's an empty object.
upvoted 0 times
...
Kimberlie
2 months ago
I remember that JSON keys need to be in double quotes, so I think A and B might have issues.
upvoted 0 times
...

Save Cancel