CV0-004 · Question #138
A systems administrator needs to configure a script that will monitor whether an application is healthy and stop the VM if an unsuccessful code is returned. Which of the following scripts should the…
The correct answer is A. RESPONSE_CODE }. Script A is designed to monitor the health of an application by checking its response code. If the application returns a 200 (OK) status, it indicates that the application is healthy. Otherwise, the script will stop the VM to address the issue, which is a common approach to…
Question
A systems administrator needs to configure a script that will monitor whether an application is healthy and stop the VM if an unsuccessful code is returned. Which of the following scripts should the systems administrator use to achieve this goal?
Options
- ARESPONSE_CODE }
- Belse{
- Celse{
- Delse{
How the community answered
(56 responses)- A77% (43)
- B4% (2)
- C5% (3)
- D14% (8)
Explanation
Script A is designed to monitor the health of an application by checking its response code. If the application returns a 200 (OK) status, it indicates that the application is healthy. Otherwise, the script will stop the VM to address the issue, which is a common approach to handle unhealthy application states in automated environments. This script effectively achieves the goal of monitoring application health and taking corrective action when an unsuccessful code is returned.
Topics
Community Discussion
No community discussion yet for this question.