250+ TOP MCQs on Handling Actuator Request and Answers

IOT Multiple Choice Questions on “Handling Actuator Request”.

1. ____________ enables production-ready feature to the spring boot application.
a) Actuators
b) Endpoint
c) Boot
d) Hyper media

Answer: a
Clarification: Actuators enable production ready features to a spring boot application without having to actually implement these things yourself.

2. __________ should be added to start the existing actuators in boot.
a) spring-boot-actuator
b) sprint-actuator-boot
c) boot-spring-actuator
d) actuator-spring-boot

Answer: a
Clarification: To start using the existing actuators in boot we will just need to add the spring-boot-actuator dependency.

3. __________ allows us to monitor the application.
a) Actuators
b) Endpoints
c) Boot
d) Hypermedia

Answers: b
Clarification: Endpoints allow you to monitor the application and, in some cases, interact with it as well. The boot comes with many built-in endpoints and, like pretty much anything in spring.

4. Which endpoints are sensitive?
a) /health
b) /info
c) /metric
d) /trace

Answer: c
Clarification: Most endpoints are sensitive ie., meaning they are not fully public. While a handful is not: /health and /metric.

5. Which endpoint shows application health information?
a) /health
b) /info
c) /metric
d) /trace

Answer: a
Clarification: /health shows application health information (a simple ‘status’ when accessed over an unauthenticated connection or full message details when authenticated). It is not sensitive by default.

6. __________ endpoint displays arbitrary application information.
a) /health
b) /info
c) /metric
d) /trace

Answer: b
Clarification: Endpoints allow you to monitor the application and, in some cases, interact with it as well. /info endpoint displays arbitrary application information. Not sensitive by default.

7. Which endpoint shows metric information for the current application?
a) /health
b) /info
c) /metric
d) /trace

Answer: c
Clarification: Endpoints allow you to monitor the application and, in some cases, interact with it as well. /metric shows metric information for the current application. It is also sensitive by default.

8. Which endpoint displays trace information?
a) /health
b) /info
c) /metric
d) /trace

Answer: d
Clarification: Endpoints allow you to monitor the application and, in some cases, interact with it as well. /trace displace trace information by default the; last few HTTP requests.

9. How many customizing properties are available?
a) 2 Properties
b) 3 Properties
c) 4 Properties
d) 5 Properties

Answer: b
Clarification: Each endpoint can be customized with properties using the following format: endpoint.[endpoint name].[property to customize]. Three properties are:
1. Id
2. Enabled
3. Sensitive.

10. Using which customized endpoint will be accessed over HTTP?
a) Id and enabled
b) Enabled
c) Sensitive
d) Id

Answer: d
Clarification: Each endpoint can be customized with properties using the following format: endpoint.[endpoint name].[property to customize].
Id – by which this endpoint will be accessed over HTTP.

11. Enabled customization endpoint will be enabled only during __________
a) True cases only
b) False cases only
c) Either True or false cases
d) True and false cases

Answer: a
Clarification: Each endpoint can be customized with properties using the following format: endpoint.[endpoint name].[property to customize].
Enabled – if true then it can be accessed otherwise not.

12. Enabled customization endpoint will be sensitive only during ________
a) True and false cases
b) False cases only
c) Either True or false cases
d) True cases only

Answer: d
Clarification: Each endpoint can be customized with properties using the following format: endpoint.[endpoint name].[property to customize].
Sensitive – if true then need the authorization to show crucial information over HTTP.

13. Health information is collected from all the beans implementing Health Indicator interface.
a) True
b) False

Answer: a
Clarification: Health information is collected from all the beans implementing Health Indicator interface configured in your application context.

14. Which endpoint is gathered and publishes information about OS?
a) /health
b) /info
c) /metric
d) /trace

Answer: c
Clarification: The metric endpoint is one of the most important endpoint as I gathers and publishes information about OS, JVM and Application level metric.

15. Command to create new endpoint?
a) Endpoint_T
b) Endpoint
c) Endpoint-T
d) Endpoint-t

Answer: b
Clarification: Besides using the existing endpoint provided by spring boot we can create a new endpoint. We need to have endpoint implementation implement the endpoint.

Leave a Reply

Your email address will not be published. Required fields are marked *