Model answers for 4 Salesforce questions
Typical round: platform basics, Apex scenario, LWC or Flow design
Q: How do you write a bulk-safe trigger? A: Use one trigger per object that delegates to a handler class, work on Trigger.new as a collection, query related records once with a Set of IDs outside loops, and do DML once on a list, so it stays within governor limits for 200 records.
Q: Flow or Apex? A: Use Flow for straightforward automation that admins should maintain, such as field updates and simple record creation. Use Apex for complex logic, heavy data volumes, callouts that need fine control, or when performance and testability matter.
Q: Profiles vs permission sets? A: A profile defines a user's base access and every user has one. Permission sets add access on top without changing the profile. The modern approach is minimal profiles plus permission sets and permission set groups.
Q: How do you call an external API from Salesforce? A: Use a Named Credential for the endpoint and authentication, make the HTTP callout in Apex, handle timeouts and errors, and run it asynchronously with Queueable or future methods when triggered from record changes.