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

Magento Exam Magento-2-Certified-Associate-Developer Topic 4 Question 63 Discussion

Actual exam question for Magento's Magento-2-Certified-Associate-Developer exam
Question #: 63
Topic #: 4
[All Magento-2-Certified-Associate-Developer Questions]

You have been given the task of importing products from an external source. You decide to create a custom module to do this. The class handling the import creates a product for each record, sets the data on it and saves it to the database.

What do you inject into a constructor to represent each product you create?

Show Suggested Answer Hide Answer
Suggested Answer: D

Contribute your Thoughts:

Marylou
10 months ago
I disagree, I believe the answer is D.
upvoted 0 times
...
Loreta
10 months ago
Option A sounds like a lot of work just to include category URLs. I'd go with C if I want the easiest solution.
upvoted 0 times
Leigha
9 months ago
Yeah, that sounds like the most straightforward solution. Option C it is.
upvoted 0 times
...
Margarita
10 months ago
I agree, setting the configuration value to Yes seems like the simplest way to include category URL keys.
upvoted 0 times
...
Clarinda
10 months ago
Option A sounds like a lot of work just to include category URLs. I'd go with C if I want the easiest solution.
upvoted 0 times
...
...
Nelida
10 months ago
I think the answer is C.
upvoted 0 times
...
Kandis
10 months ago
I'm not sure about B. Doesn't Magento handle products in multiple categories already?
upvoted 0 times
...
Arlene
10 months ago
Ha! Looks like Option D is the classic 'create a plugin' solution. Classic Magento!
upvoted 0 times
...
Belen
10 months ago
Option C seems straightforward. Changing the config setting should do the trick.
upvoted 0 times
Antonio
9 months ago
A: Let's give it a try and see if it works for the client's request.
upvoted 0 times
...
Son
10 months ago
B: I agree, that should include the category url keys in the product URLs.
upvoted 0 times
...
Fletcher
10 months ago
That's correct. It should update the product URLs with the category keys.
upvoted 0 times
...
Kathrine
10 months ago
C) Set the configuration value of catalog/seo/product_use_categories to Yes
upvoted 0 times
...
Mollie
10 months ago
A: Option C seems like the way to go. Just set the configuration value to Yes.
upvoted 0 times
...
Willodean
10 months ago
That should work, just make sure to clear the cache afterwards
upvoted 0 times
...
Telma
10 months ago
C) Set the configuration value of catalog/seo/product_use_categories to Yes
upvoted 0 times
...
...

Save Cancel