If my Mac is connected to ethernet and WiFi, which will it use?
You can select the preferred connection in System Preferences -> Network.
Then use the Gear-Icon and select "Set Service Order...".

Your system will then prioritize the connection at the first position.