Accenture interview question

Why and how profile is used in Spring boot?