n8 Merged
n8 Merged
Question 1
Not answered
a. `update_one()`
b. `update()`
c. `replace_one()`
d. `modify()`
Question 2
Not answered
38. To find documents where a field value is within a specific array, which operator is used?
a. `$within`
b. `$exists`
c. `$in`
d. `$contains`
Question 3
Not answered
8. To update multiple documents that match a query in MongoDB, which method is used?
a. `update_many()`
b. `update()`
c. `modify_many()`
d. `replace_many()`
https://lms2.ai.saveetha.in/mod/quiz/review.php?attempt=320252&cmid=31264 1/7
10/25/24, 12:26 AM Unit 4 Practice Quiz: Attempt review | SEC
Question 4
Not answered
43. To aggregate documents and calculate the maximum value of a field, which operator is used?
a. `$top`
b. `$largest`
c. `$highest`
d. `$max`
Question 5
Not answered
a. `delete()`
b. `delete_one()`
c. `erase()`
d. `remove()`
Question 6
Not answered
25. How can you perform a case-insensitive search in MongoDB using regular expressions?
a. `regex('pattern', 'i')`
b. `regex('pattern', 'ci')`
c. `/pattern/i`
d. `/pattern/ci`
https://lms2.ai.saveetha.in/mod/quiz/review.php?attempt=320252&cmid=31264 2/7
10/25/24, 12:26 AM Unit 4 Practice Quiz: Attempt review | SEC
Question 7
Not answered
a. `retrieve()`
b. `find()`
c. `search()`
d. `get()`
Question 8
Not answered
3. To insert a new document into a MongoDB collection using PyMongo, which method is used?
a. `create()`
b. `put()`
c. `insert_one()`
d. `add_document()`
Question 9
Not answered
31. How do you ensure that a field value is updated if it already exists or inserted if it doesn’t?
a. `insert_or_update()`
b. `upsert()`
c. `update()`
d. `update_one()`
https://lms2.ai.saveetha.in/mod/quiz/review.php?attempt=320252&cmid=31264 3/7
10/25/24, 12:26 AM Unit 4 Practice Quiz: Attempt review | SEC
Question 10
Not answered
28. How can you delete multiple documents that match a query in MongoDB?
a. `delete_many()`
b. `drop_many()`
c. `remove_many()`
d. `erase_many()`
Question 11
Not answered
10. What method would you use to perform aggregation operations in MongoDB?
a. `merge()`
b. `group()`
c. `combine()`
d. `aggregate()`
Question 12
Not answered
a. pyodbc
b. pymongo
c. sqlalchemy
d. psycopg2
https://lms2.ai.saveetha.in/mod/quiz/review.php?attempt=320252&cmid=31264 4/7
10/25/24, 12:26 AM Unit 4 Practice Quiz: Attempt review | SEC
Question 13
Not answered
46. To add a field to each document in the output of an aggregation pipeline, which stage is used?
a. `$extend`
b. `$addFields`
c. `$include`
d. `$append`
Question 14
Not answered
49. How do you filter documents to include only those that meet multiple criteria?
a. `$filter`
b. `$and`
c. `$or`
d. `$match`
Question 15
Not answered
a. `update()`
b. `modify()`
c. `replace_one()`
d. `update_one()`
https://lms2.ai.saveetha.in/mod/quiz/review.php?attempt=320252&cmid=31264 5/7
10/25/24, 12:26 AM Unit 4 Practice Quiz: Attempt review | SEC
Question 16
Not answered
a. Filter documents
b. Project fields
c. Sort documents
d. Join collections
Question 17
Not answered
The correct answer is: Limits the number of documents in the output
Question 18
Not answered
34. How can you match documents where a field value is greater than a specified value?
a. `$greater`
b. `$gt`
c. `$more`
d. `$above`
https://lms2.ai.saveetha.in/mod/quiz/review.php?attempt=320252&cmid=31264 6/7
10/25/24, 12:26 AM Unit 4 Practice Quiz: Attempt review | SEC
Question 19
Not answered
16. In MongoDB, how can you find documents where a field value is within a specific range?
Question 20
Not answered
47. Which method is used to count the number of documents in a MongoDB collection?
a. `count_documents()`
b. `count()`
c. `size()`
d. `length()`
Jump to...
https://lms2.ai.saveetha.in/mod/quiz/review.php?attempt=320252&cmid=31264 7/7
10/25/24, 12:26 AM Unit 4 Practice Quiz: Attempt review | SEC
Question 1
Not answered
a. `$or`
b. `$logical_or`
c. `$union`
d. `$combine`
Question 2
Not answered
3. To insert a new document into a MongoDB collection using PyMongo, which method is used?
a. `put()`
b. `create()`
c. `insert_one()`
d. `add_document()`
Question 3
Not answered
27. To find documents where a field value exists and is not null, which operator is used?
a. `$has`
b. `$exists`
c. `$notNull`
d. `$defined`
https://lms2.ai.saveetha.in/mod/quiz/review.php?attempt=320251&cmid=31264 1/7
10/25/24, 12:26 AM Unit 4 Practice Quiz: Attempt review | SEC
Question 4
Not answered
26. Which operator is used to match documents where a field is not equal to a given value?
a. `$neq`
b. `$ne`
c. `$diff`
d. `$not`
Question 5
Not answered
29. To calculate the total sum of a field across documents, which aggregation operator is used?
a. `$sum`
b. `$add`
c. `$count`
d. `$total`
Question 6
Not answered
33. Which operator would you use to return documents where the field value matches an array of values?
a. `$array`
b. `$match`
c. `$in`
d. `$contains`
https://lms2.ai.saveetha.in/mod/quiz/review.php?attempt=320251&cmid=31264 2/7
10/25/24, 12:26 AM Unit 4 Practice Quiz: Attempt review | SEC
Question 7
Not answered
19. How do you sort query results in descending order by a field in MongoDB?
a. `sort({field: -1})`
b. `sort({field: 'desc'})`
c. `order({field: 'desc'})`
d. `order_by({field: -1})`
Question 8
Not answered
22. To include only specific fields in the output documents using an aggregation pipeline, which operator is used?
a. `$project`
b. `$include`
c. `$filter`
d. `$select`
Question 9
Not answered
The correct answer is: Adds new fields or modifies existing fields
https://lms2.ai.saveetha.in/mod/quiz/review.php?attempt=320251&cmid=31264 3/7
10/25/24, 12:26 AM Unit 4 Practice Quiz: Attempt review | SEC
Question 10
Not answered
23. Which operator would you use to concatenate strings in MongoDB aggregation?
a. `$combine`
b. `$join`
c. `$merge`
d. `$concat`
Question 11
Not answered
a. Sorts documents
b. Filters fields in documents
c. Limits documents
d. Groups documents
Question 12
Not answered
a. `erase()`
b. `remove()`
c. `delete_one()`
d. `delete()`
https://lms2.ai.saveetha.in/mod/quiz/review.php?attempt=320251&cmid=31264 4/7
10/25/24, 12:26 AM Unit 4 Practice Quiz: Attempt review | SEC
Question 13
Not answered
a. Groups documents
b. Sorts documents
c. Limits the number of documents
d. Filters documents
Question 14
Not answered
32. What method would you use to check the existence of a collection in MongoDB?
a. `check_collection()`
b. `get_collection()`
c. `has_collection()`
d. `list_collections()`
Question 15
Not answered
a. String
b. Cursor
c. Dictionary
d. List
https://lms2.ai.saveetha.in/mod/quiz/review.php?attempt=320251&cmid=31264 5/7
10/25/24, 12:26 AM Unit 4 Practice Quiz: Attempt review | SEC
Question 16
Not answered
14. To calculate the total count of documents in a MongoDB collection, which aggregation operator is used?
a. `$aggregate`
b. `$count`
c. `$sum`
d. `$total`
Question 17
Not answered
40. To find documents with a field value less than a specified value, which operator is used?
a. `$lt`
b. `$below`
c. `$less`
d. `$smaller`
Question 18
Not answered
35. To exclude a field from the results of a MongoDB query, which projection operator is used?
a. `0`
b. `omit`
c. `exclude`
d. `-`
https://lms2.ai.saveetha.in/mod/quiz/review.php?attempt=320251&cmid=31264 6/7
10/25/24, 12:26 AM Unit 4 Practice Quiz: Attempt review | SEC
Question 19
Not answered
50. To match documents where a field contains a substring, which operator is used in MongoDB?
a. `$contains`
b. `$like`
c. `$regex`
d. `$substring`
Question 20
Not answered
a. `replace_one()`
b. `update_one()`
c. `change_one()`
d. `modify_one()`
Jump to...
https://lms2.ai.saveetha.in/mod/quiz/review.php?attempt=320251&cmid=31264 7/7
10/25/24, 12:25 AM Unit 4 Practice Quiz: Attempt review | SEC
Question 1
Not answered
10. What method would you use to perform aggregation operations in MongoDB?
a. `aggregate()`
b. `merge()`
c. `group()`
d. `combine()`
Question 2
Not answered
a. Cursor
b. Dictionary
c. List
d. String
Question 3
Not answered
a. Groups documents
b. Sorts documents
c. Filters fields in documents
d. Limits documents
https://lms2.ai.saveetha.in/mod/quiz/review.php?attempt=320250&cmid=31264 1/7
10/25/24, 12:25 AM Unit 4 Practice Quiz: Attempt review | SEC
Question 4
Not answered
a. `replace_one()`
b. `update()`
c. `modify()`
d. `update_one()`
Question 5
Not answered
39. How can you update documents based on a condition using PyMongo?
a. `replace()`
b. `modify()`
c. `update_many()`
d. `update()`
Question 6
Not answered
38. To find documents where a field value is within a specific array, which operator is used?
a. `$within`
b. `$in`
c. `$exists`
d. `$contains`
https://lms2.ai.saveetha.in/mod/quiz/review.php?attempt=320250&cmid=31264 2/7
10/25/24, 12:25 AM Unit 4 Practice Quiz: Attempt review | SEC
Question 7
Not answered
29. To calculate the total sum of a field across documents, which aggregation operator is used?
a. `$add`
b. `$sum`
c. `$count`
d. `$total`
Question 8
Not answered
a. `$project`
b. `$group`
c. `$sort`
d. `$match`
Question 9
Not answered
25. How can you perform a case-insensitive search in MongoDB using regular expressions?
a. `regex('pattern', 'ci')`
b. `/pattern/i`
c. `/pattern/ci`
d. `regex('pattern', 'i')`
https://lms2.ai.saveetha.in/mod/quiz/review.php?attempt=320250&cmid=31264 3/7
10/25/24, 12:25 AM Unit 4 Practice Quiz: Attempt review | SEC
Question 10
Not answered
The correct answer is: Adds new fields or modifies existing fields
Question 11
Not answered
30. Which operator is used to compute the standard deviation of a field in MongoDB aggregation?
a. `$stdDev`
b. `$stdDevPop`
c. `$stddev`
d. `$stdev`
Question 12
Not answered
28. How can you delete multiple documents that match a query in MongoDB?
a. `drop_many()`
b. `delete_many()`
c. `remove_many()`
d. `erase_many()`
https://lms2.ai.saveetha.in/mod/quiz/review.php?attempt=320250&cmid=31264 4/7
10/25/24, 12:25 AM Unit 4 Practice Quiz: Attempt review | SEC
Question 13
Not answered
41. How can you retrieve only distinct values of a field from a MongoDB collection?
a. `different()`
b. `unique()`
c. `distinct()`
d. `only()`
Question 14
Not answered
15. Which operator would you use to calculate the average of a field in an aggregation pipeline?
a. `$average`
b. `$mean`
c. `$avg`
d. `$median`
Question 15
Not answered
43. To aggregate documents and calculate the maximum value of a field, which operator is used?
a. `$largest`
b. `$max`
c. `$top`
d. `$highest`
https://lms2.ai.saveetha.in/mod/quiz/review.php?attempt=320250&cmid=31264 5/7
10/25/24, 12:25 AM Unit 4 Practice Quiz: Attempt review | SEC
Question 16
Not answered
46. To add a field to each document in the output of an aggregation pipeline, which stage is used?
a. `$append`
b. `$extend`
c. `$addFields`
d. `$include`
Question 17
Not answered
a. Joins collections
b. Adds fields to the documents
c. Limits the number of documents in the output
d. Filters documents
The correct answer is: Limits the number of documents in the output
Question 18
Not answered
a. `modify()`
b. `replace_one()`
c. `update_one()`
d. `update()`
https://lms2.ai.saveetha.in/mod/quiz/review.php?attempt=320250&cmid=31264 6/7
10/25/24, 12:25 AM Unit 4 Practice Quiz: Attempt review | SEC
Question 19
Not answered
40. To find documents with a field value less than a specified value, which operator is used?
a. `$less`
b. `$below`
c. `$lt`
d. `$smaller`
Question 20
Not answered
16. In MongoDB, how can you find documents where a field value is within a specific range?
Jump to...
https://lms2.ai.saveetha.in/mod/quiz/review.php?attempt=320250&cmid=31264 7/7
10/25/24, 12:25 AM Unit 4 Practice Quiz: Attempt review | SEC
Question 1
Not answered
49. How do you filter documents to include only those that meet multiple criteria?
a. `$filter`
b. `$or`
c. `$and`
d. `$match`
Question 2
Not answered
45. How do you perform a case-sensitive search for a string field in MongoDB?
a. `match('pattern')`
b. `regex('pattern')`
c. `/pattern/`
d. `/pattern/i`
Question 3
Not answered
a. psycopg2
b. sqlalchemy
c. pyodbc
d. pymongo
https://lms2.ai.saveetha.in/mod/quiz/review.php?attempt=320247&cmid=31264 1/7
10/25/24, 12:25 AM Unit 4 Practice Quiz: Attempt review | SEC
Question 4
Not answered
47. Which method is used to count the number of documents in a MongoDB collection?
a. `length()`
b. `count()`
c. `size()`
d. `count_documents()`
Question 5
Not answered
23. Which operator would you use to concatenate strings in MongoDB aggregation?
a. `$join`
b. `$combine`
c. `$merge`
d. `$concat`
Question 6
Not answered
20. In PyMongo, which method allows you to skip a number of documents in a query?
a. `exclude()`
b. `skip()`
c. `omit()`
d. `ignore()`
https://lms2.ai.saveetha.in/mod/quiz/review.php?attempt=320247&cmid=31264 2/7
10/25/24, 12:25 AM Unit 4 Practice Quiz: Attempt review | SEC
Question 7
Not answered
18. Which method is used to limit the number of results returned by a query in PyMongo?
a. `take()`
b. `restrict()`
c. `max_results()`
d. `limit()`
Question 8
Not answered
Question 9
Not answered
a. `$or`
b. `$logical_or`
c. `$union`
d. `$combine`
https://lms2.ai.saveetha.in/mod/quiz/review.php?attempt=320247&cmid=31264 3/7
10/25/24, 12:25 AM Unit 4 Practice Quiz: Attempt review | SEC
Question 10
Not answered
Question 11
Not answered
34. How can you match documents where a field value is greater than a specified value?
a. `$greater`
b. `$above`
c. `$gt`
d. `$more`
Question 12
Not answered
31. How do you ensure that a field value is updated if it already exists or inserted if it doesn’t?
a. `upsert()`
b. `update()`
c. `insert_or_update()`
d. `update_one()`
https://lms2.ai.saveetha.in/mod/quiz/review.php?attempt=320247&cmid=31264 4/7
10/25/24, 12:25 AM Unit 4 Practice Quiz: Attempt review | SEC
Question 13
Not answered
a. Join collections
b. Sort documents
c. Filter documents
d. Project fields
Question 14
Not answered
a. Filters documents
b. Limits the number of documents
c. Groups documents
d. Sorts documents
Question 15
Not answered
8. To update multiple documents that match a query in MongoDB, which method is used?
a. `update()`
b. `update_many()`
c. `replace_many()`
d. `modify_many()`
https://lms2.ai.saveetha.in/mod/quiz/review.php?attempt=320247&cmid=31264 5/7
10/25/24, 12:25 AM Unit 4 Practice Quiz: Attempt review | SEC
Question 16
Not answered
a. `get()`
b. `retrieve()`
c. `find()`
d. `search()`
Question 17
Not answered
26. Which operator is used to match documents where a field is not equal to a given value?
a. `$not`
b. `$diff`
c. `$neq`
d. `$ne`
Question 18
Not answered
32. What method would you use to check the existence of a collection in MongoDB?
a. `has_collection()`
b. `get_collection()`
c. `check_collection()`
d. `list_collections()`
https://lms2.ai.saveetha.in/mod/quiz/review.php?attempt=320247&cmid=31264 6/7
10/25/24, 12:25 AM Unit 4 Practice Quiz: Attempt review | SEC
Question 19
Not answered
a. `$sort`
b. `$limit`
c. `$match`
d. `$group`
Question 20
Not answered
42. What method is used to update multiple documents that match a query and create new documents if no matches are found?
a. `update()`
b. `create_or_update()`
c. `upsert()`
d. `update_many()`
Jump to...
https://lms2.ai.saveetha.in/mod/quiz/review.php?attempt=320247&cmid=31264 7/7
10/25/24, 12:22 AM Unit 3 Practice Quiz: Attempt review | SEC
Question 1
Not answered
In MongoDB, how does the performance impact of a single-field index compare to a compound index?
a. Single-field indexes are more efficient than compound indexes for all types of queries.
b. Compound indexes are faster for single-field queries compared to single-field indexes.
c. Single-field indexes are generally faster for queries on a single field, while compound indexes are better for queries involving
multiple fields.
d. Single-field indexes are only useful for text searches, while compound indexes cannot be used for text searches.
The correct answer is: Single-field indexes are generally faster for queries on a single field, while compound indexes are better for queries
involving multiple fields.
Question 2
Not answered
How does a high read ratio to write ratio affect database performance?
The correct answer is: It typically indicates a need to optimize read operations and indexing.
https://lms2.ai.saveetha.in/mod/quiz/review.php?attempt=320246&cmid=31263 1/7
10/25/24, 12:22 AM Unit 3 Practice Quiz: Attempt review | SEC
Question 3
Not answered
The correct answer is: To ensure that no two documents have the same value for a specified field.
Question 4
Not answered
Which type of index would be most appropriate for optimizing queries that involve sorting and filtering on multiple columns?
a. Geospatial index
b. Compound index
c. Multi-key index
d. Single-field index
Question 5
Not answered
How can you improve query performance for searches involving array fields?
https://lms2.ai.saveetha.in/mod/quiz/review.php?attempt=320246&cmid=31263 2/7
10/25/24, 12:22 AM Unit 3 Practice Quiz: Attempt review | SEC
Question 6
Not answered
The correct answer is: When querying a collection of documents with embedded arrays.
Question 7
Not answered
The correct answer is: The structure and organization of data within the database.
Question 8
Not answered
a. It allows for faster access to data by mapping files directly into memory.
b. It provides better encryption for stored data.
c. It automatically balances data across multiple storage devices.
d. It simplifies database schema design.
The correct answer is: It allows for faster access to data by mapping files directly into memory.
https://lms2.ai.saveetha.in/mod/quiz/review.php?attempt=320246&cmid=31263 3/7
10/25/24, 12:22 AM Unit 3 Practice Quiz: Attempt review | SEC
Question 9
Not answered
The correct answer is: To store the relationships between records in the two tables.
Question 10
Not answered
Which indexing strategy is best suited for queries that filter and sort on multiple fields?
a. Single-field index
b. Compound index
c. Multi-key index
d. Geospatial index
Question 11
Not answered
The correct answer is: The process of defining the structure and organization of database tables and relationships.
https://lms2.ai.saveetha.in/mod/quiz/review.php?attempt=320246&cmid=31263 4/7
10/25/24, 12:22 AM Unit 3 Practice Quiz: Attempt review | SEC
Question 12
Not answered
What type of index would you use to optimize a query for searching and sorting text fields?
a. Multi-key index
b. Compound index
c. Single-field index
d. Text index
Question 13
Not answered
The correct answer is: When dealing with documents that contain arrays.
Question 14
Not answered
The correct answer is: Performance of queries that use multiple fields for searching and sorting.
https://lms2.ai.saveetha.in/mod/quiz/review.php?attempt=320246&cmid=31263 5/7
10/25/24, 12:22 AM Unit 3 Practice Quiz: Attempt review | SEC
Question 15
Not answered
The correct answer is: Adjusting the cache size and compression settings.
Question 16
Not answered
The correct answer is: It provides information about the structure and organization of the data.
Question 17
Not answered
a. It enforces that each record in the "one" table can have multiple related records in the "many" table.
b. It enforces that each record in the "many" table corresponds to one record in the "one" table.
c. It ensures that each record in the "one" table must have a unique value in the "many" table.
d. It prevents the "one" table from having duplicate records.
The correct answer is: It enforces that each record in the "one" table can have multiple related records in the "many" table.
https://lms2.ai.saveetha.in/mod/quiz/review.php?attempt=320246&cmid=31263 6/7
10/25/24, 12:22 AM Unit 3 Practice Quiz: Attempt review | SEC
Question 18
Not answered
What type of index should be used to improve performance for queries involving sorting on multiple fields?
a. Compound index
b. Geospatial index
c. Single-field index
d. Multi-key index
Question 19
Not answered
How would you model a onetomany (1:N) relationship where the "one" side is the parent and the "many" side are child documents?
The correct answer is: Embed child documents within the parent document
Question 20
Not answered
The correct answer is: By adjusting cache size and compression settings.
Jump to...
https://lms2.ai.saveetha.in/mod/quiz/review.php?attempt=320246&cmid=31263 7/7
10/25/24, 12:21 AM Unit 3 Practice Quiz: Attempt review | SEC
Question 1
Not answered
a. Performance of queries that use a single field for searching and sorting.
b. The ability to perform full-text searches efficiently.
c. Disk space usage for index storage.
d. Performance of queries that use multiple fields for searching and sorting.
The correct answer is: Performance of queries that use multiple fields for searching and sorting.
Question 2
Not answered
The correct answer is: It enforces that each record in the "one" table can have multiple related records in the "many" table.
https://lms2.ai.saveetha.in/mod/quiz/review.php?attempt=320245&cmid=31263 1/7
10/25/24, 12:21 AM Unit 3 Practice Quiz: Attempt review | SEC
Question 3
Not answered
a. By ensuring that values in the foreign key field of one table correspond to values in the primary key field of another table.
b. By preventing duplicate values in the foreign key field.
c. By automatically updating related records when a referenced record is updated.
d. By allowing null values in the foreign key field.
The correct answer is: By ensuring that values in the foreign key field of one table correspond to values in the primary key field of another
table.
Question 4
Not answered
The correct answer is: Data that describes other data within the database.
Question 5
Not answered
The correct answer is: It provides efficient access to data by mapping files into memory.
https://lms2.ai.saveetha.in/mod/quiz/review.php?attempt=320245&cmid=31263 2/7
10/25/24, 12:21 AM Unit 3 Practice Quiz: Attempt review | SEC
Question 6
Not answered
Which MongoDB storage engine is known for its support of document-level locking?
a. In-Memory
b. RocksDB
c. MMAP
d. WiredTiger
Question 7
Not answered
a. In multiple databases
Question 8
Not answered
The correct answer is: Index documents that contain arrays and perform efficient queries on them.
https://lms2.ai.saveetha.in/mod/quiz/review.php?attempt=320245&cmid=31263 3/7
10/25/24, 12:21 AM Unit 3 Practice Quiz: Attempt review | SEC
Question 9
Not answered
The correct answer is: To ensure that no two documents have the same value for a specified field.
Question 10
Not answered
The correct answer is: It effectively manages the relationships between records in two different tables.
Question 11
Not answered
Which indexing strategy is ideal for queries that include array fields?
a. Compound index
b. Single-field index
c. Multi-key index
d. Text index
https://lms2.ai.saveetha.in/mod/quiz/review.php?attempt=320245&cmid=31263 4/7
10/25/24, 12:21 AM Unit 3 Practice Quiz: Attempt review | SEC
Question 12
Not answered
Which type of index would be most appropriate for optimizing queries that involve sorting and filtering on multiple columns?
a. Compound index
b. Single-field index
c. Multi-key index
d. Geospatial index
Question 13
Not answered
What is the impact of a high read ratio to write ratio on database performance?
The correct answer is: It indicates that the database is optimized for read-heavy workloads.
Question 14
Not answered
How does a document-level lock in the WiredTiger storage engine affect concurrency?
The correct answer is: It allows multiple operations to access different documents concurrently.
https://lms2.ai.saveetha.in/mod/quiz/review.php?attempt=320245&cmid=31263 5/7
10/25/24, 12:21 AM Unit 3 Practice Quiz: Attempt review | SEC
Question 15
Not answered
The correct answer is: The process of defining the structure and organization of database tables and relationships.
Question 16
Not answered
The correct answer is: To describe and manage the structure and organization of the data.
Question 17
Not answered
Which feature of the WiredTiger storage engine contributes to efficient concurrency control?
a. File-level locking.
b. Page-level locking.
c. Document-level locking.
d. Table-level locking.
https://lms2.ai.saveetha.in/mod/quiz/review.php?attempt=320245&cmid=31263 6/7
10/25/24, 12:21 AM Unit 3 Practice Quiz: Attempt review | SEC
Question 18
Not answered
The correct answer is: It improves performance for queries that involve multiple fields.
Question 19
Not answered
The correct answer is: They provide a faster query execution by covering multiple query fields.
Question 20
Not answered
How does the read ratio to write ratio affect database performance tuning?
The correct answer is: It helps determine the balance between read and write optimizations.
Jump to...
https://lms2.ai.saveetha.in/mod/quiz/review.php?attempt=320245&cmid=31263 7/7
10/25/24, 12:21 AM Unit 3 Practice Quiz: Attempt review | SEC
Question 1
Not answered
The correct answer is: Adjusting the cache size and compression settings.
Question 2
Not answered
Which of the following indexes is best for improving performance in queries that involve sorting and filtering on a single column?
a. Geospatial index
b. Compound index
c. Single-field index
d. Multi-key index
Question 3
Not answered
The correct answer is: The structure and organization of data within the database.
https://lms2.ai.saveetha.in/mod/quiz/review.php?attempt=320244&cmid=31263 1/7
10/25/24, 12:21 AM Unit 3 Practice Quiz: Attempt review | SEC
Question 4
Not answered
The correct answer is: It provides efficient access to data by mapping files into memory.
Question 5
Not answered
The correct answer is: Data that describes other data within the database.
Question 6
Not answered
How would you model a onetomany (1:N) relationship where the "one" side is the parent and the "many" side are child documents?
The correct answer is: Embed child documents within the parent document
https://lms2.ai.saveetha.in/mod/quiz/review.php?attempt=320244&cmid=31263 2/7
10/25/24, 12:21 AM Unit 3 Practice Quiz: Attempt review | SEC
Question 7
Not answered
The correct answer is: By adjusting cache size and compression settings.
Question 8
Not answered
The correct answer is: When querying a collection of documents with embedded arrays.
Question 9
Not answered
The correct answer is: It maintains referential integrity by linking a field in one table to a primary key in another table.
https://lms2.ai.saveetha.in/mod/quiz/review.php?attempt=320244&cmid=31263 3/7
10/25/24, 12:21 AM Unit 3 Practice Quiz: Attempt review | SEC
Question 10
Not answered
The correct answer is: To store the relationships between records in the two tables.
Question 11
Not answered
In MongoDB, how does the performance impact of a single-field index compare to a compound index?
a. Single-field indexes are generally faster for queries on a single field, while compound indexes are better for queries involving
multiple fields.
b. Compound indexes are faster for single-field queries compared to single-field indexes.
c. Single-field indexes are more efficient than compound indexes for all types of queries.
d. Single-field indexes are only useful for text searches, while compound indexes cannot be used for text searches.
The correct answer is: Single-field indexes are generally faster for queries on a single field, while compound indexes are better for queries
involving multiple fields.
Question 12
Not answered
The correct answer is: To speed up query performance by providing a fast lookup mechanism.
https://lms2.ai.saveetha.in/mod/quiz/review.php?attempt=320244&cmid=31263 4/7
10/25/24, 12:21 AM Unit 3 Practice Quiz: Attempt review | SEC
Question 13
Not answered
The correct answer is: It improves performance for queries that filter on array fields.
Question 14
Not answered
How can you improve query performance for searches involving array fields?
Question 15
Not answered
How does the use of memory-mapped files improve performance in a database system?
The correct answer is: By reducing the overhead of traditional file I/O operations through direct memory access.
https://lms2.ai.saveetha.in/mod/quiz/review.php?attempt=320244&cmid=31263 5/7
10/25/24, 12:21 AM Unit 3 Practice Quiz: Attempt review | SEC
Question 16
Not answered
Which feature of the WiredTiger storage engine contributes to efficient concurrency control?
a. Table-level locking.
b. File-level locking.
c. Page-level locking.
d. Document-level locking.
Question 17
Not answered
Which MongoDB storage engine is known for its support of document-level locking?
a. RocksDB
b. MMAP
c. In-Memory
d. WiredTiger
Question 18
Not answered
Which indexing strategy is best suited for queries that filter and sort on multiple fields?
a. Geospatial index
b. Multi-key index
c. Compound index
d. Single-field index
https://lms2.ai.saveetha.in/mod/quiz/review.php?attempt=320244&cmid=31263 6/7
10/25/24, 12:21 AM Unit 3 Practice Quiz: Attempt review | SEC
Question 19
Not answered
What is the impact of a high read ratio to write ratio on database performance?
a. It suggests that the database may suffer from write contention issues.
b. It suggests that the database is optimized for write-heavy workloads.
c. It indicates that the database has insufficient indexing.
d. It indicates that the database is optimized for read-heavy workloads.
The correct answer is: It indicates that the database is optimized for read-heavy workloads.
Question 20
Not answered
The correct answer is: It speeds up queries that filter or sort based on a single field.
Jump to...
https://lms2.ai.saveetha.in/mod/quiz/review.php?attempt=320244&cmid=31263 7/7
10/25/24, 12:20 AM Unit 3 Practice Quiz: Attempt review | SEC
Question 1
Not answered
What type of index should be used to improve performance for queries involving sorting on multiple fields?
a. Single-field index
b. Multi-key index
c. Geospatial index
d. Compound index
Question 2
Not answered
What is the primary advantage of using a compound index over multiple single-field indexes?
The correct answer is: A compound index can improve query performance by covering multiple query fields in a single index.
Question 3
Not answered
How does a document-level lock in the WiredTiger storage engine affect concurrency?
The correct answer is: It allows multiple operations to access different documents concurrently.
https://lms2.ai.saveetha.in/mod/quiz/review.php?attempt=312961&cmid=31263 1/7
10/25/24, 12:20 AM Unit 3 Practice Quiz: Attempt review | SEC
Question 4
Not answered
What type of index would you use to optimize a query for searching and sorting text fields?
a. Text index
b. Multi-key index
c. Compound index
d. Single-field index
Question 5
Not answered
a. By ensuring that values in the foreign key field of one table correspond to values in the primary key field of another table.
b. By preventing duplicate values in the foreign key field.
c. By automatically updating related records when a referenced record is updated.
d. By allowing null values in the foreign key field.
The correct answer is: By ensuring that values in the foreign key field of one table correspond to values in the primary key field of another
table.
Question 6
Not answered
What type of index is used to improve the performance of queries that involve multiple fields?
a. Multi-key index
b. Text index
c. Single-field index
d. Compound index
https://lms2.ai.saveetha.in/mod/quiz/review.php?attempt=312961&cmid=31263 2/7
10/25/24, 12:20 AM Unit 3 Practice Quiz: Attempt review | SEC
Question 7
Not answered
The correct answer is: It provides information about the structure and organization of the data.
Question 8
Not answered
The correct answer is: It allows for faster access to data by mapping files directly into memory.
Question 9
Not answered
The correct answer is: Index documents that contain arrays and perform efficient queries on them.
https://lms2.ai.saveetha.in/mod/quiz/review.php?attempt=312961&cmid=31263 3/7
10/25/24, 12:20 AM Unit 3 Practice Quiz: Attempt review | SEC
Question 10
Not answered
The correct answer is: By allowing multiple operations to modify different documents concurrently.
Question 11
Not answered
How does a high read ratio to write ratio affect database performance?
The correct answer is: It typically indicates a need to optimize read operations and indexing.
Question 12
Not answered
Which indexing method would be best for optimizing a query that searches for specific text in a field?
a. Single-field index
b. Compound index
c. Text index
d. Multi-key index
https://lms2.ai.saveetha.in/mod/quiz/review.php?attempt=312961&cmid=31263 4/7
10/25/24, 12:20 AM Unit 3 Practice Quiz: Attempt review | SEC
Question 13
Not answered
Which storage engine in MongoDB is known for its use of memory-mapped files?
a. WiredTiger
b. RocksDB
c. In-Memory
d. MMAP
Question 14
Not answered
The correct answer is: When dealing with documents that contain arrays.
Question 15
Not answered
a. Optimize queries that use multiple fields for searching and sorting.
b. Provide encryption for indexed data.
c. Speed up queries on a single field.
d. Improve the performance of full-text search.
The correct answer is: Optimize queries that use multiple fields for searching and sorting.
https://lms2.ai.saveetha.in/mod/quiz/review.php?attempt=312961&cmid=31263 5/7
10/25/24, 12:20 AM Unit 3 Practice Quiz: Attempt review | SEC
Question 16
Not answered
The correct answer is: It may necessitate optimization for read-heavy operations and indexing strategies.
Question 17
Not answered
The correct answer is: It improves performance for queries that involve multiple fields.
Question 18
Not answered
The correct answer is: The collection of metadata about schema objects and their relationships.
https://lms2.ai.saveetha.in/mod/quiz/review.php?attempt=312961&cmid=31263 6/7
10/25/24, 12:20 AM Unit 3 Practice Quiz: Attempt review | SEC
Question 19
Not answered
a. In multiple databases
Question 20
Not answered
Which feature of the WiredTiger storage engine is aimed at improving write performance?
a. In-memory indexing.
b. Document-level concurrency control.
c. Page-level locking.
d. File-level locking.
Jump to...
https://lms2.ai.saveetha.in/mod/quiz/review.php?attempt=312961&cmid=31263 7/7