Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Salesforce Exam CRT-450 Topic 3 Question 38 Discussion

Actual exam question for Salesforce's CRT-450 exam
Question #: 38
Topic #: 3
[All CRT-450 Questions]

A developer created a child Lightning web component nested inside a parent Lightning web component. The parent component needs to pass a string value to the child component.

In which two ways can this be accomplished?

Choose 2 answers

Show Suggested Answer Hide Answer
Suggested Answer: B

Contribute your Thoughts:

Lashawn
27 days ago
Haha, the Apex controller option (C) is like using a bazooka to swat a fly. Talk about bringing out the big guns for a simple data transfer!
upvoted 0 times
Magnolia
4 days ago
A) The parent component can invoke a public method in the child component.
upvoted 0 times
...
...
Theresia
30 days ago
Hmm, I'm not sure about option A. Invoking a public method in the child component doesn't seem like the best way to pass data. It feels a bit too complicated compared to the other options.
upvoted 0 times
Florencia
4 days ago
B) The parent component can use a public property to pass the data to the child component.
upvoted 0 times
...
Timothy
12 days ago
A) The parent component can invoke a public method in the child component.
upvoted 0 times
...
...
Willard
1 months ago
Yeah, I agree with Arletta. The public property and custom event options make the most sense to me. Option C involving the Apex controller seems a bit overkill for this use case.
upvoted 0 times
Camellia
5 days ago
Yeah, I agree. The public property and custom event options are the way to go for this scenario.
upvoted 0 times
...
Aimee
20 days ago
I agree, and using a custom event to pass the data also seems like a clean solution.
upvoted 0 times
...
Elin
1 months ago
I think using a public property in the parent component is a good way to pass data to the child component.
upvoted 0 times
...
...
Arletta
2 months ago
I think options B and D are the correct ways to pass data from the parent to the child component. Using a public property or a custom event seems like the most straightforward approach.
upvoted 0 times
Azalee
30 days ago
Yes, those options make it easy to pass data between the parent and child components.
upvoted 0 times
...
Alyce
1 months ago
I agree, using a public property or a custom event is the way to go.
upvoted 0 times
...
...
Buddy
2 months ago
I'm not sure about option C and D. Using the Apex controller class seems unnecessary for passing data, and custom events might be more suitable for other purposes.
upvoted 0 times
...
Vallie
2 months ago
I agree with Aleshia. Option B is also valid because using a public property is a common way to pass data between components.
upvoted 0 times
...
Aleshia
2 months ago
I think option A is correct because the parent component can directly call a method in the child component.
upvoted 0 times
...

Save Cancel