Independence Day Deal! Unlock 25% OFF Today – Limited-Time Offer - 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
1 months 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
1 months 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
2 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
Ellsworth
8 days ago
C) The attribute is updated when attribute options differ
upvoted 0 times
...
Lazaro
15 days ago
B) The attribute is deleted and created again
upvoted 0 times
...
Steffanie
1 months ago
A) The attribute remains the same but the attribute options will be duplicated
upvoted 0 times
...
...
Tonette
2 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
Tiera
17 hours 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
...
Jessenia
3 days ago
C) The attribute is updated when attribute options differ
upvoted 0 times
...
Lucy
6 days ago
B) The attribute is deleted and created again
upvoted 0 times
...
Shenika
18 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
1 months ago
B) The attribute is deleted and created again
upvoted 0 times
...
Elouise
1 months 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
az-700  pass4success  az-104  200-301  200-201  cissp  350-401  350-201  350-501  350-601  350-801  350-901  az-720  az-305  pl-300  

Warning: Cannot modify header information - headers already sent by (output started at /pass.php:70) in /pass.php on line 77