Adobe AD0-E718 Practice Test - Questions Answers, Page 3
List of questions
Question 21

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?
Explanation:
This option would allow caching GraphQL query results using Varnish or Fastly with proper invalidation and differentiation mechanisms.
Question 22

An Adobe Commerce Architect needs to scope a bespoke news section for a merchant's Adobe Commerce storefront. The merchant's SEO agency requests that the following URL structure: news/{date}/{article_url_key}l 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.
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.)
Explanation:
Creating a routes.xml file to declare a custom route ID and front name Creating a Router.php file to define the custom router class that extends Magento\Framework\App\Router\Base
Creating an etc/di.xml file to register the custom router class with a specific sortOrder
Creating controller classes and action methods to handle the requests
Based on these steps, I would say that two possible options that the Architect should consider to meet these requirements are:
1. Create a standard controller route and an Index/Index index controller class that loads the relevant news article by matching the URL date and URL key parts.
2. 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.
Question 23

An Adobe Commerce Architect is working on a sales campaign to present a new product on the site that allows the purchase of a pre-defined set of products with a discount. Each product in the set should have a separate stock and tax class.
One requirement is to use a third-party system to build reports with REST API to fetch the following data:
• SKU
• Qty
• Original price
• Sales price
• Tax amount
Which solution should the Architect use to meet these requirements?
Explanation:
A bundle product is a customizable product that consists of several options, each based on a simple or virtual product. A grouped product is a collection of simple products that are presented as a group.
According to some tutorials , creating a bundle product in Adobe Commerce involves several steps, such as:
Choosing the bundle product template and attribute set
Completing the required settings, such as name, SKU, price, and weight
Configuring the basic settings, such as status, visibility, and categories
Adding the bundle options and associated products
Adding optional product information, such as images and meta data
Posting the product
Content staging is a feature that allows creating, previewing, and scheduling content updates for your store directly from the Admin . You can use content staging to create campaigns that include changes to products, categories, pages, blocks, widgets, price rules, and more.
Based on these steps and features, I would say that one possible solution that the Architect should use to meet these requirements is:
B. Create Dynamic Bundle Product for gathering simple products; Utilize Content Staging to manage special prices for bundle products on time for the campaign; Expose required data via Adobe Commerce Order API; This solution would allow creating a new product that allows the purchase of a pre-defined set of products with a discount. Each product in the set would have a separate stock and tax class. The special prices for bundle products could be managed using content staging. The required data could be exposed via Adobe Commerce Order API.
Question 24

While reviewing a newly developed pull request that refactors multiple custom payment methods, the Architect notices multiple classes that depend on
\Magento\Framework\Encryption\EncryptorInterf ace to decrypt credentials for sensitive dat a. The code that is commonly repeated is as follows:
In each module, the user_secret config is declared 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?
Question 25

A merchant notices that product price changes do not update on the storefront.
The index management page in the Adobe Commerce Admin Panel shows the following:
• All indexes are set to 'update by schedule'
• Their status is 'ready'
• There are no items in the backlog
• The indexes were last updated 1 minute ago
A developer verifies that updating and saving product prices adds the relevant product IDs into the catalog_product_price_cl changelog table.
Which two steps should the Architect recommend to the developer to resolve this issue? (Choose two.)
Question 26

Since the last production deployment, customers can not complete checkout. The error logs show the following message multiple times:
The Architect finds a deployed feature that should limit delivery for some specific postcodes.
The Architect sees the following code deployed in/webapi_rest \di .xml and etc\frontend\di xml
Which step should the Architect perform to solve the issue?
Question 27

An Adobe Commerce system is configured to run in a multi-tier architecture that includes:
• A cache server with Varnish installed
• A backend web server with Adobe Commerce installed
• A database server with MySQL installed
When an Adobe Commerce Architect tries to clean the cache from the Store Admin by using the "Flush Magento Cache" in Cache Management, the Full Page Cache does not clear.
Which two steps should the Architect take to make the Full Page Cache work properly? (Choose two.)
Question 28

Due to a marketing campaign, a website is experiencing a very large number of simultaneously placed orders, which is affecting checkout performance. The website is in the production deploy mode.
Which two website settings can an Architect optimize to decrease the impact on checkout performance? (Choose two.)
Explanation:
To minimize the impact on checkout performance due to a large number of simultaneously placed orders, an Architect can optimize two website settings: Asynchronous indexing admin panel setting (A) and Multithreaded checkout processing admin panel setting (B). Enabling asynchronous indexing admin panel setting can be done by executing the command tm/magento config:set dev/grid/async_ini*xmg 1, while the multithreaded checkout processing admin panel setting can be set to a higher value representing the number of PHP threads used exclusively for checkout. It is important to note that the website deploy mode should not be set to siege mode and should instead be changed back to production as soon as the number of simultaneously placed orders decreases to acceptable levels.
Question 29

An Adobe Commerce Architect is reviewing api-functional test code. Some tests send errors to indicate that the customer address does not exist.
The test codes show the following:
A)
B)
C)
Question 30

An Adobe Commerce Architect creates a new functionality called Customs Fee, which adds a new total that applies to additional costs for handling customs clearance expenses. The extension allows specifying fee value for every website separately via the Adobe Commerce Configuration System.
The Architect plans to cover new functionality with integration tests. One test case needs to confirm if the total is calculated correctly on different websites.
How should the Architect make sure that test configuration data is added to test methods according to best practices?
Explanation:
The best practice for making sure that test configuration data is added to test methods is to use the @magentoconfigFixture annotation in the PHPDoc for the test methods. This will allow the Architect to specify a fixture file which will configure Adobe Commerce, and the test method will then be able to access these configuration values. Additionally, the Architect can also override the setUp() method and receive an instance of \Magento\TestFramework\App\config and specify the value via the setValue() method.
Question