This set of IOT Multiple Choice Questions & Answers (MCQs) focuses on “Handling Actuator Request”.
1. ____________ enables production-ready feature to the spring boot application.
a) Actuators
b) Endpoint
c) Boot
d) Hyper media
View Answer
Explanation: Actuators enables production-ready features to the spring boot application without having to 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
View Answer
Explanation: 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
View Answer
Explanation: 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
View Answer
Explanation: Most endpoints are sensitive meaning they are not fully public. While a handful are not, e.g., /health and /info. /metrics shows metrics information for the current application; it’s sensitive by default.
5. Which endpoint shows application health information?
a) /health
b) /info
c) /metric
d) /trace
View Answer
Explanation: /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
View Answer
Explanation: Endpoints allows you to monitor the applications and, in some cases, interact with it as well. /info endpoint displays arbitrary application information and it is not sensitive by default.
7. Which endpoint shows metric information for the current application?
a) /health
b) /info
c) /metric
d) /trace
View Answer
Explanation: 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
View Answer
Explanation: 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
View Answer
Explanation: 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
View Answer
Explanation: 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
View Answer
Explanation: The customization endpoint will be enabled only for true cases, 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
View Answer
Explanation: The customization endpoint will be sensitive only for true cases, 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
View Answer
Explanation: 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
View Answer
Explanation: The metric endpoint is one of the most important endpoints as it gathers and publishes the information about OS, JVM and Application-level metric.
15. Command to create new endpoint?
a) Endpoint_T
b) Endpoint<T>
c) Endpoint-T
d) Endpoint-t
View Answer
Explanation: Besides using the existing endpoint provided by spring boot we can create a new endpoint. We need to have an endpoint implementation which will implement the new endpoint. The command used is: endpoint<T>.
Sanfoundry Global Education & Learning Series – IOT.
To practice all areas of IOT, here is complete set of 1000+ Multiple Choice Questions and Answers.
If you find a mistake in question / option / answer, kindly take a screenshot and email to [email protected]
- Check IOT Books
- Check Programming Books
- Practice Computer Science MCQs
- Practice Programming MCQs
- Apply for Computer Science Internship