Spring Cloud Config & Centralized Configuration

    Question 1: CENTRALIZED CONFIG - Purpose of Spring Cloud Config

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

    Question 2: CENTRALIZED 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 3: CENTRALIZED CONFIG - Config Server Backend

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

    Question 4: CENTRALIZED 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 5: CENTRALIZED CONFIG - Config Client Setup

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

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

    What does this configuration do?

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

    Question 7: CENTRALIZED CONFIG - Profiles & Labels

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

    Question 8: CENTRALIZED CONFIG - Refreshing Config at Runtime

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

    Question 9: CENTRALIZED CONFIG - Security with Encrypted Properties

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

    Question 10: CENTRALIZED CONFIG - Code Snippet (Encrypted Property)

    What does the following property represent in a config file?

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