exam questions

Exam AD0-E718 All Questions

View all questions & answers for the AD0-E718 exam

Exam AD0-E718 topic 1 question 6 discussion

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

An Adobe Commerce Architect needs to create a new customer segment condition to enable admins to specify an ‘Average sales amount’ condition for certain segments.
The Architect develops the custom condition under Vendor\Module\Model\Segment\Condition\AverageSalesAmount with all of its requirements:

During testing, the following error appears:

Which two steps should the Architect complete to fix the problem? (Choose two.)

  • A. Use a virtualType <virtualType name=”Magento\CustomerSegment\Model\Segment\Condition\AverageSalesAmount” type=”Vendor\Module\Model\Segment\Condition\AverageSalesAmount”/>
  • B. Remove the trailing path Magento\CustomerSegment\Model\Segment\Condition\ from the $conditions value attribute
  • C. Use a preference <preference for=”Magento\CustomerSegment\Model\Segment\Condition\AverageSalesAmount” type=”Vendor\Module\Model\Segment\Condition\AverageSalesAmount”/>
  • D. Set the class in the $conditions value attribute to be Segment\Condition\AverageSalesAmount
  • E. Set the class to be Magento\CustomerSegment\Model\Segment\Condition\AverageSalesAmount for the $conditions value attribute
Show Suggested Answer Hide Answer
Suggested Answer: AC 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
[Removed]
1 year, 4 months ago
does it make any sense to create a preference in answer C?
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 ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago