システム管理者は、アプリケーションが正常かどうかを監視し、失敗したコードが返された場合に VM を停止するスクリプトを構成する必要があります。この目標を達成するには、システム管理者が次のスクリプトのどれを使用する必要がありますか?
正解:A
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.