Tech Mahindra
Preethi Kitchen Appliances Interview Questions and Answers
Q1. What is difference between lookup and master details relationship in Salesforce?
Lookup relationship is loosely coupled while master-detail relationship is tightly coupled in Salesforce.
Lookup relationship does not impact the deletion of related records, while master-detail relationship does.
In lookup relationship, child records do not inherit the security and sharing settings of the parent record, while in master-detail relationship they do.
Lookup relationship can be set to optional, while master-detail relationship is always required.
An example of looku...read more
Q2. What is trigger and different events in Salesforce?
A trigger is a piece of code that is executed before or after specific events occur in Salesforce.
Triggers are used to perform custom actions like updating related records or sending email notifications.
Events in Salesforce that can trigger a trigger include before insert, before update, after insert, after update, etc.
Triggers are written in Apex programming language and are associated with specific objects in Salesforce.
Triggers can be used to enforce business rules, automa...read more
Q3. Can we call future method from batch Apex ?
Yes, we can call future method from batch Apex.
Future methods can be called from batch Apex to perform asynchronous processing.
This can be useful for offloading long-running tasks to future methods to avoid hitting governor limits.
Example: Calling a future method to update records in Salesforce after processing them in a batch job.
Q4. What are the different bundles in Aura component?
Aura bundles are containers for organizing related resources in a Lightning component.
There are three types of bundles in Aura components: Component Bundle, Application Bundle, and Event Bundle.
Component Bundle contains the markup, controller, helper, style, and documentation for a single component.
Application Bundle contains the markup, controller, helper, style, and documentation for an application.
Event Bundle contains the event definition and handler for custom events in ...read more
Q5. Explain deployment process for Salesforce?
Deployment process for Salesforce involves moving changes from one environment to another using tools like Salesforce DX or Change Sets.
Create a deployment package containing metadata components like Apex classes, Visualforce pages, triggers, etc.
Use tools like Salesforce DX, Change Sets, or Metadata API to deploy changes to target environment.
Run tests in target environment to ensure changes do not break existing functionality.
Monitor deployment status and resolve any deploy...read more
Q6. What is Apex in Salesforce?
Apex is a strongly typed, object-oriented programming language used in Salesforce for creating custom business logic.
Apex is similar to Java and C# in syntax and structure
It allows developers to add custom code to Salesforce applications
Used for writing triggers, controllers, and batch processes
Can interact with Salesforce database using SOQL and DML statements
Q7. What is asynchronous Apex?
Asynchronous Apex is used to run processes in the background, allowing for long-running tasks without blocking the user interface.
Asynchronous Apex allows for processing tasks in the background without blocking the user interface.
It is commonly used for long-running processes like sending email notifications, updating records, or making callouts to external systems.
Using asynchronous Apex helps improve performance and scalability of Salesforce applications.
Examples include @f...read more
Q8. Explain security model in Salesforce?
Salesforce security model ensures data protection through various layers of security features.
Salesforce uses a role hierarchy to control access to data based on user roles.
Permissions and sharing settings determine what data users can access.
Field-level security restricts access to specific fields on objects.
Profiles and permission sets define user permissions and access levels.
Salesforce also offers encryption options to protect data at rest and in transit.
Interview Process at Preethi Kitchen Appliances
Reviews
Interviews
Salaries
Users/Month