Adobe AD0-E722 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
A client has multiple warehouses where orders can be fulfilled. The cost of shipping goods from each warehouse varies by day, due to the number of workers available. The Architect needs to make sure that when an order is shipped, it is shipped from the lowest cost warehouse that is open.
How should this functionality be implemented?
How should this functionality be implemented?
- ACreate a new class as a preference for Magento\InventoryShipping\Plugin\Sales\Shipment\AssignSourceCodeToShipmentPlugin to set the lowest-cost warehouse on a shipment.
- BCreate a new class implementing Magento\InventorySourceSelectionApi\Model\SourceSelectionInterface, which returns open warehouses sorted by cost.
- CCreate an after plugin on Magento\InventoryDistanceBasedSourceSelection\Model\Algorithms\DistanceBasedAlgorithm to sort Warehouse sources by cost.
Correct Answer:
B
B
send
light_mode
delete
Question #7
A merchant is using a unified website that supports native Adobe Commerce B2B and B2C with a single store view.
The merchant’s objective is to display the B2B account features, such as negotiable quotes and credit limits, in the header of the site on every page for logged-in users who belong to a B2B company account.
Each B2B company possesses its unique shared catalog and customer group, while numerous customer groups for non-B2B customers undergo changes. The merchant insists that this association should not be linked to customer groups.
Which two solutions should the Architect recommend for consideration, taking into account public data and caching? (Choose two.)
The merchant’s objective is to display the B2B account features, such as negotiable quotes and credit limits, in the header of the site on every page for logged-in users who belong to a B2B company account.
Each B2B company possesses its unique shared catalog and customer group, while numerous customer groups for non-B2B customers undergo changes. The merchant insists that this association should not be linked to customer groups.
Which two solutions should the Architect recommend for consideration, taking into account public data and caching? (Choose two.)
- ACreate a Virtual Type that switches the theme when a user is part of a B2B company so the output can be modified accordingly in the alternate theme.
- BCreate 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.
- CSet whether the current user is part of a B2B company in the customer session and use that data directly to modify the output accordingly.
- DCreate 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.
- ECheck if the current user is part of a B2B company within a block class and modify the output accordingly.
Correct Answer:
BE
BE
send
light_mode
delete
Question #8
An Adobe Commerce Architect needs to customize the workflow of a monthly installments payment extension. The extension is from a partner who is contracted with the default website Payment Service Provider (PSP), which has its own legacy extension (a module using deprecated payment method).
The installment payment partner manages only initializing a payment, and then hands the capture to be executed by the PSP. Once the amount is successfully captured, the PSP notifies the website through a webhook. The goal of the webhook is only to create an “invoice” and save the “capture information” to be used later for refund requests through the PSP itself.
The Architect needs the most simple solution to capture the requested behavior.
Which solution should the Architect implement?
The installment payment partner manages only initializing a payment, and then hands the capture to be executed by the PSP. Once the amount is successfully captured, the PSP notifies the website through a webhook. The goal of the webhook is only to create an “invoice” and save the “capture information” to be used later for refund requests through the PSP itself.
The Architect needs the most simple solution to capture the requested behavior.
Which solution should the Architect implement?
- AAdd a plugin before the $invoice->capture() and change its input to prevent the call of the $payment->capture()
- BChange the can_capture attribute for the payment method under config.xml to be <can_capture>0</can_capture>
- CDeclare a capture command with type Magento\Payment\Gateway\Command\NullCommand for the payment method CommandPool in di.xml
Correct Answer:
C
C
send
light_mode
delete
Question #9
An existing Adobe Commerce website is moving to a headless implementation.
The existing website features an "All Brands" page, as well as individual pages for each brand. All brand-related pages are cached in Varnish using tags in the same manner as products and categories.
Two new GraphQL queries have been created to make this information available to the frontend for the new headless implementation:

During testing, the queries sometimes return out-of-date information.
How should this problem be solved while maintaining performance?
The existing website features an "All Brands" page, as well as individual pages for each brand. All brand-related pages are cached in Varnish using tags in the same manner as products and categories.
Two new GraphQL queries have been created to make this information available to the frontend for the new headless implementation:

During testing, the queries sometimes return out-of-date information.
How should this problem be solved while maintaining performance?
- ASpecify a $cache(cacheable: false) directive for each GraphQL query, making sure that the data returned is not cached, and is up to date
- BSpecify a @cache(cacheIdentity: Path\\To\\IdentityClass) directive for each GraphQL query, corresponding to a class that adds cache tags for relevant brands and associated products
- CEach GraphQL query’s resolver class should inject \Magento\GraphQlCache\Model\CacheableQuery and call setCacheValidity(true) on it as part of the resolver’s resolve function
Correct Answer:
B
B
send
light_mode
delete
Question #10
An Adobe Commerce Architect is investigating a case where some EAV product attributes are no longer updated.
The catalog is composed of 20,000 products with 100 attributes each.
The product updates are run by recurring Adobe commerce imports that happen multiple times a day.
The Architect finds an error in the logs that indicates an integrity constraint while trying to insert row with id 2147483647.
What is causing this error?
The catalog is composed of 20,000 products with 100 attributes each.
The product updates are run by recurring Adobe commerce imports that happen multiple times a day.
The Architect finds an error in the logs that indicates an integrity constraint while trying to insert row with id 2147483647.
What is causing this error?
- AMagento framework uses INSERT on DUPLICATE, which leads to reaching the max limit of the increment of the column.
- BIntegrity constraints were dropped after upgrading to the latest version, and the integrity checks were missed.
- CEAV attribute import uses REPLACE, which leads to reaching the max limit of the increment of the column.
Correct Answer:
A
A
send
light_mode
delete
All Pages