Multiple choice technology web technology

What is the best practice for deploying custom code to a SharePoint farm

  1. as a web part

  2. solution package

  3. user control

  4. SharePoint Designer

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

Solution packages (.wsp files) are the best practice for deploying custom code to SharePoint farms as they provide versioning, reusability, and proper deployment/retention processes. Web parts and user controls are components that can be deployed within solution packages, but the package itself is the deployment mechanism. SharePoint Designer is for customization, not code deployment.