Salesforce Certified Platform Developer (Plat-Dev-201) PDI Question # 48 Topic 5 Discussion

Salesforce Certified Platform Developer (Plat-Dev-201) PDI Question # 48 Topic 5 Discussion

PDI Exam Topic 5 Question 48 Discussion:
Question #: 48
Topic #: 5

An Apex method, getAccounts, that returns a List of Accounts given a searchTerm, is available for Lightning Web Components to use.

What is the correct definition of a Lightning Web Component property that uses the getAccounts method?


A.

@wire(getAccounts, { searchTerm: '$searchTerm' })


B.

@track(getAccounts, '$searchTerm')


C.

@wire(getAccounts, 'searchTerm: $searchTerm')


D.

@wire(getAccounts, '$searchTerm')


Get Premium PDI Questions

Contribute your Thoughts:


Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.