Bird
0
0

Which of the following is the correct JSON snippet to define a basic HTTP health check in GCP?

easy📝 Configuration Q3 of 15
GCP - Cloud Load Balancing

Which of the following is the correct JSON snippet to define a basic HTTP health check in GCP?

A{"type": "TCP", "port": 22, "requestPath": "/check"}
B{"type": "FTP", "port": 21, "requestPath": "/status"}
C{"type": "HTTP", "port": 80, "requestPath": "/health"}
D{"type": "SMTP", "port": 25, "requestPath": "/ping"}
Step-by-Step Solution
Solution:
  1. Step 1: Check protocol and port

    HTTP health checks use type "HTTP" and typically port 80.
  2. Step 2: Verify request path

    The requestPath "/health" is a common endpoint for health checks.
  3. Final Answer:

    {"type": "HTTP", "port": 80, "requestPath": "/health"} -> Option C
  4. Quick Check:

    Correct JSON for HTTP health check = {"type": "HTTP", "port": 80, "requestPath": "/health"} [OK]
Quick Trick: HTTP health checks use port 80 and a valid request path [OK]
Common Mistakes:
  • Using unsupported protocols like FTP or SMTP
  • Incorrect port numbers for HTTP health checks

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More GCP Quizzes