Valid AD0-E718 Dumps shared by ExamDiscuss.com for Helping Passing AD0-E718 Exam! ExamDiscuss.com now offer the newest AD0-E718 exam dumps, the ExamDiscuss.com AD0-E718 exam questions have been updated and answers have been corrected get the newest ExamDiscuss.com AD0-E718 dumps with Test Engine here:
A company has an Adobe Commerce store. An attribute named "my.attribute" (type "text") is created to save each product's global ID that is shared between multiple systems. Several months after going live, the values of "my.attribute" are all integer. This causes a problem for the other systems when those systems receive this data. An Adobe Commerce Architect needs to recommend a solution to change the type of "my.attribute" from textXo int Which two steps should the Architect take to achieve this? (Choose two.)
Correct Answer: A,D
Option A is correct because it will migrate data from one table to another based on the attribute id, which is required when changing the attribute type14. Option D is correct because it will create a data patch that will update 'my.attribute' type from "text" to "int", which is a recommended way of changing the attribute type programmatically4. To change the type of "my.attribute" from text to int, the Architect should take two steps: A) Migrate data from table "catalog_product_entity_text" to "catalog_product_entity_int" for the attribute_id. This step will move the existing values of the attribute from the text table to the int table, which corresponds to the new type. D) Create a Data Patch and update 'my.attribute' type from "text" to "int". This step will update the attribute metadata in the database and reflect the new type. Option B is incorrect because the Admin panel does not allow changing the type of an existing attribute. Option C is incorrect because writing a plugin for \Magento\Eav\Model\Entity\Attribute\Backend\AbstractBackend::afterLoad() will not change the type of the attribute, but only load data from a different table. Option E is incorrect because running the command bin/magento indexer:reset catalog_product_attribute will not change the type of the attribute, but only reset the indexer status. Reference: https://devdocs.magento.com/guides/v2.4/extension-dev-guide/attributes.html