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 18 discussion

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

An Adobe Commerce Developer has written an importer and exporter for a custom entity. The client is using this to modify the exported data and then re-importing the file to batch update the entities.
There is a text attribute, which contains information related to imagery in JSON form, media_gallery. This is not a field that the client wants to change, but the software they are using to edit the exported data seems to be modifying it and not allowing it to import correctly.
How would the developer prevent this?

  • A. Specify a serializer class for the attribute using the $_transformAttrs class property array for both the exporter and importer so it gets converted:
  • B. Strip the attribute from the imported file by adding it to the $_strippedAttrs class property array:
  • C. Prevent it from being exported by adding it to the $_disabledAttrs class property array:
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️

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: C
According to claude.ai epos: The $_disabledAttrs property is used to specify the attributes that should not be included in the exported file. When the exporter generates the file, it will skip any attributes listed in $_disabledAttrs, effectively preventing them from being exported. By preventing the media_gallery attribute from being exported, the client's software won't have the opportunity to modify it, and the attribute will remain unchanged during the import process.
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 ...