CS FundamentalsHardGATE CS · Product company CS fundamentals
A reverse proxy forwards a request to an application server. Which status does the proxy return to the client when the application server sends back an invalid response, and which when the application server does not answer in time?
- A. 504 Gateway Timeout, then 502 Bad Gateway
- B. 500 Internal Server Error, then 408 Request Timeout
- C. 502 Bad Gateway, then 504 Gateway Timeout
- D. 503 Service Unavailable, then 504 Gateway Timeout
Correct answer: C. 502 Bad Gateway, then 504 Gateway Timeout
502 means the gateway received an invalid response from upstream; 504 means it gave up waiting. 408 is the server timing out the CLIENT's request, and 503 means the server itself is overloaded or in maintenance.
More Computer Networks questions
- The zone example.com is delegated to the name server ns1.example.com. Why must the .com servers also return an A record for…
- A DNS answer is too large for a 512-byte UDP response and EDNS(0) is not in use. What happens?
- A 1 Gb file must reach 100 peers. The server uploads at 50 Mbps; every peer downloads at 10 Mbps and uploads at 2 Mbps. What are the…
- A TDM system carries 30 voice channels, each sampled 8000 times per second with 8-bit samples, plus 2 overhead slots of 8 bits in every…
- A 1.2 Mb file is sent over a circuit-switched TDM link of 2.048 Mbps divided into 32 equal slots; the circuit gets one slot, and setting…
- Bursts of 9 packets (1500 bytes each) arrive at the same instant on an empty 10 Mbps output link, and the link finishes each burst before…