Cyber Monday 2024! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Salesforce Exam Platform Developer II Topic 2 Question 89 Discussion

Actual exam question for Salesforce's Platform Developer II exam
Question #: 89
Topic #: 2
[All Platform Developer II Questions]

Refer to the Aura component below:

A developer receives complaints that the component loads slowly.

Which change can the developer implement to make the component perform faster?

Show Suggested Answer Hide Answer
Suggested Answer: D

Contribute your Thoughts:

Stephania
6 months ago
Ah, the old 'speed up the component by making it load slower' trick. I like your style, option D. Next, we'll optimize the database by deleting all the records!
upvoted 0 times
...
Stefany
6 months ago
Add a change event handler for showContactInfo? Seriously? That's like putting a band-aid on a broken leg. Let's just move the contactInfo into the component and call it a day.
upvoted 0 times
Alline
5 months ago
D) Change the default for showContactInfo to ''False.
upvoted 0 times
...
Daron
5 months ago
B) Move the contents of
upvoted 0 times
...
...
Leslee
6 months ago
Changing the default for showContactInfo to 'False' seems like a lazy solution. Come on, we can do better than that. I vote for option B as well.
upvoted 0 times
Paz
5 months ago
Yeah, changing the default to 'False' does seem like a lazy fix. Let's go with option B for a more efficient solution.
upvoted 0 times
...
Eva
5 months ago
I agree, that seems like the most logical solution. Plus, it's a cleaner way to organize the code.
upvoted 0 times
...
Mirta
5 months ago
Option B is definitely the way to go. Moving the contents of
upvoted 0 times
...
...
Annabelle
6 months ago
I see how each option has merit. Guess it's about the best optimization method.
upvoted 0 times
...
Antonio
6 months ago
Change the type of contactInfo to 'Map'? That's a bold move, but I'm not convinced it'll make a huge difference. I'd go with option B.
upvoted 0 times
Lai
6 months ago
Yeah, that could definitely help speed up the component loading time.
upvoted 0 times
...
Royce
6 months ago
Yeah, that way the component won't have to fetch the data separately, which should speed up the loading time.
upvoted 0 times
...
Delmy
6 months ago
I agree, moving the contents of
upvoted 0 times
...
Marguerita
6 months ago
I agree, moving the contents of
upvoted 0 times
...
Glen
6 months ago
Yeah, that could definitely help speed up the component loading time.
upvoted 0 times
...
Selma
6 months ago
I agree, moving the contents of
upvoted 0 times
...
...
Giovanna
7 months ago
Valid points, all of you. Adding a change event handler, option C might help too by handling updates better.
upvoted 0 times
...
Rosalia
7 months ago
Hmm, I think moving the contents of c:contactInfo into the component would be the way to go. That should speed things up by reducing the number of calls to the server.
upvoted 0 times
Yuki
6 months ago
That sounds like a good idea. It should definitely help speed up the component.
upvoted 0 times
...
Kimberely
7 months ago
B) Move the contents of
upvoted 0 times
...
...
Gregoria
7 months ago
I think changing the default for showContactInfo to 'False' might speed up the initial load. So, D.
upvoted 0 times
...
Della
7 months ago
But doesn't changing the type to 'Map' make it more efficient? Option A sounds good to me.
upvoted 0 times
...
Stephaine
7 months ago
Yeah, it's a bit technical. I'm leaning towards B. Moving the contents might help with performance.
upvoted 0 times
...
Annabelle
7 months ago
This question is tricky. What do you think about it?
upvoted 0 times
...