MongoDB

MongoDB

Model Tree Structures has 10 Questions

____________ pattern requires additional steps of working with strings and regular expressions.

Materialized Paths
Array of Ancestors
Nested Sets
None of the mentioned
The Array of Ancestors pattern is slightly slower than the ________________ pattern

Materialized Paths
Array of Ancestors
Nested Sets
None of the mentioned
The ____________ pattern identifies each node in the tree as stops in a round-trip traversal of the tree.

Materialized Paths
Array of Ancestors
Nested Sets
None of the mentioned
Which of the following pattern is more straightforward to use ?

Materialized Paths
Array of Ancestors
Nested Sets
None of the mentioned
Which of the following pattern may provide a suitable solution for storing graphs ?

Child
Parent
Root
None of the mentioned
Point out the wrong statement :

You cannot query for a node in the children field to find its parent node only
You can query for a node in the children field to find its parent node as well as its siblings
You can query for a node in the children field to find its siblings only
None of the mentioned
The _________ References pattern stores each tree node in array the id(s) of the node’s children.

Child
Parent
Root
None of the mentioned
The ________ Links pattern provides a simple solution to tree storage but requires multiple queries to retrieve subtrees.

Child
Parent
Root
All of the mentioned
Point out the correct statement :

The query to retrieve the parent of a node is fast and straightforward
The query to retrieve the parent of a node is slow and straightforward
The query to retrieve the parent of a node is slow and complex
All of the mentioned
The ________ References pattern stores each tree node in a document; in addition to the tree node, the document stores the id of the node’s parent.

Child
Parent
Root
None of the mentioned