You have an application that periodically needs to fetch data online and then upload it to BigQuery and Cloud Storage.
You have prepared a bash script to complete the operation.
What do you have to do in order to to authorize the procedure in an automated, simple and scalable way in the VM of the managed instance group on which it is installed?
A. Create the virtual machine with an image or script that provides the necessary roles
B. Set up a service account with the correct privileges and create the instance template of the virtual machine with this service account
C. Write all the proper and needed credentials in the code
D. Create a procedure in App Engine and translate the script in code in order to load the data