Bird
0
0

Examine this health check configuration snippet and identify the issue:

medium📝 Debug Q6 of 15
GCP - Cloud Load Balancing

Examine this health check configuration snippet and identify the issue:
{"type": "HTTPS", "port": 443, "requestPath": 12345}

AMissing "checkIntervalSec" field
B"port" cannot be set to 443 for HTTPS health checks
C"type" must be "HTTP" instead of "HTTPS"
D"requestPath" should be a string, not a number
Step-by-Step Solution
Solution:
  1. Step 1: Check data types

    The "requestPath" field expects a string representing the URL path to check.
  2. Step 2: Identify the error

    Here, "requestPath" is set to a number (12345), which is invalid.
  3. Final Answer:

    "requestPath" should be a string, not a number -> Option D
  4. Quick Check:

    Verify field types match expected formats [OK]
Quick Trick: Ensure all fields have correct data types [OK]
Common Mistakes:
  • Using numbers instead of strings for URL paths
  • Confusing port numbers for protocols
  • Omitting required fields like checkIntervalSec

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More GCP Quizzes