What Google Cloud feature would be easiest to use to automate a build in response to code being checked into your source code repository?

Correct
This answer is correct. Cloud Build triggers have been designed specifically to trigger a build automatically when changes are made to source code.