Last updated on 7/3/20
Do you know how to prepare your application to be manageable in a production environment?
- Make your application manageable and maintainable in a production environment
In the application.properties file, you can see this line:
Which ones are correct about the content of application logs:Careful, there are several correct answers.
Which are true about adding logs to code?Careful, there are several correct answers.
Place logs where exceptions are likely to happen.
Write logs to check whether requests are received by the application.
Include logs when calling external services.
Keep controller classes thin and clean from logs.
Place as many logs as you can to ensure proper logging coverage.
What is true about using endpoints in Spring Boot Actuator?Careful, there are several correct answers.
It provides a simple means to create REST endpoints.
It provides existing endpoints you can customize.
It provides standard endpoints, but they need to be exposed for security reasons.
Best practices emphasize creating your own custom endpoints, rather than using standard ones.
It's possible to create custom endpoints, but they should be limited for security reasons.