Q.1
Which of the following is not a part of Cassandra architecture?
  • column
  • memtable
  • sstable
  • cache
Q.2
Mongo looks for a database server listening on port
  • 27017
  • 8080
  • 23
  • 443
Q.3
Initial release of MongoDB was in the year?
  • 2000
  • 2005
  • 2009
  • 2011
Q.4
Which command in Mongodb is equivalent to SQL select?
  • find ()
  • search()
  • document
  • none
Q.5
Point out the correct statement :
  • Hadoop is an ideal environment for extracting and transforming small volumes of data
  • Hadoop stores data in HDFS and supports data compression/decompression
  • The Giraph framework is less useful than a MapReduce job to solve graph and machine learning
  • all
Q.6
MongoDB supports query joins between collections.
  • True
  • false
Q.7
What is the maximum size of a MongoDB document?
  • 2MB
  • 16MB
  • 12MB
  • No limit.Depends on RAM
Q.8
Which is not a supported index type in MongoDB?
  • TTL Index
  • Neospatial
  • Unique
  • None of These
Q.9
Which of the following line skips the first 5 documents in the bios collection and returns all remaining documents?
  • db.bios.find().limit( 5 )
  • db.bios.find().skip( 1 )
  • db.bios.find().skip( 5)
  • db.bios.find().sort( 5 )
Q.10
Does MongoDB supports query joins between collections ?
  • Yes
  • No
Q.11
Which command returns all of the documents in the customers collection?
  • db.customers.all();
  • db.find().customers();
  • db.customers.find();
  • db.customers.show();
Q.12
How do you find documents with a matching item in an embedded array?
  • db.customers.findmatch ({“jobs”:”secretary”})
  • db.customers.find ({“jobs:secretary”})
  • db.customers.find ({“jobs”:[“secretary”]})
  • db.customers.find ({“jobs”:”secretary”})
Q.13
One of the documents in your collection has an _id based upon an older database design and you want to change it. You write an update command to find the document and replace the _id but the _id isn’t changed. How should you fix the issue?
  • Set the replace option to true.
  • Use the replaceOne() command instead.
  • You can’t. Once set, the _id field cannot be changed.
  • Use the updateOne() command instead.
Q.14
Which programming language is used to write MongoDB queries? (Alternative: In the MongoDB shell, what programming language is used to make queries?)
  • Python
  • JavaScript
  • SQL
  • TypeScript
Q.15
You have two text fields in your document and you’d like both to be quickly searchable. What should you do?
  • Create a text index on each field.
  • MongoDB is not able to do this.
  • Create a compound text index using both fields.
  • Create a text index on one field and a single field index on the other.
Q.16
Given an ObjectId in _id, how do you get the time it was created?
  • getDateTime(_id)
  • _id.createDate()
  • _id.getTimestamp()
  • _id.getDateTime()
Q.17
Suppose your aggregation pipeline terminated with an exception referring to exceeded memory limit. What is the best way to resolve the issue?
  • Set useMemory to twice amount indicated in exception.
  • Switch a 64 bit instance of MongoDB.
  • Increase the memory of the MongoDB server.
  • Set allowDiskUse to true.
Q.18
You have just secured your previously unsecured MongoDB server, but the server is still not requiring authentication. What is the best option?
  • Restart the mongod process.
  • Issue the secure() command.
  • Issue the mongoimport command.
  • Issue the authenticate() command.
Q.19
Is MongoDB better than other SQL databases?
  • Yes
  • No
Q.20
Which of the following method corresponds to Order by clause in SQL?
  • sort()
  • order()
  • orderby()
  • All the above
0 h : 0 m : 1 s