0
0
GCPcloud~10 mins

Budget alerts configuration in GCP - Interactive Code Practice

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the code to specify the budget amount in the configuration.

GCP
{
  "budget": {
    "amount": [1]
  }
}
Drag options to blanks, or click blank then click option'
A"1000"
B1000
CbudgetAmount
Damount
Attempts:
3 left
💡 Hint
Common Mistakes
Using quotes around the number, making it a string.
Using variable names instead of numeric values.
2fill in blank
medium

Complete the code to set the threshold rule percentage for budget alerts.

GCP
{
  "thresholdRules": [
    {
      "thresholdPercent": [1]
    }
  ]
}
Drag options to blanks, or click blank then click option'
A0.5
B"50"
C50
D"0.5"
Attempts:
3 left
💡 Hint
Common Mistakes
Using strings instead of numbers.
Using whole numbers instead of decimals for percentages.
3fill in blank
hard

Fix the error in the alert rule operator to correctly trigger when the budget is exceeded.

GCP
{
  "alertRule": {
    "operator": "[1]"
  }
}
Drag options to blanks, or click blank then click option'
ALESS_THAN
BEQUALS
CGREATER_THAN
DNOT_EQUALS
Attempts:
3 left
💡 Hint
Common Mistakes
Using LESS_THAN or EQUALS which do not trigger on overspending.
Using NOT_EQUALS which is not a valid operator here.
4fill in blank
hard

Fill both blanks to define the budget filter for projects and services.

GCP
{
  "budgetFilter": {
    "projects": ["[1]"],
    "services": ["[2]"]
  }
}
Drag options to blanks, or click blank then click option'
Aprojects/123456789
Bprojects/987654321
Cservices/compute.googleapis.com
Dservices/storage.googleapis.com
Attempts:
3 left
💡 Hint
Common Mistakes
Using only numeric IDs without the 'projects/' prefix.
Using service names without the 'services/' prefix.
5fill in blank
hard

Fill all three blanks to configure notifications with a Pub/Sub topic and email recipients.

GCP
{
  "notificationsRule": {
    "pubsubTopic": "[1]",
    "schemaVersion": "[2]",
    "monitoringNotificationChannels": ["[3]"]
  }
}
Drag options to blanks, or click blank then click option'
Aprojects/my-project/topics/budget-alerts
B1.0
Cprojects/my-project/notificationChannels/1234567890
D2.0
Attempts:
3 left
💡 Hint
Common Mistakes
Using short names instead of full resource paths.
Using incorrect schema versions.