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

Adobe Exam AD0-E717 Topic 2 Question 39 Discussion

Actual exam question for Adobe's AD0-E717 exam
Question #: 39
Topic #: 2
[All AD0-E717 Questions]

In a new release of a module, a developer decides to rename a table that was defined in the earlier versions. Which action, if any, allows the developer to prevent data loss?

Show Suggested Answer Hide Answer
Suggested Answer: C

When renaming a table in Magento, to prevent data loss, the developer must define the table and its columns mapping in the db_schema_whitelist.json file. This declarative schema approach ensures that the data migration tool knows about the changes and can migrate data from the old table to the newly named table without losing any data.


Contribute your Thoughts:

Amira
7 days ago
I'm not sure, but I think option A could also work if the developer wants more control over the data migration process.
upvoted 0 times
...
Vanesa
8 days ago
I agree with Louis, option B seems like the safest option to prevent data loss.
upvoted 0 times
...
Delmy
12 days ago
Option B all the way! Automatic data migration? Sign me up! Though I do wonder if the database has a 'rename' superpower or something.
upvoted 0 times
...
Twana
16 days ago
C looks like the way to go. Mapping the table and column names in the schema file is a clean and reliable approach.
upvoted 0 times
...
Louis
16 days ago
I think option B is the best choice because it says the data will be migrated automatically.
upvoted 0 times
...
Christiane
17 days ago
Option A sounds interesting, but I'm not sure if that's a valid action. Defining an onCreate attribute to migrate data seems a bit hacky.
upvoted 0 times
Roy
23 hours ago
C) Define the table and columns mapping in the db.schema_whitelist.json
upvoted 0 times
...
Helga
3 days ago
B) Declarative schema supports RENAME TABLE', so the data will be migrated to the new table automatically.
upvoted 0 times
...
Tijuana
9 days ago
A) Define onCreate=`migrateDataFromAnotherTable(old_table_name)` attribute in the table tag.
upvoted 0 times
...
...
Bernardo
24 days ago
I think option B is the correct answer. Declarative schema supports RENAME TABLE, so the data will be automatically migrated to the new table.
upvoted 0 times
Teri
12 days ago
I'm not sure, but I think option B is more reliable in this case.
upvoted 0 times
...
James
14 days ago
But what about option A? Would that also work?
upvoted 0 times
...
Phillip
16 days ago
I think so too, it's the safest option to prevent data loss.
upvoted 0 times
...
Shawn
18 days ago
I agree, option B seems like the best choice.
upvoted 0 times
...
...

Save Cancel