nerdexam
Salesforce

PDI · Question #198

A developer needs to make a custom Lightning Web Component available in the Salesforce Classic user interface. Which approach can be used to accomplish this?

The correct answer is C. Use the Lightning Out JavaScript library to embed the Lightning Web Component in a Visualforce. To make a Lightning Web Component accessible within the Salesforce Classic user interface, developers should use Lightning Out, which enables embedding Lightning components onto Visualforce pages.

Submitted by miguelv· Apr 18, 2026User Interface

Question

A developer needs to make a custom Lightning Web Component available in the Salesforce Classic user interface. Which approach can be used to accomplish this?

Options

  • AWrap the Lightning Web Component In an Aura Component and surface the Aura Component as
  • BEmbed the Lightning Web Component is a Visualforce Component and add directly to the page
  • CUse the Lightning Out JavaScript library to embed the Lightning Web Component in a Visualforce
  • DUse a Visualforce page with a custom controller to invoke the Lightning Web Component using a

How the community answered

(51 responses)
  • A
    2% (1)
  • B
    12% (6)
  • C
    78% (40)
  • D
    8% (4)

Why each option

To make a Lightning Web Component accessible within the Salesforce Classic user interface, developers should use Lightning Out, which enables embedding Lightning components onto Visualforce pages.

AWrap the Lightning Web Component In an Aura Component and surface the Aura Component as

Wrapping an LWC in an Aura Component is a pattern for exposing LWC to other Aura components, typically within Lightning Experience, and does not inherently make the component available in Salesforce Classic without the use of Lightning Out applied to the Aura component.

BEmbed the Lightning Web Component is a Visualforce Component and add directly to the page

Lightning Web Components cannot be directly embedded into Visualforce Components because they are based on different underlying frameworks and rendering engines, requiring a bridging mechanism like Lightning Out.

CUse the Lightning Out JavaScript library to embed the Lightning Web Component in a VisualforceCorrect

Lightning Out is a feature designed to embed Lightning Components (both Aura and LWC) into external web applications, including Salesforce Classic Visualforce pages, by providing the necessary JavaScript library to bootstrap the Lightning runtime. This allows modern components to be rendered in older UI contexts.

DUse a Visualforce page with a custom controller to invoke the Lightning Web Component using a

While a Visualforce page is involved, simply using a custom controller to 'invoke' an LWC is not the defined mechanism; Lightning Out provides the specific framework and JavaScript library for embedding LWCs.

Concept tested: Lightning Out for LWC in Classic/Visualforce

Source: https://developer.salesforce.com/docs/component-library/documentation/en/lwc/lwc.use_visualforce_lightning_out

Topics

#Lightning Web Components#Salesforce Classic#Visualforce#Lightning Out

Community Discussion

No community discussion yet for this question.

Full PDI Practice