Complete the code to specify the GCP region for your resource.
resource = compute.instances().insert(project=project_id, zone='[1]-a', body=instance_body)
The region code like europe-west1 is used to specify the location of the resource. Zones are named by appending a letter like '-a'.
Complete the code to select the correct zone within a region.
zone = '[1]-b'
The zone is formed by the region name plus a letter. Here, 'asia-southeast1-b' is a valid zone.
Fix the error in the code to correctly specify a zone for a VM instance.
instance = compute.instances().insert(project=project_id, zone='[1]', body=instance_body)
The zone must include both the region and the zone letter, like 'us-central1-a'. Just the region or partial names are invalid.
Fill both blanks to create a dictionary mapping regions to their zones.
region_zones = {'us-east1': ['[1]', '[2]']}Zones in a region are named by adding letters like '-b', '-c', etc. Here, 'us-east1-b' and 'us-east1-c' are valid zones.
Fill all three blanks to define a list of zones for the 'europe-west3' region.
zones = ['[1]', '[2]', '[3]']
The 'europe-west3' region has zones named with letters like '-a', '-b', '-c', and '-d'. Here, we use 'europe-west3-d', 'europe-west3-b', and 'europe-west3-c'.