Certified Platform Developer II Exam QuestionsBrowse all questions from this exam

Certified Platform Developer II Exam - Question 181


Consider the following code snippet, depicting an Aura component:

Which two interfaces can the developer implement to make the component available as a quick action? (Choose two.)

Show Answer
Correct Answer: BD

To make an Aura component available as a quick action, the developer can implement the 'force:lightningQuickAction' or 'force:lightningQuickActionWithoutHeader' interfaces. The 'force:lightningQuickAction' interface is used to make a component available specifically for Lightning Experience quick actions. The 'force:lightningQuickActionWithoutHeader' interface, on the other hand, is used if the developer wants to exclude the header typically shown in quick actions. Both of these interfaces ensure the component can be used as a quick action, either with or without the header.

Discussion

2 comments
Sign in to comment
mageshrr
Oct 25, 2023

The correct answer is A & B, in fact, you can't implement both force:lightningQuickAction (B) and force:lightningQuickActionWithoutHeader (D) in the same Component.

MrWilford
May 30, 2024

In fact, it could be A & D as well. You can't implement both force:lightningQuickAction and force:lightningQuickActionWithoutHeader in the same component, that's right, but force:hasRecordId can be used with both force:lightningQuickActionWithoutHeader and force:lightningQuickAction. How will you make the choice then? B & D should be correct.

code_breaker_27Options: BD
Sep 19, 2024

The question is about which two possible options can the developer use. I'm assuming its not asking the developer to use both at the same time.