ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 8 - AD0-E718 discussion

Report
Export

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.)

A.
Migrate data from table "catalog_product_entity_text" to "catalog.producLentityjnt" for the attribute.id
Answers
A.
Migrate data from table "catalog_product_entity_text" to "catalog.producLentityjnt" for the attribute.id
B.
Go to Admin > Stores > Attributes > Product, edit "my.attribute" and update type from "text' to "inf
Answers
B.
Go to Admin > Stores > Attributes > Product, edit "my.attribute" and update type from "text' to "inf
C.
Write a plugin for \Magento\Eav\Model\Entity\Attrlbute\Backend\AbstractBackend::afterLoad() and load data from "catalog_product_entity_int"
Answers
C.
Write a plugin for \Magento\Eav\Model\Entity\Attrlbute\Backend\AbstractBackend::afterLoad() and load data from "catalog_product_entity_int"
D.
Create a Data Patch and update 'my.attribute' type from "text" to "inf
Answers
D.
Create a Data Patch and update 'my.attribute' type from "text" to "inf
E.
Run the Command bin/magentc indexer: reset catalog_product_attribute
Answers
E.
Run the Command bin/magentc indexer: reset catalog_product_attribute
Suggested answer: A, D

Explanation:

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.

asked 02/10/2024
Maurille AGBISSIKO
33 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first