I think it only duplicates the questions in the person doing the restore does not have permission to create questions at category level. If you have permission to edit the shared questions, they should be re-used. However, this bit of the code is complex, so it is hard to be sure.
Quiz
Is it possible to reduce duplication of questions?
This discussion has been locked so you can no longer reply to it.