interview question how does application connects to device