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

Adobe Exam AD0-E704 Topic 13 Question 59 Discussion

Actual exam question for Adobe's AD0-E704 exam
Question #: 59
Topic #: 13
[All AD0-E704 Questions]

You are working on a module MyCompany_MyModule which adds a select attribute with a few options using the \Magento\Eav\Setup\EavSetup: :addAttribute() method in data in data install script.

There is no uninstall script. While debugging, you have uninstalled the module with the command:

bin magento module:uninstall MyCompany_MyModule

Then you reinstalled the module. What will be the effect on the attribute?

Show Suggested Answer Hide Answer
Suggested Answer: D

Contribute your Thoughts:

Gerry
18 days ago
Wait, there's no uninstall script? Rookie mistake. You gotta plan for that kind of thing, or you'll end up with a mess on your hands.
upvoted 0 times
...
Chantell
23 days ago
Haha, the attribute options being duplicated? That's a good one. Magento should be able to do better than that.
upvoted 0 times
...
Corrina
1 months ago
A duplicate attribute with a different code? That sounds like a terrible solution. The module should be smart enough to handle the reinstallation properly.
upvoted 0 times
Steffanie
23 days ago
A) The attribute remains the same but the attribute options will be duplicated
upvoted 0 times
...
...
Tonette
1 months ago
I think the attribute will be updated if the options differ. The module should be able to handle changes to the attribute configuration.
upvoted 0 times
Shenika
2 days ago
A) The attribute remains the same but the attribute options will be duplicated
upvoted 0 times
...
...
Essie
2 months ago
The attribute will be deleted and created again. This makes sense since there is no uninstall script to properly handle the removal of the attribute.
upvoted 0 times
Alison
19 days ago
B) The attribute is deleted and created again
upvoted 0 times
...
Elouise
24 days ago
A) The attribute remains the same but the attribute options will be duplicated
upvoted 0 times
...
...
Celia
2 months ago
I'm not sure, but I think a duplicate attribute will be created with a different attribute code.
upvoted 0 times
...
Amber
2 months ago
I believe the attribute remains the same but the attribute options will be duplicated.
upvoted 0 times
...
Jacki
2 months ago
I think the attribute will be deleted and created again.
upvoted 0 times
...

Save Cancel