Google Cloud Professional Cloud Network Engineer — Question 20
You have created an HTTP(S) load balanced service. You need to verify that your backend instances are responding properly.
How should you configure the health check?
Answer options
- A. Set request-path to a specific URL used for health checking, and set proxy-header to PROXY_V1.
- B. Set request-path to a specific URL used for health checking, and set host to include a custom host header that identifies the health check.
- C. Set request-path to a specific URL used for health checking, and set response to a string that the backend service will always return in the response body.
- D. Set proxy-header to the default value, and set host to include a custom host header that identifies the health check.
Correct answer: C
Explanation
The correct answer is C because setting the request-path to a specific health check URL and defining a response string ensures that the backend service can be accurately monitored for its responsiveness. Options A and B do not ensure that a specific response is returned, which is essential for verifying backend health. Option D lacks a proper response string, making it insufficient for health checks.