High Resource Usage Customers
Updated
Problem statement
Identify every customer with at least one site_data log where memory utilization, disk utilization, or CPU utilization is strictly greater than 50%.
For each qualifying customer, calculate averages across all of that customer's logs:
average_memory_usage: average of100 * memory_used_gb / memory_allocated_gb.average_disk_storage: average of100 * disk_used_gb / disk_allocated_gb.average_cpu_utilization: average ofcpu_utilization_percent.
Round every average to two decimal places. Return rows ordered by customer_name ascending, then customer_id ascending.
Table schema
MySQLPostgreSQLPandas
Use the same input data with any supported language. Open the Schema tab in the editor to see the generated SQL setup or Pandas DataFrames.
customers
Customer identities.
| Column | Type | Nullable | Description |
|---|---|---|---|
| customer_idPK | Integer | No | — |
| customer_name | Text | No | — |
site_data
Resource-usage logs for monitored customer sites.
| Column | Type | Nullable | Description |
|---|---|---|---|
| log_idPK | Integer | No | — |
| customer_id | Integer | No | — |
| memory_used_gb | Decimal | No | — |
| memory_allocated_gb | Decimal | No | — |
| disk_used_gb | Decimal | No | — |
| disk_allocated_gb | Decimal | No | — |
| cpu_utilization_percent | Decimal | No | — |
Foreign key: customer_id → customers(customer_id)
Expected result
Your query or function must return these columns.
| Column | Type | Nullable | Description |
|---|---|---|---|
| customer_name | Text | No | — |
| average_memory_usage | Decimal | No | — |
| average_disk_storage | Decimal | No | — |
| average_cpu_utilization | Decimal | No | — |
Row order: must match exactly. Numeric tolerance: 0.
Constraints
customers.customer_idandsite_data.log_idare unique primary keys.- Every
site_data.customer_idreferences an existing customer. memory_allocated_gbanddisk_allocated_gbare positive.- Usage and allocation values are nonnegative decimals, and CPU utilization is between 0 and 100.
- A customer may have multiple logs; averages include every log after the customer qualifies.
More Wells Fargo Online Assessment questions
- Server Upgrade PlanningOA · Seen Nov 2026
- Student and Course EnrollmentOA · Seen Nov 2026
- Bond Interest Summary Above 3%OA · Seen Oct 2026
- Count Phrases Formed by Anagram ReplacementOA · Seen Oct 2026
- Event Statistics AggregatorOA · Seen Sep 2026
- Ordered Deployment Configuration ValidatorOA · Seen Sep 2026
- Longest Subsequence That Is a SubstringOA · Seen Jul 2026
- Overloaded Game Account InventoriesOA · Seen Jul 2026
- Count Server ReplacementsOA · PHONE SCREEN · Seen Feb 2026
- Minimum Remaining LengthOA · PHONE SCREEN · Seen Feb 2026
Similar questions at other companies
- Auction Lot Bid SummaryHackerRank · OAHackerRank interview questions
- Bond Holders Above the Cash Flow ThresholdBirla Pivot · OA
- Prepare Taxi Driver Classification DataBoston Consulting Group · OABoston Consulting Group interview questions
- Find the Dominant SellerSquadStack.ai · OA
- Track the Book and Mark Final PnLMillennium · OAMillennium interview questions
- Market Share Ticker with ImbalanceWolverine Trading · OAWolverine Trading interview questions
- Transaction Totals and Ranked Failure ReasonsIntuit · OAIntuit interview questions
- Employees Joined per MonthOdoo · OAOdoo interview questions
- Bond Haircut by Ratings and MaturityJane Street · OAJane Street interview questions
- Customer Order FeesAdobe · OAAdobe interview questions