Search Here

Salesforce Interview Questions – Accenture India

What is the use of chatter?

In Chatter, users can create groups for specific project members or teams to ensure people can access only the information they need. Group members can collaborate on topics, exchange files, and monitor project progress 

Is Salesforce chatter free?

The Chatter Free license is for users who don't have Salesforce licenses but must have access to Chatter. These users can access standard Chatter items such as people, profiles, groups, and files, but they can't, for security reasons, access any Salesforce objects or data.

What are Salesforce limits?

Salesforce Governor Limits are usage caps enforced by Salesforce to ensure efficient processing. They allow for multiple users of the platform without impeding performance. There are many different types of governor limits, some of which are tied to your Salesforce edition.

What is LWC in Salesforce?

Lightning Web Components (LWC) are a user interface (UI) framework that Salesforce Developers use to create customized pages and functions on the Salesforce platform.

What is DML in Salesforce?

DML stands for Data Manipulation Language through which we can make database changes.

What is trigger in Salesforce?

A trigger is a set of Apex code that runs before or after data manipulation language (DML) events. A DML event could be a variety of data processing tasks that include the standard insert, update, and delete commands.

What is 15 digit and 18 digit in Salesforce?

The two versions are used in different situations. 15 character ID is a case-sensitive version which is referenced in the Salesforce user interface. You can use this ID while performing data operations through the user interface. 18 character ID is the case-insensitive version which is referenced through the APIs.

What is Aura and LWC?

Aura and LWC are two popular frameworks for building web applications. Aura is a framework for creating components that can be used in any web application. LWC is a framework for creating Lightning Web Components, which are components that are designed to work with the Lightning platform.

Why is LWC faster?

LWC is built on web standards and modern JavaScript, which results in faster load times and more efficient rendering. This can be especially important when building complex components with a lot of data or logic. Another advantage of LWC is its ability to work seamlessly with other JavaScript frameworks and libraries.

What is flow in Salesforce?

In Salesforce, a flow is a tool that automates complex business processes. Simply put, it collects data and then does something with that data. Flow Builder is the declarative interface used to build individual flows. Flow Builder can be used to build code-like logic without using a programming language.

What is SOQL and DML?

SOQL (Salesforce object query language) and DML (Data manipulation language) are the languages used in Salesforce to read and modify records, respectively.

What are the types of sObject?

Generic sObjects in Salesforce
  • Apex Datatypes.
  • Integer Datatype in APEX.
  • Float Datatype in APEX.
  • String Dataype in APEX.
  • Date Datatypes in APEX.
  • Time and DateTime Datatypes in APEX.
  • Boolean Datatype In Salesforce.
  • ID & Blob Datatypes in APEX.


What is the use of sObject?

Standard or customized objects known as sObjects are used to hold record information in the Force.com database. There is another sObject datatype in apex that is the technical version among these sObjects. sObject and their fields are referred to by their API names by developers.

Why do we use __ R in Salesforce?

So __r is used to access fields on the Related Parent Object(related either via Lookup Relationship or a Master-Detail Relationship) is SOQL Queries, in Visualforce Bound Variables etc.

What is __ C in Salesforce?

Custom Salesforce Objects. When creating a custom Salesforce object or adding a custom field to an existing object, the "__c" suffix is added to its name internally in Salesforce.

What does __ s mean in Salesforce?

It denotes the API name for the latitude and longitude fields. Usually the custom fields are denoted with the extension __C and if the custom fields have the sub fields such as latitude and longitude then they are denoted by __S. Hope this helps.

What is trigger in SOQL?

riggers are typically used to perform operations based on specific conditions for modifying related records or restricting certain operations from happening. Triggers can be used to do anything that can be done in Apex, including executing SOQL and DML or calling custom Apex methods.

API Based interview Question

What is api in Salesforce?

A Salesforce API is an Application Programming Interface offered by Salesforce, a leading cloud-based CRM platform. The Salesforce API allows developers to integrate Salesforce functionality into other applications and business systems, enabling streamlined workflows, automated processes, and greater productivity.

  What is REST API in Salesforce?

A Representational State Transfer Application Programming Interface (REST API for short) is a type of web service that exposes access to different resources in which a client can interact through the use of unique URLs and HTTP methods to indicate the requested action.

What are the 5 methods of API?

there exist five popular kinds of API request methods: GET, POST, PUT, PATCH, and DELETE. Consequently seeking information is made easy via GET requests, while creating fresh details may only be accomplished through POST logic.

What is REST full form?

Representational State Transfer (REST) is a software architecture that imposes conditions on how an API should work. REST was initially created as a guideline to manage communication on a complex network like the internet.

What is HTTP and REST?

They are different concepts. While HTTP is a protocol that defines how messages are formatted and transmitted, REST is an architectural style that defines how resources are accessed and manipulated.

what is head api method

REST API - HTTP HEAD MethodThe HTTP HEAD method lets you submit a request and receive a response with the response body omitted. The purpose of the HEAD method is to save bandwidth if you do not require the response data that is usually included in the body.

what is GET api method

The GET method refers to a HyperText Transfer Protocol (HTTP) method that is applied while requesting information from a particular source. It is also used to get a specific variable derived from a group. The HTTP POST asks for input of information from the supplying browser into the server's message system.

what is POST api method

A POST method is used to send data to a server via API. It also creates subordinate resources, such as a file in a directory. REST Services are a folder that can hold any number of REST methods.

what is PUT api method

The PUT method updates an instance of a resource by replacing the existing resource with the resource provided in the request body. Configuration attributes that are set at the time a resource is created and that cannot be changed afterward are called immutable attributes.

what is PATCH api method

PATCH is used to apply partial updates to a resource, meaning that only the fields that need to be changed are sent in the request body. PUT is used to replace the entire resource with a new representation, meaning that all the fields of the resource are sent in the request body, even if they are not modified.

what is DELETE api method

The DELETE method is used to delete a specific resource in a REST API. It is performed by sending a DELETE request to the URL of the resource to be deleted, and the API will remove the resource if it exists.

what is OPTIONS  api method

he Options API is a simple and standardized way of storing data in the database. The API makes it easy to create, access, update, and delete options. All the data is stored in the wp_options table under a given custom name. This page contains the technical documentation needed to use the Options API.

what is PUT  api method

The PUT method updates an instance of a resource by replacing the existing resource with the resource provided in the request body. Configuration attributes that are set at the time a resource is created and that cannot be changed afterward are called immutable attributes.

What is Type 4 authentication?

Four-factor authentication is achieved by requiring possession, location, a biometric, and a knowledge factor or, by requiring location, a biometric, and two knowledge factors.

What is two factor authentication in Salesforce?

Two-factor authentication is a great way to keep the online accounts and data secure. Two-factor authentication means that there are two things, or two factors to access the account and data. Factor 1: The first factor is something we know, like our username and password combination.

What is Type 1 Type 2 Type 3 authentication?

There are primarily three types of authentication factors: “Something you know” or knowledge factor or type 1 factor“Something you have” or possession or type 2 factor“Something you are” or inherence or type 3 factor.

What are the 3 types of authentication?

There are three authentication factors that can be used: something you know, something you have, and something you are.

What are the types of authentication 1 2 3?

Three Main Types of MFA Authentication Methods
  • Things you know (knowledge), such as a password or PIN.
  • Things you have (possession), such as a badge or smartphone.
  • Things you are (inherence), such as a biometric like fingerprints or voice recognition.

what is sso

Single sign-on (SSO) is a session and user authentication service that permits a user to use one set of login credentials -- for example, a username and password -- to access multiple applications. SSO can be used by enterprises, small and midsize organizations, and individuals to ease the management of multiple credentials.

What is meant by MFA?

Multi-factor authentication (MFA) is a multi-step account login process that requires users to enter more information than just a password. For example, along with the password, users might be asked to enter a code sent to their email, answer a secret question, or scan a fingerprint.

What is MFA types?

  • A password.
  • One-time, temporary codes, sent to a mobile app.
  • OTP (one-time password) that can be used with a web app.
  • Biometric authentication in the form of a fingerprint or face of a user.
  • QR codes, smart card.

Is MFA needed?

If you've ever reused a password, multiple accounts could be in danger of unauthorized access from a single data breach. MFA helps keep accounts secure even if a password has been compromised.


What is chatter action in Salesforce?

The standard Chatter actions are Post, Poll, Question, and Announcements (groups only). Salesforce Classic standard actions also include File, Link, and Thanks (WDC). Standard actions are supported in both the full Salesforce site and in the Salesforce mobile app.


Have you worked on cloud technology? Architecture of cloud

A CPLD (complex programmable logic device) chip includes several circuit blocks on a single chip with inside wiring resources to attach the circuit blocks. Each circuit block is comparable to a PLA or a PAL


What are the different stages of the design process?


In sequential order, they are…


Identifying the problem.


Researching it in-depth.


Ideating possible solutions.


Evaluating and selecting a promising solution.


Creating a prototype.


Testing and troubleshooting.


Making improvements to and releasing the final product.

What are the backend and front end technologies used

All websites require front-end and back-end development. Front-end development focuses on the visual aspects of a website — the part that users see and interact with. Back-end development comprises a site's structure, system, data, and logic.


Why is spring framework used in your project

Spring is a lightweight framework. It provides the best mechanisms for different frameworks, such as Struts, Hibernate, EJB, JSF, and Tapestry. It helps solve real-time technical problems. Spring contains multiple modules, such as WEB MVC, IOC, DAO, AOP, Context, and ORM


What are components in AngularJS?

In AngularJS, a Component is a special kind of directive that uses a simpler configuration which is suitable for a component-based application structure. This makes it easier to write an app in a way that's similar to using Web Components or using the new Angular's style of application architecture.


What is the meaning of transpiling?

Transpilation, a portmanteau of transformation and compilation, is the process of converting source code from one high-level programming language to another. Unlike traditional compilers, transpilers don't convert code into machine language; instead, they transform it into another source code language.


What are the streams in Java 8?

Java 8 offers the possibility to create streams out of three primitive types: int, long and double. As Stream<T> is a generic interface, and there is no way to use primitives as a type parameter with generics, three new special interfaces were created: IntStream, LongStream, DoubleStream.


what is quable apex in salesforce

Queueable apex is an asynchronous apex method. It's similar to the @future method. By using this queueable interface, we can process an Apex that runs for a long time (such as web service call outs and extensive database operations). Queueable apex is an asynchronous apex method.


How do I trigger a field update in Salesforce?

Below are the steps to be followed:

Create a field in 'Account' with label 'Field Update' and data type as 'Checkbox'

Now create a trigger on Contact.

Navigate to Setup ->Build ->Customize ->Contacts ->Triggers.


What is difference between custom metadata and custom settings?

You can either create a List based or hierarchy based custom setting. Custom metadata does not support Hierarchy type of data based on user profile or a specific user. Custom settings data cannot be deployed using packages or Metadata API/Change Sets. Custom metadata types data can be easily packaged and deployed


What are the 4 different types of fluid flow?

Fluid Flow: Definition, Types of Fluid Flow, Factors, Examples

Fluid flow can be steady, unsteady, viscous, or non-viscous. In the case of steady fluid flow at any point of the path, the velocity of the fluid is constant.


How do I update a field in batch apex?

Batch Field Updater

/* BatchRecordUpdate will update any 1 field on any 1 object. * String values must be set to Object, Field and Value to be added to Field. * Query can be modified to limit records updated. * Example below excludes records for which Degree Offering already equals the new value.

Technical & Coding based Questions and Answers

Q1: Explain the MVC Architecture in Salesforce.

In Salesforce, the MVC (Model-View-Controller) architecture is a prevalent design pattern. The Model element manages the data and underlying business logic, utilizing Salesforce’s database and objects. The View aspect is the interface seen by users, formed through Lightning components or Visualforce pages. The Controller part is responsible for processing user inputs and interactions, facilitated by Apex triggers and classes. This division of responsibilities boosts both the system’s modular nature and its ease of upkeep.

Q2: Describe the Difference Between Trigger and Workflow in Salesforce.

Salesforce utilizes both Triggers and Workflows for automation, though they have distinct functions. Triggers are segments of Apex code that execute around data operations, ideal for intricate business logic beyond the scope of declarative methods. Workflows automate certain actions like email sending or field updates, triggered by specific criteria and achieved without the need for programming.

Q3: How Do You Handle Bulk Data Operations in Salesforce?

To handle large-scale data operations in Salesforce, the Bulk API or Batch Apex is employed. The Bulk API facilitates the asynchronous loading or deletion of substantial data volumes, optimizing API utilization and time efficiency. Batch Apex processes extensive data by dividing it into smaller segments, effectively managing database operations and adhering to Salesforce’s governor limits.

Q4: What is SOQL and SOSL? How are they different?

Salesforce leverages SOQL (Salesforce Object Query Language) and SOSL (Salesforce Object Search Language) for data retrieval. SOQL focuses on specific objects, querying records from either a single or multiple related objects under defined conditions. In contrast, SOSL is adept at performing global searches across multiple objects simultaneously.

Q5: Can You Explain the Concept of Governor Limits in Salesforce?

Salesforce imposes governor limits to maintain efficient and equitable resource usage within its multi-tenant environment. These limits encompass the maximum allowable number of SOQL queries, DML operations, CPU usage, and memory usage per transaction. Mastery of these limits is essential for creating scalable and high-performance applications on the Salesforce platform.

Q6: Explain How You Would Use Apex Classes and Interfaces.

Apex classes in Salesforce are used to write custom business logic. They are similar to classes in Java and can contain variables, methods, and other class-specific elements. Interfaces in Apex define a contract for classes, specifying methods that implementing classes must use. They are essential for creating modular and flexible code, allowing different classes to use the same interface but with different implementations.

Q7: Describe the Role of Visualforce in Salesforce Development.

Visualforce, a framework within Salesforce, empowers developers to craft tailored user interfaces. It uses a tag-based markup language, akin to HTML, offering robust options to link data and functionalities to Salesforce’s database. By integrating with Apex code, Visualforce pages become dynamic and data-centric, crucial for personalizing the user experience on Salesforce.

Q8: What is Salesforce Lightning, and How is it Different from Classic?

Salesforce Lightning is the modern UI of Salesforce, offering a more intuitive and responsive user experience compared to Salesforce Classic. It includes the Lightning Design System, Lightning App Builder, and Lightning Component framework, allowing for easier customization and development of responsive applications. Lightning is designed to work across devices and provides better performance and enhanced features compared to Classic.

Q9: How Do You Ensure Code Quality and Maintainability in Salesforce Development?

To ensure code quality and maintainability in Salesforce, developers should follow best practices such as writing clear and concise code, adhering to naming conventions, commenting code where necessary, and using version control systems. Additionally, implementing code reviews, unit testing with high coverage, and adhering to Salesforce governor limits are crucial practices. Leveraging tools like Salesforce DX can further enhance code quality and collaboration.

Q10: Discuss How You Would Implement Security in a Salesforce Application.

Implementing security in a Salesforce application involves using various Salesforce security features to protect data and ensure that users have appropriate access levels. This includes configuring object- and field-level permissions, using profiles and permission sets, and implementing sharing rules and roles. Developers should also use Apex managed sharing for programmatic record sharing and ensure that their custom code adheres to security best practices, like avoiding SOQL injection.

Q11: A Client Needs a Custom Salesforce Solution for a Unique Sales Process. How Would You Approach This?

First, I would gather detailed requirements from the client to understand their unique sales process. Then, I would analyze these requirements to design a custom solution, potentially involving custom objects, workflows, and Apex triggers to automate and streamline their process. Regular client consultations would ensure the solution aligns with their needs.

Q12: How Would You Handle a Situation Where You Exceed Salesforce Governor Limits in a Complex Application?

In case of exceeding governor limits, I would first identify the specific limits being breached using debug logs. Then, I would optimize the code by reducing SOQL queries using bulkification, leveraging asynchronous processes like Batch Apex, and refining logic to minimize resource consumption, ensuring the application remains efficient and scalable.

Q13: Describe a Scenario Where You Had to Integrate Salesforce with an External System. What Was Your Approach?

In a project requiring Salesforce integration with an external accounting system, I used Salesforce’s REST API for real-time data synchronization. I implemented secure authentication and designed Apex classes for API calls. The integration involved error handling to ensure data consistency and compliance with both systems’ data structures.

Q14: A Client Wants to Migrate from Salesforce Classic to Lightning. What Challenges Would You Anticipate and How Would You Address Them?

Migrating from Classic to Lightning can present challenges such as user adoption, compatibility of existing customizations, and performance optimization. I would conduct a thorough audit of the existing setup, redevelop incompatible Visualforce pages and Apex code for Lightning, and provide comprehensive training to users for a smooth transition.

Q15: How Would You Approach a Project That Requires Building a Complex Salesforce Application with Tight Deadlines?

For a complex project with tight deadlines, effective project management is key. I would break down the project into manageable tasks, prioritize features based on client needs, and use agile methodology for iterative development. Regular communication with the client for feedback and adjustments, coupled with rigorous testing, ensures timely delivery without compromising on quality.

Q16: Your Team is Facing Performance Issues with a Salesforce Application. How Do You Diagnose and Resolve the Issue?

To diagnose performance issues, I would first use Salesforce’s built-in diagnostic tools, like the Developer Console, to identify bottlenecks, such as long-running queries or inefficient Apex code. After pinpointing the issue, I would optimize the code, potentially refactor complex queries, and leverage Salesforce best practices to enhance performance. Effective communication with the team to understand and address their specific challenges is also crucial.

Q17: A Client Requests a Custom Salesforce Report That Their Current Setup Cannot Generate. How Do You Proceed?

For a custom report request beyond current capabilities, I would analyze the client’s requirements and data structure. If necessary, I would create new custom objects or fields to capture the required data. Then, I would use Salesforce’s reporting tools, possibly combined with Apex and Visualforce if needed, to create a report that meets the client’s specific needs.

Q18: Describe a Situation Where You Had to Implement a New Salesforce Feature Under a Limited Budget. How Did You Manage It?

When implementing new features under budget constraints, prioritizing the most impactful functionalities is key. I would work closely with the client to identify their primary needs and develop a phased approach, focusing on delivering high-value features first while planning for future enhancements. Efficient use of Salesforce’s declarative tools and careful management of custom development would ensure cost-effectiveness.

Q19: How Would You Handle a Situation Where a Client Wants a Feature That Could Compromise Salesforce Security?

In cases where client requests could lead to security risks, I would first educate the client about the potential security implications. Then, I would propose alternative solutions that achieve the client’s objectives without compromising security. Ensuring compliance with Salesforce security best practices and data protection regulations is always a priority.

Q20: You’re Tasked with Training a Client’s Team on a New Salesforce Feature. How Do You Ensure Effective Training?

Effective training on new Salesforce features involves a clear understanding of the client’s proficiency and needs. I would create tailored training materials, including hands-on exercises and real-life scenarios. Interactive sessions and Q&A would ensure engagement and comprehension. Post-training support and resources would be provided for ongoing learning and adaptation.

Have you done any batch Apex? Give me an e.g.: where you used batch Apex and just you say trigger?

ou don't call triggers directly anywhere. You perform a DML operation on sObjects, and the trigger will automatically fire. If your batch apex is performing DML (insert, update, delete, undelete) and you have an active trigger in the system for one of those events, the trigger will fire.


Can you elaborate little bit on writing test classes, importance of test classes, things you look for when developing a test class?

In Salesforce, a test class is a class that is used to test the functionality of another class, usually an Apex class, trigger, or web service. Test classes are written in Apex and are used to verify that the code written by developers works as intended before it is deployed to a production environment.


In Apex test class it’s really imp to have code coverage. What are some of other things imp when developing a test class?

Test class must start with @isTest annotation. Focus 90+ : To deploy to production at least 75% code coverage is required. But always try to focus on 90%+. We should not focus on the percentage of code coverage, We should make sure that every use case should covered including positive, negative,bulk and single record.



Within a visualforce page what is the first tag i.e. referenced in a visual force page? Can you tell me what that is?

Create the button called “ContactsForAccount” on Account Object and override above visualforce page with this button. Explination: Starting tag for a visualforcepage is <apex:page> and this follows standard object ACCOUNT. Forming a new page block which gives the user name and Account holder name.



When you define an Apex page, what are diff types of controllers that you can define, and differences bet them?

Types of Controllers in Salesforce

Standard Controllers:

Custom Controllers:

Controller Extensions:

Managing Data:

Automating Processes:

Security.

Customization.


What is extensions class used for?

Note that the instance method that is defined in the extension class is used as an instance method on the augmented artifact. An extension method can access public and protected members only from the artifact that it augments. This behavior is by design.



Are you familiar with keyword “with sharing”? Give me an e.g. with and without?

 if a method is defined in a class declared with with sharing is called by a class declared with without sharing, the method will execute with sharing rules enforced. If a class isn't declared as either with or without sharing, the current sharing rules remain in effect.


Case where you would want to have with sharing vs Apex triggers without sharing?

Use the with sharing keyword when declaring a class to enforce the sharing rules that apply to the current user and if you don't want to enforce it use without sharing keyword. We can use it in any type of classes build in apex.


With Apex triggers how would they usually execute it as? Will they take users sharing rules into consideration?  Do they run Apex triggers in user context?

If your apex trigger is calling a class declared using “WITH SHARING”, then all sharing rules for the context user will apply during trigger execution. If your apex trigger is calling a class declared using “WITHOUT SHARING”, running under WITH SHARING context, the user's profile will come into play.


Do you have written any code for integration with salesforce? Like SOAP, REST web services?

From Salesforce standpoint, is it best to use out of box /write Apex code, what would you do when you are given a requirement? Walk me through your thought process?

How can you control picklist values what users see?

Diff bet Look up and Master Detail?

Roll up fields? Do you use in Mater Detail / Lookup?

What is junction object? When do you use junction object?

What is “wrapper class”? Can you give an e.g. when you use wrapper class?

In a project, for custom functionality you were required to add functionality to an object, especially write Apex trigger code and let’s say you have Trigger on custom object A , what would you do in that scenario?

If you look at custom object and there are already 5 triggers …would you write new trigger or would you change the existing trigger?

What is process Builder? What we can do with it?

What is the Difference between Process builder and Workflow rules?

What is the order of execution in salesforce?

What is After Undelete event in triggers?

While getting data from data loader, how page layout level and filed creation level required acts?

What is inline editing in visualforce page? And how do you achieve it?

What is action function? What is remote action and how it differs from action function?

What is visualforce remoting?

Is it possible without any controller visualforce page creation?

What if i want to display a list of records without having any standard/custom controllers?

What if i want to perform some DML operation on the visualforce page load it self, how do you approach?

How you approach when i have to redirect to standard detail page after record creation, and after editing existing record, if i clicking save button i want to redirect it to some other custom visualforce page?

How do you approach, if i have to catch the information from external system and consume it to run the batch class twice a day at different times?

On batch apex execution, if i have to get the average no. of records succeed and average of failed of all batches we run, how do you approach?

Why we can’t store the values of one method in other method? And how to overcome it? (Database.stateful)




Post a Comment

0 Comments
* Please Don't Spam Here. All the Comments are Reviewed by Admin.