PDI Demo
PDI Demo
PDI Demo
Salesforce PDI
Version Demo
https://dumpsarena.com
[email protected]
QUESTION NO: 1
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 Account is created or updated. The field update in the workflow rule is
configured to not re-evaluate workflow rules.
What is the value of the count field if an Account is inserted with an initial value of zero, assuming no other automation logic
is implemented on the Account?
A. 1
B. 3
C. 4
D. 2
ANSWER: D
QUESTION NO: 2
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 across multiple Visualforce pages and from a parameter on the initial
URL.
Which three statements are useful inside the unit test to effectively test the custom controller? Choose 3 answers
A. insert pageRef.
B. Test.setCurrentPage(pageRef);
D. ApexPages.CurrentPage().getParameters().put('input\’, 'TestValue');
ANSWER: B D E
QUESTION NO: 3
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 answers
ANSWER: A B
QUESTION NO: 4
Which three steps allow a custom SVG to be included in a Lightning web component? Choose 3 answers
ANSWER: A B C
QUESTION NO: 5
ANSWER: A
what are the methods used to show input in classic and lightning ?
QUESTION NO: 7
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 to a sandbox? Choose 2 answers
B. SFDX CLI
C. Change Sets
D. Developer Console
ANSWER: A B
QUESTION NO: 8
What are three considerations when using the @InvocableMethod annotation in Apex?
Choose 3 answers
B. A method using the @InvocableMethod annotation can have multiple input parameters.
E. Only one method using the @InvocableMethod annotqation can be defined per Apex class.
ANSWER: C D E
QUESTION NO: 9
Which Lightning code segment should be written to declare dependencies on a Lightning component, c:accountList, that is
used in a Visualforce page?
A)
C)
D)
A. Option A
B. Option B
C. Option C
D. Option D
ANSWER: A
QUESTION NO: 10
The developer creates a test class with a test method that calls MyClass.mystaticMethod, resulting in 81% overall code
coverage. What happens when the developer tries to deploy the trigger and two classes to production, assuming no other
code exist?
A. The deployment fails because the Apex trigger has no code coverage.
B. The deployment fails because no assertions were made in the test method.
C. The deployment passes because the Apex code has required (>75%) code coverage.
D. The deployment passes because both classes and the trigger were included in the deployment.
QUESTION NO: 11
A developer needs to confirm that an Account trigger is working correctly without changing the organization’s data. What
would the developer do to test the Account trigger?
A. Use the Test menu on the developer Console to run all test classes for the account trigger.
B. Use the New button on the Salesforce Accounts Tab to create a new Account record.
C. Use the Open Execute Anonymous feature on the Developer Console to run an ‘insert Account’ DML statement.
D. Use Deply from the Force.com IDE to deploy an ‘insert Account’ Apex class.
ANSWER: A
QUESTION NO: 12
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 Apex transaction?
ANSWER: C
QUESTION NO: 13
A. $Lightning.createComponent
B. <apex:slds/>
C. $Lightning.useComponent
D. $Lightning.use
B. <apex:includeLightning/>
ANSWER: A B
QUESTION NO: 14
An after trigger on the Account object performs a DML update operation on all of the child Opportunities of an Account.
There are no active triggers on the Opportunity object, yet a “maximum trigger depth exceeded” error occurs in certain
situations.
Which two reasons possibly explain the Account trigger firing recursively? (Choose two.)
A. Changes to Opportunities are causing cross-object workflow field updates to be made on the Account.
B. Changes to Opportunities are causing roll-up summary fields to update on the Account.
C. Changes are being made to the Account during an unrelated parallel save operation.
D. Changes are being made to the Account during Criteria Based Sharing evaluation.
ANSWER: A B
QUESTION NO: 15
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 reporting errors.
Which change should the developer make to ensure the integration is not affected with minimal impact to business logic?
ANSWER: C