nerdexam
Cloudera

CCA-500 · Question #52

CCA-500 Question #52: Real Exam Question with Answer & Explanation

The correct answer is A. When Job B gets submitted, it will get assigned tasks, while job A continues to run with fewer D. When Job A gets submitted, it consumes all the task slots.. Fair scheduling is a method of assigning resources to jobs such that all jobs get, on average, an equal share of resources over time. When there is a single job running, that job uses the entire cluster. When other jobs are submitted, tasks slots that free up are assigned to the

Question

You have a cluster running with the fair Scheduler enabled. There are currently no jobs running on the cluster, and you submit a job A, so that only job A is running on the cluster. A while later, you submit Job B. now Job A and Job B are running on the cluster at the same time. How will the Fair Scheduler handle these two jobs?

Options

  • AWhen Job B gets submitted, it will get assigned tasks, while job A continues to run with fewer
  • BWhen Job B gets submitted, Job A has to finish first, before job B can gets scheduled.
  • CWhen Job A gets submitted, it doesn't consumes all the task slots.
  • DWhen Job A gets submitted, it consumes all the task slots.

Explanation

Fair scheduling is a method of assigning resources to jobs such that all jobs get, on average, an equal share of resources over time. When there is a single job running, that job uses the entire cluster. When other jobs are submitted, tasks slots that free up are assigned to the new jobs, so that each job gets roughly the same amount of CPU time. Unlike the default Hadoop scheduler, which forms a queue of jobs, this lets short jobs finish in reasonable time while not starving long jobs. It is also a reasonable way to share a cluster between a number of users. Finally, fair sharing can also work with job priorities - the priorities are used as weights to determine the fraction of total compute time that each job should get.

Community Discussion

No community discussion yet for this question.

Full CCA-500 Practice