Complete the code to create a GCP resource with a valid name.
resource_name = "my-project-[1]"
Resource names in GCP must use lowercase letters, numbers, and hyphens. Underscores and uppercase letters are not allowed.
Complete the code to add a label to a GCP resource.
labels = {"env": "[1]"}Labels keys and values should be lowercase and use hyphens or underscores. Uppercase letters are discouraged for consistency.
Fix the error in the resource name to comply with GCP naming rules.
resource_name = "[1]-zone-1"
Resource names must be lowercase, can include hyphens, but no underscores or special characters like exclamation marks.
Fill both blanks to create a label dictionary with a valid key and value.
labels = {"[1]": "[2]"}Label keys and values should be lowercase and descriptive. 'environment' and 'production' follow best practices.
Fill all three blanks to define a resource name and labels following GCP best practices.
resource_name = "[1]-service" labels = {"[2]": "[3]"}
The resource name uses lowercase letters and hyphens. Labels use lowercase keys and values for clarity and compliance.