Question on quiz for Logging Basic?

db.runCommand(
{
update: “products”,
updates: [
{
q: ,
u: ,
}
}
)

Is this a update command or insert command? Please explain. Thanks.
I thought this is an update but wrong based on the answer.

Richard

1 Like

Hi richardxu98,

This is an update command shown in the question,here you can find more details.

This is not an answer, this is just an explanation to the command in the question. However, the question asks “Which of the following process logging components will capture the following operation” which means the update operation(in the question), generates what logging events ?

Hope it helps!

Kanika

1 Like

Hi Kanukasingla,

Thanks for your reply. However, you didn’t answer my question.

The quiz, based on my understanding, is an update command. So, it should logs the update events, which is update and write.

However, the answer provided by MongoDB says it’s an insert event,

Please explain why it is an INSERT event.

Thanks.
Richard

Hi richardxu98,

Logging Components are listed here. Please check your message.

Kanika

1 Like