Question: Suppose you are using the mongoimport command to import personnel data and there is a unique index on the email field. What happens when there are duplicate emails in the import?

  1. The import command aborts without importing any records.
  2. The import command imports records upto but not including the record, and then aborts.
  3. The import command doesn't import the bad document but does import the rest.
  4. The import command prompts you to correct the bad record.

Answer: The correct answer of the above question is Option D:The import command prompts you to correct the bad record.