Step 1: Write the total energy
At the extreme position the speed is zero and all energy is potential: \(E=\frac12Ka^2\).
Step 2: Result
It depends only on \(K\) and the amplitude \(a\), not on \(x\) or \(v\) at some instant (they change, but \(E\) does not). Option (D).
Final Answer:
Total energy depends on \(K\) and \(a\), option (D).
\[ \boxed{\text{(D)}} \]