Premium Employer

Persistent Systems

3.5
based on 3.6k Reviews
Filter interviews by

TCS Interview Questions and Answers

Updated 29 Feb 2024
Popular Designations

Q1. How security works in apex, let's say user don't have access on Phone field and SELECT id, Name, Phone from Account WITH_SECURITY_ENFORCED how this query works?

Ans.

In Apex, security is enforced by default. If a user doesn't have access to a field, they won't be able to query it.

  • In Apex, security is enforced by default, meaning that users can only access data they have permission to see.

  • If a user doesn't have access to the Phone field in the Account object, they won't be able to query it even with WITH_SECURITY_ENFORCED.

  • The SELECT id, Name, Phone from Account WITH_SECURITY_ENFORCED query will only return the id and Name fields for users ...read more

Add your answer

Q2. how to change create date while uploading the record through data loader?

Ans.

You can change the create date while uploading records through Data Loader by enabling the 'Allow Insert' option.

  • Enable 'Allow Insert' option in Data Loader settings

  • Map the 'Created Date' field in the mapping file to the desired date/time value

  • Ensure the user has the necessary permissions to change the create date

Add your answer

Q3. how wire method works, while importing data want to add record inside wire method in Jsfile how?

Ans.

Wire method in Salesforce is used to fetch data from Apex controller to Lightning Web Component. Adding records inside wire method in JS file involves using imperative Apex to create records.

  • Use @wire decorator in Lightning Web Component JS file to call an Apex method

  • Inside the wire method, use imperative Apex to create records by calling the createRecord method from the Lightning Data Service

  • Pass the record data as parameters to the createRecord method

Add your answer

Q4. What is relation between account and contact?

Ans.

Account and contact have a parent-child relationship in Salesforce.

  • An account represents a company or organization, while a contact represents an individual associated with that account.

  • An account can have multiple contacts, but a contact can only be associated with one account.

  • Contacts are linked to accounts through a lookup relationship.

  • Account and contact records can be related using the AccountId field on the contact object.

Add your answer
Discover TCS interview dos and don'ts from real experiences

Q5. Tell me sales cloud sales process?

Ans.

The sales cloud sales process is a systematic approach to managing and tracking sales activities from lead generation to closing deals.

  • Lead generation: Identifying potential customers and capturing their information.

  • Opportunity management: Qualifying leads and converting them into opportunities.

  • Sales pipeline: Tracking the progress of opportunities through various stages.

  • Sales forecasting: Predicting future sales based on the pipeline and historical data.

  • Quote and proposal ma...read more

Add your answer

Q6. can we change chunk size in batch job

Ans.

Yes, we can change the chunk size in a batch job.

  • Chunk size can be changed by setting the batch size parameter in the start method of the batch class.

  • The default chunk size is 200 records, but it can be increased or decreased based on the requirements.

  • Changing the chunk size can impact the performance of the batch job, so it should be tested thoroughly.

  • Example: If you want to process records in batches of 100, you can set the batch size parameter to 100.

Add your answer

Q7. Explain master detail?

Ans.

Master-detail is a relationship between two objects where the detail object is dependent on the master object.

  • Master-detail is a one-to-many relationship.

  • The master object controls certain behaviors of the detail object.

  • Deleting the master record automatically deletes the detail records.

  • Security and sharing settings of the master record are inherited by the detail records.

  • Roll-up summary fields can be created on the master object to display aggregated data from the detail rec...read more

Add your answer

Q8. what is batch job

Ans.

A batch job is a process that runs in the background to process large volumes of data in chunks.

  • Batch jobs are used in Salesforce to handle large data volumes efficiently.

  • They are typically scheduled to run at off-peak times to minimize impact on system performance.

  • Batch jobs can be used for data cleansing, data migration, and other data processing tasks.

  • Example: A batch job that updates all customer records with a new discount percentage.

Add your answer
Contribute & help others!
Write a review
Share interview
Contribute salary
Add office photos

Interview Process at TCS

based on 4 interviews in the last 1 year
Interview experience
3.5
Good
View more
Interview Tips & Stories
Ace your next interview with expert advice and inspiring stories

Top Salesforce Developer Interview Questions from Similar Companies

3.7
 • 30 Interview Questions
3.7
 • 28 Interview Questions
3.8
 • 15 Interview Questions
3.8
 • 15 Interview Questions
3.4
 • 13 Interview Questions
View all
Share an Interview
Stay ahead in your career. Get AmbitionBox app
qr-code
Helping over 1 Crore job seekers every month in choosing their right fit company
70 Lakh+

Reviews

5 Lakh+

Interviews

4 Crore+

Salaries

1 Cr+

Users/Month

Contribute to help millions
Get AmbitionBox app

Made with ❤️ in India. Trademarks belong to their respective owners. All rights reserved © 2024 Info Edge (India) Ltd.

Follow us
  • Youtube
  • Instagram
  • LinkedIn
  • Facebook
  • Twitter