1Question 1
Troubleshooting and Repairing
Choose 1
Which approach will ensure traffic is only sent to a server when its connection to a back-end database is fully functional?
Correct answer:
C. Configure an HTTP Health Monitor to query a URI that returns a specific response only if a back-end database call is successful
Explanation:
To ensure traffic is only sent to a web server when its database connection is fully functional, the health monitor must verify not just that the web server is up (TCP/HTTP), but that it can successfully communicate with its backend database. An HTTP health monitor that calls a custom endpoint (e.g., /health/db) which internally checks database connectivity and returns HTTP 200 only when the database is reachable provides accurate, application‑aware health checking.
Correct Option:
C. Configure an HTTP Health Monitor to query a URI that returns a specific response only if a back-end database call is successful –
Correct. This method uses the web server’s application logic to verify full functionality. The server performs a real database query (or checks a connection pool) and returns HTTP 200 if successful, or HTTP 5xx otherwise. The health monitor marks the server down on failure.
Incorrect Options:
A. Create a DataScript that performs a database lookup to the back-end database –
Incorrect. DataScripts operate on the Service Engine and execute per request. Using them for health checks is inefficient and not standard. Dedicated health monitors are preferred.
B. Configure an External Health Monitor that performs a database lookup to the back-end database –
Incorrect. An external health monitor could perform a database lookup, but this checks database connectivity from the Service Engine, not from the web server. The web server might have a different network path, authentication, or connection pool issue that this external check would miss.
D. Create a Virtual Service with the back-end database server as a pool member, and configure a TCP Health Monitor. Then, reconfigure the web servers to communicate with the database via this Virtual Service –
Incorrect. This adds unnecessary complexity and places the database behind a load balancer, which is atypical. It does not verify that the web server itself can connect to the database (e.g., credentials, driver issues).
Reference:
VMware NSX Advanced Load Balancer Documentation: "Application-Aware Health Monitoring" – recommends HTTP monitors with custom endpoints that validate backend dependencies. Also covered in NSX ALB Health Monitor Configuration Guide and vDefend Load Balancing Best Practices, section on multi-tier health checks.
To ensure traffic is only sent to a web server when its database connection is fully functional, the health monitor must verify not just that the web server is up (TCP/HTTP), but that it can successfully communicate with its backend database. An HTTP health monitor that calls a custom endpoint (e.g., /health/db) which internally checks database connectivity and returns HTTP 200 only when the database is reachable provides accurate, application‑aware health checking.
Correct Option:
C. Configure an HTTP Health Monitor to query a URI that returns a specific response only if a back-end database call is successful –
Correct. This method uses the web server’s application logic to verify full functionality. The server performs a real database query (or checks a connection pool) and returns HTTP 200 if successful, or HTTP 5xx otherwise. The health monitor marks the server down on failure.
Incorrect Options:
A. Create a DataScript that performs a database lookup to the back-end database –
Incorrect. DataScripts operate on the Service Engine and execute per request. Using them for health checks is inefficient and not standard. Dedicated health monitors are preferred.
B. Configure an External Health Monitor that performs a database lookup to the back-end database –
Incorrect. An external health monitor could perform a database lookup, but this checks database connectivity from the Service Engine, not from the web server. The web server might have a different network path, authentication, or connection pool issue that this external check would miss.
D. Create a Virtual Service with the back-end database server as a pool member, and configure a TCP Health Monitor. Then, reconfigure the web servers to communicate with the database via this Virtual Service –
Incorrect. This adds unnecessary complexity and places the database behind a load balancer, which is atypical. It does not verify that the web server itself can connect to the database (e.g., credentials, driver issues).
Reference:
VMware NSX Advanced Load Balancer Documentation: "Application-Aware Health Monitoring" – recommends HTTP monitors with custom endpoints that validate backend dependencies. Also covered in NSX ALB Health Monitor Configuration Guide and vDefend Load Balancing Best Practices, section on multi-tier health checks.