Salesforce Admin Questions

 Questions And Answers 

Company Asked: Salesforce                                                                                      Experience: 3+ years.

1)What is cloud computing?

Ans)

Cloud computing denotes the on-demand provision of computing resources via the internet. These resources encompass physical or virtual servers, data storage solutions, networking capabilities, tools for application development, various software, and AI-powered analytics. Cloud computing enables individuals and companies to utilize these resources without the obligation to maintain physical infrastructure, offering a pay-per-use model.

Please include the following points if the interviewer is not satisfied with the previous answer.

Cost-effectiveness: You pay only for the cloud-based infrastructure and resources you use, rather than owning and maintaining physical data centers and servers.

Increased speed and agility: Enterprise applications can be accessed in minutes, empowering development teams to leverage cloud-based software and support infrastructure.

Unlimited scalability: Cloud services provide elasticity, allowing you to scale capacity up or down based on traffic spikes or dips.

Enhanced strategic value: Organizations can leverage cutting-edge technologies and innovations to gain a competitive edge.

Company Asked: Salesforce                                                                                      Experience: 3+ years.

 2)What is the view all and modify all?

Ans)

View All:

Users with the View All permission can see all records of a specific object, regardless of ownership or sharing rules.

This permission is often granted to system administrators or users who need a broad view of data for reporting or troubleshooting purposes.

Modify All:

Users with the Modify All permission can edit, delete, and transfer ownership of all records of a specific object, regardless of ownership or sharing rules.

It provides extensive control over data.


Company Asked: ITC InfoTech                                                                           Experience: 3+ years.

3)What is 151 exception in salesforce and how we handle it?

Ans)

The “Too Many DML Statements: 151” error in Salesforce occurs when an Apex transaction executes more than 150 Data Manipulation Language (DML) operations. DML operations include commands like insert, update, delete, and upsert. Salesforce sets this limit to prevent a single transaction from overusing shared resources1.

To handle it:

1)Collections: Aggregate data into lists, sets, or maps, and perform DML operations on these collections outside of loops.
2)Optimize Logic and Workflow: Review triggers and classes to ensure DML operations execute only when necessary.
3)Consider using @future annotation to run code asynchronously if you need to change the context.

Company Asked: ITC InfoTech                                                                           Experience: 3+ years.

4)What is 101 exception in salesforce and how we handle it?

Ans)

The “Too many SOQL Queries: 101” error in Salesforce occurs when you exceed the governor limit for the number of SOQL queries issued in a single context.

How to handle it:

Avoid SOQL Queries Inside for Loops: Refrain from placing SOQL queries or DML statements (insert/update/delete/undelete) inside loops. These operations should be outside the loop to prevent excessive queries.

Bulkify Apex Triggers and Recursion Handling:

Bulkify Triggers: Optimize your triggers to handle bulk data by querying records in collections (e.g., lists, sets, maps) rather than individual queries.

Recursion Handling: Prevent recursive triggers by using static variables or trigger frameworks to control execution flow.

Move Business Logic into @future Methods:
Use the @future annotation to execute code asynchronously. This avoids counting SOQL queries against the current context.
Be cautious about using @future for large-scale operations due to its asynchronous nature.

Minimize the Number of SOQL Queries:
Consider merging queries where possible to reduce the total count.
Explore aggregate SOQL for complex business use cases, as it doesn’t count against CPU time

Company Asked:TCS                                                                           Experience: 3+ years.
5)Can we use rollup summary field instead of triggers?

Ans)
Roll-up summary fields are indeed a powerful feature in Salesforce, but they have some limitations.

Roll-Up Summary Fields:
Advantages 
Easy setup, Tested and reliable, No development required, More efficient for multiple fields,
Supports basic aggregation functions (COUNT, SUM, MIN, MAX).
Disadvantages
Only available for Master-Detail relationships, Licensing costs may apply, Filter criteria are limited,
Not usable for Lookup relationships.

Triggers:
Advantages
More flexible compared to flows, No licensing costs, Allows custom logic beyond simple aggregation.
Disadvantages
Requires coding skills, Effort to build and test, Admins may find it challenging to update triggers.

Company Asked: NTT DATA                                                                   Experience: 3+ years.

6)Triggers and Order of Execution in salesforce?

Ans)
  1. System Validation Rules: Salesforce checks for required fields, field formats, and maximum field length.
  2. Before Triggers: Custom code that runs before the specified Salesforce operation.
  3. System Validation Rules (again): Salesforce re-checks the record for required fields and custom validation rules.
  4. Duplicate Rules: If a duplicate is found and the rule uses the block action, the record isn’t saved.
  5. Save the Record: The record is saved to the database but not yet committed.
  6. After Triggers: Custom code that runs after the record is saved.
  7. Assignment Rules: If applicable, leads or cases are assigned.
  8. Auto-Response Rules: Automated responses are sent.
  9. Workflow Rules: Any workflow rules are executed.
  10. Process Builder: Processes built with Process Builder are executed.
  11. Escalation Rules: If applicable, escalation rules are applied.
  12. Entitlement Rules: If applicable, entitlement rules are applied.
  13. Roll-Up Summary Fields: Roll-up summary fields are updated.
  14. Parent Roll-Up Summary Fields: Parent roll-up summary fields are updated.
  15. Commit: The record is finally committed to the database.
  16. Post-Commit Logic: Any post-commit logic, such as sending emails, is executed.
Company Asked: NTT DATA                                                                   Experience: 3+ years.

7)What is the Profile and control in salesforce ?

Ans)

In Salesforce, a Profile is a collection of settings and permissions that define what a user can do within the Salesforce platform.

Profiles control:

  • Object Permissions: Access to objects like Accounts, Contacts, Opportunities, etc.
  • Field Permissions: Access to specific fields within an object.
  • User Permissions: General permissions like API access, mass email, etc.
  • Tab Settings: Visibility of tabs for different objects.
  • Record Types: Access to different record types.
  • Page Layouts: Which page layouts a user can see.
  • App Settings: Access to different apps within Salesforce.
Profiles are essential for ensuring that users have the appropriate access levels to perform their job functions while maintaining data security and integrity.

Company Asked: IBM                                                                   Experience: 3+ years.

8)What is the permission sets?

Ans)

In Salesforce, a Permission Set is a collection of settings and permissions that allow users access to various tools and functions without modifying their profiles. The key aspects include:
  • Extended Access: Permission sets enable the extension of functional access for users without changing their profiles, which is beneficial for providing specific users with additional permissions as required.
  • Multiple Assignments: While users can have only one profile, they can be assigned multiple permission sets, offering flexibility in user permission management.
  • Task-Based: Permission sets can be designed around specific tasks or job functions. For instance, a permission set can be created for users who need to delete and transfer leads.
  • Object and Field Permissions: These sets encompass permissions for objects, fields, and other settings, akin to profiles.
  • Custom and Standard Options: Custom permission sets can be developed to meet the unique needs of your organization, or you can utilize the standard ones available in Salesforce..
Company Asked: HCLTech                                                                   Experience: 3+ years

9)What is the difference between the profile and role?

Ans)
In Salesforce, Profiles and Roles serve different purposes in managing user access and permissions:

Profiles:

  • Purpose: Define what a user can do within Salesforce.
  • Scope: Control access to objects, fields, and various functions.
  • Settings: Include permissions for creating, reading, editing, and deleting records, as well as access to specific fields and tabs.
  • Assignment: Every user must have one profile.
  • Example: A Sales Rep profile might allow access to Leads, Opportunities, and Accounts, with permissions to create and edit these records.

Roles :

  • Purpose: Define what data a user can see based on their position in the hierarchy.
  • Scope: Control record-level access and data visibility.
  • Settings: Determine which records a user can view or edit, based on their role in the organization.
  • Assignment: Users can have no role or one role, and roles are organized hierarchically.
  • Example: A Sales Manager role might allow access to all records owned by Sales Reps under them in the hierarchy.

Key Differences : 

  • Profiles control permissions (what users can do), while Roles control data visibility (what users can see).
  • Profiles are mandatory for every user, but Roles are optional.
  • Profiles are not hierarchical, whereas Roles follow a hierarchical structure.
Company Asked: Virtusa                                                                   Experience: 3+ years

10)What are the login hours and login IP ranges?

Ans) Login Hours: Login hours are established within an organization to restrict users from logging in before or after the designated times. Login IP Ranges: IP ranges are implemented to block login attempts made from unrecognized IP addresses. Organizations typically maintain these login IP ranges.
Company Asked: HCLTech                                                                   Experience: 3+ years
11)Can a user change his own profile in salesforce ?
Ans)
No, a user cannot change his own profile.
Company Asked: Salesforce                                                                                      Experience: 3+ years.
12)Reset security token option is unavailable in set up. What could be the reason?

Ans)
If the Reset Security Token option is unavailable in your Salesforce setup.
It could be due to several reasons:
  • Login IP Ranges: If your profile has defined IP range values, the option to reset the security token will be unavailable. You must either remove the Login IP Ranges or switch to a profile without Login IP Ranges listed.
  • Network Access: The reset option may not appear if Network Access settings are absent from Security Controls. Verify that Network Access is set up properly.
  • User Profile Issues: A corrupted user profile can sometimes occur. Attempt to edit and save the user profile without any changes; this action may reset the profile and enable the token reset option.
  • License Type: Users with Chatter-External and Chatter-Free licenses lack the option to reset their security tokens.
  • Multi-Factor Authentication (MFA): Should your admin assign you the Multi-Factor Authentication for API Logins permission, an authenticator app's generated code may be required instead of a security token.


Feel free to post any comments regarding mistakes, corrections, ideas, and suggestions related to the article.

Thank you for reading the article.

Jayanth A

Comments

Popular posts from this blog

Salesforce Admin Notes

Salesforce Limitations

Salesforce Order of Execution