Is this right way of assigning 8 Cpu's on Vmware?
I have research but couldn't find a right answer. What is the difference between virtual socket and core per socket.

Is this right way of assigning 8 Cpu's on Vmware?
I have research but couldn't find a right answer. What is the difference between virtual socket and core per socket.

There is no difference at all. By VMWare's own admission (I tried googling for it but couldn't find it, although I know I've given this answer on this site before), that option exists so that you can stay within the licensing restrictions for non-VM-aware applications that might be licensed per socket.
For eight CPUs you can assign 1 socket, 8 cores, or 2 sockets 4 cores, or 4 sockets, 2 cores.
Makes no difference.
"Some operating system SKUs are hard-limited to run on a fixed number of CPUs. For example, Windows Server 2003 Standard Edition is limited to run on up to 4 CPUs. If you install this operating system on an 8-socket physical box, it runs on only 4 of the CPUs"
Check also KB 1010184 on VMware site https://kb.vmware.com/kb/1010184
– Alessandro Carini Feb 17 '16 at 15:58