PDI Exam Questions
223 real PDI exam questions with expert-verified answers and explanations. Page 4 of 5.
- Question #160User Interface
What are three capabilities of the <ltng : require> tag when loading JavaScript resources in Aura components? Choose 3 answers
Aura ComponentsJavaScript Loadingltng:require tagClient-side Scripting - Question #161Logic and Process Automation
An org has an existing Flow that creates an Opportunity with an Update Records element. A developer update the Flow to also create a Contact and store the created Contact's ID on t...
Salesforce FlowFlow ElementsRecord CreationProcess Automation - Question #162User Interface
Which three resources in an Azure Component can contain JavaScript functions?
Aura ComponentsJavaScriptClient-Side LogicComponent Architecture - Question #163Data Modeling and Management
A custom picklist field, Food_Preference__c, exist on a custom object. The picklist contains the following options: 'Vegan','Kosher','No Preference'. The developer must ensure a va...
Field PropertiesData IntegrityPicklist FieldsDeclarative Configuration - Question #164Data Modeling and Management
Universal Container(UC) wants to lower its shipping cost while making the shipping process more efficient. The Distribution Officer advises UC to implement global addresses to allo...
Data ModelingCustom ObjectsMaster-Detail RelationshipsObject Relationships - Question #165Logic and Process Automation
What are three considerations when using the @InvocableMethod annotation in Apex? Choose 3 answers
ApexInvocable MethodsApex AnnotationsFlow Integration - Question #166Logic and Process Automation
which statement is true regarding execution order when triggers are associated to the same object and event?
Apex TriggersTrigger Execution OrderAutomationSalesforce Best Practices - Question #167Logic and Process Automation
A developer must create a CreditcardPayment class that provides an implementation of an existing Payment class. Public virtual class Payment { public virtual void makePayment(Decim...
ApexClassesInheritanceOOP - Question #168Testing, Debugging, and Deployment
A develop completed modification to a customized feature that is comprised of two elements: Apex trigger Trigger handler Apex class What are two factors that the developer must tak...
Apex DeploymentCode CoverageApex TriggersTest Classes - Question #169Logic and Process Automation
A developer is debugging the following code to determinate why Accounts are not being created Account a = new Account(Name = 'A'); Database.insert(a, false); How should the code be...
Apex DMLError HandlingSaveResultDebugging Apex - Question #170Logic and Process Automation
Universal Containers wants to automatically assign new cases to the appropriate support representative based on the case origin. They have created a custom field on the Case object...
Case AssignmentApex TriggersProcess Automation - Question #171Testing, Debugging, and Deployment
A team of many developers work in their own individual orgs that have the same configuration as the production org. Which type of org is best suited for this scenario?
Sandbox typesDevelopment environmentsOrg strategyApplication Lifecycle Management - Question #172Salesforce Fundamentals
Universal Containers wants to assess the advantages of declarative development versus programmatic customization for specific use cases in its Salesforce implementation. What are t...
Declarative DevelopmentProgrammatic CustomizationSalesforce SetupApex Testing - Question #173Data Modeling and Management
What are two benefits of using External IDs? Choose 2 answers
External IDData IntegrationData ManagementSOQL Performance - Question #174Testing, Debugging, and Deployment
What should a developer use to fix a Lightning web component bug in a sandbox?
Lightning Web ComponentsDevelopment ToolsDebuggingVS Code - Question #176Logic and Process Automation
A company decides to implement a new process where every time an Opportunity is created, a follow up Task should be created and assigned to the Opportunity Owner. What is the most...
Apex TriggersRecord AutomationOpportunity ManagementTask Management - Question #178Logic and Process Automation
Managers at Universal Containers want to ensure that only decommissioned containers are able to be deleted in the system. To meet the business requirement a Salesforce developer ad...
Record Deletion LogicSalesforce FlowApex TriggersAutomation Execution Order - Question #179Logic and Process Automation
A credit card company needs to implement the functionality for a service agent to process damaged or stolen credit cards. When the customers call in, the service agent must gather...
Screen FlowProcess AutomationUser InterfaceDeclarative Development - Question #180Salesforce Fundamentals
A developer is designing a new application on the Salesforce platform and wants to ensure it can support multiple tenants effectively. Which design framework should the developer c...
Agile MethodologyApplication DesignScalabilityMaintainability - Question #181Logic and Process Automation
Given the following Apex statement: What occurs when more than one Account is returned by the SOQL query?
Apex SOQLException HandlingQueryExceptionData Retrieval - Question #182User Interface
A developer needs to allow users to complete a form on an Account record that will create a record for a custom object. The form needs to display different fields depending on the...
Dynamic FormsDynamic ActionsCustom PermissionsConditional Visibility - Question #183Data Modeling and Management
A Developer Edition org has five existing accounts. A developer wants to add 10 more accounts for testing purposes. The following code is executed in the Developer Console using th...
Apex DMLData manipulationAccount object - Question #184User Interface
A developer must perform a complex SOQL query that joins two objects in a Lightning component. How can the Lightning component execute the query?
Lightning Web ComponentsSOQLApex IntegrationData Retrieval - Question #185Logic and Process Automation
Universal Containers wants to ensure that all new leads created in the system have a valid email address. They have already created a validation rule to enforce this requirement, b...
Apex TriggersBefore-Save LogicServer-side ValidationError Handling - Question #186Testing, Debugging, and Deployment
What are two considerations for running a flow in debug mode? Choose 2 answers
Flow DebuggingFlow LimitationsProcess Automation - Question #189Logic and Process Automation
What is the result of the following code snippet?
Apex DMLList OperationsBulkification - Question #190Testing, Debugging, and Deployment
What are two considerations for deploying from a sandbox to production? Choose 2 answers
DeploymentCode CoverageUnit TestingApex Triggers - Question #191Data Modeling and Management
What are two characteristics related to formulas? Choose 2 answers
Formula FieldsCustom FieldsCross-Object FormulasField Types - Question #192Testing, Debugging, and Deployment
A developer is alerted to an issue with a custom Apex trigger that is causing records to be duplicated. What is the most appropriate debugging approach to troubleshoot the issue?
Apex DebuggingApex Triggerssystem.debugTroubleshooting - Question #193User Interface
Which Lightning Web Component custom event property settings enable the event to bubble up the containment hierarchy and cross the Shadow DOM boundary?
Lightning Web ComponentsCustom EventsShadow DOMEvent Bubbling - Question #194Logic and Process Automation
A developer created a trigger on a custom object. This custom object also has some dependent pick lists. According to the order of execution rules, which step happens first?
Order of ExecutionClient-side ValidationBrowser ValidationData Save Process - Question #195Logic and Process Automation
Universal Containers decided to transition from Classic to Lightning Experience. They asked a developer to replace a JavaScript button that was being used to create records with pr...
Quick ActionsPrepopulationLightning ExperienceClassic to Lightning Transition - Question #196Data Modeling and Management
How many Accounts will be inserted by the following block of code?
Apex DMLList OperationsData InsertionDatabase Operations - Question #197User Interface
A developer created a Visualforce page and custom controller to display the account type field as shown below. Custom controller code: Visualforce page snippet: The value of the ac...
VisualforceApex ControllerData BindingGetters and Setters - Question #198User Interface
A developer needs to make a custom Lightning Web Component available in the Salesforce Classic user interface. Which approach can be used to accomplish this?
Lightning Web ComponentsSalesforce ClassicVisualforceLightning Out - Question #199User Interface
Universal Containers has a Visualforce page that displays a table of every Container__c being rented by a given Account. Recently this page is failing with a view state limit becau...
VisualforceView StateStandardSetControllerPagination - Question #200User Interface
Which two characteristics are true for Lightning Web Component custom events? Choose 2 answers
LWC Custom EventsEvent PropagationComponent CommunicationEvent Data Payload - Question #201Testing, Debugging, and Deployment
A development team wants to use a deployment script to automatically deploy to a sandbox during their development cycles. Which two tools can they use to run a script that deploys...
Deployment toolsSFDX CLIVS CodeScripted deployment - Question #202Testing, Debugging, and Deployment
Universal Containers has developed custom Apex code and Lightning Components in a Sandbox environment. They need to deploy the code and associated configurations to the Production...
DeploymentSalesforce CLIMetadata DeploymentDevelopment Lifecycle - Question #203User Interface
As part of new feature development, a developer is asked to build a responsive application capable of responding to touch events, that will be executed on stateful clients. Which t...
Aura ComponentsVisualforceResponsive DesignClient-side Development - Question #205User Interface
What can be easily developed using the Lightning Component framework?
Lightning ComponentsLightning PagesUI Development - Question #206Testing, Debugging, and Deployment
While working in a sandbox, an Apex test fails when run in the Test Runner. However, executing the Apex logic in the Execute Anonymous window succeeds with no exceptions or errors....
Apex TestingTest Data IsolationExecute AnonymousSandbox Data - Question #208Data Modeling and Management
Which three data types can a SOQL query return? Choose 3 answers
SOQLData TypesApex Queries - Question #209User Interface
Which three resources in an Aura component can contain JavaScript functions? Choose 3 answers
Aura ComponentsJavaScriptComponent StructureClient-side Logic - Question #210Logic and Process Automation
In the following example, which sharing context will myMethod execute when it is invoked?
Apex SharingInherited SharingApex Securitywith sharing/without sharing - Question #211Testing, Debugging, and Deployment
Developers at Universal Containers (UC) use version control to share their code changes, but they notice that when they deploy their code to different environments they often have...
Continuous IntegrationAutomated TestingDeployment ToolsAnt Migration Tool - Question #214Logic and Process Automation
What is the value of the Trigger.old context variable in a before insert trigger?
Apex TriggersTrigger Context VariablesTrigger.oldBefore Insert Trigger - Question #215Data Modeling and Management
Universal Containers has an order system that uses an Order Number to identify an order for customers and service agents. Order records will be imported into Salesforce. How should...
External IDField DefinitionData ImportUnique Constraint - Question #216Testing, Debugging, and Deployment
A developer at AW Computing is tasked to create the supporting test class for a programmatic customization that leverages records stored within the custom object, Pricing Structure...
Apex TestingTest DataTest Data FactoryTest.loadData - Question #217Logic and Process Automation
A developer created a trigger on the Account object. While testing the trigger, the developer sees the error message 'Maximum trigger depth exceeded'. What could be the possible ca...
Apex TriggersRecursionGovernor LimitsDebugging