Interview Questions

You have multiple mail servers in different places around the world ....

Microsoft Interview Questions and Answers


(Continued from previous question...)

86. You have multiple mail servers in different places around the world ....

Question:
You have multiple mail servers in different places around the world, servers have public and private datastores, resources in public datastore are shared obviously and can be read,modified by any user, how will you test the servers?


maybe an answer:


There will be many clarification questions to test this.

Assuming that we are testing read and write to a single server first, Using two or more threads make the following checks:
1. Try two threads to obtain locks at the same time and check that lock is granted to just one
2. Once the resource is locked, make sure other threads cannot obtain lock.
3. Try to change the resource when it is locked by other thread, it should throw an error.
4. Once unlocked, other threads should be able to get the lock i.e. the lock is released properly

Then we need to test syncing issues if data is duplicated(the outcome of this depends on what is decided during design phase) and test cases are the same as above except performed on different servers.

Apart from functional testing, non functional testing like stress testing, load balancing testing, security testing etc should be carried out too.

(Continued on next question...)

Other Interview Questions