Welcome to ExamTopics
ExamTopics Logo
- Expert Verified, Online, Free.

Unlimited Access

Get Unlimited Contributor Access to the all ExamTopics Exams!
Take advantage of PDF Files for 1000+ Exams along with community discussions and pass IT Certification Exams Easily.

Exam AD0-E716 topic 1 question 27 discussion

Actual exam question from Adobe's AD0-E716
Question #: 27
Topic #: 1
[All AD0-E716 Questions]

An Adobe Commerce developer is creating a module (Vendor_ModuleName) to be sold on the Marketplace. The new module creates a database table using declarative schema and now the developer needs to make sure the table is removed when the module is disabled.
What must the developer do to accomplish this?

  • A. There is nothing further the developer needs to do. The table will be removed when the module is disabled and bin/magento setup:upgrade is run.
  • B. There is nothing further the developer needs to do. The table will be removed when the when bin/magento module:uninstall Vendor_ModuleName is run.
  • C. Add a schema patch that implements Magento\Framework\Setup\Patch\PatchRevertableInterface and drops the table in the revert function.
Show Suggested Answer Hide Answer
Suggested Answer: C 🗳️

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
arierave
1 month, 3 weeks ago
Selected Answer: B
according to claude.ai epos: The correct answer is B. There is nothing further the developer needs to do. The table will be removed when bin/magento module:uninstall Vendor_ModuleName is run. Here's the explanation: In Adobe Commerce (Magento), when a module is created using declarative schema to define and create database tables, the platform automatically handles the removal of those tables when the module is uninstalled using the bin/magento module:uninstall command. The bin/magento module:uninstall command is used to properly uninstall a module from the system. When this command is run with the module name as an argument (e.g., bin/magento module:uninstall Vendor_ModuleName), it performs the necessary steps to remove the module and its associated resources, including the database tables defined in the module's declarative schema.
upvoted 1 times
...
some_gyy
4 months ago
Selected Answer: A
https://developer.adobe.com/commerce/php/development/components/declarative-schema/configuration/#disable-a-module
upvoted 1 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...