Question: How do you configure Cloud Build to rebuild your image when a change is made to the source code?

  1. Add a Cloud Build trigger, and set it to fire on commit to associate repository.
  2. Add a Cloud Build function, and set it to fire on commit to associate repository.
  3. Add a Cloud Build trigger, and set it to fire on commit to associate registry.
  4. Add a Cloud Build function, and set it to fire on commit to associate registry.

Answer: The correct answer of the above question is Option A:Add a Cloud Build trigger, and set it to fire on commit to associate repository.