How do polygraph tests work?

Hey. How do polygraph tests work? As I know, when a person is undergoing a polygraph test, the administrator of the test begins by asking two types of control questions: questions that the person is expected to answer truthfully and questions that the person is expected to answer with a lie.