Salesforce Certified Platform Developer II — Question 68
A Lightning Component functions in preview mode and needs to be used inside a Lightning App Builder page, but it is not available.
What change should be applied to the component?
Answer options
- A. Expose it in the markup using the implements and access attributes.
- B. Delete the component, metadata, and Apex controller and recreate them.
- C. Refresh the sandbox and upgrade it to the latest API version.
- D. Look for errors in the logic in the JavaScript controller.
Correct answer: A
Explanation
The correct answer is A, as exposing the component in the markup with the appropriate implements and access attributes is essential for it to be available in the Lightning App Builder. Option B is incorrect because simply deleting and recreating the component does not address its availability issue. Option C is not relevant to the problem at hand, as refreshing the sandbox and upgrading the API version does not guarantee component accessibility. Option D is also not applicable, as logic errors in the JavaScript controller would not prevent the component from being available for use in the App Builder.