Deloitte
10+ Vizag Steel Interview Questions and Answers
Q1. Write a trigger to update contact when accounts phone changed.
Trigger to update contact when accounts phone changed
Create a trigger on Account object
Query for related Contacts
Update Contact phone field with Account phone field value
Q2. Scenario how to create 1 to 1 relationship
To create a 1 to 1 relationship in Salesforce, use a lookup field on the child object pointing to the parent object.
Create a lookup field on the child object that references the parent object.
Ensure that the lookup field has a unique constraint to enforce the 1 to 1 relationship.
Use validation rules or triggers to prevent multiple child records from being linked to the same parent record.
Q3. Fetch data in table from apex
Fetching data from table in Apex
Use SOQL query to fetch data from table
Assign the query result to a list variable
Iterate through the list to access individual records
Q4. Develop calc in programming language of your choice
I would develop a calculator in Python using basic arithmetic operations and GUI libraries.
Use Python's built-in arithmetic operators (+, -, *, /) to perform calculations.
Use a GUI library like Tkinter or PyQt to create a user-friendly interface.
Implement error handling to prevent invalid inputs and division by zero.
Consider adding additional features like memory functions or scientific notation.
Test the calculator thoroughly to ensure accurate results.
Q5. What are security measures in Salesforce? How to import bulk data? Types of flows Best practices in code Javascript is must They will ask to write code by sharing screen.
Security measures in Salesforce include user authentication, data encryption, IP restrictions, and field-level security.
User authentication methods like password policies, two-factor authentication, and single sign-on are crucial for securing access to Salesforce.
Data encryption ensures that sensitive information is protected both at rest and in transit.
IP restrictions can be set to control access to Salesforce from specific locations or networks.
Field-level security allows a...read more
Q6. Difference between queable and feature apex
Queueable is used for asynchronous processing while future apex is used for executing code in a separate thread.
Queueable is used for complex, long-running processes that can be split into multiple jobs.
Future apex is used for short, quick processes that need to be executed in a separate thread.
Queueable jobs can be chained together to run in a specific order.
Future apex methods are limited in terms of governor limits compared to Queueable jobs.
Q7. Apex Trigger to count no of Contacts in a particular account
Use an Apex Trigger to count the number of Contacts in a specific Account.
Create an Apex Trigger on the Contact object.
Query for Contacts related to the specific Account.
Use a SOQL query to count the number of Contacts.
Update a custom field on the Account with the count.
Q8. Deployment process with ci/cd
CI/CD is a process of automating software delivery and deployment.
Use version control system like Git to manage code changes
Automate build process using tools like Jenkins
Run automated tests to ensure code quality
Deploy to different environments using tools like Docker and Kubernetes
Monitor and log application performance using tools like Splunk
Use continuous feedback to improve the process
Q9. Develop calc on language of your choice
I would develop a calculator in Python.
I would use the built-in math library for mathematical operations.
I would use the Tkinter library for creating a GUI.
I would define functions for each operation (addition, subtraction, multiplication, division, etc.).
I would handle errors and exceptions to ensure the calculator functions properly.
I would test the calculator thoroughly to ensure accuracy.
Q10. What are interfaces we have in Salesforce
Interfaces in Salesforce provide a way to define a contract for classes to implement specific methods and behaviors.
Interfaces define a set of methods that a class must implement
Interfaces can be used to achieve polymorphism in Apex
Interfaces can be used to enforce a common behavior across multiple classes
Interfaces can be used to create loosely coupled code
Examples of interfaces in Salesforce include Database.Batchable, Messaging.SendEmailResult, and HttpCalloutMock
Q11. Different Values of Apex Context variables in different scenarios
Apex context variables hold different values based on the scenario in Salesforce development.
Trigger.new and Trigger.old contain new and old versions of records in trigger context
System.isBatch() returns true in batch context
System.isFuture() returns true in future method context
System.isScheduled() returns true in scheduled job context
Q12. Cpu error in apex
CPU error in Apex
Check for infinite loops or recursive calls
Reduce the number of SOQL queries and DML statements
Optimize code to reduce CPU usage
Consider using asynchronous processing
Use governor limits to avoid exceeding CPU time limit
Q13. How many reports are there in SF
There are unlimited reports in Salesforce (SF) as users can create custom reports based on their needs.
Users can create custom reports using Salesforce Report Builder.
Reports can be based on various objects and criteria.
Reports can be scheduled to run at specific times and emailed to users.
Reports can be shared with specific users or groups.
Reports can be used to analyze data and make informed business decisions.
Q14. What is lookup relationships.?
Lookup relationships are associations between two objects in Salesforce, where one object has a reference to another object.
Lookup relationships are used to create a link between two objects.
They are defined by creating a lookup field on one object that references the other object.
Lookup relationships can be one-to-one or one-to-many.
They enable data sharing and linking between related records.
For example, a Contact object can have a lookup relationship with an Account object...read more
Q15. What is profile
A profile in Salesforce is a collection of settings and permissions that determine what a user can access and do within the system.
Profiles control the object, field, and record-level permissions for users.
Profiles also determine the user interface settings, such as page layouts, record types, and tab visibility.
Multiple users can be assigned the same profile, allowing them to have the same access and permissions.
Profiles can be cloned and customized to create new profiles wi...read more
More about working at Deloitte
Interview Process at Vizag Steel
Top Salesforce Developer Interview Questions from Similar Companies
Reviews
Interviews
Salaries
Users/Month