PCA (Prometheus Certified Associate) sample exam question with answer 225
Question:
What method of Prometheus service discovery is BEST for targeting a dynamic set of AWS instances?
- ec2_sd_configs
- azure_sd_configs
- file_sd_configs
- aws_sd_configs
Answer:
A - is the correct answer,
ec2_sd_config
B - azure_sd_configs provide service discovery for Microsoft Azure VMs, not AWS instances
C - while file_sd_configs could be used in conjunction with a custom program that identifies AWS instances and writes them as file targets, it is much simpler to just use the built-in ec2_sd_configs
D - this is not a type of service discovery configuration provided by Prometheus