PDI Exam Questions
223 real PDI exam questions with expert-verified answers and explanations. Page 3 of 5.
- Question #107Testing, Debugging, and Deployment
A developer is writing tests for a class and needs to insert records to validate functionality. Which annotation method should be used to create record for every method in the test...
Apex TestingTest Data Setup@TestSetupUnit Testing - Question #108Logic and Process Automation
Universal Container wants Opportunities to no longer be editable when reaching the Clousd stage. How should a develoiper accomplish this?
Validation RulesDeclarative AutomationConditional LogicData Integrity - Question #109Logic and Process Automation
A developer must write anApex method that will be called from a lightning component. The method may delete an Account stored in the accountRec variable. Which method should a devel...
Apex SecurityCRUD/FLSSchema Methods - Question #110Data Modeling and Management
The Job_Application__c custom object has a field that is a Master-Detail relationship to the Contact object, where the Contact object is the Master. As part of a feature implementa...
SOQLRelationship QueriesMaster-DetailCustom Objects - Question #111Logic and Process Automation
A developer must implement a CheckPaymentProcessor class that provides check processing payment capabilities that adhere to what defined for payments in the PaymentProcessor interf...
Apex ClassesInterfacesObject-Oriented ProgrammingApex Syntax - Question #112Data Modeling and Management
Universal Containers wants to back up all of the data and attachments in its Salesforce org once month. Which approach should a developer use to meet this requirement?
Data BackupData ExportScheduled JobsSalesforce Administration - Question #113User Interface
What can be used to override the Account's standard Edit button for Lightning Experience?
Lightning ExperienceButton OverrideLightning ComponentStandard Actions - Question #114Testing, Debugging, and Deployment
When using SalesforceDX, what does a developer need to enable to create and manage scratch orgs?
Salesforce DXScratch OrgsDev HubDeployment Tools - Question #115Testing, Debugging, and Deployment
Refer to the following code snippet for an environment that has more than 200 Accounts belonging to the Technology' industry: which three statements are accurate about debug logs?...
Debug LogsApex DebuggingSalesforce LoggingTroubleshooting - Question #116Logic and Process Automation
Universal Containers implemented a private sharing model for the Account object. A custom Account search tool was developed with Apex to help sales representatives find accounts th...
ApexSecuritySharingwith sharing keyword - Question #117Logic and Process Automation
What are two use cases for executing Anonymous Apex code? Choose 2 answers
Anonymous ApexBatch ApexScheduled ApexApex Execution - Question #118User Interface
A custom Visualforce controller calls the ApexPages,addMessage () method, but no messages are rendering on the page. Which component should be added to the Visualforce page to disp...
VisualforceApexPages.addMessagePage MessagesUI Components - Question #119Data Modeling and Management
When importing and exporting data into Salesforce, which two statements are true? Choose 2 answers
Data Import/ExportSalesforce Data ToolsSandbox StorageBulk API - Question #120Testing, Debugging, and Deployment
Where are two locations a developer can look to find information about the status of asynchronous or future methods? Choose 2 answers
Asynchronous ApexMonitoringApex JobsDebugging - Question #121Logic and Process Automation
Cloud Kicks Fitness, an ISV Salesforce partner, is developing a managed package application. One of the application modules allows the user to calculate body fat using the Apex cla...
Apex Access ModifiersManaged PackagesApex Visibility - Question #122Logic and Process Automation
A developer writes a trigger on the Account object on the before update event that increments a count field. A workflow rule also increments the count field every time that an Acco...
Salesforce Order of ExecutionWorkflow RulesApex TriggersField Updates - Question #123Logic and Process Automation
Given the following code snippet, that is part of a custom controller for a Visualforce page: In which two ways can the try/catch be enclosed to enforce object and field-level perm...
Apex SecurityCRUD/FLS EnforcementSchema ClassDML Operations - Question #124Testing, Debugging, and Deployment
Which salesforce org has a complete duplicate copy of the production org including data and configuration?
Salesforce SandboxesSandbox TypesFull SandboxProduction Org - Question #125Logic and Process Automation
A Salesforce Administrator is creating a record-triggered flow. When certain criteria are met, the flow must call an Apex method to execute complex validation involving several typ...
Apex Invocable MethodSalesforce FlowFlow and Apex IntegrationApex Annotations - Question #126Logic 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 object. What...
Apex TriggersField UpdatesCross-Object LookupsProcess Automation - Question #127Data Modeling and Management
The values 'High', 'Medium', and 'Low' are Identified as common values for multiple picklist across different object. What is an approach a developer can take to streamline mainten...
Global Picklist Value SetPicklistData ModelingField Maintenance - Question #128User Interface
In terms of the MVC paradigm, what are two advantages of implementing the layer of a Salesforce application using Aura Component-based development over Visualforce? Choose 2 answer...
Aura ComponentsVisualforceComponent-based developmentReusability - Question #129Logic and Process Automation
A lead developer creates an Apex interface called "Laptop". Consider the following code snippet: How can a developer use the Laptop Interface within the Silvertaptop class?
ApexObject-Oriented Programming (OOP)Class Inheritanceextends keyword - Question #131Logic and Process Automation
Refer to the following Apex code: What is the value of x when it is written to the debug log?
ApexLoopsConditional statementsLoop control - Question #132Logic and Process Automation
Which action causes a before trigger to fire by default for Accounts?
Apex TriggersDML OperationsData LoaderBulk API - Question #133User Interface
A developer must provide custom user interfaces when users edit a Contact in either Salesforce Classic or Lightning Experience. What should the developer use to override the Contac...
Button OverridesVisualforceLightning ComponentsUI Customization - Question #134Logic and Process Automation
A developer wants to mark each Account in a List<Account> as either or Inactive based on the LastModified field value being more than 90 days. Which Apex technique should the devel...
Apex Control FlowFor LoopIf/Else StatementList Processing - Question #135Testing, Debugging, and Deployment
What are three characteristics of change set deployments? Choose 3 answers
Change SetsDeploymentMetadataCustom Settings - Question #136Logic and Process Automation
A developer must create a DrawList class that provides capabilities defined in the Sortable and Drawable interfaces. public interface Sortable { void sort(); } public interface Dra...
ApexInterfacesObject-Oriented ProgrammingClass Implementation - Question #137Testing, Debugging, and Deployment
A developer wants to get access to the standard price book in the org while writing a test class that covers an OpportunityLineItem trigger. Which method allows access to the price...
Apex TestingTest Data SetupStandard Price BookSystem.Test Class - Question #138Testing, Debugging, and Deployment
A team of developers is working on a source-driven project that allows them to work independently, with many different org configurations. Which type of Salesforce orgs should they...
Scratch OrgsSalesforce DXDevelopment EnvironmentsOrg Strategy - Question #139User Interface
A developer created a Lightning web component called statusComponent to be inserted into the Account record page. Which two things should the developer do to make the component ava...
Lightning Web Components (LWC)LWC Metadatajs-meta.xmlLightning Record Page - Question #140User Interface
A developer is migrating a Visualforce page into a Lightning web component. The Visualforce page shows information about a single record. The developer decides to use Lightning Dat...
Lightning Data ServiceLightning Web ComponentsSecurityField-Level Security - Question #141Data Modeling and Management
A developer has the following requirements: - Calculate the total amount on an Order. - Calculate the line amount for each Line Item based on quantity selected and price. - Move Li...
Master-Detail RelationshipRoll-up SummaryReparentingData Modeling - Question #142User Interface
A developer created a child Lightning web component nested inside a parent Lightning web component, parent component needs to pass a string value to the child component. In which t...
Lightning Web Components (LWC)Component CommunicationPublic PropertiesCustom Events - Question #143Logic and Process Automation
The following automations already exist on the Account object: - A workflow rule that updates a field when a certain criteria is met - A custom validation on a field - A How that u...
Apex TriggersOrder of ExecutionTrigger RecursionSalesforce Automation - Question #144Logic and Process Automation
The Account object in an organization has a master detail relationship to a child object called Branch. The following automations exist: - Rollup summary fields - Custom validation...
Salesforce Order of ExecutionTriggersRollup Summary FieldsAutomation Interactions - Question #145Logic and Process Automation
Einstein Next Best Action Is configured at Universal Containers to display recommendations to internal users on the Account detail page. If the recommendation is approved, a new op...
Apex CalloutsAsynchronous ApexApex AnnotationsNext Best Action - Question #146Testing, Debugging, and Deployment
What are three ways for 2 developer to execute tests in an org? Choose 3 answers
Apex TestingTest Execution MethodsSalesforce CLITooling API - Question #147Testing, Debugging, and Deployment
A developer created a trigger on the Account object and wants to test if the trigger is properly bulklfield. The developer team decided that the trigger should be tested with 200 a...
Apex TestingTest DataStatic ResourcesTest.loadData() - Question #148Testing, Debugging, and Deployment
A developer is creating a test coverage for a class and needs to insert records to validate functionality. Which method annotation should be used to create records for every method...
Apex TestingTest Data@TestSetup - Question #150Testing, Debugging, and Deployment
What should a developer use to script the deployment and unit test execution as part of continuous integration?
Developer ConsoleUnit TestingDeploymentContinuous Integration - Question #151Testing, Debugging, and Deployment
For which three items can 2 trace flag be configured? Choose 3 answers
Trace FlagsDebug LogsApex DebuggingDebugging Tools - Question #152User Interface
Which three steps allow a custom SVG to be included in a Lightning web component? Choose 3 answers
Lightning Web ComponentsStatic ResourcesSVGUI Development - Question #153User Interface
How does the Lightning Component framework help developers implement solutions faster?
Lightning ComponentsResponsive DesignUI DevelopmentDevelopment Efficiency - Question #154Testing, Debugging, and Deployment
What should a developer do to check the code coverage of a class after running all tests?
Apex TestingCode CoverageDeveloper Console - Question #155Logic and Process Automation
Cloud kicks has a muli-screen flow 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 list...
Apex CalloutsFlow IntegrationExternal ServicesReal-time Data Retrieval - Question #157User Interface
Since Aura application events follow the traditional publish-subscribe model, which method is used to fire an event?
Aura EventsComponent Communicationfire() methodPublish-Subscribe Model - Question #158Testing, Debugging, and Deployment
What should a developer do to check the code coverage of a class after running all tests?
Code CoverageApex TestingSalesforce Setup UI - Question #159Testing, Debugging, and Deployment
How should a developer write unit tests for a private method in an Apex class?
Apex testingUnit testsTestVisiblePrivate methods