Practice Free AD0-E722 Exam Online Questions
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.
- 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 MagentoFrameworkAppAction: :(), 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.
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?
- 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
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 is implemented 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?
- 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.
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.)
- 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
An Adobe Commerce Architect is planning to create a new action that will add gift registry items to the customer’s quote.
What should the Architect do to guarantee that private content blocks are updated?
- A . Mark the controller by setting no-cache HTTP headers
- B . Invalidate the status of gift registry indexers
- C . Specify a new action in a sections.xml configuration file
An Adobe Commerce Architect creates a stopword for the Italian locale named stopwordsjtJT.csv and changes the stopword directory to the following:
<magento_root>/app/code/Custo«vendor/Elasticsearch/etc/stopwords/
What is the correct approach to change the stopwords directory inside the custom module?
- A . Add stopwords to the stopwordsDirectory and CustomerVendor_Elasticsearch to the stopword sModule parameter Of the MagentoElasticsearchSearchAdapterQueryPreprocessorStopwords ClflSS Via di.xml
- B . Add a new ClaSS implementing MagentoFrameworkSetupPatchPatchInterface to modify the default Value Of elasticsearchcustomerstopwordspath in core.conf ig_data table.
- C . Add stopwords to the stopwordsDirectory parameter of theHagentoElasticsearchModelAdapterDocumentDirectoryBuilder ClaSS Via stopwords/it.xml and Adobe Commerce will automatically detect the current module.