Bird
0
0

Which of the following is the correct YAML snippet to define an email receiver named 'team-email' in Alertmanager?

easy📝 Configuration Q12 of 15
Kubernetes - Monitoring and Logging
Which of the following is the correct YAML snippet to define an email receiver named 'team-email' in Alertmanager?
Areceivers: - name: team-email email_configs: - to: 'team@example.com'
Breceivers: - team-email: email: 'team@example.com'
Creceiver: name: team-email email: 'team@example.com'
Dreceivers: - name: team-email slack_configs: - channel: '#alerts'
Step-by-Step Solution
Solution:
  1. Step 1: Review Alertmanager receiver syntax

    Receivers are defined under 'receivers' list with 'name' and config type like 'email_configs'.
  2. Step 2: Match correct YAML structure

    receivers: - name: team-email email_configs: - to: 'team@example.com' correctly uses 'receivers', 'name', and 'email_configs' with 'to' field.
  3. Final Answer:

    Correct YAML with 'receivers', 'name', and 'email_configs' -> Option A
  4. Quick Check:

    Receiver YAML uses 'name' and 'email_configs' [OK]
Quick Trick: Receiver configs use 'name' and specific config like 'email_configs' [OK]
Common Mistakes:
  • Using 'receiver' instead of 'receivers'
  • Incorrect nesting of email fields
  • Confusing slack_configs with email_configs

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kubernetes Quizzes