SalesforceWizard

Salesforce interview questions for 2 years experience

For admins and developers with around two years of hands-on work: what interviewers ask and how to answer with your own project.

0 of 18 reviewed
On this page (6 sections)What interviewers expect at 2 yearsProject and basicsAutomationApex and LWCDeployment and teamworkNewer topics and career

At two years of experience you are no longer a fresher, but you are not expected to design whole solutions either. Interviewers want to see that you have built real things yourself: objects, Flows, triggers, components and reports, and that you understand why they work.

The best answers at this level follow one pattern: explain the concept in a sentence, then say where you used it in your project. If you haven't used something, say how you would approach it rather than guessing.

What interviewers expect at 2 years

  • You can build features on your own from a clear requirement.
  • You know the basics of security, automation and data, not just one area.
  • You can explain one project in detail: the business problem, what you built and what went wrong.
  • You know governor limits and why code must handle many records.
  • You are learning newer topics such as Agentforce and Data 360.

Project and basics

01

Tell me about your current project.

Beginner

Use a simple structure: the client's business (for example, insurance or retail), which clouds they use, your role and team size, and two or three things you built yourself, such as a Flow for case assignment or an LWC for a quote screen.

End with one challenge and how you solved it. Interviewers build the rest of the interview on this answer, so mention only things you can explain in depth.

02

What is the difference between a profile and a permission set?

Beginner

A user has exactly one profile, which sets their baseline access. Permission sets add extra permissions on top, and a user can have many. Salesforce recommends minimal profiles and giving most access through permission sets and permission set groups.

Add an example: "In my project, we gave the discount approval permission through a permission set to only five managers."

03

What is the difference between lookup and master-detail relationships?

Beginner

In master-detail, the child can't exist without the parent, follows the parent's sharing, is deleted with it, and the parent can have roll-up summary fields. A lookup is looser: optional by default, the child has its own owner and sharing, and there are no standard roll-ups.

Choose master-detail when the child truly belongs to the parent, such as invoice lines to an invoice.

04

How do org-wide defaults, roles and sharing rules work together?

Intermediate

Org-wide defaults set the most restrictive baseline. The role hierarchy opens access upwards, so managers see their team's records. Sharing rules open access sideways to groups or roles based on owner or criteria. Manual sharing and teams handle exceptions.

Remember: sharing can only open access beyond the default, never restrict it.

Automation

05

When do you use a before-save flow and when an after-save flow?

Beginner

Before-save (fast field updates) changes fields on the same record and is the fastest option. After-save is needed when you work with other records, need the record Id, send emails or call actions.

For example: setting a priority field from the amount is before-save; creating a follow-up task is after-save.

06

Have you migrated Workflow Rules or Process Builder to Flow?

Intermediate

Salesforce has retired both, so many projects migrate them. Explain the approach: use the Migrate to Flow tool where possible, combine several old rules on the same object into fewer Flows, test in a sandbox, then deactivate the old automation.

If you haven't done it, describe how you would, and mention checking the order of execution so behaviour doesn't change.

07

How do you debug a Flow that isn't working?

Beginner

Use Debug in Flow Builder with test values, check the fault email Salesforce sends when a flow fails, and look at debug logs for the user. Check entry conditions first, because many "broken" flows simply never start.

Add fault paths so future errors are handled and logged.

Apex and LWC

08

What are governor limits and how do you avoid hitting them?

Beginner

Limits per transaction, such as 100 SOQL queries and 150 DML statements in synchronous Apex, protect the shared platform. Avoid them by never putting SOQL or DML inside loops, using collections and maps, and processing large volumes asynchronously.

Say how you test it: insert 200 records in a test class to prove the code is bulk-safe.

09

Write a trigger that prevents duplicate contacts with the same email on an account.

Intermediate

Collect emails and account Ids from Trigger.new, query existing contacts with those values in one query, put them in a set of "accountId|email" keys, then add an error to any new record whose key already exists.

Mention that Duplicate Rules can do this without code; a trigger is only needed for logic the rules can't express.

10

What is the difference between @future and Queueable Apex?

Intermediate

Both run asynchronously. Queueable accepts complex types such as sObjects, returns a job Id you can monitor, and can chain another job. @future takes only primitive parameters and can't be monitored or chained.

Queueable is the modern default: @future is fine for a simple callout from a trigger.

11

How do you call Apex from an LWC?

Beginner

Import the method from @salesforce/apex/ClassName.methodName. Use @wire for read-only data (the method must be cacheable=true), or call it imperatively with async/await for saves and actions.

import getCases from '@salesforce/apex/CaseController.getOpenCases';
@wire(getCases, { accountId: '$recordId' }) cases;

12

How does a child LWC send data to its parent?

Beginner

The child dispatches a CustomEvent with the data in detail, and the parent listens with an on handler in its template, for example onselected={handleSelected}.

Parent to child goes the other way: through public @api properties.

Deployment and teamwork

13

How do you deploy changes in your project?

Beginner

Describe your real process: change sets, Salesforce CLI with Git, DevOps Center, or a tool such as Copado or Gearset. Mention sandboxes (dev, QA, UAT), running tests before production and handling manual steps.

If your team uses change sets, show you know the limits and that you are learning source-driven deployment.

14

What do you do when a requirement is unclear?

Beginner

Ask the business analyst or client questions before building: who uses it, what problem it solves, and what "done" looks like. Confirm your understanding in writing, and show a small prototype early if possible.

Interviewers like candidates who prevent rework rather than build the wrong thing quickly.

15

How do you handle a production bug reported by a user?

Intermediate

Reproduce it (Login As the user, or with the same data), check debug logs and recent deployments, fix it in a sandbox, test, and deploy through the normal process, or as a hotfix if it is urgent.

Then tell the user and team what happened and what you changed so it doesn't happen again.

Newer topics and career

16

What do you know about Agentforce?

Beginner

Agentforce is Salesforce's platform for AI agents. The Atlas Reasoning Engine picks the right subagent for a request and runs actions, which are built from Flows, Apex or prompt templates. The Einstein Trust Layer protects data.

Even at two years, interviewers ask this. Mentioning a Trailhead module or a small agent you built in a developer org stands out.

17

Which certifications do you have and which are you planning?

Beginner

Typical answers at this stage: Platform Administrator and Platform Developer or Platform App Builder, with Agentforce Specialist or a consultant certification next. Link your plan to the role you want.

Be honest about what you hold: interviewers can verify certifications on your Trailhead profile.

18

Why do you want to change your job after 2 years?

Beginner

Give a positive reason: wider exposure (more clouds, integrations or Agentforce), bigger projects, or a move from support to development. Connect it to what this company offers.

Avoid criticising your current employer.

Chat on WhatsApp