Database

[{"key":1,"questions":[{"text":"first",},{"text":"second",},{"text":"third","answered":"balloon",},],},]

Query

db.collection.update({"key":1,},{$set:{"questions.$[elem0].answered":"second answer","questions.$[elem1].answered":"third answer",}},{arrayFilters:[{"elem0":1},{"elem1":2}],})

Result