{"id":10427,"date":"2023-05-03T09:40:51","date_gmt":"2023-05-03T09:40:51","guid":{"rendered":"https:\/\/www.scmgalaxy.com\/tutorials\/?p=10427"},"modified":"2023-06-19T13:29:32","modified_gmt":"2023-06-19T13:29:32","slug":"top-50-haproxy-interview-questions-with-answers","status":"publish","type":"post","link":"https:\/\/www.scmgalaxy.com\/tutorials\/top-50-haproxy-interview-questions-with-answers\/","title":{"rendered":"Top 50 Haproxy Interview Questions with Answers"},"content":{"rendered":"<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2023\/05\/image-99-1024x576.png\" alt=\"\" class=\"wp-image-10428\" width=\"665\" height=\"374\" srcset=\"https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2023\/05\/image-99-1024x576.png 1024w, https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2023\/05\/image-99-300x169.png 300w, https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2023\/05\/image-99-768x432.png 768w, https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2023\/05\/image-99-1536x864.png 1536w, https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2023\/05\/image-99.png 1600w\" sizes=\"auto, (max-width: 665px) 100vw, 665px\" \/><figcaption class=\"wp-element-caption\"><strong><em>Haproxy Interview Questions with Answers<\/em><\/strong><\/figcaption><\/figure>\n<\/div>\n\n\n<h3 class=\"wp-block-heading\">1. What is HAProxy?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">a) A web server<br>b) A load balancer<br>c) A database<br>d) A programming language<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Answer: b<\/h4>\n\n\n\n<h3 class=\"wp-block-heading\">2. What is the difference between HAProxy and Nginx?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">a) HAProxy is a load balancer, while Nginx is a web server and reverse proxy.<br>b) HAProxy is a database, while Nginx is a web server and reverse proxy.<br>c) HAProxy is a programming language, while Nginx is a load balancer.<br>d) HAProxy and Nginx are the same thing.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Answer: a<\/h4>\n\n\n\n<h3 class=\"wp-block-heading\">3. What is the main feature of HAProxy?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">a) Load balancing<br>b) Caching<br>c) Data storage<br>d) Authentication<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Answer: a<\/h4>\n\n\n\n<h3 class=\"wp-block-heading\">4. What is the default port for HAProxy?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">a) 80<br>b) 443<br>c) 8080<br>d) 9000<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Answer: a<\/h4>\n\n\n\n<h3 class=\"wp-block-heading\">5. What kind of load balancing algorithms does HAProxy support?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">a) Round-robin<br>b) Least connections<br>c) Source IP-based<br>d) All of the above<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Answer: d<\/h4>\n\n\n\n<h3 class=\"wp-block-heading\">6. What is a backend in HAProxy?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">a) The front-facing load balancer<br>b) The server(s) being load balanced<br>c) The user interface<br>d) The logging system<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Answer: b<\/h4>\n\n\n\n<h3 class=\"wp-block-heading\">7. What is a frontend in HAProxy?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">a) The server(s) being load balanced<br>b) The front-facing load balancer<br>c) The user interface<br>d) The logging system<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Answer: b<\/h4>\n\n\n\n<h3 class=\"wp-block-heading\">8. What is the maximum number of servers that can be load balanced by HAProxy?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">a) 10<br>b) 100<br>c) 1000<br>d) Unlimited<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Answer: d<\/h4>\n\n\n\n<h3 class=\"wp-block-heading\">9. Can HAProxy be used for SSL termination?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">a) Yes<br>b) No<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Answer: a<\/h4>\n\n\n\n<h3 class=\"wp-block-heading\">10. What is the difference between a TCP and HTTP mode in HAProxy?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">a) TCP mode is for load balancing TCP traffic, while HTTP mode is for load balancing HTTP traffic.<br>b) TCP mode is for load balancing HTTP traffic, while HTTP mode is for load balancing TCP traffic.<br>c) TCP mode is for caching, while HTTP mode is for load balancing.<br>d) There is no difference.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Answer: a<\/h4>\n\n\n\n<h3 class=\"wp-block-heading\">11. What is the command to reload HAProxy configuration?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">a) systemctl start haproxy<br>b) systemctl stop haproxy<br>c) systemctl restart haproxy<br>d) systemctl reload haproxy<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Answer: d<\/h4>\n\n\n\n<h3 class=\"wp-block-heading\">12. What is the purpose of a health check in HAProxy?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">a) To monitor the availability of backend servers.<br>b) To monitor the performance of backend servers.<br>c) To monitor the amount of traffic being handled by HAProxy.<br>d) Both a and b.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Answer: a<\/h4>\n\n\n\n<h3 class=\"wp-block-heading\">13. What is the command to view the status of HAProxy backend servers?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">a) haproxy -p \/var\/run\/haproxy.pid -D -f \/etc\/haproxy\/haproxy.cfg -c<br>b) haproxy -p \/var\/run\/haproxy.pid -D -f \/etc\/haproxy\/haproxy.cfg -t<br>c) haproxy -p \/var\/run\/haproxy.pid -D -f \/etc\/haproxy\/haproxy.cfg -n<br>d) haproxy -p \/var\/run\/haproxy.pid -D -f \/etc\/haproxy\/haproxy.cfg -stats<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Answer: d<\/h4>\n\n\n\n<h3 class=\"wp-block-heading\">14. What is the difference between a sticky session and a non-sticky session in HAProxy?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">a) Sticky session means a client always connects to the same backend server, while non-sticky means the client can connect to any backend server.<br>b) Sticky session means a client can connect to any backend server, while non-sticky means the client always connects to the same backend server.<br>c) There is no difference.<br>d) Sticky and non-sticky sessions only apply to Nginx, not HAProxy.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Answer: a<\/h4>\n\n\n\n<h3 class=\"wp-block-heading\">15. What is the maximum number of frontend listeners that can be configured in HAProxy?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">a) 10<br>b) 100<br>c) Unlimited<br>d) None of the above.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Answer: c<\/h4>\n\n\n\n<h3 class=\"wp-block-heading\">16. What is the use of &#8220;option forwardfor&#8221; in HAProxy?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">a) To pass the client&#8217;s original IP address to the backend server.<br>b) To encrypt the client&#8217;s original IP address.<br>c) There is no such option in HAProxy.<br>d) To disable logging of the client&#8217;s original IP address.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Answer: a<\/h4>\n\n\n\n<h3 class=\"wp-block-heading\">17. What is the maximum number of ACLs that can be configured in HAProxy?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">a) 10<br>b) 100<br>c) Unlimited<br>d) None of the above.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Answer: c<\/h4>\n\n\n\n<h3 class=\"wp-block-heading\">18. What is the command to stop HAProxy?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">a) systemctl start haproxy<br>b) systemctl stop haproxy<br>c) systemctl restart haproxy<br>d) systemctl reload haproxy<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Answer: b<\/h4>\n\n\n\n<h3 class=\"wp-block-heading\">19. How can you add new servers to an existing HAProxy configuration?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">a) Edit the configuration file manually and reload the configuration.<br>b) Restart HAProxy.<br>c) Run a separate process to automatically add servers as they come online.<br>d) There is no way to add new servers.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Answer: a<\/h4>\n\n\n\n<h3 class=\"wp-block-heading\">20. What is the purpose of a timeout in HAProxy configuration?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">a) To limit the amount of time a client can connect to a backend server.<br>b) To limit the amount of time a backend server can process a request.<br>c) To limit the amount of time a client can connect to HAProxy.<br>d) Both a and b.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Answer: d<\/h4>\n\n\n\n<h3 class=\"wp-block-heading\">21. What is the command to check HAProxy configuration file syntax?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">a) haproxy -p \/var\/run\/haproxy.pid -D -f \/etc\/haproxy\/haproxy.cfg -c<br>b) haproxy -p \/var\/run\/haproxy.pid -D -f \/etc\/haproxy\/haproxy.cfg -t<br>c) haproxy -p \/var\/run\/haproxy.pid -D -f \/etc\/haproxy\/haproxy.cfg -n<br>d) haproxy -p \/var\/run\/haproxy.pid -D -f \/etc\/haproxy\/haproxy.cfg -stats<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Answer: b<\/h4>\n\n\n\n<h3 class=\"wp-block-heading\">22. What is the purpose of &#8220;option httpchk&#8221; in HAProxy?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">a) To enable HTTP health checks for backend servers.<br>b) To encrypt HTTP traffic.<br>c) There is no such option in HAProxy.<br>d) To disable HTTP traffic.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Answer: a<\/h4>\n\n\n\n<h3 class=\"wp-block-heading\">23. What is the difference between &#8220;option httplog&#8221; and &#8220;option tcplog&#8221; in HAProxy?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">a) &#8220;option httplog&#8221; is for HTTP traffic, while &#8220;option tcplog&#8221; is for TCP traffic.<br>b) &#8220;option httplog&#8221; is for TCP traffic, while &#8220;option tcplog&#8221; is for HTTP traffic.<br>c) There is no difference.<br>d) &#8220;option httplog&#8221; and &#8220;option tcplog&#8221; only apply to Nginx, not HAProxy.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Answer: a<\/h4>\n\n\n\n<h3 class=\"wp-block-heading\">24. What is the purpose of &#8220;option prefer-last-server&#8221; in HAProxy?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">a) To always connect to the last backend server in a list.<br>b) To always connect to the first backend server in a list.<br>c) There is no such option in HAProxy.<br>d) To randomly select a backend server.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Answer: a<\/h4>\n\n\n\n<h3 class=\"wp-block-heading\">25. What is the use of &#8220;maxconn&#8221; in a backend server configuration?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">a) To limit the maximum number of client connections per backend server.<br>b) To limit the maximum number of backend server connections per client.<br>c) There is no such option in HAProxy.<br>d) To limit the total amount of traffic between HAProxy and the backend server.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Answer: a<\/h4>\n\n\n\n<h3 class=\"wp-block-heading\">26. What is the major difference between round-robin and least connection algorithms in HAProxy?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">a) Round-robin is a random algorithm that distributes the load equally among all servers while least connection algorithm assigns connections to the server with the least number of active connections.<br>b) Round-robin assigns connections to the server with the least number of active connections while least connection algorithm is a random combination of the weight assigned to all the servers.<br>c) None of the mentioned.<br>d) Both are identical for load balancing.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Answer: a<\/h4>\n\n\n\n<h3 class=\"wp-block-heading\">27. What is the command to kill a specific HAProxy process running in the background?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">a) killall haproxy<br>b) pkill haproxy<br>c) kill pid_number<br>d) All of the above<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Answer: c<\/h4>\n\n\n\n<h3 class=\"wp-block-heading\">28. What is the command to check the version of HAProxy?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">a) haproxy -v<br>b) haproxy &#8211;version<br>c) Both a and b<br>d) systemctl status haproxy<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Answer: c<\/h4>\n\n\n\n<h3 class=\"wp-block-heading\">29. What is the use of stick tables in HAProxy?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">a) To store client information in a cache-like structure.<br>b) To limit the amount of traffic a client can send to a backend server.<br>c) To encrypt client data before sending it to a backend server.<br>d) Both a and b.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Answer: a<\/h4>\n\n\n\n<h3 class=\"wp-block-heading\">30. What is the difference between &#8220;balance roundrobin&#8221; and &#8220;balance leastconn&#8221; in HAProxy?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">a) &#8220;balance roundrobin&#8221; distributes the load equally among all servers while &#8220;balance leastconn&#8221; assigns connections to the server with the least number of active connections.<br>b) &#8220;balance leastconn&#8221; distributes the load equally among all servers while &#8220;balance roundrobin&#8221; assigns connections to the server with the least number of active connections.<br>c) None of the mentioned.<br>d) Both are identical for load balancing.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Answer: a<\/h4>\n\n\n\n<h3 class=\"wp-block-heading\">31. What is the use of &#8220;option redispatch&#8221; in HAProxy?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">a) To re-dispatch connections to another backend server if the current one fails.<br>b) To redispatch all connections after a server is added or removed from HAProxy configuration.<br>c) There is no such option in HAProxy.<br>d) To encrypt all traffic between the client and backend servers.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Answer: a<\/h4>\n\n\n\n<h3 class=\"wp-block-heading\">32. What is the purpose of &#8220;mode&#8221; option in HAProxy?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">a) To select between TCP and HTTP modes.<br>b) To limit the maximum number of client connections per backend server.<br>c) To enable HTTP health checks for backend servers.<br>d) There is no such option in HAProxy.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Answer: a<\/h4>\n\n\n\n<h3 class=\"wp-block-heading\">33. How many types of cookies does HAProxy support?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">a) 1<br>b) 2<br>c) 3<br>d) 4<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Answer: b<\/h4>\n\n\n\n<h3 class=\"wp-block-heading\">34. What is the use of &#8220;server-template&#8221; in HAProxy?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">a) To create multiple backend servers with the same configuration.<br>b) To limit the maximum number of client connections per backend server.<br>c) To enable HTTP health checks for backend servers.<br>d) There is no such option in HAProxy.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Answer: a<\/h4>\n\n\n\n<h3 class=\"wp-block-heading\">35. What is the use of &#8220;http-reuse&#8221; in HAProxy?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">a) To reuse existing client connections to backend servers.<br>b) To limit the maximum number of client connections per backend server.<br>c) To enable HTTP health checks for backend servers.<br>d) There is no such option in HAProxy.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Answer: a<\/h4>\n\n\n\n<h3 class=\"wp-block-heading\">36. What is the purpose of &#8220;source&#8221; option in HAProxy?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">a) To specify the IP address or CIDR range of incoming client connections.<br>b) To limit the maximum number of client connections per backend server.<br>c) To enable HTTP health checks for backend servers.<br>d) There is no such option in HAProxy.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Answer: a<\/h4>\n\n\n\n<h3 class=\"wp-block-heading\">37. What is the use of &#8220;transparent&#8221; option in HAProxy?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">a) To enable IP transparency for incoming client connections.<br>b) To limit the maximum number of client connections per backend server.<br>c) To enable HTTP health checks for backend servers.<br>d) There is no such option in HAProxy.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Answer: a<\/h4>\n\n\n\n<h3 class=\"wp-block-heading\">38. What is the use of &#8220;stats&#8221; option in HAProxy?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">a) To enable statistics reporting for HAProxy.<br>b) To limit the maximum number of client connections per backend server.<br>c) To enable HTTP health checks for backend servers.<br>d) There is no such option in HAProxy.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Answer: a<\/h4>\n\n\n\n<h3 class=\"wp-block-heading\">39. What is the use of &#8220;http-request&#8221; in HAProxy?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">a) To add an HTTP header to incoming client requests.<br>b) To limit the maximum number of client connections per backend server.<br>c) To enable HTTP health checks for backend servers.<br>d) There is no such option in HAProxy.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Answer: a<\/h4>\n\n\n\n<h3 class=\"wp-block-heading\">40. What is the use of &#8220;http-response&#8221; in HAProxy?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">a) To add an HTTP header to outgoing client responses.<br>b) To limit the maximum number of client connections per backend server.<br>c) To enable HTTP health checks for backend servers.<br>d) There is no such option in HAProxy.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Answer: a<\/h4>\n\n\n\n<h3 class=\"wp-block-heading\">41. What is the use of &#8220;option http-server-close&#8221; in HAProxy?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">a) To terminate the TCP connection between the client and HAProxy after each request.<br>b) To terminate the TCP connection between the client and backend server after each request.<br>c) There is no such option in HAProxy.<br>d) To disable logging of HTTP requests.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Answer: a<\/h4>\n\n\n\n<h3 class=\"wp-block-heading\">42. What is the use of &#8220;option http-tunnel&#8221; in HAProxy?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">a) To allow HTTP traffic to be tunneled over other protocols.<br>b) To limit the maximum number of client connections per backend server.<br>c) To enable HTTP health checks for backend servers.<br>d) There is no such option in HAProxy.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Answer: a<\/h4>\n\n\n\n<h3 class=\"wp-block-heading\">43. What is the use of &#8220;option abortonclose&#8221; in HAProxy?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">a) To abort the connection between the client and HAProxy if the client closes the connection early.<br>b) To abort the connection between the backend server and HAProxy if the backend server closes the connection early.<br>c) There is no such option in HAProxy.<br>d) To abort all connections immediately.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Answer: b<\/h4>\n\n\n\n<h3 class=\"wp-block-heading\">44. What is the use of &#8220;option dontlog-normal&#8221; in HAProxy?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">a) To disable logging of normal HTTP requests.<br>b) To enable logging of normal HTTP requests.<br>c) There is no such option in HAProxy.<br>d) To encrypt normal HTTP requests.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Answer: a<\/h4>\n\n\n\n<h3 class=\"wp-block-heading\">45. What is the use of &#8220;timeout connection&#8221; in HAProxy?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">a) To limit the time between the client connecting and sending the first request.<br>b) To limit the time between a backend server completing the request and sending the response.<br>c) To limit the amount of time a client can keep an idle connection open.<br>d) Both a and b.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Answer: a<\/h4>\n\n\n\n<h3 class=\"wp-block-heading\">46. What is the use of &#8220;timeout server&#8221; in HAProxy?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">a) To limit the amount of time a backend server can process a request.<br>b) To limit the time between the client connecting and sending the first request.<br>c) To limit the amount of time a client can keep an idle connection open.<br>d) Both a and c.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Answer: a<\/h4>\n\n\n\n<h3 class=\"wp-block-heading\">47. What is the use of &#8220;option httplog clf&#8221; in HAProxy?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">a) To use Common Log Format for HTTP logging.<br>b) To use Extended Log Format for HTTP logging.<br>c) There is no such option in HAProxy.<br>d) To disable logging of HTTP requests.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Answer: a<\/h4>\n\n\n\n<h3 class=\"wp-block-heading\">48. What is the use of &#8220;http-request del-header&#8221; in HAProxy?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">a) To delete an HTTP header from incoming client requests.<br>b) To add an HTTP header to incoming client requests.<br>c) There is no such option in HAProxy.<br>d) To enable logging of HTTP requests.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Answer: a<\/h4>\n\n\n\n<h3 class=\"wp-block-heading\">49. What is the use of &#8220;http-request set-header&#8221; in HAProxy?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">a) To add an HTTP header to incoming client requests.<br>b) To delete an HTTP header from incoming client requests.<br>c) There is no such option in HAProxy.<br>d) To enable logging of HTTP requests.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Answer: a<\/h4>\n\n\n\n<h3 class=\"wp-block-heading\">50. What is the use of &#8220;http-response set-header&#8221; in HAProxy?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">a) To add an HTTP header to outgoing client responses.<br>b) To delete an HTTP header from outgoing client responses.<br>c) There is no such option in HAProxy.<br>d) To enable logging of HTTP responses.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Answer: a<\/h4>\n","protected":false},"excerpt":{"rendered":"<p>1. What is HAProxy? a) A web serverb) A load balancerc) A databased) A programming language Answer: b 2. What [&hellip;]<\/p>\n","protected":false},"author":33,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_joinchat":[],"footnotes":""},"categories":[1],"tags":[],"class_list":["post-10427","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Top 50 Haproxy Interview Questions with Answers - scmGalaxy<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.scmgalaxy.com\/tutorials\/top-50-haproxy-interview-questions-with-answers\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Top 50 Haproxy Interview Questions with Answers - scmGalaxy\" \/>\n<meta property=\"og:description\" content=\"1. What is HAProxy? a) A web serverb) A load balancerc) A databased) A programming language Answer: b 2. What [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.scmgalaxy.com\/tutorials\/top-50-haproxy-interview-questions-with-answers\/\" \/>\n<meta property=\"og:site_name\" content=\"scmGalaxy\" \/>\n<meta property=\"article:author\" content=\"https:\/\/www.facebook.com\/profile.php?id=100003935402658\" \/>\n<meta property=\"article:published_time\" content=\"2023-05-03T09:40:51+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-06-19T13:29:32+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2023\/05\/image-99-1024x576.png\" \/>\n<meta name=\"author\" content=\"Ashwani Kumar\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Ashwani Kumar\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"11 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/top-50-haproxy-interview-questions-with-answers\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/top-50-haproxy-interview-questions-with-answers\\\/\"},\"author\":{\"name\":\"Ashwani Kumar\",\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/#\\\/schema\\\/person\\\/19f28f8f969c1679bfb37d4dad6adc31\"},\"headline\":\"Top 50 Haproxy Interview Questions with Answers\",\"datePublished\":\"2023-05-03T09:40:51+00:00\",\"dateModified\":\"2023-06-19T13:29:32+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/top-50-haproxy-interview-questions-with-answers\\\/\"},\"wordCount\":2243,\"commentCount\":0,\"image\":{\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/top-50-haproxy-interview-questions-with-answers\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/wp-content\\\/uploads\\\/2023\\\/05\\\/image-99-1024x576.png\",\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/top-50-haproxy-interview-questions-with-answers\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/top-50-haproxy-interview-questions-with-answers\\\/\",\"url\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/top-50-haproxy-interview-questions-with-answers\\\/\",\"name\":\"Top 50 Haproxy Interview Questions with Answers - scmGalaxy\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/top-50-haproxy-interview-questions-with-answers\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/top-50-haproxy-interview-questions-with-answers\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/wp-content\\\/uploads\\\/2023\\\/05\\\/image-99-1024x576.png\",\"datePublished\":\"2023-05-03T09:40:51+00:00\",\"dateModified\":\"2023-06-19T13:29:32+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/#\\\/schema\\\/person\\\/19f28f8f969c1679bfb37d4dad6adc31\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/top-50-haproxy-interview-questions-with-answers\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/top-50-haproxy-interview-questions-with-answers\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/top-50-haproxy-interview-questions-with-answers\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/wp-content\\\/uploads\\\/2023\\\/05\\\/image-99.png\",\"contentUrl\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/wp-content\\\/uploads\\\/2023\\\/05\\\/image-99.png\",\"width\":1600,\"height\":900},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/top-50-haproxy-interview-questions-with-answers\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Top 50 Haproxy Interview Questions with Answers\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/#website\",\"url\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/\",\"name\":\"scmGalaxy\",\"description\":\"A Platform for Software Engineers\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/#\\\/schema\\\/person\\\/19f28f8f969c1679bfb37d4dad6adc31\",\"name\":\"Ashwani Kumar\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/b0fe597f4b8473400f95ce54bee0bdd62df08a319a198ad229b279aaab4f5410?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/b0fe597f4b8473400f95ce54bee0bdd62df08a319a198ad229b279aaab4f5410?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/b0fe597f4b8473400f95ce54bee0bdd62df08a319a198ad229b279aaab4f5410?s=96&d=mm&r=g\",\"caption\":\"Ashwani Kumar\"},\"description\":\"There is no end to education. It is not that you read a book, pass an examination, and finish with education. The whole of life, from the moment you are born to the moment you die, is a process of learning.\",\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/profile.php?id=100003935402658\",\"https:\\\/\\\/www.instagram.com\\\/adarshashwani\\\/\",\"https:\\\/\\\/www.linkedin.com\\\/in\\\/adarsh-ashwani-a75b23130\\\/\"],\"url\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/author\\\/ashwani\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Top 50 Haproxy Interview Questions with Answers - scmGalaxy","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.scmgalaxy.com\/tutorials\/top-50-haproxy-interview-questions-with-answers\/","og_locale":"en_US","og_type":"article","og_title":"Top 50 Haproxy Interview Questions with Answers - scmGalaxy","og_description":"1. What is HAProxy? a) A web serverb) A load balancerc) A databased) A programming language Answer: b 2. What [&hellip;]","og_url":"https:\/\/www.scmgalaxy.com\/tutorials\/top-50-haproxy-interview-questions-with-answers\/","og_site_name":"scmGalaxy","article_author":"https:\/\/www.facebook.com\/profile.php?id=100003935402658","article_published_time":"2023-05-03T09:40:51+00:00","article_modified_time":"2023-06-19T13:29:32+00:00","og_image":[{"url":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2023\/05\/image-99-1024x576.png","type":"","width":"","height":""}],"author":"Ashwani Kumar","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Ashwani Kumar","Est. reading time":"11 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.scmgalaxy.com\/tutorials\/top-50-haproxy-interview-questions-with-answers\/#article","isPartOf":{"@id":"https:\/\/www.scmgalaxy.com\/tutorials\/top-50-haproxy-interview-questions-with-answers\/"},"author":{"name":"Ashwani Kumar","@id":"https:\/\/www.scmgalaxy.com\/tutorials\/#\/schema\/person\/19f28f8f969c1679bfb37d4dad6adc31"},"headline":"Top 50 Haproxy Interview Questions with Answers","datePublished":"2023-05-03T09:40:51+00:00","dateModified":"2023-06-19T13:29:32+00:00","mainEntityOfPage":{"@id":"https:\/\/www.scmgalaxy.com\/tutorials\/top-50-haproxy-interview-questions-with-answers\/"},"wordCount":2243,"commentCount":0,"image":{"@id":"https:\/\/www.scmgalaxy.com\/tutorials\/top-50-haproxy-interview-questions-with-answers\/#primaryimage"},"thumbnailUrl":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2023\/05\/image-99-1024x576.png","inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.scmgalaxy.com\/tutorials\/top-50-haproxy-interview-questions-with-answers\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.scmgalaxy.com\/tutorials\/top-50-haproxy-interview-questions-with-answers\/","url":"https:\/\/www.scmgalaxy.com\/tutorials\/top-50-haproxy-interview-questions-with-answers\/","name":"Top 50 Haproxy Interview Questions with Answers - scmGalaxy","isPartOf":{"@id":"https:\/\/www.scmgalaxy.com\/tutorials\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.scmgalaxy.com\/tutorials\/top-50-haproxy-interview-questions-with-answers\/#primaryimage"},"image":{"@id":"https:\/\/www.scmgalaxy.com\/tutorials\/top-50-haproxy-interview-questions-with-answers\/#primaryimage"},"thumbnailUrl":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2023\/05\/image-99-1024x576.png","datePublished":"2023-05-03T09:40:51+00:00","dateModified":"2023-06-19T13:29:32+00:00","author":{"@id":"https:\/\/www.scmgalaxy.com\/tutorials\/#\/schema\/person\/19f28f8f969c1679bfb37d4dad6adc31"},"breadcrumb":{"@id":"https:\/\/www.scmgalaxy.com\/tutorials\/top-50-haproxy-interview-questions-with-answers\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.scmgalaxy.com\/tutorials\/top-50-haproxy-interview-questions-with-answers\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.scmgalaxy.com\/tutorials\/top-50-haproxy-interview-questions-with-answers\/#primaryimage","url":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2023\/05\/image-99.png","contentUrl":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2023\/05\/image-99.png","width":1600,"height":900},{"@type":"BreadcrumbList","@id":"https:\/\/www.scmgalaxy.com\/tutorials\/top-50-haproxy-interview-questions-with-answers\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.scmgalaxy.com\/tutorials\/"},{"@type":"ListItem","position":2,"name":"Top 50 Haproxy Interview Questions with Answers"}]},{"@type":"WebSite","@id":"https:\/\/www.scmgalaxy.com\/tutorials\/#website","url":"https:\/\/www.scmgalaxy.com\/tutorials\/","name":"scmGalaxy","description":"A Platform for Software Engineers","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.scmgalaxy.com\/tutorials\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.scmgalaxy.com\/tutorials\/#\/schema\/person\/19f28f8f969c1679bfb37d4dad6adc31","name":"Ashwani Kumar","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/b0fe597f4b8473400f95ce54bee0bdd62df08a319a198ad229b279aaab4f5410?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/b0fe597f4b8473400f95ce54bee0bdd62df08a319a198ad229b279aaab4f5410?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/b0fe597f4b8473400f95ce54bee0bdd62df08a319a198ad229b279aaab4f5410?s=96&d=mm&r=g","caption":"Ashwani Kumar"},"description":"There is no end to education. It is not that you read a book, pass an examination, and finish with education. The whole of life, from the moment you are born to the moment you die, is a process of learning.","sameAs":["https:\/\/www.facebook.com\/profile.php?id=100003935402658","https:\/\/www.instagram.com\/adarshashwani\/","https:\/\/www.linkedin.com\/in\/adarsh-ashwani-a75b23130\/"],"url":"https:\/\/www.scmgalaxy.com\/tutorials\/author\/ashwani\/"}]}},"_links":{"self":[{"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/posts\/10427","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/users\/33"}],"replies":[{"embeddable":true,"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/comments?post=10427"}],"version-history":[{"count":2,"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/posts\/10427\/revisions"}],"predecessor-version":[{"id":10433,"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/posts\/10427\/revisions\/10433"}],"wp:attachment":[{"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/media?parent=10427"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/categories?post=10427"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/tags?post=10427"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}