Accenture
10+ Cavinkare Interview Questions and Answers
Q1. write a batch code to update account rating
Batch code to update account rating
Create a batch class implementing Database.Batchable interface
Query for accounts with specific criteria
Update the rating field for each account
Execute the batch class using Database.executeBatch method
Q2. what is quable apex in salesforce
Quable Apex is a tool that allows developers to write and test Apex code in a more efficient and organized way.
Quable Apex provides a structured way to organize Apex code
It allows developers to write and test code in a more efficient manner
Quable Apex includes features such as code versioning and deployment management
It can be integrated with Salesforce's development tools such as the Force.com IDE
Q3. tirgger to update shipping address
A trigger can be created to update shipping address based on certain criteria.
Create a trigger on the object where the shipping address is stored
Use an if statement to check the criteria for updating the address
Update the shipping address field using the appropriate syntax
Q4. What is the difference between Batchable and Queueable Apex?
Batchable Apex is used for processing large data sets in smaller chunks, while Queueable Apex is used for asynchronous processing of single job.
Batchable Apex is used for processing large data sets in smaller chunks
Queueable Apex is used for asynchronous processing of single job
Batchable Apex can be scheduled to run at specific times, while Queueable Apex runs immediately after being added to the queue
Batchable Apex uses the Database.Batchable interface, while Queueable Apex ...read more
Q5. Custom Metadata vs custom settings
Custom Metadata is used for dynamic configuration while Custom Settings are used for static configuration.
Custom Metadata is deployable across environments while Custom Settings are not.
Custom Metadata can be accessed via SOQL while Custom Settings can be accessed via Apex.
Custom Metadata can be used in managed packages while Custom Settings cannot.
Custom Metadata can be used to store complex data structures while Custom Settings cannot.
Custom Metadata can be used to store da...read more
Q6. Which data type is not allowed in future method?
Future methods do not allow sObjects as data type.
Future methods in Salesforce do not allow sObjects as parameters.
You cannot pass an sObject, such as Account or Contact, as a parameter to a future method.
Instead, you can pass the sObject ID and query for the sObject in the future method.
Q7. types of flows used
Flows are used to automate business processes in Salesforce. There are different types of flows used depending on the requirement.
Screen Flows - used to collect data from users
Auto-launched Flows - used to automate processes without user interaction
Flow Triggers - used to launch a flow when a record is created or updated
Scheduled Flows - used to automate processes on a schedule
Record-Triggered Flows - used to automate processes when a record is created, updated, or deleted
Flo...read more
Q8. Write a trigger to update record in child abject as well as parent object
Use a trigger to update records in both child and parent objects
Create a trigger on the child object that updates the related parent object
Use SOQL queries to retrieve and update the parent object records
Handle bulk updates by using trigger context variables like Trigger.new and Trigger.old
Q9. Trigger to count total opportunity amount on Account
Create a trigger to calculate total opportunity amount on Account
Create an after insert, update, delete trigger on Opportunity object
Query all related Opportunities for the Account
Calculate the total amount and update a custom field on the Account
Q10. Difference between synchronous and asynchronous methods in apex
Synchronous methods execute in a sequential order, while asynchronous methods allow for parallel execution.
Synchronous methods execute in a sequential order, blocking the execution until the method is completed.
Asynchronous methods allow for parallel execution, enabling other processes to continue while the method runs in the background.
Synchronous methods are suitable for tasks that require immediate results, while asynchronous methods are used for long-running processes or ...read more
Q11. What is lightning message service?
Lightning message service is a messaging channel that allows communication between components in a Lightning web application.
It enables communication between Aura components, Visualforce pages, and Lightning web components.
Messages are sent and received using the Lightning Message Service API.
It supports both point-to-point and broadcast messaging.
Developers can use it to communicate between components that are not directly related in the component hierarchy.
Q12. Can master detail convert into lookup
No, master detail relationship cannot be converted into lookup relationship.
Master detail relationship is more restrictive than lookup relationship
Master detail relationship controls the behavior of the child records
Lookup relationship allows more flexibility and independence between parent and child records
Q13. Basic sceneries in Apex sharing
Apex sharing allows developers to control access to records based on criteria.
Apex sharing rules can be used to extend sharing access beyond the organization-wide defaults.
Apex managed sharing allows developers to programmatically share records with specific users or groups.
Sharing reasons can be used to define the reason for sharing a record in Apex.
Apex sharing can be enforced using the 'with sharing' keyword in Apex classes.
Q14. In LWC, explain lifecycle hooks
Lifecycle hooks in LWC are methods that allow developers to hook into the lifecycle of a component.
ConnectedCallback - called when a component is inserted into the DOM
RenderedCallback - called after a component's template has been rendered
DisconnectedCallback - called when a component is removed from the DOM
ErrorCallback - called when an error occurs in a component
Example: connectedCallback() { console.log('Component connected to the DOM'); }
Q15. Describe your view on monetization
Monetization is the process of generating revenue from a product or service.
Monetization strategies can include subscription models, advertising, freemium models, and pay-per-use.
It is important to consider the target market, competition, and value proposition when deciding on a monetization strategy.
Regularly analyzing and optimizing monetization strategies is crucial for long-term success.
Examples of successful monetization strategies include Spotify's freemium model, Netfl...read more
Q16. Call parent to child in lwc
To call parent to child in LWC, use @api decorator in child component to expose a public property and then use the property in parent component.
Use @api decorator in child component to expose a public property
Pass data from parent to child component using the public property
Access the data in the child component using the public property
Q17. Trigger.new vs Trigger.newMap
Trigger.new contains the new records that are being inserted or updated, while Trigger.newMap contains the new records mapped by their IDs.
Trigger.new is a list of sObjects that are being inserted or updated in a trigger context.
Trigger.newMap is a map of sObjects that are being inserted or updated, with their IDs as keys.
Use Trigger.new when you need to iterate over all new records without needing to access them by ID.
Use Trigger.newMap when you need to quickly access a spec...read more
Q18. Future apex example
Future apex example
Use @future annotation to run a method asynchronously
Future methods are used for long-running operations like callouts
Example: @future public static void myFutureMethod() { // code here }
More about working at Accenture
Interview Process at Cavinkare
Top Salesforce Developer Interview Questions from Similar Companies
Reviews
Interviews
Salaries
Users/Month