Black Friday Special Limited Time 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: cramtick70

AD0-E722 Adobe Commerce Architect Master Questions and Answers

Questions 4

An Adobe Commerce store owner sets up a custom customer attribute "my.attribute".

An Architect needs to display additional content on the home page, which should display only to Customers with "my.attribute" of a certain value and be the same content for all of them. The website is running Full Page Cache.

With simplicity in mind, which two steps should the Architect take to implement these requirements? (Choose two.)

Options:

A.

Add a new context value of "my_attribute" to Magento\Framework\App\Http\Context

B.

Create a Customer Segment and use 'my.attribute' in the conditions

C.

Add a custom block and a pHTML template with the content to the cmsjndexjndex.xml layout

D.

Add a dynamic block with the content to the Home Page

E.

Use customer-data JS library to retrieve "my.attribute" value

Buy Now
Questions 5

An Adobe Commerce Architect needs to scope a bespoke news section for a merchants Adobe Commerce storefront. The merchant's SEO agency requests that the following URL structure:

news/{date}/{article_url_key}, where {date} is the publication date of the article, and {article_url_key} is the URL key of the article.

The Architect scopes that a news entity type will be created. The date and URL key data will be stored against each record and autogenerated on save. The values will be able to be manually overridden.

Options:

A.

The Architect needs to manage routing this functionality and adhere to best practice. Which two options should the Architect consider to meet these requirements? (Choose two.)

B.

Create a standard controller route and mapping the internal URLs (such as news/article/view/id/i) to rewrites that are generated on save and then stored in the URL rewrites table.

C.

Create a custom router that runs before the standard router and matches the news portion of the URL, then looks for and loads a news article by matching the date and URL key parts of the URL

D.

Create a plugin that intercepts Magento\Framework\App\Action: :(), looks for the news portion of the URL, and if it matches, loads the relevant news article by matching the URL date and URL key parts.

E.

Create a standard controller route and an index/index controller class that loads the relevant news article by matching the URL date and URL key parts.

Buy Now
Questions 6

A client is migrating to Adobe Commerce Cloud and has approximately 800 existing redirects that must be implemented. The number of redirects cannot be reduced because all redirects are specific, and do not match any pattern.

How should the redirects be configured to ensure performance?

Options:

A.

Add each redirect in the magento/routes.yaml file.

B.

Use VCL snippets to offload the redirect to Fastly.

C.

Add each redirect as a URL rewrite via the admin Ul.

Buy Now
Questions 7

While reviewing a newly developed pull request that refactors multiple custom payment methods, the Architect notices multiple classes that depend on \Magento\Framework\Encryption\EncryptorInterface to decrypt credentials for sensitive data. The code that is commonly repeated is as follows:

The Architect needs to recommend an optimal solution to avoid redundant dependency and duplicate code among the methods. Which solution should the Architect recommend?

Options:

A.

Create a common config service class v«ndor\Pay-ient\Gat«way\conf ig\conf ig under Vendor.Payment and use it as a parent class for all of the

Vendor\Payi»entModule\Gateway\Conf ig\Conf ig ClaSSeS and remove $scopeConf ig and Sencryptor dependencies

B.

Replace all Vendor\PaymentModule\Gateway\Config\Config ClaSSeS With virtualType Of Magento\Payiaent\Gateway\Conf ig\Conf ig and Set Under config.xml

C.

Add a plugin after the getvalue method of $scopeConfig, remove the $encryptor from dependency and use it in the plugin to decrypt the value if the config name is user.secret'

Buy Now
Questions 8

An Adobe Commerce Architect needs to ensure zero downtime during the deployment process of Adobe Commerce on-premises. Which two steps should the Architect follow? (Choose two.)

Options:

A.

Enable Config flag Under deployement/blue_green/enabled

B.

Run bin/magento setup:upgrade --dry-run=true to upgrade database

C.

Run bin/magento setup:upgrade - -keep-generated to Upgrade database

D.

Run bin/magento setup:upgrad --convert-old-scripts-true to Upgrade database

E.

Enable Config flag Under developer/zero_down_time/enabled

Buy Now
Questions 9

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

Options:

A.

Option A

B.

Option B

C.

Option C

Buy Now
Questions 10

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?

Options:

A.

Create anew class as a preference for Magento\inventoryShipping\piugin\Sales\shipment\AssignSourceCodeToShipmentPlugin to set the lowest-cost warehouse on a shipment.

B.

Create a new class implementing Magento\invtntorysourceSelectionApi\Modei\sourceSelectioninterfacece. which returns open warehouses sorted by cost.

C.

Create an after plugin OnHagento\InventoryDistanceBasedSourceSelection\Hodel\Algorithms\DistanceBasedAlgorithto sortto Warehouse sources by cost

Buy Now
Questions 11

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?

Options:

A.

Specify a @cacgecacheable(cacheable: false) directive for each GraphQL query, making sure that the data returned is not cached, and is up to date

B.

Specify 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

C.

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

Buy Now
Questions 12

An Architect needs to integrate an Adobe Commerce store with a new Shipping Carrier. Cart data is sent to the Shipping Carrier's API to retrieve the price and display to the customer. After the feature isimplemented on the store, the API hits its quota and returns the error "Too many requests". The Shipping Carrier warns the store about sending too many requests with the same content to the API.

In the carrier model, what should the Architect change to fix the problem?

Options:

A.

ln_doShipmentRequest()f call canCollectRates() before sending request to the API.

B.

Override getResponse, save the response to a variable, check if the response exists, then return.

C.

Implement _setCachedQuotes() and _getCachedQuotes(), return the data if the request matches.

Buy Now
Questions 13

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.

Following best practices, how should the Architect add the taxes for all orders?

Options:

A.

Add a new observer to the event sales.quote.collecLtotals.before'' and add the custom tax to the quote

B.

Write a before plugin to \Magento\Quote\Model\QuoteManagement::placeOrder() and add the custom tax to the quote

C.

Declare a new total collector in "etc/sales.xmr in a custom module

Buy Now
Questions 14

A merchant is utilizing an out-of-the-box Adobe Commerce application and asks to add a new reward card functionality for customers. During the code review, the Adobe Commerce Architect notices the reward_card_number attribute setup created for this functionality is causing the customer attribute to be unavailable in the My account/My rewards page template.

What should be added to set the customer attribute correctly?

Options:

A.

group property should be added with a value of 1

B.

system property should be added with a value of true

C.

scope property should be added with a value of global

Buy Now
Questions 15

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:

What should the Architect do to fix the problem?

A)

B)

C)

Options:

A.

Option A

B.

Option B

C.

Option C

Buy Now
Exam Code: AD0-E722
Exam Name: Adobe Commerce Architect Master
Last Update: Nov 23, 2024
Questions: 50
AD0-E722 pdf

AD0-E722 PDF

$25.5  $84.99
AD0-E722 Engine

AD0-E722 Testing Engine

$30  $99.99
AD0-E722 PDF + Engine

AD0-E722 PDF + Testing Engine

$40.5  $134.99