nerdexam
Salesforce

PDII · Question #280

Refer to the markup below: A Lightning web component displays the Account name and two custom fields out of 275 that exist on the object. The custom fields are correctly declared and populated…

The correct answer is D. Replace layouts-type="Full" with fields={fields}. See the full explanation below for the reasoning.

Question

Refer to the markup below:

A Lightning web component displays the Account name and two custom fields out of 275 that exist on the object. The custom fields are correctly declared and populated. However, the developer receives complaints that the component performs slowly. What can the developer do to improve the performance?

Exhibit

PDII question #280 exhibit

Options

  • AAdd density="compact" to the component.
  • BReplace layout-type="Full" with layout-type="Partial".
  • CAdd cache="true" to the component.
  • DReplace layouts-type="Full" with fields={fields}.

How the community answered

(51 responses)
  • A
    6% (3)
  • B
    8% (4)
  • C
    16% (8)
  • D
    71% (36)

Community Discussion

No community discussion yet for this question.

Full PDII Practice