IOT Questions and Answers – Handling Actuator Request

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

Answer: a
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

Answer: a
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

Answers: b
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.
advertisement
advertisement

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

Answer: c
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

Answer: a
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.
Note: Join free Sanfoundry classes at Telegram or Youtube

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

Answer: b
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

Answer: c
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.
advertisement

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

Answer: d
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

Answer: b
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.
advertisement

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

Answer: d
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

Answer: a
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

Answer: d
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

Answer: a
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

Answer: c
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

Answer: b
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]

advertisement
advertisement
Subscribe to our Newsletters (Subject-wise). Participate in the Sanfoundry Certification contest to get free Certificate of Merit. Join our social networks below and stay updated with latest contests, videos, internships and jobs!

Youtube | Telegram | LinkedIn | Instagram | Facebook | Twitter | Pinterest
Manish Bhojasia - Founder & CTO at Sanfoundry
Manish Bhojasia, a technology veteran with 20+ years @ Cisco & Wipro, is Founder and CTO at Sanfoundry. He lives in Bangalore, and focuses on development of Linux Kernel, SAN Technologies, Advanced C, Data Structures & Alogrithms. Stay connected with him at LinkedIn.

Subscribe to his free Masterclasses at Youtube & discussions at Telegram SanfoundryClasses.