Which are the ONLY ways to project portions of an array?
Suggested Answer: C
Get Premium C100DBA Questions
as Interactive Web-Based Practice Test or PDF
Real Exam Format
Detailed Explanations
Instant Access
Get Your Practice Test
12 comments · newest first
WI
Willard
3 days ago
C) All of the above seems too broad. Not all apply.
DO
Dominga
8 days ago
I agree, but D) $elemMatch has its uses too.
DO
Dominga
13 days ago
I think A) $slice is the best choice. It directly projects portions.
MI
Minna
18 days ago
I thought $slice was the only way, this is confusing!
CA
Carol
23 days ago
B) $ is also a valid option, right?
JU
Justa
29 days ago
Wait, can you really use $elemMatch for that?
EL
Elmira
1 month ago
I think C) All of the above is correct!
TR
Trina
1 month ago
A) $slice is definitely one way.
SH
Shawna
1 month ago
I think $slice is the most common method, but I’m not confident about $ and $elemMatch being included as well.
VI
Virgilio
2 months ago
I feel like "All of the above" could be a trap answer. I should double-check what $ actually refers to in this context.
KI
King
2 months ago
I remember practicing a question where $elemMatch was mentioned, but I can't recall if it was specifically for projecting arrays.
RO
Rodolfo
2 months ago
I think $slice is definitely one of the ways, but I'm not sure about the others.