Your question is L1 vs L2 Regularization. Take a moment with it on the right.
Talk me through your thinking if you like. When you're confident, submit your answer and I'll grade it like a real screen (7/10 or better passes).
Regularisation L1 & L2.
Using the provided supervised learning dataset, implement models with L1 and L2 regularisation, compare their validation performance, and explain when each penalty is appropriate. Show how regularisation strength affects coefficient magnitude, sparsity, underfitting, and overfitting. Your implementation should prevent preprocessing leakage and justify the evaluation metric and model-selection procedure.