What are three reasons that a developer should write Jest tests for Lightning web components?
Choose 3 answers
A. To test how multiple components work together
B. To verify that events fire when expected
C. To test basic user interaction
D. To test a component's non-public properties.
E. To verify the DOM output of a component
正解:C,D,E
解説: (Pass4Test メンバーにのみ表示されます)
質問 2:
A developer creates a Lightning web component to allow a Contact to be quickly entered. However, error messages are not displayed.

Which component should the developer add to the form to display error messages?
A. lightning-messages
B. lightning-error
C. aura:messages
D. apex:messages
正解:A
解説: (Pass4Test メンバーにのみ表示されます)
質問 3:
A developer has a test class that creates test data before making a mock callout but now receives a 'You have uncommitted work pending. Please commit or rollback before calling out' error.
Which step should be taken to resolve the error?
A. Ensure the records are Inserted before the Tezt.startTest() statement and the mock callout occurs within a method annotated with @testSetup.
B. Ensure the records are inserted before the Test.startTess() statement and the mock callout occurs after the Test. Startest().
C. Ensure both the Insertion and mock callout occur after the I==L. stoptest_().
D. Ensure both the insertion and mock callout occur after the Test.startTest().
正解:B
解説: (Pass4Test メンバーにのみ表示されます)
質問 4:
A developer created 2 class that implements the Queueable Interface, as follows:

As part of the deployment process, the developer is asked to create a corresponding test class.
Which two actions should the developer take to successfully execute the test class?
Choose 2 answers
A. Ensure the running user of the test class has, at I the View All permission on the Order object.
B. Implement Test. isRunningTest() to prevent chaining jobs during test execution.
C. Enclose System.enqueueJob(new OrderQueueableJob ()] within Tess. and Test .stopTest (1.
D. Implement seeAllData=True to ensure the Queueable job is able to run in bulk mode.
正解:B,C
解説: (Pass4Test メンバーにのみ表示されます)
質問 5:
Salesforce users consistently receive a "Maximum trigger depth exceeded" error when saving an Account.
How can a developer fix this error?
A. Modify the trigger to use the L=MultiThread=true annotation,
B. Use a helper class to set a Boolean to TRUE the first time a trigger 1s fired, and then modify the trigger ta only fire when the Boolean is FALSE.
C. Convert the trigger to use the 3suzure annotation, and chain any subsequent trigger invocations to the Account object.
D. Split the trigger logic into two separate triggers.
正解:B
解説: (Pass4Test メンバーにのみ表示されます)
質問 6:
A developer gets an error saying 'Maximum Trigger Depth Exceeded.'
What is a possible reason to get this error message?
A. There are numerous DML operations in the trigger logic.
B. The SOQL governor limits are being hit.
C. A trigger is recursively invoked more than 16 times.
D. A flow trigger was included too many times.
正解:C
解説: (Pass4Test メンバーにのみ表示されます)
質問 7:
Given the following containment hierarchy:
What is the correct way to communicate the new value of a property named ''passthrough'' to my-parent- component if the property is defined within my-child-component?
A.

B.

C.

D.

正解:D
解説: (Pass4Test メンバーにのみ表示されます)
質問 8:
Consider the Apex class below that defines a RemoteAction used on 2 Visualforce search page.

Which code snippet will assert that the remote action returned the correct Account?
A.

B.

C.

D.

正解:C
解説: (Pass4Test メンバーにのみ表示されます)
Umemiya -
このPDII問題集は読むのもあまり苦がなく、とにかくやる気が起こるテキストです。