Skip to content

Commit

Permalink
Updated Mongodb quiz (Ebazhanov#2198)
Browse files Browse the repository at this point in the history
Co-authored-by: Zhenja <[email protected]>
  • Loading branch information
xrankit and Ebazhanov authored Sep 17, 2021
1 parent 83e4805 commit 1ab9a78
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions mongodb/mongodb-quiz.md
Original file line number Diff line number Diff line change
Expand Up @@ -385,8 +385,6 @@
- [ ] daemon
- [x] mongod

[Reference](https://hazimhassan.com/linkedin-mongodb-assessment-answers/#:~:text=Which%20file%20in%20the%20MongoDB%20directly%20holds%20the%20MongoDB%20daemon)

#### Q56. You have just secured your previously unsecured MongoDB server, but the server is still not requiring authentication. What is the best option?

- [x] Restart the `mongod` process.
Expand All @@ -401,9 +399,6 @@
- [ ] Ad hoc queries are allowed only through the ad hoc command.
- [x] MongoDB allows ad hoc queries.

[Reference-1](https://hazimhassan.com/linkedin-mongodb-assessment-answers/#:~:text=What%20is%20the%20most%20accurate%20statement%20regarding%20MongoDB%20and%20ad%20hoc%20queries)
[Reference-2](https://quick-adviser.com/how-do-i-query-a-field-in-mongodb/#:~:text=Q57.-,What%20is%20the%20most%20accurate%20statement%20regarding%20MongoDB%20and%20ad%20hoc%20queries,-%3F%20MongoDB%20does%20not)

#### Q58. In MongoDB, what does a projection do?

- [ ] allows you to do a calculation on the results
Expand All @@ -427,16 +422,11 @@

#### Q61. How can you improve the appearance of the output JSON that contains the `_id`?

- [x![WhatsApp Image 2021-09-11 at 02 15 49](https://user-images.githubusercontent.com/66520710/132916618-ff8ce9e3-9278-4d04-ba13-857f4f505cff.jpeg)
![WhatsApp Image 2021-09-11 at 02 15 49 (1)](https://user-images.githubusercontent.com/66520710/132916625-4984e3d7-627d-4bfb-8ba7-a7bc6068a62d.jpeg)
![WhatsApp Image 2021-09-11 at 02 09 41](https://user-images.githubusercontent.com/66520710/132916627-d18b0f22-d056-424a-b08f-fd1a9e35582e.jpeg)
] `Use db.collection.set({$_id:pretty})`
- [ ] `Use db.collection.set({$_id:pretty})`
- [ ] `Create a second index`
- [x] `Use db.collection.format(numeric)`
- [ ] `Use $_id = value`

[Reference](https://hazimhassan.com/linkedin-mongodb-assessment-answers/#:~:text=How%20can%20you%20improve%20the%20appearance%20of%20the%20output%20JSON%20that%20contains%20the)

#### Q62. What happens to a Replica set oplog if it runs out of memory?

- [x] `The oplog will be saved on one of the secondary servers.`
Expand Down

0 comments on commit 1ab9a78

Please sign in to comment.