Bird
0
0

Which of the following is the correct way to specify a notification channel in a Google Cloud alerting policy configuration?

easy📝 Configuration Q12 of 15
GCP - Cloud Monitoring and Logging
Which of the following is the correct way to specify a notification channel in a Google Cloud alerting policy configuration?
A"channels": "my-project/notification/12345"
B"notifyChannel": "12345"
C"notification": "channel-12345"
D"notificationChannels": ["projects/my-project/notificationChannels/12345"]
Step-by-Step Solution
Solution:
  1. Step 1: Recall notification channel format

    Google Cloud expects notification channels as full resource names in an array.
  2. Step 2: Match correct syntax

    "notificationChannels": ["projects/my-project/notificationChannels/12345"] uses the correct JSON key and full resource path format.
  3. Final Answer:

    "notificationChannels": ["projects/my-project/notificationChannels/12345"] -> Option D
  4. Quick Check:

    Notification channels use full resource names in array [OK]
Quick Trick: Use full resource names in an array for notificationChannels [OK]
Common Mistakes:
  • Using wrong key names like notifyChannel
  • Providing notification channel as a string, not array
  • Omitting project prefix in resource name

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More GCP Quizzes