Add office photos
Engaged Employer

Blue Flame Labs

3.3
based on 36 Reviews
Filter interviews by

PepsiCo Interview Questions and Answers

Updated 5 Feb 2024

Q1. What is trigger context ?

Ans.

Trigger context refers to the execution context of a trigger in Salesforce.

  • Trigger context provides information about the record(s) that caused the trigger to execute.

  • It includes details like the trigger event type, the old and new versions of the records, and the user who caused the trigger to execute.

  • The trigger context is accessed using the Trigger class in Apex.

  • Example: Trigger context can be used to perform specific actions based on the type of trigger event, such as bef...read more

View 2 more answers

Q2. can we use trigger.new() in before & after trigger.

Ans.

Yes, we can use trigger.new() in before & after trigger.

  • In before trigger, trigger.new() returns the records that are about to be saved.

  • In after trigger, trigger.new() returns the records that have been saved.

  • We can use trigger.new() to access and manipulate the records in the trigger context.

Add your answer

Q3. what is salesforce backend like MVC ?

Ans.

Salesforce backend follows a similar pattern to MVC architecture.

  • Salesforce backend is divided into three layers: Model, View, and Controller.

  • Model layer contains the data and business logic.

  • View layer is responsible for rendering the user interface.

  • Controller layer handles user input and communicates with the Model and View layers.

  • Apex is used for the Controller layer and SOQL for the Model layer.

  • Visualforce is used for the View layer.

  • This architecture helps in separating co...read more

Add your answer

Q4. what is salesforce architecture ?

Ans.

Salesforce architecture is a multi-layered framework that allows for customization and scalability.

  • Salesforce architecture consists of four layers: presentation, logic, data, and storage.

  • The presentation layer is responsible for the user interface and user experience.

  • The logic layer contains the business rules and processes.

  • The data layer stores the data and manages relationships between objects.

  • The storage layer manages the physical storage of data.

  • Salesforce architecture al...read more

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

Q5. diff between master-detail relationship & lookup relationship

Ans.

Master-detail relationship is a parent-child relationship where the child record cannot exist without the parent record. Lookup relationship is a simple association between two objects.

  • Master-detail relationship is a stricter relationship than lookup relationship.

  • Master-detail relationship is used when there is a parent-child relationship between two objects.

  • In master-detail relationship, the child record inherits the sharing and security settings of the parent record.

  • Lookup ...read more

Add your answer

Q6. what is batch/apex class ?

Ans.

Batch/Apex class is a type of Apex code that processes large amounts of data asynchronously in batches.

  • Batch classes are used to process large amounts of data in batches

  • Apex classes are used to write custom business logic

  • Batch classes implement the Database.Batchable interface

  • Apex classes can be used to create triggers, controllers, and web services

  • Example: A batch class can be used to update all accounts with a specific field value

Add your answer

Q7. diff between visualforce & lightning component ?

Ans.

Visualforce is a page-centric model while Lightning Component is a component-centric model.

  • Visualforce is based on a page-centric model while Lightning Component is based on a component-centric model.

  • Visualforce uses a server-side controller while Lightning Component uses a client-side controller.

  • Visualforce is built using Apex and Visualforce markup language while Lightning Component is built using JavaScript and Aura framework.

  • Visualforce has limited support for mobile devi...read more

Add your answer

Q8. diff between before & after trigger

Ans.

Before trigger runs before the record is saved to the database, while after trigger runs after the record is saved.

  • Before trigger is used to update or validate record values before they are saved to the database.

  • After trigger is used to perform additional actions after the record is saved to the database.

  • Before trigger can be used to prevent certain changes from being made to a record.

  • After trigger can be used to update related records or perform other actions based on the ch...read more

Add your answer

Q9. what is workflow ?

Ans.

Workflow is an automated process that helps to streamline business operations and improve efficiency.

  • Workflow is a series of steps that automate a business process.

  • It can be used to automate tasks such as sending emails, updating records, and creating tasks.

  • Workflows can be triggered by specific events or conditions, such as when a record is created or updated.

  • Salesforce provides a visual interface for creating and managing workflows.

  • Workflows can be used to automate complex ...read more

Add your answer
Contribute & help others!
Write a review
Share interview
Contribute salary
Add office photos
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.8
 • 19 Interview Questions
3.9
 • 17 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