PDI Exam Questions
223 real PDI exam questions with expert-verified answers and explanations. Page 1 of 5.
- Question #1Data Modeling and Management
Universal Containers hires a developer to build a custom search page to help user-find the Accounts they want. Users will be able to search on Name, Description, and a custom comme...
SOQLSOSLText SearchQuery Limits - Question #2Logic and Process Automation
Universal Container uses Service Cloud with a custom field, stage_c, on the Case object. Management wants to send a follow-up email reminder 6 hours after the stage_c field is set...
Flow AutomationTime-Dependent ActionsBulk Safe SolutionsEmail Notifications - Question #3Testing, Debugging, and Deployment
A developer must troubleshoot to pinpoint the causes of performance issues when a custom page loads in their org. Which tool should the developer use to troubleshoot?
Performance troubleshootingDeveloper ConsoleDebugging toolsPage load performance - Question #4User Interface
A developer Is asked to create a Visualforce page that lists the contacts owned by the current user. This component will be embedded In a Lightning page. Without writing unnecessar...
VisualforceStandard ControllerRelated ListsLightning Pages - Question #5User Interface
A developer has a Visualforce page and custom controller to save Account records. The developer wants to display any validation rule violation to the user. How can the developer ma...
VisualforceError HandlingValidation RulesUser Interface - Question #6Logic and Process Automation
A developer is creating a page that allows users to create multiple Opportunities. The developer is asked to verify the current user's default } | Opportunity record type, and set...
ApexSchema ClassRecord TypesMetadata - Question #8User Interface
A developer migrated functionality from JavaScript Remoting to a Lightning web component and wants to use the existing getOpportunities() method to provide data. What to do now?
Lightning Web ComponentsApex IntegrationAuraEnabledData Retrieval - Question #9User Interface
A Lightning component has a wired property, searchResults, that stores a list of Opportunities. Which definition of the Apex method, to which the searchResults property is wired, s...
Lightning Web ComponentsApexWire ServiceCaching - Question #10Logic and Process Automation
Management asked for opportunities to be automatically created for accounts with annual revenue greater than $1,000,000. A developer created the following trigger on the Account ob...
Apex TriggersGovernor LimitsBulkificationDML Best Practices - Question #11Logic and Process Automation
What are two ways a developer can get the status of an enquered job for a class that queueable interface? Choose 2 answers
Asynchronous ApexQueueable ApexJob MonitoringAsyncApexJob - Question #12Logic and Process Automation
Cloud kicks has a multi-screen flow that its call center agents use when handling inbound service desk calls. At one of the steps in the flow, the agents should be presented with a...
Apex CalloutsExternal IntegrationSalesforce FlowReal-time Data - Question #13Testing, Debugging, and Deployment
A developer needs to have records with specific field values in order to test a new Apex class. What should the developer do to ensure the data is available to the test?
Apex TestingTest Data ManagementTest.loadDataStatic Resources - Question #14Testing, Debugging, and Deployment
How can a developer check the test coverage of active Process Builder and Flows deploying them in a Changing Set?
Test CoverageDeploymentTooling APIFlows - Question #15User Interface
Universal Containers has large number of custom applications that were built using a third-party javaScript framework and exposed using Visualforce pages. The Company wants to upda...
Salesforce Lightning Design SystemVisualforceUI StylingLightning Experience Look and Feel - Question #16User Interface
Which two are best practices when it comes to component and application event handling? (Choose two.)
Event HandlingLightning ComponentsBest PracticesCode Reusability - Question #17Testing, Debugging, and Deployment
A developer wrote Apex code that calls out to an external system. How should a developer write the test to provide test coverage?
Apex TestingCallout MockingHTTPCalloutMockUnit Testing - Question #18User Interface
Universal Containers recently transitioned from Classic to Lighting Experience. One of its business processes requires certain value from the opportunity object to be sent via HTTP...
Lightning ExperienceExternal IntegrationsQuick ActionsApex Callouts - Question #19Logic and Process Automation
A developer wants to invoke on outbound message when a record meets a specific criteria. Which three features satisfy this use case? Choose 3 answer
Outbound MessageProcess AutomationWorkflow RulesProcess Builder - Question #20Logic and Process Automation
Given the following Anonymous Block: Which one do you like? What should a developer consider for an environment that has over 10,000 Case records?
Governor LimitsDML OperationsLarge Data VolumeApex Best Practices - Question #21Testing, Debugging, and Deployment
For which three items can a trace flag be configured? Choose 3 answers
Trace FlagsDebuggingApexMonitoring - Question #22Testing, Debugging, and Deployment
A developer has a single custom controller class that works with a Visualforce Wizard to support creating and editing multiple subjects. The wizard accepts data from user inputs ac...
Apex TestingVisualforce ControllersURL ParametersPageReference - Question #23User Interface
A developer is creating an app that contains multiple Lightning web components. One of the child components is used for navigation purposes. When a user click a button called.. com...
Lightning Web ComponentsCustom EventsChild-to-Parent CommunicationInter-component Communication - Question #24Logic and Process Automation
A developer is implementing an Apex class for a financial system. Within the class, the variables `creditAmount' and `debtAmount' should not be able to change once a value is assig...
Apex VariablesFinal KeywordImmutability - Question #25Logic and Process Automation
If apex code executes inside the execute() method of an Apex class when implementing the Batchable interface, which statement are true regarding governor limits? Choose 2 answers
Batch ApexGovernor LimitsAsynchronous Apex - Question #26Data Modeling and Management
A developer Is Integrating with a legacy on-premise SQL database. What should the developer use to ensure the data being Integrated is matched to the right records in Salesforce?
External IDData IntegrationData Matching - Question #27Data Modeling and Management
A developer created a custom order management app that uses an Apex class. The order is represented by an Order object and an Orderltem object that has a master-detail relationship...
Data ModelingMaster-Detail RelationshipJunction ObjectsMany-to-Many Relationships - Question #28Data Modeling and Management
Universal Containers has a support process that allows users to request support from its engineering team using a custom object, Engineering_Support__c. Users should be able to ass...
Data ModelingRelationshipsMaster-DetailRollup Summary - Question #29Logic and Process Automation
A developer is asked to prevent anyone other than a user with Sales Manager profile from changing the Opportunity Status to Closed Lost if the lost reason is blank. Which automatio...
Validation RulesDeclarative AutomationData ValidationPlatform Best Practices - Question #30Testing, Debugging, and Deployment
Which two events need to happen when deploying to a production org? Choose 2 answers
DeploymentTest CoverageApexTriggers - Question #31Logic and Process Automation
Which three operations affect the number of times a trigger can fire? Choose 3 answers
Apex TriggersOrder of ExecutionProcess AutomationDML Operations - Question #33Logic and Process Automation
What is the result of the following code?
DML OperationsError HandlingApex DMLDatabase Class - Question #34Data Modeling and Management
Universal Containers stores the availability date on each Line Item of an Order and Orders are only shipped when all of the Line Items are available. Which method should be used to...
Roll-Up Summary FieldsData AggregationDate CalculationsMaster-Detail Relationships - Question #35Data Modeling and Management
A developer wants to import 500 Opportunity records into a sandbox. Why should the developer choose to use data Loader instead of Data Import Wizard?
Data LoaderData Import WizardOpportunitiesData Import - Question #36User Interface
A Salesforce Administrator used Flow Builder to create a flow named `'accountOnboarding''. The flow must be used inside an Aura component. Which tag should a developer use to displ...
Aura ComponentsFlow IntegrationLightning Flow Component - Question #37Logic and Process Automation
A developer must modify the following code snippet to prevent the number of SOQL queries issued from exceeding the platform governor limit. public class without sharing Opportunity...
Governor LimitsApexSystem.Limits - Question #38Data Modeling and Management
Universal Container is building a recruiting app with an Applicant object that stores information about an individual person that represents a job. Each application may apply for m...
Data ModelingObject RelationshipsMany-to-Many RelationshipJunction Object - Question #39Data Modeling and Management
Universal Containers decides to use exclusively declarative development to build out a new Salesforce application. Which three options should be used to build out the database laye...
Data ModelingDeclarative DevelopmentSalesforce Data StructureRelationships - Question #40Data Modeling and Management
Universal Containers has implemented an order management application. Each Order can have one or more Order Line items. The Order Line object is related to the Order via a master-d...
Roll-up summary fieldsMaster-detail relationshipsDeclarative automationData aggregation - Question #41Logic and Process Automation
Refer to the following code snippet for an environment has more than 200 Accounts belonging to the Technology' industry: When the code execution, which two events occur as a result...
Governor LimitsAsynchronous ApexBulkificationApex Transactions - Question #42Logic and Process Automation
Which three statements are true regarding custom exceptions in Apex? (Choose three.)
Apex ExceptionsCustom ClassesOOP (Inheritance)Apex Naming Conventions - Question #43Testing, Debugging, and Deployment
A developer observes that an Apex test method fails in the Sandbox. To identify the issue, the developer copies the code inside the test method and executes it via the Execute Anon...
Apex TestingTest Data IsolationExecute AnonymousDebugging - Question #44Logic and Process Automation
Which Apex class contains methods to return the amount of resources that have been used for a particular governor, such as the number of DML statements?
ApexGovernor LimitsLimits ClassResource Monitoring - Question #45Logic and Process Automation
A company has been adding data to Salesforce and has not done a good Job of limiting the creation of duplicate Lead records. The developer is considering writing an Apex process to...
Apex Merge MethodData ManagementDuplicate ManagementStandard Objects API - Question #46Logic and Process Automation
A business has a proprietary Order Management System (OMS) that creates orders from their website and fulfills the orders. When the order is created in the OMS, an integration also...
Integration Data FlowData DeduplicationExternal IDsApex Trigger - Question #47Testing, Debugging, and Deployment
Which two statements are true about using the @testSetup annotation in an Apex test class? Choose 2 answers
Apex Testing@testSetupTest Data ManagementApex Annotations - Question #48Data Modeling and Management
A primaryid_c custom field exists on the candidate_c custom object. The filed is used to store each candidate's id number and is marked as Unique in the schema definition. As part...
External IDData LoadingUpsertCustom Fields - Question #49Logic and Process Automation
A custom object Trainer_c has a lookup field to another custom object Gym___c. Which SOQL query will get the record for the Viridian City gym and it's trainers?
SOQLSubqueriesParent-Child RelationshipsCustom Objects - Question #50Testing, Debugging, and Deployment
What are two ways for a developer to execute tests in an org?
Apex TestingDeveloper ConsoleTooling APITest Execution - Question #51Data Modeling and Management
A software company uses the following objects and relationships: - Case: to handle customer support issues - Defect_c: a custom object to represent known issues with the company's...
Sharing ModelMaster-Detail RelationshipJunction ObjectRecord Access - Question #52Logic and Process Automation
An Opportunity needs to have an amount rolled up from a custom object that is not in a master- detail relationship. How can this be achieved?
Apex TriggersRoll-up SummariesSOQL Aggregate FunctionsCustom Development