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?
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.
C: A content-based health check is one whose success criteria depends on evaluation of an expected response ***** string. Use a content-based health check to instruct Google Cloud health check probes to more completely validate your backend's response.
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.
Answer is C: https://cloud.google.com/load-balancing/docs/health-checks#optional-flags-hc-protocol-http
https://cloud.google.com/load-balancing/docs/health-checks
Request path and Response: For HTTP, HTTPS, and HTTP2 protocols, you can optionally provide a URL path for the health check probe systems to contact.
B is correct. We have to configure the host header in health-check because as you know backend could host many domains and we have to know which one is a life.
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
iobluedot
Highly Voted 3 years, 2 months agokumarp6
Highly Voted 1 year, 10 months agopk349
Most Recent 9 months, 3 weeks agoAzureDP900
11 months, 1 week agosmall1_small2
1 year, 2 months agodesertlotus1211
1 year, 10 months agoVidyasagar
2 years, 7 months agomarekmatula2020
2 years, 11 months agoretep007
2 years, 1 month ago[Removed]
2 years, 11 months agosaurabh1805
3 years, 2 months agobeebee
3 years, 3 months agomaxth3mad
3 years, 3 months ago