Practice Library
All MCQs
Browse exam-wise, subject-wise, and country-wise MCQs with explanations.
Choose an option to check your answer.
Correct Answer: A. YARN may restart it according to the application's retry policy
Explanation:
The ResourceManager tracks application attempts.
A replacement ApplicationMaster can recover or restart work depending on framework support.
Choose an option to check your answer.
Correct Answer: D. It provides a general resource-management layer independent of one processing model
Explanation:
Spark, Tez, and other engines can request containers through YARN.
Storage and resource management are therefore decoupled from MapReduce.
Choose an option to check your answer.
Correct Answer: C. The order or preference with which applications receive resources
Explanation:
Priority can guide scheduling among otherwise eligible applications.
Queue policies and fairness rules still constrain allocation.
Choose an option to check your answer.
Correct Answer: B. A task runs on a different node in the same rack as the data
Explanation:
Rack-local access crosses a node network link but not the rack switch boundary.
It is less ideal than node-local but better than off-rack.
Choose an option to check your answer.
Correct Answer: A. A task runs on a node containing its required HDFS block
Explanation:
Node locality provides the lowest network cost for reading HDFS input.
It is preferred when resources are available.
Choose an option to check your answer.
Correct Answer: D. Placing a container near the input data when possible
Explanation:
Local or rack-local execution reduces network traffic.
The scheduler may balance locality against waiting time.
Choose an option to check your answer.
Correct Answer: C. Free resources exist but are divided in a way that cannot satisfy pending container requests
Explanation:
For example, nodes may have spare memory but insufficient CPU for a requested container.
Better sizing and scheduling can improve packing.
Choose an option to check your answer.
Correct Answer: B. Resources may remain fragmented and fewer tasks can be scheduled
Explanation:
A request must fit the available resources on a node.
Large indivisible requests can wait while smaller resource fragments remain unused.
Choose an option to check your answer.
Correct Answer: A. Reclaiming containers from one workload to satisfy another workload's guaranteed share
Explanation:
Preemption enforces queue guarantees or priorities.
It can reduce efficiency if containers are killed frequently.
Choose an option to check your answer.
Correct Answer: D. A logical grouping used to control and prioritize resource allocation
Explanation:
Queues organize users, teams, or workload classes.
Policies can set capacity, priority, and access controls.
Choose an option to check your answer.
Correct Answer: C. A fair share of resources among active applications over time
Explanation:
When one application is alone, it may use extra capacity.
As others arrive, resources move toward fair shares.
Choose an option to check your answer.
Correct Answer: B. Multiple organizations sharing a cluster through capacity-based queues
Explanation:
Queues receive guaranteed capacity while unused resources may be shared.
This supports predictable multi-tenant cluster use.