-Unlikely you'd have the long experience of others. Most files get done in less than a year. (It's possible it was a specific issue with some Moroccan files, and possibly of reverse profile of you and your spouse - don't know for sure).
-But if you want to avoid troubles - look at the application package CAREFULLY and address any weaknesses. The obvious ones are not having spent much time together, little proof of contact, and ongoing support, and evidence of meeting friends/relatives on both sides. The type/size of wedding can make a difference, but depends on other factors.
-You can apply for visitor visa for her. She may or may not get. It may be better for her to apply for it before wedding.
-Student visa: sure, if cost works and education program makes sense in her educational/career perspective.
Firstly, thank you for responding back. Wow. you have literally opened my eyes to possibilities. My concern is the same in both - Will CIC ask her to leave Canada and go to home country to start the spousal sponsorship process?
1- Visitor Visa - she can visit canada with her parents on visitor visa. Most probably she will get it - visiting for summer. But once she is here, if we proceed for marriage. After marriage paper work, if i apply for spousal sponsorship, can she stay in Canada beyond her Visitor Visa validity?
Or the canadian government will ask her to go back to Morocco to start the spousal sponsorship process from home country?
2-Student visa - it wil be just 1.5 yr cost. - not an issue. She may be able to get in a 4yr program at university. In Morocco its only 3 yrs of Bachelors, so if she transfers those credits, perhaps taking 1-1.5 yr of courses in Canadian uni, will give her Canadian degree. But my concern is the same ...once she comes here for education on study permit and then I initiate the marriage here. We can do the ceremony in Canada and her parents can fly here. Then apply for spousal sponsorship here in Canada. Will CiC ask her to leave Canada and start the process from Morocco?