nerdexam
Salesforce

PDII · Question #269

Refer to the code snippet below: When a Lightning web component is rendered, a list of opportunities that match certain criteria should be retrieved from the database and displayed to the end-user…

The correct answer is A. The method must specify the (cacheable=true) attribute. C. The method must be annotated with the @AuraEnabled annotation. E. The method cannot mutate the result set retrieved from the database. See the full explanation below for the reasoning.

Question

Refer to the code snippet below:

When a Lightning web component is rendered, a list of opportunities that match certain criteria should be retrieved from the database and displayed to the end-user. Which three considerations must the developer implement to make the fetchOpportunities method available within the Lightning web component? (Choose three.)

Exhibit

PDII question #269 exhibit

Options

  • AThe method must specify the (cacheable=true) attribute.
  • BThe method must specify the (continuation=true) attribute.
  • CThe method must be annotated with the @AuraEnabled annotation.
  • DThe method must be annotated with the @InvocableMethod annotation.
  • EThe method cannot mutate the result set retrieved from the database.

How the community answered

(49 responses)
  • A
    73% (36)
  • B
    16% (8)
  • D
    10% (5)

Community Discussion

No community discussion yet for this question.

Full PDII Practice