PracHub
QuestionsPremiumCoachesLearningGuidesInterview Prep
|Home/Software Engineering Fundamentals/Akuna Capital

Write February Resource Usage Query

Last updated: May 30, 2026

Quick Overview

This question evaluates SQL skills for aggregating time-series metrics, date-range filtering, rounding/formatting results, and combining multiple metric sources into a unified result set, reflecting data-processing competency within Software Engineering Fundamentals and Data Engineering.

  • medium
  • Akuna Capital
  • Software Engineering Fundamentals
  • Data Engineer

Write February Resource Usage Query

Company: Akuna Capital

Role: Data Engineer

Category: Software Engineering Fundamentals

Difficulty: medium

Interview Round: Take-home Project

You have two database tables: - `cpu_metrics(application_id, dt, usage_percentage)` - `memory_metrics(application_id, dt, usage_percentage)` Each row records the resource usage percentage for one application on a given date. Write a SQL query that returns, for February 2024 only, the applications whose average CPU usage or average memory usage is greater than `50`. The output should contain: - `type`: either `CPU` or `Memory` - `application_id` - `avg_usage`: the average usage percentage rounded to 2 decimal places Return CPU and memory results in the same result set. Order the final output by `application_id`, then by `type`.

Quick Answer: This question evaluates SQL skills for aggregating time-series metrics, date-range filtering, rounding/formatting results, and combining multiple metric sources into a unified result set, reflecting data-processing competency within Software Engineering Fundamentals and Data Engineering.

Akuna Capital logo
Akuna Capital
May 30, 2026, 12:00 AM
Data Engineer
Take-home Project
Software Engineering Fundamentals
1
0

You have two database tables:

  • cpu_metrics(application_id, dt, usage_percentage)
  • memory_metrics(application_id, dt, usage_percentage)

Each row records the resource usage percentage for one application on a given date.

Write a SQL query that returns, for February 2024 only, the applications whose average CPU usage or average memory usage is greater than 50.

The output should contain:

  • type : either CPU or Memory
  • application_id
  • avg_usage : the average usage percentage rounded to 2 decimal places

Return CPU and memory results in the same result set. Order the final output by application_id, then by type.

Solution

Show

Submit Your Answer

Sign in to leave a comment

Loading comments...

Browse More Questions

More Software Engineering Fundamentals•More Akuna Capital•More Data Engineer•Akuna Capital Data Engineer•Akuna Capital Software Engineering Fundamentals•Data Engineer Software Engineering Fundamentals
PracHub

Master your tech interviews with 8,500+ real questions from top companies.

Product

  • Questions
  • Learning Tracks
  • Interview Guides
  • Resources
  • Premium
  • For Universities
  • Student Access

Browse

  • By Company
  • By Role
  • By Category
  • Topic Hubs
  • SQL Questions
  • Compare Platforms
  • Discord Community

Support

  • support@prachub.com
  • (916) 541-4762

Legal

  • Privacy Policy
  • Terms of Service
  • About Us

© 2026 PracHub. All rights reserved.