Resource Allocation Optimization in Cloud Services: Evaluating Task Scheduling and VM Placement Techniques