Complete the code to select the GCP service that helps reduce costs by automatically adjusting resources.
service = "[1]"
The Autoscaler service automatically adjusts the number of VM instances based on load, helping reduce costs by using only needed resources.
Complete the code to specify the billing export dataset name for cost analysis.
billing_export_dataset = "[1]"
The billing export dataset is commonly named 'billing_export' to store detailed cost data for analysis.
Fix the error in the code to correctly set a budget alert threshold percentage.
budget_alert_threshold = [1]The budget alert threshold should be set as an integer percentage without quotes, like 80, not as a string or decimal.
Fill both blanks to create a filter that selects projects with labels for cost center and environment.
filter_expression = "labels.[1] = '[2]'"
The filter selects projects labeled with 'cost_center' equal to 'finance'.
Fill all three blanks to define a cost optimization rule that stops idle VMs after a threshold.
rule = {"action": "[1]", "resource_type": "[2]", "idle_time_minutes": [3]The rule stops compute instances that have been idle for 30 minutes to save costs.