New Year Sale - Special 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: 70dumps

C100DBA Questions and Answers

Question # 6

MongoDB is a schema-less design.

A.

False

B.

True

Full Access
Question # 7

Consider that you have a collection called population which has fields state and city. Which of the following query will calculate the population grouped by state and city?

A.

db.population.aggregate( [{ $group: { _id: { state: "$state", city; "$city" },pop: { $sum: 1 > > >] )

B.

db.population.aggregate( [{ $group: { _id: { state: Estate", city: "$city" },pop: { $pop: 1 } } }] )

C.

db.population.aggregate( [{ $group: { _id: { state: Estate", city: n$city" },pop: { $sum: "$pop" } } }] )

D.

db.population.aggregate( [{ $group: { _id: { city: "$city" },pop: { $sum: "$pop" } } }] )Multi Document Transaction is not supported by MongoDB

Full Access
Question # 8

You have a replicated cluster with 1 primary, 3 secondary, 1 arbiter. One of the secondary is hidden. What is the replication factor of this replicated cluster?

A.

7

B.

03

C.

04

D.

06

Full Access
Question # 9

Which of the following commands can cause the database to be locked?

A.

All of the above

B.

Inserting data

C.

Map-reduce

D.

Issuing a query

Full Access
Question # 10

You perform the following operation in the shell: db.foo.insert( { } ); What gets inserted?

A.

A document will be inserted with the same _id as the last document inserted

B.

A document that matches the collection's existing schema, but with null fields

C.

A document with an _id assigned to be an Objectld

D.

An empty document

E.

No document will be inserted; an error will be raised

Full Access
Question # 11

Which of the following commands finds all the documents in the posts collection with post timestamp field as null?

A.

db.posts.find( { post_timestamp: { $fieldtype: null } } )

B.

db.posts.find( { post_timestamp: { $type: null } } )

C.

db.posts.find( { post_timestamp : { $type; 10 > > )

D.

db.posts.find( { post_timestamp: { $fieldtype: 10 } } )

Full Access
Question # 12

'mongoimport' command is used for

A.

Batch data insertion

B.

None of the above

C.

Multiple command import

D.

Multiple command insertion

Full Access
Question # 13

The oplog (operations log) is a special capped collection that keeps a rolling record of all operations that modify the data stored in your databases. All the replica set members contain a copy of the oplog in the following collection:

A.

<replicasetid>.oplog.rs

B.

oplog.rs

C.

..oplog.rs

D.

local.oplog.rs

Full Access
Question # 14

In which of the following scenarios is sharding not the correct option. Select all that apply.

A.

The write operations on the collection are low

B.

The write operations on the collection are very high

C.

The working set in the collection is expected to grow very large in size

D.

The collection is a read intensive collection with less working set

Full Access
Question # 15

Given a collection posts as shown below having a document array comments, which of the following command will create an index on the comment author descending?

A.

db.posts.createIndex({^comments.$.author":-l});

B.

db. posts.createIndex({^comments.author" :1});

C.

db.posts.createIndex({^commerits.author";-!});

Full Access
Question # 16

Which type of indexes does MongoDB support?

A.

All of the above

B.

Compound Indexes

C.

Multikey Indexes

D.

Geospatial Indexes

Full Access
Question # 17

Which of the following operators is used to updated a document partially?

A.

$set

B.

$update

C.

$project

D.

$modify

Full Access
Question # 18

What is the defau size of a GridFS chunk?

A.

255 K

B.

1 MB

C.

16 MB

D.

2 MB

Full Access
Question # 19

In order to ensure that you can maintain high availability in the face of server failure, you should implement which of the following?

A.

Sharding

B.

Properly defined user roles

C.

Replication

D.

Put indexes on all of your documents

E.

The proper storage engine

Full Access