PDI Exam Questions
223 real PDI exam questions with expert-verified answers and explanations. Page 2 of 5.
- Question #53User Interface
A developer must create a lightning component that allows users to input contact record information to create a contact record, including a salary__c custom field. what should the...
Lightning Web ComponentsField-Level SecurityData InputRecord Forms - Question #54Logic and Process Automation
A developer is tasked to perform a security review of the ContactSearch Apex class that exists in the system. Whithin the class, the developer identifies the following method as a...
SOQL InjectionApex SecurityDynamic SOQLVariable Binding - Question #55Logic and Process Automation
A developer created these three Rollup Summary fields in the custom object, Project_ct, The developer is asked to create a new field that shows the ratio between rejected and appro...
Formula FieldsDeclarative AutomationRollup Summary FieldsField Type Selection - Question #56User Interface
Which three Salesforce resources can be accessed from a Lightning web component? Choose 3 answers
Lightning Web ComponentsStatic ResourcesExternal LibrariesResource Access - Question #57Data Modeling and Management
An org tracks customer orders on an Order object and the items of an Order on the Line Item object. The Line Item object has a MasterDetail relationship to the order object. A deve...
Formula FieldsRoll-up Summary FieldsMaster-Detail RelationshipDeclarative Development - Question #58Logic and Process Automation
Which action may cause triggers to fire?
Apex TriggersDML OperationsStandard Objects - Question #59Logic and Process Automation
The following code snippet is executed by a Lightning web component in an environment with more than 2,000 lead records: Which governor limit will likely be exceeded within the Ape...
Governor LimitsSOQLApexLarge Data Volumes - Question #60Testing, Debugging, and Deployment
Which scenario is valid for execution by unit tests?
Unit TestingApex TestingTest Data SetupSystem.Test methods - Question #62Logic and Process Automation
A developer has an integer variable called maxAttempts. The developer meeds to ensure that once maxAttempts is initialized, it preserves its value for the lenght of the Apex transa...
Apex Variable ScopeApex Static KeywordApex Final KeywordApex Transactions - Question #63Logic and Process Automation
Consider the following code snippet: Given the multi-tenant architecture of the Salesforce platform, what Is a best practice a developer should Implement and ensure successful exec...
Apex Best PracticesGovernor LimitsSOQLBulkification - Question #64User Interface
What does the Lightning Component framework provide to developers?
Lightning ComponentsComponent ReusabilityFront-end DevelopmentUser Interface - Question #65Logic and Process Automation
In the Lightning UI, where should a developer look to find information about a Paused Flow Interview?
FlowsPaused Flow InterviewsProcess AutomationMonitoring - Question #66User Interface
Which two are phases in the Aura application event propagation framework? Choose 2 answers
Aura EventsEvent PropagationComponent CommunicationLightning Components - Question #67Testing, Debugging, and Deployment
Which two sfdx commands can be used to add testing data to a Developer sandbox?
sfdx CLIData LoadingData Seeding - Question #68Logic and Process Automation
As part of a data cleanup strategy, AW Computing wants to proactively delete associated opportunity records when the related Account is deleted. Which automation tool should be use...
Record-Triggered Flowdata deletionautomation toolscascading delete - Question #69Testing, Debugging, and Deployment
What are three ways for a developer to execute tests in an org? Choose 3.
Apex TestingTest ExecutionSalesforce DXTooling API - Question #70Data Modeling and Management
Which two settings must be defined in order to update a record of a junction object? Choose 2 answers
Junction ObjectsMany-to-Many RelationshipsField-Level SecurityRecord Updates - Question #71Testing, Debugging, and Deployment
What should be used to create scratch orgs?
Scratch OrgsSalesforce CLISalesforce DXDevelopment Environments - Question #72Data Modeling and Management
AW Computing tracks order information in custom objects called order__c and order_Line_ c - Currently, all shipping information is stored in the order__c object. The company wants...
Data ModelingCustom ObjectsMaster-Detail RelationshipSchema Design - Question #73Data Modeling and Management
What should a developer use to obtain the Id and Name of all the Leads. Accounts, and Contacts that hove the company name "Universal Containers"?
SOSLData QueryingMulti-object SearchStandard Objects - Question #74User Interface
Which three code lines are required to create a Lightning component on a Visualforce page? Choose 3 answers
Lightning OutVisualforce IntegrationLightning ComponentsUI Development - Question #75Logic and Process Automation
Which aspect of Apex programming is limited due to multitenancy?
Apex Governor LimitsMultitenancySOQLDatabase Queries - Question #76Testing, Debugging, and Deployment
A development team wants to use a deployment script lo automatically deploy lo a sandbox during their development cycles. Which two tools can they use to run a script that deploys...
Deployment ToolsSFDX CLIVS CodeScripted Deployment - Question #77User Interface
A developer has a Apex controller for a Visualforce page that takes an ID as a URL parameter. How should the developer prevent a cross site scripting vulnerability?
XSS PreventionSecurity Best PracticesVisualforceApex Controller - Question #78Logic and Process Automation
A developer created a new trigger that inserts a Task when a new Lead is created. After deploying to production, an outside integration chat reads task records is periodically repo...
Apex DMLPartial SuccessTransaction ControlError Handling - Question #79Testing, Debugging, and Deployment
A developer creates a new Apex trigger with a helper class, and writes a test class that only exercises 95% coverage of new Apex helper class. Change Set deployment to production f...
Apex Trigger TestingTest CoverageDeployment RequirementsApex Testing - Question #81Logic and Process Automation
A developer considers the following snippet of code: Based on this code, what is the value of x?
Apex VariablesInteger Data TypeBasic OperationsCode Execution - Question #82Logic and Process Automation
A developer is creating a Lightning web component to showa list of sales records. The Sales Representative user should be able to see the commission field on each record. The Sales...
Field-Level Security (FLS)Apex SecurityData FilteringLightning Web Components (LWC) - Question #83Logic and Process Automation
A developer created these three Rollup Summary fields in the custom object, Project__c: The developer is asked to create a new field that shows the ratio between rejected and appro...
Formula fieldsDeclarative logicMaintenance optimizationRollup summary fields - Question #84Logic and Process Automation
The sales management team at Universal Container requires that the Lead Source field of the Lead record be populated when a.. converted. What should be done to ensure that a user p...
Validation RulesLead ConversionData ValidationDeclarative Automation - Question #86Logic and Process Automation
n org has an existing flow that creates an Opportunity with an Update Records element. A developer must update the flow to aiso create a `Contact and store the created Contact's 1D...
Salesforce FlowCreate RecordsFlow ElementsProcess Automation - Question #87Logic and Process Automation
A company has a custom object, Sales, }_Help_Request__c, that has a Lookup relationship to Opportunity. The Seles Help Request__c has a mumber field, Number_ct_Hours__c, that repre...
Record-Triggered FlowLookup RelationshipsRoll-up Summary LimitationsDeclarative Automation - Question #89Logic and Process Automation
niversal Containers (UC) processes orders in Salesforce in a custom object, Crder_c. They also allow sales reps to upload CSV files with of orders at a time. A developer is tasked...
Asynchronous ApexCalloutsTriggersIntegration - Question #90User Interface
A developer wants to improve runtime performance of Apex calls by caching result on the client. What is the most efficient way to implement this and follow best practices?
ApexCachingPerformance OptimizationLightning Web Components - Question #91Logic and Process Automation
In the following example, which starting context will mymethod execute it is invoked?
Apex SharingExecution ContextMethod ContextSharing Inheritance - Question #92Logic and Process Automation
A developer at Universal Containers is taked with implementing a new Salesforce application that bwill be maintained completely by their company's Salesforce admiknistrator. Which...
Declarative AutomationValidation RulesRecord-Triggered FlowsAdmin-Maintained Logic - Question #93Logic and Process Automation
When a user edits the Postal Code on an Account, a custom Account text field named ''Timezone'' must be updated based on the values another custom object object called. What is the...
Flow BuilderRecord-Triggered FlowProcess AutomationCross-Object Data Update - Question #94Logic and Process Automation
A company wants to implement a new call center process for handling customer service calls. It requires service reps to ask for the caller's account number before proceeding with t...
Flow BuilderProcess AutomationScreen FlowUser Guidance - Question #95Logic and Process Automation
Uniersal Containers (UC) is developing a process for their sales teams that requires all sales reps to go through a set of scripted steps with each new customer they create. In the...
Apex IntegrationAsynchronous ApexFlow IntegrationInvocable Methods - Question #96Logic and Process Automation
Universal Container wants Opportunities to no longer be editable when itreaches the Closed/Won stage. Which two strategies can a developer use to accomplish this? Choose2 answer
Validation RulesApex TriggersRecord Editing ControlProcess Automation - Question #97Logic and Process Automation
Universal Container* decides to use purely declarative development to build out a new Salesforce application. Which two options can be used to build out the business logic layer fo...
Declarative AutomationBusiness LogicSalesforce FlowValidation Rules - Question #98Logic and Process Automation
Ursa Major Solar has a custom object, serviceJob-o, with an optional Lookup field to Account called partner-service-Provider_c. The TotalJobs-o field on Account tracks the total nu...
Record-triggered FlowLookup RelationshipsCross-Object UpdatesDeclarative Automation - Question #99User Interface
Which two scenarios require an Apex method to be called imperatively from a Lightning web component? Choose 2 answer
LWC Apex IntegrationImperative Apex CallWire Service@AuraEnabled(cacheable=true) - Question #100Testing, Debugging, and Deployment
A developer needs to create a baseline set of data (Account, Contacts, Products, Assets) for an entire suite allowing them to test independent requirements for various types of Sal...
Apex TestingTest Data@TestSetupUnit Tests - Question #101Logic and Process Automation
A developer has identified a method in an Apex class that performs resource intensive actions in memory by iterating over the result set of a SOQL statement on the account. The met...
Governor LimitsApex DMLTransaction ControlSavepoint API - Question #102Logic and Process Automation
When a user edits the postal Code on an Account, a custom Account text field named. Timezone` must be updated based on the values in a PostalCodeToTimezone_c custom ogject. Which t...
Record-triggered flowApex TriggerProcess AutomationField Update - Question #103Testing, Debugging, and Deployment
A developer created this Apex trigger that calls MyClass,myStartmethod: The developer creates a test method that calls MyClase,myStartmethod directly, resulting in 81% overall code...
Apex TestingCode CoverageDeploymentApex Triggers - Question #104Logic and Process Automation
Which statement describes the execution order when trigger are associated to the same object and event?
Apex TriggersTrigger Execution OrderPlatform Automation - Question #105Testing, Debugging, and Deployment
What writing an Apex class, a developer warts to make sure thai all functionality being developed Is handled as specified by the requirements. Which approach should the developer u...
Apex TestingUnit TestingTest ClassesCode Verification - Question #106User Interface
Refer to the code snippet below: When a Lightning web component is rendered, a list of apportunities that match certain criteria shopuld be retrievved from the database and display...
ApexLightning Web ComponentsAuraEnabledData Retrieval