Register Now

Login

Lost Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

You cannot use _________ to change the value of expireAfterSeconds of an existing index.

a) createIndex()
b) dropIndex()
c) removeIndex()
d) none of the mentioned

Answer: a
Explanation: Instead use the collMod database command in conjunction with the index collection flag. Otherwise, to change the value of the option of an existing index, you must drop the index first and recreate.

Join The Discussion