CSA Lightning Components 4 — Questions and Answers
Question 1: Which Lightning App Builder page type would you create to serve as the landing page for a custom Lightning app?
- Home Page
- App Page (Correct answer)
- Record Page
- Community Page
Correct answer: App Page
An App Page is designed to serve as the main landing page for a custom Lightning app, supporting single or two-column layouts.
Question 2: When a Lightning component is added to a Flow screen, which property must be configured to allow data to pass from the Flow into the component?
- targetConfigs with propertyType Input (Correct answer)
- flowInputs attribute in metadata
- flowContext variable binding
- API-accessible property in the component
Correct answer: targetConfigs with propertyType Input
In the .js-meta.xml file, targetConfigs with a property of type 'input' allows the Flow to pass data into the Lightning Web Component.
Question 3: What is the correct way to override a standard Salesforce action (like 'New' or 'Edit') with a Lightning component?
- Replace the action in Setup > Buttons, Links, and Actions
- Use a custom override in the Object Manager's Buttons, Links, and Actions section (Correct answer)
- Deploy the component with the action's API name as the component name
- Configure the override in the App Builder settings
Correct answer: Use a custom override in the Object Manager's Buttons, Links, and Actions section
Standard action overrides are configured in Object Manager under Buttons, Links, and Actions, where you can select a Lightning component as the override.
Question 4: Which scenario correctly describes when to use a Lightning App Page versus a Lightning Home Page?
- App Pages are for admins; Home Pages are for end users
- App Pages are customized per Lightning app; Home Pages are shared across all apps (Correct answer)
- App Pages support more components; Home Pages only support standard components
- App Pages require developer licenses; Home Pages do not
Correct answer: App Pages are customized per Lightning app; Home Pages are shared across all apps
Lightning App Pages are specific to individual Lightning apps, while Home Pages can be shared across multiple apps and assigned by profile.
Question 5: An administrator wants to add a custom Lightning component to the Salesforce mobile app. What must be true about the component?
- It must be built using Aura, not LWC
- Its metadata must include 'phone' as a supported target (Correct answer)
- It requires a Mobile Publisher license
- It must be a global component with no attributes
Correct answer: Its metadata must include 'phone' as a supported target
For a Lightning component to appear in the Salesforce mobile app, its .js-meta.xml must specify 'lightning__AppPage', 'lightning__RecordPage', or similar targets that include phone support.
Question 6: What does the 'masterLabel' property in a Lightning Web Component's .js-meta.xml file define?
- The API name used in Apex code
- The display name shown in Lightning App Builder (Correct answer)
- The component's default CSS class
- The parent component's identifier
Correct answer: The display name shown in Lightning App Builder
The masterLabel property sets the human-readable name that appears in the Lightning App Builder component panel.
Question 7: Which Lightning component feature enables an administrator to configure component properties directly in the App Builder without writing code?
- Design attributes / targetConfigs properties (Correct answer)
- Apex controllers with @AuraEnabled
- Static resources
- Connected Apps
Correct answer: Design attributes / targetConfigs properties
Design attributes (Aura) and targetConfigs properties (LWC) expose component properties as configurable fields in the Lightning App Builder's property panel.
Which Lightning App Builder page type would you create to serve as the landing page for a custom Lightning app?