Question 1
A gateway in front of a Spring Boot 2.7 service already routes `/actuator` to a different system, so the team must publish the application's Actuator endpoints under `/manage` instead — for example `/manage/health`. Which Actuator setting is intended for this?
A. `management.endpoints.web.exposure.include`, which controls both which endpoints are visible and the URL prefix they are served under
Overloads the exposure property. Exposure decides *which* endpoints a technology may serve; it carries no path information and cannot relocate them.
B. `management.endpoints.web.base-path`, which changes the common prefix under which all web endpoints are served (default `/actuator`)Correct answer
Correct: this is the documented property for customizing the management base path, with `/actuator` as the default; setting it to `/manage` serves the health endpoint at `/manage/health`.
C. `management.server.port`, which relocates the management endpoints away from the application's main path space
Confuses port with path. This property moves the endpoints onto a separate HTTP port for isolation, but they keep the same base path on that port.
D. `management.endpoints.web.path-mapping.<id>`, applied once with the id `*` to move every endpoint at the same time
Misuses path-mapping, which remaps one endpoint id to one path (for example `health` to `healthcheck`) and does not accept a wildcard id; the shared prefix is the base path's job.
Explanation
Actuator serves all web endpoints beneath a configurable common prefix, `management.endpoints.web.base-path`, whose default is `/actuator`; changing it to `/manage` relocates the whole set. Exposure properties only decide which endpoints a technology may serve and encode no path, `management.server.port` isolates endpoints on a different port rather than a different path, and `path-mapping` renames one endpoint id at a time rather than the shared prefix.