A.db.test.remove({hello:"world"},1)B.db.test.remove({hello:"world"},true)C.db.test.deleteOne({hello:"world"})D.db.test.delete({hello:"world"})
单项选择题mongodb中对数据进行分组的字段是()
A.gorup_byB.by_groupC.user_byD.by_user
单项选择题查看mongodb数据库的命令是什么()
A.show detablesB.show dbsC.show db.sD.show collections
多项选择题mongodb的options可选参数有哪些()
A.cappedB.autoIndexIdC.sizeD.max
单项选择题查看MongoDB 版本()
A.mongo --versionB.mongo --verC.mongo --isD.version
多项选择题同一个副本集的副本集名称是否需要一样()
A.需要B.不需要C.不一定全需要D.必须一样
多项选择题MongoDB支持什么编程语言()
A.RubyB.pythonC.JavaD.c++E.php
单项选择题以下哪个是MongoDB 查询数据的语法格式()
A.db.collection.find(query,projection)B.db.col.find().pretty()C.db.COLLECTION_NAME .find().sort({KEY:1})D.db.collection.createIndex(keys ,options)
单项选择题$sort的作用是什么()
A.输出接近某一地理位置的有序文档B.将输入文档排序后输出C.将集合中的文档分组,可用于统计结果D.用于过滤数据
单项选择题查看群集状态的命令是()
A.db.myuser.find()B.rs.status()C.rs.reconfig()D.rs.remove()
单项选择题MongoDB的主配置文件中,配置noauth是()
A.无追加写入B.无认证访问C.无后台运行D.无访问权限
单项选择题MongoDB数据库中基本单元为()
A.表格B.集合C.文档D.字段
单项选择题以下哪个不是MongoDB数据库的索引类型()
A.单键索引B.文本索引C.哈希索引D.时间索引
单项选择题MongoDB的索引的数据结构为()
A.双链表结构B.单链表结构C.Btree结构D.有向无环图
单项选择题当使用MongoDB应用场景中,需要使用全文检索,需建何种索引()
A.文本索引B.哈希索引C.地理位置索引D.子文档索引
单项选择题MongoDB数据库采用副本集来保证高可用时,当主节点异常时,备份节点选举为新的主节点时可能会发生回滚,应采用以下何种方式避免回滚()
A.在读取数据的时候采用主备节点读写分离B.在读取数据的时候仅从主节点读取C.在写入数据的时候,采用写入日志确认成功策略D.在写入数据的时候,采用写入大多数节点确认功能的策略