1. Home
  2. Computer Science MCQs
  3. Cloud Computing
  4. Which is the accurate difference between a layer 4 and a…

Added 30 Nov -0001

Which is the accurate difference between a layer 4 and a layer 7 load balancer?

  1. Layer 4 inspects HTTP headers and cookies, while layer 7 works only on raw IP addresses and port numbers
  2. Layer 4 terminates TLS for every client connection, while layer 7 cannot, because it needs the decrypted payload to route
  3. Layer 4 routes on IP and port information from TCP or UDP, while layer 7 can inspect HTTP paths, headers and cookies Correct answer
  4. Layer 7 is faster because it forwards raw packets without parsing them, which layer 4 must always do

Correct answer

C. Layer 4 routes on IP and port information from TCP or UDP, while layer 7 can inspect HTTP paths, headers and cookies

15 views

MCQSEXAM

Explanation

L4 versus L7 load balancing: a transport-layer balancer forwards connections using five-tuple information and never parses payloads, so it is fast and protocol-agnostic. An application-layer balancer terminates or inspects HTTP, enabling path-based routing, host-based virtual servers and cookie affinity. The trade-off is CPU cost for parsing and TLS termination.

Reference

Asked in: NTS, PPSC IT, Campus Interviews

Preparing for an exam?

Doubts & discussion

Not sure why the answer is C? Ask here and get an explanation.

Ask a doubt about this MCQ

Shown after review. No links please.

More Cloud Computing MCQs

Practise all Cloud Computing MCQs

Similar MCQs