Microsoft Azure Administrator (AZ104) Practice Exam

Disable ads (and more) with a membership for a one time $4.99 payment

Study for the Microsoft Azure Administrator (AZ104) Exam. Prepare with flashcards and multiple choice questions, each question has hints and explanations. Get ready for your exam!

Practice this question and more.


For optimal performance among virtual machines, what should be ensured regarding the load balancer setup?

  1. High availability configuration

  2. Session affinity settings

  3. Advanced routing features

  4. Multiple frontend IP addresses

The correct answer is: Session affinity settings

Session affinity settings, also known as "sticky sessions," allow client requests to consistently route to the same backend virtual machine for the duration of a user's session. This is particularly important for applications that maintain session state in memory on the server, which can enhance user experience by reducing latency and ensuring that users maintain continuity during their interactions with the application. When session affinity is configured effectively, it optimizes the performance of virtual machines by reducing the overhead caused by establishing new sessions and re-establishing connections with different virtual machines. This is especially important for applications that require users to be continuously connected to the same VM, as it helps minimize disruptions in service and provides a seamless experience. In contrast, while high availability configurations, advanced routing features, and multiple frontend IP addresses are all useful in creating robust and efficient load balancer setups, they primarily focus on redundancy, advanced networking configurations, and distribution of traffic rather than the specific nuances of user sessions that session affinity addresses.