MCQOPTIONS
Saved Bookmarks
This section includes 12 Mcqs, each offering curated multiple-choice questions to sharpen your Mongodb knowledge and support exam preparation. Choose a topic below to get started.
| 1. |
You cannot create a TTL index on a ________ collection. |
| A. | Sharded |
| B. | Capped |
| C. | Primary |
| D. | None of the mentioned |
| Answer» C. Primary | |
| 2. |
You cannot use _________ to change the value of expireAfterSeconds of an existing index. |
| A. | createIndex() |
| B. | dropIndex() |
| C. | removeIndex() |
| D. | none of the mentioned |
| Answer» B. dropIndex() | |
| 3. |
Which field does not support TTL indexes? |
| A. | _identity |
| B. | _option |
| C. | _id |
| D. | None of the mentioned |
| Answer» D. None of the mentioned | |
| 4. |
Which of the following collection do not support the TTL property? |
| A. | Compound indexes |
| B. | Primary indexes |
| C. | Composite indexes |
| D. | All of the mentioned |
| Answer» B. Primary indexes | |
| 5. |
YOU_CANNOT_CREATE_A_TTL_INDEX_ON_A__________COLLECTION?$ |
| A. | Sharded |
| B. | Capped |
| C. | Primary |
| D. | None of the mentioned |
| Answer» C. Primary | |
| 6. |
YOU_CANNOT_USE___________TO_CHANGE_THE_VALUE_OF_EXPIREAFTERSECONDS_OF_AN_EXISTING_INDEX.?$ |
| A. | createIndex() |
| B. | dropIndex() |
| C. | removeIndex() |
| D. | none of the mentioned |
| Answer» B. dropIndex() | |
| 7. |
Which field does not support TTL indexes ? |
| A. | _identity |
| B. | _option |
| C. | _id |
| D. | None of the mentioned |
| Answer» D. None of the mentioned | |
| 8. |
A collection with a TTL index has __________ enabled. |
| A. | usePowerOf3Sizes |
| B. | usePowerOf2Sizes |
| C. | usePowerOf4Sizes |
| D. | none of the mentioned |
| Answer» C. usePowerOf4Sizes | |
| 9. |
Secondary members replicate _________ operations from the primary. |
| A. | Update |
| B. | Drop |
| C. | Insert |
| D. | None of the mentioned |
| Answer» E. | |
| 10. |
When the TTL thread is active, you will see _______ operations in the output of db.currentOp(). |
| A. | read |
| B. | update |
| C. | delete |
| D. | all of the mentioned |
| Answer» D. all of the mentioned | |
| 11. |
If the indexed field in a document is not a _____ or an array that holds a date value(s), the document will not expire. |
| A. | DATE |
| B. | TIME |
| C. | DATETIME |
| D. | All of the mentioned |
| Answer» B. TIME | |
| 12. |
Which of the following collection do not support the TTL property ? |
| A. | Compound indexes |
| B. | Primary indexes |
| C. | Composite indexes |
| D. | All of the mentioned |
| Answer» B. Primary indexes | |