0
0
GCPcloud~10 mins

Health checks configuration in GCP - Interactive Code Practice

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the code to specify the protocol used in the health check.

GCP
{
  "name": "basic-health-check",
  "type": "HTTP",
  "httpHealthCheck": {
    "port": 80,
    "requestPath": "/health",
    "protocol": "[1]"
  }
}
Drag options to blanks, or click blank then click option'
ASSL
BTCP
CHTTPS
DHTTP
Attempts:
3 left
💡 Hint
Common Mistakes
Choosing TCP or SSL when the health check is HTTP-based.
Using HTTPS when the port is 80.
2fill in blank
medium

Complete the code to set the check interval in seconds.

GCP
{
  "name": "custom-health-check",
  "checkIntervalSec": [1],
  "timeoutSec": 5
}
Drag options to blanks, or click blank then click option'
A10
B2
C30
D60
Attempts:
3 left
💡 Hint
Common Mistakes
Setting the interval too low like 2 seconds, causing unnecessary load.
Setting the interval too high like 60 seconds, causing slow detection.
3fill in blank
hard

Fix the error in the health check configuration by selecting the correct port number.

GCP
{
  "name": "tcp-health-check",
  "tcpHealthCheck": {
    "port": [1]
  }
}
Drag options to blanks, or click blank then click option'
A443
B80
C8080
D22
Attempts:
3 left
💡 Hint
Common Mistakes
Using port 80 or 443 which are for HTTP/HTTPS, not TCP health checks.
Using port 22 which is for SSH, unrelated to health checks.
4fill in blank
hard

Fill both blanks to configure a health check with a 5-second timeout and 3 healthy threshold.

GCP
{
  "name": "advanced-health-check",
  "timeoutSec": [1],
  "healthyThreshold": [2]
}
Drag options to blanks, or click blank then click option'
A5
B3
C10
D1
Attempts:
3 left
💡 Hint
Common Mistakes
Confusing timeout with interval values.
Setting healthy threshold too low or too high.
5fill in blank
hard

Fill all three blanks to create a health check that uses HTTPS, checks path '/status', and has an unhealthy threshold of 5.

GCP
{
  "name": "secure-health-check",
  "httpsHealthCheck": {
    "port": 443,
    "requestPath": "[1]",
    "protocol": "[2]"
  },
  "unhealthyThreshold": [3]
}
Drag options to blanks, or click blank then click option'
A/status
BHTTPS
C5
D/health
Attempts:
3 left
💡 Hint
Common Mistakes
Using HTTP protocol with port 443.
Using wrong request path like '/health' instead of '/status'.
Setting unhealthy threshold too low.