QuestionQ235Verified/Apache Spark Architecture and ComponentsCopy linkReport a problemAsk AstroTutorSave questionWhich of the following occurs when there are more slots than tasks?AThe Spark job will likely not run as efficiently as possible.BThe Spark application will fail – there must be at least as many tasks as there are slots.CSome executors will shut down and allocate all slots on larger executors first.DMore tasks will be automatically generated to ensure all slots are being used.EThe Spark job will use just one single slot to perform all tasks.Show AnswerAnswerExplanationSpark schedules the existing tasks across available slots. When a stage has fewer tasks than slots, the surplus slots sit idle; Spark does not automatically generate additional tasks to use them. This leaves cluster resources underutilized and can reduce execution efficiency.Show comments1Show commentsCommunity DiscussionNo comments yet. Be the first to start the discussion!
Community Discussion