Suppose you are given the code and while deploying that code, you are facing an ?MemoryOutOfBound? exception. How would you solve the problem?*
This type of error usually comes due to memory shortage to JVM memory, its same as OutOfMemoryError, Which can be a either config issue or its application bad coding practice and its much debatable to difference between a Application Bad coding or Configuration.
Software principle state that you have to be efficient enough to provide best solution with limited resources, that doesn't means that you didn't work out on Best possible Configuration of application or Best Coding practices never be biased to any one of them because these will be responsible for you application performance.
How good you as Software Engg. will reflects on you applications performance so please take care of both.