Adobe AD0-E718 Exam Practice Questions (P. 2)
- Full Access (50 questions)
- Six months of Premium Access
- Access to one million comments
- Seamless ChatGPT Integration
- Ability to download PDF files
- Anki Flashcard files for revision
- No Captcha & No AdSense
- Advanced Exam Configuration
Question #6
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.)
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.)
- AUse a virtualType <virtualType name=”Magento\CustomerSegment\Model\Segment\Condition\AverageSalesAmount” type=”Vendor\Module\Model\Segment\Condition\AverageSalesAmount”/>
- BRemove the trailing path Magento\CustomerSegment\Model\Segment\Condition\ from the $conditions value attribute
- CUse a preference <preference for=”Magento\CustomerSegment\Model\Segment\Condition\AverageSalesAmount” type=”Vendor\Module\Model\Segment\Condition\AverageSalesAmount”/>
- DSet the class in the $conditions value attribute to be Segment\Condition\AverageSalesAmount
- ESet the class to be Magento\CustomerSegment\Model\Segment\Condition\AverageSalesAmount for the $conditions value attribute
Correct Answer:
AC
AC
send
light_mode
delete
Question #7
An Architect working on a headless Adobe Commerce project creates a new customer attribute named my_attribute. Based on the attribute value of the customer, the results of GraphQl queries are modified using a plugin. The frontend application is communicating with Adobe Commerce through Varnish by Fastly, which is already caching the queries that will be modified. The Adobe Commerce Fastly extension is installed, and no other modifications are made to the application.
Which steps should the Architect take to make sure the vcl_hash function of Varnish also considers the newly created attribute?
Which steps should the Architect take to make sure the vcl_hash function of Varnish also considers the newly created attribute?
- ACreate a new class inheriting from Magento\Framework\GraphQl\Query\Resolver\IdentityInterface and returning the value of my_attribute from the getIdentities function. Then specify a @cache(cacheIdentity: Path\\To\\IdentityClass) directive for each GraphQL query to include the newly created IdentityClass to each query that adds the cache tags for each customer.
- BCreate a new class inheriting from Magento\GraphQlCache\Model\CacheId\CacheIdFactorProviderInterface and returning the value of my_attribute from the getFactorValue function and my_attribute from getFactorName function. Then add this class through DI to the IdFactorProviders array of Magento\GraphQlCache\Model\CacheID\CacheIdCalculator.
- CCreate a new class inheriting from Magento\Customer\CustomerData\SectionSourceInterface and returning the value of my_attribute from the getSectionData function. Then add this class through DI to the sectionSourceMap array of Magento\Customer\CustomerData\SectionPoolInterface.
Correct Answer:
B
B
send
light_mode
delete
Question #8
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 text to int.
Which two steps should the Architect take to achieve this? (Choose two.)
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 text to int.
Which two steps should the Architect take to achieve this? (Choose two.)
- AMigrate data from table “catalog_product_entity_text” to “catalog_product_entity_int” for the attribute_id
- BGo to Admin > Stores > Attributes > Product, edit “my_attribute” and update type from “text” to "int"
- CWrite a plugin for \Magento\Eav\Model\Entity\Attribute\Backend\AbstractBackend::afterLoad() and load data from “catalog_product_entity_int”
- DCreate a Data Patch and update “my_attribute” type from “text” to “int”
- ERun the command bin/magento indexer:reset catalog_product_attribute
Correct Answer:
BD
BD
send
light_mode
delete
Question #9
A merchant is using a unified website that supports native Adobe Commerce B2B and B2C with a single store view.
The merchant wants to show the B2B account features like negotiable quotes and credit limits in the header of the site on every page for the logged-in users who are part of a B2B company account.
Each B2B company has its own individual shared catalog and customer group, and many customer groups for non B2B customers change. The merchant requests that this should not be tied to customer groups.
Which two solutions should the Architect recommend considering public data and caching? (Choose two.)
The merchant wants to show the B2B account features like negotiable quotes and credit limits in the header of the site on every page for the logged-in users who are part of a B2B company account.
Each B2B company has its own individual shared catalog and customer group, and many customer groups for non B2B customers change. The merchant requests that this should not be tied to customer groups.
Which two solutions should the Architect recommend considering public data and caching? (Choose two.)
- ACreate a plugin that switches the theme when a user is part of a B2B company so the output can be modified accordingly in the alternate theme.
- BCheck if the current user is part of a B2B company within a block class and modify the output accordingly.
- CCreate a new custom condition for customer segments that allow for choosing whether a user is part of a B2B company and then use this segment to modify the output accordingly.
- DSet whether the current user is part of a B2B company in the customer session and use that data directly to modify the output accordingly.
- ECreate a new HTTP Context variable to allow for separate public content to be cached for users in B2B companies where the output can be modified accordingly.
Correct Answer:
BE
BE
send
light_mode
delete
Question #10
An Architect is reviewing a custom module that is logging customer activity data on storefront using observers. The client reports that logs were recorded while the client was previewing storefront catalog pages from Admin Panel for a future scheduled campaign, using Adobe Commerce staging preview functionality.
What should the Architect check first to address this issue?
What should the Architect check first to address this issue?
- AThe plugin for the public method isAllowedObserver() from \Magento\Staging\Model\Event\Manager that alters the return value
- BThe logging observers being copied from etc\events.xml to etc\adminhtml\events.xml with the attribute disabled="true"
- CThe list of logging observers in bannedObservers parameter of \Magento\Staging\Model\Event\Manager type in di.xml
Correct Answer:
B
B
send
light_mode
delete
All Pages