You are building a microservices architecture using Spring Cloud. How would you manage external configurations and secrets across different microservices?
- Storing configurations and secrets directly in the codebase.
- Using a centralized configuration server like Spring Cloud Config Server.
- Distributing configuration files via email to team members.
- Hardcoding configurations in each microservice.
In a microservices architecture, managing configurations and secrets centrally is essential. Spring Cloud provides Spring Cloud Config Server, which allows you to store configurations in a centralized location. Options 1, 3, and 4 are not recommended practices and can lead to maintenance challenges.
Loading...
Related Quiz
- In Spring Boot, the _____ annotation is used to indicate a component whose role is to represent a data repository.
- The JVM option ________ can be optimized to allocate more memory to a Spring Boot application.
- In the Spring Boot project structure, the _____ directory is recommended for placing application's static content.
- In Spring Boot, the _____ attribute of the @ExceptionHandler annotation allows you to define the types of exceptions the method will handle.
- How can you handle scenarios where both @RequestBody and @ResponseBody are required in a controller method in Spring Boot?