Spring Cloud Config & Centralized Configuration

    Question 1CENTRALIZED CONFIG - Purpose of Spring Cloud Config

    What is the main role of Spring Cloud Config Server in a microservices setup?

    Question 2CENTRALIZED CONFIG - Code Snippet (Enable Config Server)

    What does the following class represent?

    @SpringBootApplication @EnableConfigServer public class ConfigServerApplication { public static void main(String[] args) { SpringApplication.run(ConfigServerApplication.class, args); } }

    Question 3CENTRALIZED CONFIG - Config Server Backend

    By default, where does Spring Cloud Config Server fetch configurations from?

    Question 4CENTRALIZED CONFIG - Code Snippet (Config Server Properties)

    What does this application.yml config achieve?

    spring: cloud: config: server: git: uri: https://github.com/myorg/config-repo

    Question 5CENTRALIZED CONFIG - Config Client Setup

    Which file is typically used by a Config Client to connect to the Config Server?

    Question 6CENTRALIZED CONFIG - Code Snippet (Client bootstrap.yml)

    What does this configuration do?

    spring: cloud: config: uri: http://localhost:8888 application: name: order-service

    Question 7CENTRALIZED CONFIG - Profiles & Labels

    If a service named order-service runs with profile dev, which file will Config Server serve?

    Question 8CENTRALIZED CONFIG - Refreshing Config at Runtime

    How do you make a Spring Boot bean refreshable when config values change in Config Server?

    Question 9CENTRALIZED CONFIG - Security with Encrypted Properties

    Spring Cloud Config supports encryption/decryption of sensitive properties using:

    Question 10CENTRALIZED CONFIG - Code Snippet (Encrypted Property)

    What does the following property represent in a config file?

    spring: datasource: password: "{cipher}e0d12345..."