PDI Exam Questions
223 real PDI exam questions with expert-verified answers and explanations. Page 5 of 5.
- Question #218User Interface
Consider the following code snippet for a Visualforce page that is launched using a Custom Button on the Account detail page layout. When the Save button is pressed the developer m...
VisualforceController ExtensionValidationPage Navigation - Question #219Logic and Process Automation
A developer creates a batch Apex job to update a large number of records, and receives reports of the job timing out and not completing. What is the first step towards troubleshoot...
Batch ApexAsynchronous ApexJob MonitoringTroubleshooting - Question #220User Interface
Which annotation should a developer use on an Apex method to make it available to be wired to a property in a Lightning web component?
Lightning Web ComponentsApex Annotations@wire serviceAuraEnabled - Question #221Data Modeling and Management
What is an example of a polymorphic lookup field in Salesforce?
Polymorphic LookupObject RelationshipsStandard FieldsData Model - Question #222User Interface
A developer is tasked with building a custom Lightning web component to collect Contact information. The form will be shared among many different types of users in the org. There a...
Lightning Web ComponentsField-Level Security (FLS)User Interface ComponentsData Security - Question #223User Interface
In terms of the MVC paradigm, what are two advantages of implementing the view layer of a Salesforce application using Lightning Web Component-based development over Visualforce? C...
Lightning Web ComponentsVisualforceComponent-based developmentMVC paradigm - Question #224User Interface
Which code displays the contents of a Visualforce page as a PDF?
VisualforcePDF RenderingPage AttributesUI Development - Question #225Salesforce Fundamentals
Which statement generates a list of Leads and Contacts that have a field with the phrase 'ACME'?
SOSLApex Query LanguageData RetrievalSearch - Question #226Data Modeling and Management
A software company is using Salesforce to track the companies they sell their software to in the Account object. They also use Salesforce to track bugs in their software with a cus...
Many-to-Many RelationshipJunction ObjectData ModelingCustom Objects - Question #227Logic and Process Automation
A developer deployed a trigger to update the status__c of Assets related to an Account when the Account''s status changes and a nightly integration that updates Accounts in bulk ha...
Apex TriggersGovernor LimitsBulkificationApex Best Practices - Question #228Logic and Process Automation
A developer creates a custom exception as shown below: public class ParityException extends Exception {} What are two ways the developer can fire the exception in Apex? Choose 2 an...
Apex ExceptionsCustom ExceptionsThrow KeywordError Handling - Question #229Logic and Process Automation
Which statement should be used to allow some of the records in a list of records to be inserted if others fail to be inserted?
Apex DMLDatabase MethodsPartial SuccessError Handling - Question #230Testing, Debugging, and Deployment
A developer is asked to write helper methods that create test data for unit tests. What should be changed in the Testvtils class so that its methods are only usable by unit test me...
Apex Testing@IsTestTest Utility ClassesTest Methods - Question #231User Interface
Which code in a Visualforce page and/or controller might present a security vulnerability?
VisualforceSecurity VulnerabilitiesCross-Site Scripting (XSS)apex:outputText - Question #232Salesforce Fundamentals
What are two benefits of using declarative customizations over code? Choose 2 answers
Declarative DevelopmentPlatform CustomizationDevelopment Best PracticesMaintenance - Question #233Logic and Process Automation
A developer identifies the following triggers on the Expense __c object: The triggers process before delete, before insert, and before update events respectively. Which two techniq...
Apex TriggersTrigger Best PracticesHandler ClassesCode Refactoring - Question #234Logic and Process Automation
Universal Hiring uses Salesforce to capture job applications. A salesforce administrator created two custom objects; Job__c acting as the maste object, Job _Application__c acting a...
Record-Triggered FlowCross-Object RelationshipsMulti-Select PicklistData Synchronization - Question #235Testing, Debugging, and Deployment
A developer created this Apex trigger that calls Myclass.myStaticMethod: The developer creates a test class with a test method that calls MyClass.myStaticMethod directly, resulting...
Apex TriggerCode CoverageDeploymentApex Testing - Question #236User Interface
Universal Containers needs to create a custom user interface component that allows users to enter information about their accounts. The component should be able to validate the use...
Lightning Web Components (LWC)Custom UI ComponentsInput ValidationSalesforce Platform Development - Question #237Logic and Process Automation
When the code executes, a DML exception is thrown. How should a developer modify the code to ensure exceptions are handled gracefully?
Exception HandlingDMLApexError Handling - Question #238Logic and Process Automation
Considering the following code snippet: When the code executes a DML exception is thrown. How should the developer modify the code to ensure exceptions are handled gracefully?
DML exception handlingtry/catchApex programmingError management - Question #239Logic and Process Automation
A developer wrote the following two classes: The StatusFetcher class successfully compiled and saved. However, the Calculator class has a compile time error. How should the develop...
ApexAccess ModifiersMethod VisibilityOOP Concepts - Question #240Logic and Process Automation
The code below deserializes input into a list of Accounts. Which code modification should be made to insert the Accounts so that field-level security is respected?
Field-Level Security (FLS)Apex SecuritySharing KeywordsDML Operations