Complete the code to specify the protocol used in the health check.
{
"name": "basic-health-check",
"type": "HTTP",
"httpHealthCheck": {
"port": 80,
"requestPath": "/health",
"protocol": "[1]"
}
}The protocol for this health check is HTTP, so the correct value is "HTTP".
Complete the code to set the check interval in seconds.
{
"name": "custom-health-check",
"checkIntervalSec": [1],
"timeoutSec": 5
}The check interval is commonly set to 10 seconds for a balance between responsiveness and load.
Fix the error in the health check configuration by selecting the correct port number.
{
"name": "tcp-health-check",
"tcpHealthCheck": {
"port": [1]
}
}The TCP health check should target port 8080 where the service listens, not standard HTTP or SSH ports.
Fill both blanks to configure a health check with a 5-second timeout and 3 healthy threshold.
{
"name": "advanced-health-check",
"timeoutSec": [1],
"healthyThreshold": [2]
}The timeout is set to 5 seconds and the healthy threshold to 3 successful checks before marking healthy.
Fill all three blanks to create a health check that uses HTTPS, checks path '/status', and has an unhealthy threshold of 5.
{
"name": "secure-health-check",
"httpsHealthCheck": {
"port": 443,
"requestPath": "[1]",
"protocol": "[2]"
},
"unhealthyThreshold": [3]
}The health check uses HTTPS protocol, checks the '/status' path, and marks unhealthy after 5 failed checks.