ExamGecko
Home Home / Adobe / AD0-E718

Adobe AD0-E718 Practice Test - Questions Answers

Question list
Search
Search

List of questions

Search

Related questions











A company wants to build an Adobe Commerce website to sell their products to customers in their country. The taxes in their country are highly complex and require customization to Adobe Commerce. An Architect is trying to solve this problem by creating a custom tax calculator that will handle the calculation of taxes for all orders in Adobe Commerce.

How should the Architect add the taxes for all orders?

A.
Write a before plugin to \Magento\Quote\Model\QuoteManagement::placeOrder() and add the custom tax to the quote
A.
Write a before plugin to \Magento\Quote\Model\QuoteManagement::placeOrder() and add the custom tax to the quote
Answers
B.
Declare a new total collector in "etc/sales.xml" in a custom module
B.
Declare a new total collector in "etc/sales.xml" in a custom module
Answers
C.
Add a new observer to the event 'sales_quote_collect_totals_before" and add the custom tax to the quote
C.
Add a new observer to the event 'sales_quote_collect_totals_before" and add the custom tax to the quote
Answers
Suggested answer: B

Explanation:

https://amasty.com/knowledge-base/how-to-configure-tax-calculation-in-magento-2.html

An Adobe Commerce Architect needs to log the result of a ServiceClass : : ge-Dara method execution after all plugins have executed. The method is public, and there are a few plugins declared for this method. Among those plugins are after and around types, and all have sortOrder specified.

Which solution should be used to meet this requirement?

A.
Declare a new plugin with the sortOrder value higher than the highest declared plugin sortOrder and implement afterGetData method.
A.
Declare a new plugin with the sortOrder value higher than the highest declared plugin sortOrder and implement afterGetData method.
Answers
B.
Declare a new plugin with the sortOrder value lower than the lowest declared plugin sortOrder and implement aroundGetData method
B.
Declare a new plugin with the sortOrder value lower than the lowest declared plugin sortOrder and implement aroundGetData method
Answers
C.
Declare a new plugin with the sortOrder value higher than the highest declared plugin sortOrder and implement aroundGetData method
C.
Declare a new plugin with the sortOrder value higher than the highest declared plugin sortOrder and implement aroundGetData method
Answers
Suggested answer: C

Explanation:

The aroundGetData method is the best option for this requirement because it provides the flexibility to log the result of the ServiceClass::getData method execution after all plugins have executed. This is because the aroundGetData method is executed before and after the method execution, allowing the Adobe Commerce Architect to log the result of the method execution after all plugins have executed. Reference: https://docs.adobe.com/content/help/en/experience-manager- 65/developing/extending/plugins-and-events/events-and-listeners/lifecycle-events.html

An Adobe Commerce Architect is asked by a merchant using B2B features to help with a configuration issue.

The Architect creates a test Company Account and wants to create Approval Rules for orders. The Approval Rules tab does not appear in the Company section in the Customer Account Menu when the Architect logs in using the Company Administrator account.

Which two steps must be taken to fix this issue? (Choose two.)

A.
Set 'Enable Purchase Orders' in the B2B Admin to TRUE
A.
Set 'Enable Purchase Orders' in the B2B Admin to TRUE
Answers
B.
Merchant needs to log out of frontend and then log back in to load new permissions
B.
Merchant needs to log out of frontend and then log back in to load new permissions
Answers
C.
Set Enable Purchase Orders' on the Company Record to TRUE
C.
Set Enable Purchase Orders' on the Company Record to TRUE
Answers
D.
Make sure that the 'Purchase Order' payment method is active
D.
Make sure that the 'Purchase Order' payment method is active
Answers
E.
Set 'Enable B2B Quote" in the B2B Admin to TRUE
E.
Set 'Enable B2B Quote" in the B2B Admin to TRUE
Answers
Suggested answer: A, C

Explanation:

Enabling Purchase Orders at both the B2B Admin and the Company Record levels is necessary for Approval Rules to appear in the Company section of the Customer Account Menu. When 'Enable Purchase Orders' is set to TRUE, the system assumes that the company will be making purchases using purchase orders, and the Approval Rules tab becomes visible.

An external system integrates functionality of a product catalog search using Adobe Commerce GraphQL API. The Architect creates a new attribute my_attribute in the admin panel with frontend type select.

Later, the Architect sees that Productinterface already has the field my_atcribute, but returns an mc value. The Architect wants this field to be a new type that contains both option id and label.

To meet this requirement, an Adobe Commerce Architect creates a new module and file etc/schema.graphqls that declares as follows:

After calling command setup:upgrade, the introspection of Productlnterface field xy_attribute remains int. What prevented the value type of field my_attribute from changing?

A.
The fields of Productlnterface are checked during processing schema.graphqls files. If they have a corresponding attribute, then the backendjype of product attribute is set for field type.
A.
The fields of Productlnterface are checked during processing schema.graphqls files. If they have a corresponding attribute, then the backendjype of product attribute is set for field type.
Answers
B.
The interface Productlnterface is already declared in Magento.CatalogGraphQI module. Extending requires use of the keyword -xceni before a new declaration of Productlnterface.
B.
The interface Productlnterface is already declared in Magento.CatalogGraphQI module. Extending requires use of the keyword -xceni before a new declaration of Productlnterface.
Answers
C.
The Magento.CatalogGraphQI module occurs later in sequence than the Magento.GraphQI module and merging output of dynamic attributes schema reader overrides types declared in schema.graphqls
C.
The Magento.CatalogGraphQI module occurs later in sequence than the Magento.GraphQI module and merging output of dynamic attributes schema reader overrides types declared in schema.graphqls
Answers
Suggested answer: C

Explanation:

https://devdocs.magento.com/guides/v2.3/graphql/queries/products.html

An Adobe Commerce Architect is creating a new GraphQL API mutation to alter the process of adding configurable products to the cart. The mutation accepts configurable product ID. If the given product has only one variant, then the mutation should add this variant to the cart and return not nullable cart type. If the configurable product has more variants, then the mutation should return not nullable conf igurableProduct type.

The mutation declaration looks as follows:

How should the Adobe Commerce Architect declare output of this mutation?

A)

B)

C)

A.
Option A
A.
Option A
Answers
B.
Option B
B.
Option B
Answers
C.
Option C
C.
Option C
Answers
Suggested answer: B

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)

B)

C)

D)

E)

A.
Option A
A.
Option A
Answers
B.
Option B
B.
Option B
Answers
C.
Option C
C.
Option C
Answers
D.
Option D
D.
Option D
Answers
E.
Option E
E.
Option E
Answers
Suggested answer: B, C

An Architect working on a headless Adobe Commerce project creates a new customer attribute named my_attribure. Based on the attribute value of the customer, the results of GraphQI 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?

A)

B)

C)

A.
Option A
A.
Option A
Answers
B.
Option B
B.
Option B
Answers
C.
Option C
C.
Option C
Answers
Suggested answer: C

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

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

A.
Create 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.
A.
Create 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.
Answers
B.
Check if the current user is part of a B2B company within a block class and modify the output accordingly.
B.
Check if the current user is part of a B2B company within a block class and modify the output accordingly.
Answers
C.
Create 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.
C.
Create 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.
Answers
D.
Set whether the current user is part of a B2B company in the customer session and use that data directly to modify the output accordingly.
D.
Set whether the current user is part of a B2B company in the customer session and use that data directly to modify the output accordingly.
Answers
E.
Create a new HTTP Context variable to allow for separate public content to be cached for users inB2B companies where the output can be modified accordingly.
E.
Create a new HTTP Context variable to allow for separate public content to be cached for users inB2B companies where the output can be modified accordingly.
Answers
Suggested answer: C, E

Explanation:

C would involve creating a new custom condition for customer segments that allow for choosing if a user is part of a B2B company, and then use this segment to modify the output accordingly. E would involve creating 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.

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 issue9

A.
The plugin for the public method isAllowedObserver() from\Magento\Staging\Model\Event\Manager that alters the return value
A.
The plugin for the public method isAllowedObserver() from\Magento\Staging\Model\Event\Manager that alters the return value
Answers
B.
The logging observers being copied from etc\events.xml to etc\adminhtml\events.xml with the attribute disabled=’’true"
B.
The logging observers being copied from etc\events.xml to etc\adminhtml\events.xml with the attribute disabled=’’true"
Answers
C.
The list of logging observers in bannedObservers parameter of\Magento\staging\Model\Event\Managertype in di.xml
C.
The list of logging observers in bannedObservers parameter of\Magento\staging\Model\Event\Managertype in di.xml
Answers
Suggested answer: C

Explanation:

It will allow you to exclude logging observers from being executed during staging preview functionality by adding them to bannedObservers parameter of

\Magento\staging\Model\Event\Manager type in di.xml file. This will prevent customer activity data from being logged while previewing storefront catalog pages from Admin Panel for a future scheduled campaign.

Total 50 questions
Go to page: of 5