Question

Difficulty: MediumOptimization and Bounded Constraints

A cloud analytics company configures daily data processing operations using two types of virtual server instances: Compute-Optimized (CC) and Memory-Optimized (MM). The operational parameters and constraints are as follows:

- Each CC instance processes 50 batch jobs per hour and incurs an operating cost of 15perhour.Each15 per hour. - Each M instanceprocesses30batchjobsperhourandincursanoperatingcostof instance processes 30 batch jobs per hour and incurs an operating cost of 10 per hour.
- The system must process at least 360 batch jobs per hour in total.
- The total hourly operating budget for server instances cannot exceed 115.Duetoactivedatabasecachingpolicies,atleast3115. - Due to active database caching policies, at least 3 M instancesmustbeactiveatalltimes( instances must be active at all times ( M \ge 3 ).). - C and and M$ must both be non-negative integers.

Which of the following combinations of Compute (CC) and Memory (MM) server instances maximizes the total hourly job throughput while satisfying all operational constraints?

  1. 5 Compute instances and 4 Memory instancesAnswer
  2. B
    3 Compute instances and 7 Memory instances
  3. C
    6 Compute instances and 2 Memory instances
  4. D
    4 Compute instances and 6 Memory instances
  5. E
    2 Compute instances and 9 Memory instances

Answer

5 Compute instances and 4 Memory instances
The combination of 5 Compute instances and 4 Memory instances satisfies all stated system bounds (15×5+10×4=11511515 \times 5 + 10 \times 4 = 115 \le 115, 50×5+30×4=37036050 \times 5 + 30 \times 4 = 370 \ge 360, and 434 \ge 3) and delivers the maximum feasible throughput of 370 jobs per hour.

Step-by-Step Solution

1
Formulate the linear system of inequalities from the given constraints.
Throughput: 50C+30M3605C+3M3650C + 30M \ge 360 \Rightarrow 5C + 3M \ge 36.
Budget: 15C+10M1153C+2M2315C + 10M \le 115 \Rightarrow 3C + 2M \le 23.
Minimum MM: M3M \ge 3, where C,MZ0C, M \in \mathbb{Z}_{\ge 0}.
Converting narrative conditions into simplified algebraic inequalities makes constraint checking straightforward.
2
Determine the set of integer pairs (C,M)(C, M) that satisfy all three inequalities.
Combining 3C+2M233C + 2M \le 23 and 5C+3M365C + 3M \ge 36 with M3M \ge 3 yields only two valid integer pairs:
- Pair 1: (C=3,M=7)(C=3, M=7) with cost 15(3)+10(7)=11515(3)+10(7)=115 and throughput 50(3)+30(7)=36050(3)+30(7)=360
- Pair 2: (C=5,M=4)(C=5, M=4) with cost 15(5)+10(4)=11515(5)+10(4)=115 and throughput 50(5)+30(4)=37050(5)+30(4)=370
Systematic testing of integer values bounded by the linear inequalities identifies all feasible solutions.
3
Compare total throughput across feasible solutions to find the maximum.
Pair 2 (C=5,M=4)(C=5, M=4) produces 370 jobs per hour, which exceeds Pair 1's 360 jobs per hour.
The question specifically asks to maximize throughput among all valid configurations.

Key Concept

Optimization under linear integer constraints and bounded systems
Rate this question