Power (volts times amps) is causing the spark, not the rating of a switch or connector. The switch or connector should be rated at or above the voltage and amperage of what is running through it. Another consideration is AC rating versus DC rating. Do not assume that they are the same. If a connector or switch is rated below the voltage you need, it can cause arcing. If it is rated under the current capacity that you need, it can cause heating of the device. Either of these conditions can cause a fire.