Assuming G stands for generator or power source, then anything that cuts the main current will stop everything (including device 3) from functioning.
You will notice that this can be accomplished by opening either switch 1 or switch 5.
We need to stop everything because device 3 is parallel connected.
Yes, choice D (switch 5 is correct, out of the given choices).