Tech A says that a relay is a one-way electrical check valve used in alternators to change AC into DC. Tech B says that a relay uses electromagnetism to open or close a switch. Who is correct?