Spring Cloud Config Basics for Distributed Systems
An introductory quiz on using Spring Cloud Config in distributed systems.
Questions in this quiz
15 questions on Spring Cloud Config Basics for Distributed Systems. Work through them here, then start the quiz to answer them and see your score.
1.What is the primary purpose of Spring Cloud Config?
- ATo provide centralized configuration management
- BTo manage distributed logging
- CTo manage database connections
- DTo handle distributed transactions
2.Which of the following components does Spring Cloud Config consist of?
- AConfig Server and Config Client
- BConfig Logger and Config Monitor
- CConfig Database and Config Cache
- DConfig Manager and Config Proxy
3.How does the Config Client retrieve configuration properties?
- ADirectly from a properties file
- BFrom a local cache
- CBy querying a database
- DThrough a REST API call to the Config Server
4.Which file format is NOT supported by Spring Cloud Config for storing configuration properties?
- AYAML
- BJSON
- CProperties
- DXML
5.What is the default port for the Spring Cloud Config Server?
- A9999
- B8888
- C9090
- D8080
6.Which version control system is commonly used with Spring Cloud Config?
- APerforce
- BGit
- CMercurial
- DSVN
7.What is the benefit of using Spring Cloud Config in a microservices architecture?
- AIncreased database performance
- BImproved logging capabilities
- CEnhanced security features
- DCentralized management of configuration properties
8.Which annotation is used to enable a Spring Boot application as a Config Server?
- A@EnableConfiguration
- B@EnableSpringConfig
- C@EnableConfigServer
- D@EnableConfigClient
9.How can a Spring Cloud Config Client refresh its configuration properties at runtime?
- ABy clearing the cache
- BAutomatically every hour
- CUsing the /refresh endpoint
- DBy restarting the application
10.What is the role of the bootstrap.yml file in Spring Cloud Config?
- ATo configure logging settings
- BTo define application-specific properties
- CTo manage database connections
- DTo load configuration properties during the bootstrap phase
11.Which property is used to specify the location of the Config Server in a Config Client?
- Aspring.config.client.endpoint
- Bspring.config.server.url
- Cspring.cloud.config.uri
- Dspring.cloud.server.address
12.What happens if the Config Server is unavailable when a client starts?
- AThe client uses default properties
- BThe client uses cached properties
- CThe client switches to a backup server
- DThe client fails to start
13.Which of the following is a feature of Spring Cloud Config?
- AAutomatic load balancing
- BService discovery
- CCentralized configuration management
- DDistributed tracing
14.What is the function of the @RefreshScope annotation in Spring Cloud Config?
- ATo refresh beans when configuration changes
- BTo enable service discovery
- CTo manage database connections
- DTo enable load balancing
15.Which command can be used to test the Config Server's health?
- Acurl -X GET http://localhost:8888/actuator/health
- Bcurl -X GET http://localhost:8888/status
- Ccurl -X GET http://localhost:8888/health
- Dcurl -X GET http://localhost:8888/check