Amazon interview question

some resource allocator which allocate instances for task with resource requirement