PCA (Prometheus Certified Associate) sample exam question with answer 500
Question:
Which of the following Prometheus service discovery methods is the MOST generic?
- ec2
- file
- kubernetes
- docker
Answer:
B - is the correct answer. Any number of custom service discovery methods can be implemented by discovering and writing the targets to files and using file service discovery
A - is incorrect as EC2 service discovery only allows for discovery of AWS EC2 instances
C - is incorrect as Kubernetes service discovery only allows for discovery of Kubernetes primitives
D - is incorrect as Docker service discovery only allows for discovery of Docker containers