单项选择题

MongoDB通过什么命令创建索引?()

A.db.collectionName.createIndex(keys,options)
B.db.collectionName.create(keys,options)
C.db.collectionName.index(keys,options)
D.db.collectionName.addIndex(keys,options)