The query is a covered query. Which of the following statements are true about choosing and using a shard key? Your email address will not be published. Different states might have the same city name. There are one location.

You will run validation. This program will print a numeric answer. Using the aggregation framework, calculate the sum total of people who are living in a zip code where the city starts with a digit. MongoDB can not enforce unique indexes on a sharded collection other than the shard key itself, or indexes prefixed by the shard key. The minimum sensible number of voting nodes to a replica set is three.

m101p homework 6.2

There are one location. On unix, this could be done as follows:. Type the two-digit answer into the box below no spaces.

m101p homework 6.2

Also omit –fork and use start mongod with Windows compatible paths i. Homswork that this project requires the following python modules be installed on your computer: Omit -p from mkdir. Changed in version 3.

mp – bigmongodb

If not, use the following commands. To figure out what queries you need to optimize, you can read the blog.


Let us count the number of grades we have: Omit -p from mkdir. The code is not 3. So the answer is s1.

MongoDB university m101p chapter 6 homework

The blog stores its data in the blog database in two collections, users and sessions. There must be a index on the collection that starts with the shard key. Type the following commands into the mongo shell: If everything is working properly, you should be able to start homeqork blog by typing: Let’s suppose you have a five member replica set and want to assure that writes are committed to the journal and are acknowledged by at least 3 nodes before you proceed forward.

We are also providing a patriotic if you are an American data set for the blog. Please choose your answer below for the most prolific comment author: Get PyMongo installed on your computer. A set of grades are loaded into the grades collection.


Let us count the number of grades we have: Changed in version 3.

Type the following commands into the mongo shell: Alternatively, you can put the url above into your web browser. In this homework you will build a small replica set on your own computer. Different states might have the same city name. Failed to load latest 2. Now connect to a mongo shell and make sure it comes up Now you will create the replica set. There are three locations for you to add code for this problem. Type the validation code below.

M101P – WEEK 6

If you prefer, you may download the handout and perform your analysis on your machine with. Prior to MongoDB 3.

m101p homework 6.2

Omit -p from mkdir.