Spring Sale Limited Time 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: simple70

CompTIA Cloud+ (V4) CV0-004 Question # 9 Topic 1 Discussion

CompTIA Cloud+ (V4) CV0-004 Question # 9 Topic 1 Discussion

CV0-004 Exam Topic 1 Question 9 Discussion:
Question #: 9
Topic #: 1

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?


A.

RESPONSE_CODE }string APP_URLbool RESPONSE_CODEstring VMhealth checker (APP_URL, VM) {if [ http_probe (APP_URL) == 200] {echo RESPONSE_CODE }else{stop (VM)echo


B.

else{echostring APP_URLfloat RESPONSE_CODEstring VMhealth_checker (APP_URL, VM) {if [ http_probe (APP_URL) == 200] {stop (RESPONSE_CODE)echo VM }stop (VM)RESPONSE CODE }


C.

else{echostring APP_URLint RESPONSE CODEstring VMhealth checker (APP_URL, VM) {if [ http_probe (APP_URL) == 200] {echo RESPONSE_CODE }stop (VM)RESPONSE_CODE }


D.

else{echostring APP_URLint RESPONSE_CODEstring VMhealth_checker (APP_URL, VM) {if [ http_probe (VM) == 200] {stop (VM)echo RESPONSE_CODE }RESPONSE CODE }


Get Premium CV0-004 Questions

Contribute your Thoughts:


Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.