Bird
0
0

You want to secure the /shutdown endpoint so only authorized users can access it. Which of the following is the best approach?

hard📝 Conceptual Q8 of 15
Spring Boot - Actuator
You want to secure the /shutdown endpoint so only authorized users can access it. Which of the following is the best approach?
ARename the /shutdown endpoint to /stop
BDisable the /shutdown endpoint completely
CExpose /shutdown without any security since it is safe
DEnable the /shutdown endpoint and configure Spring Security to restrict access
Step-by-Step Solution
Solution:
  1. Step 1: Understand /shutdown endpoint risks

    /shutdown can stop the app; it should be protected, not exposed without security.
  2. Step 2: Choose best practice for securing sensitive endpoints

    Enable it if needed but restrict access using Spring Security to authorized users only.
  3. Final Answer:

    Enable the /shutdown endpoint and configure Spring Security to restrict access -> Option D
  4. Quick Check:

    Secure sensitive endpoints with Spring Security [OK]
Quick Trick: Secure shutdown with Spring Security, don't expose openly [OK]
Common Mistakes:
  • Disabling when shutdown is needed
  • Exposing without security
  • Renaming endpoint doesn't secure it

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Spring Boot Quizzes