Infosys interview question

.Net core - Configuration vs ConfigureServices