The cloud being a prominent area for research, is ubiquitous as it serves the client needs irrespective of time and place. It has become the most preferred network due to its guaranteed service rendering and cost effectiveness. The increase in the capability of the cloud services has increased the number of users to adapt to cloud. The increase in the adaption towards cloud in turn results with insufficiency in the proper and the simultaneous allocation of the resources according to the requisitions. So the task scheduling and resource allocation for the cloud becomes essential. As the conventional methods of task scheduling arrive to a local optima solution that are less-effective, the paper surveys the meta-heuristic optimization based task scheduling and the resource allocation for the ubiquitous cloud environment, that arrives to an more optimal solution at a faster rate and at ease. The paper presents the survey of the optimization techniques of task scheduling available for the cloud and the discussion of the improvement of the performance metrics in terms of make-span, throughput, cost, latency and successful service provisioning compared to the other conventional methods.