Question from the Google Cloud Platform (GCP) test

When is a VM paid for in Google Cloud?