Developer Salesforce Interview Questions Flashcards

1
Q

What is the Salesforce Order of Execution?

A
Is a set of events happen with the record before is finally committed to the database. 
loads the record
Runs system validation
Before trigger events
Duplicate rules,
Saves the record without committing to the database
Runs any workflow rules
Flows
After trigger events.  

All those events happen in sequence, and it’s important to understand that sequence when designing solutions, as well as when you are troubleshooting.

Ex: Display values on a picklist depending on other values the user enters on the page. This is possible because we can place a trigger that would run before the insert, or update, of the record.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Can you describe what Apex is, and why it is required in some scenarios?

A

Salesforce has a huge variety of declarative tools, where no code is needed. However, for more complex business requirement, declarative tools won’t be enough.
Then we use Apex, which is Salesforce coding language.

Example: You would need to use Apex when Integrating Salesforce into other Systems or creating custom email services.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is the difference between Visualforce & Lightning Development?

A

Visualforce and lightning are frameworks developers use to create custom user interfaces in Salesforce.

Visualforce was used in Salesforce Clasic and is similar to HTML. Lightning is a modern framework that uses HTML and Javascript

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is SOQL used for?

What is SOSL used for?

A
SOQL: 
Salesforce Object Query Language
Used to search Salesforce records
Can only search 1 object at a time
Similar to SQL

SOSL:
Salesforce Search Language
Used to search text in records
Can search multiple objects at a time

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What are Governor Limits?

A

Since Salesforce is in the Cloud, we are all sharing the same resources. Governor Limits are rule on the number of resources one can use, so that everyone’s instance of Salesforce continue to run.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is Mulesoft?

A

Salesforce acquired Mulesoft back in 2018

It allows the developer to integrate with other systems easily by providing out-of-the-box API’s.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is an Apex Trigger?

A

Apex Triggers are written by developers to fire logic before, or after a record is saved. It handles all the most complex automation scenarios in Salesforce

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

When should Flow be used over Apex?

A

Apex is always the king when it comes to complex automation however, in recent years, Salesforce re-built Flow and now is very close in functionality to Apex.

You want to use Apex only when Flow won’t work for the requirement

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What is Apex test coverage?

A

Before deploying Apex from Sandbox to Production, developers must meet a minimum test coverage of 75%. For that Developers must write a test class that runs through their code ensuring the code is good quality and it will run successfully in production.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What is the difference between Lightning Components & Lightning Web Components?

A

Lightning components were released back in 2014 and used a standardized JavaScript framework.

Lightning Web Components were release in 2019 and use CSS, HTML and updated JavaScript, which is easier for users who are not familiar with the Salesforce framework.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

How can you make one controller return multiple lists from different objects in a Visual Force page o any lightning web page?

A
You need to create a Wrapper class, or inner class.  The wrapper class will contain a list of every object's records and will wrap all the list together.
Then just create an instance of that class and it should return all values
How well did you know this?
1
Not at all
2
3
4
5
Perfectly