ExamGecko
Home Home / Adobe / AD0-E718

Adobe AD0-E718 Practice Test - Questions Answers, Page 3

Question list
Search
Search

List of questions

Search

Related questions











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?

A.
Each GraphQL query's resolver class should inject MagentoGraphQICacheModelCacheableQuery and call setCacheValidity (true) on it as part of the resolver's rescive function
A.
Each GraphQL query's resolver class should inject MagentoGraphQICacheModelCacheableQuery and call setCacheValidity (true) on it as part of the resolver's rescive function
Answers
B.
Specify a @cache (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 (cacheable: false directive for each GraphQL query, making sure that the data returned is not cached, and is up to date
Answers
C.
Specify a @cache (cacheIdentity: path\\T\\identityClass) directive for each GraphQL query, corresponding to a class that adds cache tags for relevant brands and associated products
C.
Specify a @cache (cacheIdentity: path\\T\\identityClass) directive for each GraphQL query, corresponding to a class that adds cache tags for relevant brands and associated products
Answers
Suggested answer: C

Explanation:

This option would allow caching GraphQL query results using Varnish or Fastly with proper invalidation and differentiation mechanisms.

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

A.
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.
A.
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.
Answers
B.
Create an observer that listens to the controllers_front_send_response_before event, looks for the mm portion of the URL, and If it matches, loads the relevant news article by matching the URL date and URL key parts.
B.
Create an observer that listens to the controllers_front_send_response_before event, looks for the mm portion of the URL, and If it matches, loads the relevant news article by matching the URL date and URL key parts.
Answers
C.
Create a plugin that intercepts lu^jentoXFraBeworkUppXActien::executed, 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.
C.
Create a plugin that intercepts lu^jentoXFraBeworkUppXActien::executed, 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.
Answers
D.
Create a standard controller route and mapping the internal URLs (such as news/article/view/id/1) to rewrites that are generated on save and then stored in the URL rewrites table.
D.
Create a standard controller route and mapping the internal URLs (such as news/article/view/id/1) to rewrites that are generated on save and then stored in the URL rewrites table.
Answers
E.
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.
E.
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.
Answers
Suggested answer: A, E

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.

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?

A.
• Create Fixed Bundle Product for gathering simple products;• Manage price for every selected option;• Add extension attribute original_simple_price for\Magento\Sales\Api\Data\OrderItemExtensionInterface and populate value with price of simple product;
A.
• Create Fixed Bundle Product for gathering simple products;• Manage price for every selected option;• Add extension attribute original_simple_price for\Magento\Sales\Api\Data\OrderItemExtensionInterface and populate value with price of simple product;
Answers
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;
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;
Answers
C.
• Create Grouped Product and Create after plugin on\Magento\GroupedProduct\Model\Product\Type\Grouped:preparedForCarrAdvanced for bunch products ordering;• Utilize Content Staging to manage special prices on time for the campaign for simple products;• Expose required data via Adobe Commerce Order API;
C.
• Create Grouped Product and Create after plugin on\Magento\GroupedProduct\Model\Product\Type\Grouped:preparedForCarrAdvanced for bunch products ordering;• Utilize Content Staging to manage special prices on time for the campaign for simple products;• Expose required data via Adobe Commerce Order API;
Answers
Suggested answer: B

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.

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?

A.
Replace all Vendor\PaymentModule\Gateway\Config\Config Classes With virtualTyp- Of Magento\Payxer.t\Gateway\Conflg\Config and Set <user_secret backend_Model="Magento\Config\Model\Config\Backend\Encrypted" /> under ccnfig.xml
A.
Replace all Vendor\PaymentModule\Gateway\Config\Config Classes With virtualTyp- Of Magento\Payxer.t\Gateway\Conflg\Config and Set <user_secret backend_Model="Magento\Config\Model\Config\Backend\Encrypted" /> under ccnfig.xml
Answers
B.
Add a plugin after the getvalue method of $sccpeConfig, remove the $encryptor from dependency and use it in the plugin to decrypt the value if the config name is 'user.secret?
B.
Add a plugin after the getvalue method of $sccpeConfig, remove the $encryptor from dependency and use it in the plugin to decrypt the value if the config name is 'user.secret?
Answers
C.
Create a common config service class vendor\Payment\Gateway\config\Config under Vendor.Payment and use it as a parent class for all of the Vender\EaymentModule\Gateway\Config\Config Classes and remove $sccpeConfig and $encryptor dependencies
C.
Create a common config service class vendor\Payment\Gateway\config\Config under Vendor.Payment and use it as a parent class for all of the Vender\EaymentModule\Gateway\Config\Config Classes and remove $sccpeConfig and $encryptor dependencies
Answers
Suggested answer: C

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

A.
Invalidate the catalog_product_price indexer in the Adobe Commerce Admin Panel so that it is fully reindexed next time the cron runs.
A.
Invalidate the catalog_product_price indexer in the Adobe Commerce Admin Panel so that it is fully reindexed next time the cron runs.
Answers
B.
Manually reindex the catalog_product_price index from the Command line:bin\magentor indexer:reindex catalog_product_price.
B.
Manually reindex the catalog_product_price index from the Command line:bin\magentor indexer:reindex catalog_product_price.
Answers
C.
Make sure that no custom or third-party modules modify the changelog and indexing process.
C.
Make sure that no custom or third-party modules modify the changelog and indexing process.
Answers
D.
Make sure that the version_id for the price indexer in the mview_state table is not higher than the last entry for the same column in the changelog table and re-synchronize.
D.
Make sure that the version_id for the price indexer in the mview_state table is not higher than the last entry for the same column in the changelog table and re-synchronize.
Answers
E.
Reduce the frequency of the cron job to 5 minutes so the items have more time to process.
E.
Reduce the frequency of the cron job to 5 minutes so the items have more time to process.
Answers
Suggested answer: A, B

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?

A.
Inject an instance of \Magentro\Quote\API\CartRepostoryInterface and receive cart instance via$this->cartRepository->get($this-session->getQucteId())
A.
Inject an instance of \Magentro\Quote\API\CartRepostoryInterface and receive cart instance via$this->cartRepository->get($this-session->getQucteId())
Answers
B.
Replace the injected dependency\Magento\Checkout\Model\Session\With\Magento\Framework\Session\SessionManagerInterface
B.
Replace the injected dependency\Magento\Checkout\Model\Session\With\Magento\Framework\Session\SessionManagerInterface
Answers
C.
Change 'after' plugin with 'around' plugin. The issue is being caused by calling the result provider code after the code of the original method.
C.
Change 'after' plugin with 'around' plugin. The issue is being caused by calling the result provider code after the code of the original method.
Answers
Suggested answer: C

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

A.
Set the backend destination host to the frontend server's address in the Store Admin Stores > Configuration > Advanced > System > Full Page Cache > Varnish Configuration > Backend Host
A.
Set the backend destination host to the frontend server's address in the Store Admin Stores > Configuration > Advanced > System > Full Page Cache > Varnish Configuration > Backend Host
Answers
B.
Set the backend port destination to the frontend server's Varnish port in the Store Admin Stores > Configuration > Advanced > System > Full Page Cache > Varnish Configuration > Backend Port
B.
Set the backend port destination to the frontend server's Varnish port in the Store Admin Stores > Configuration > Advanced > System > Full Page Cache > Varnish Configuration > Backend Port
Answers
C.
Set the cache type to "Varnish Caching" in the Store Admin.Stores > Configuration > Advanced > System > Full Page Cache > Caching Application
C.
Set the cache type to "Varnish Caching" in the Store Admin.Stores > Configuration > Advanced > System > Full Page Cache > Caching Application
Answers
D.
Use "Flush Cache Storage" instead of "Flush Magento Cache"
D.
Use "Flush Cache Storage" instead of "Flush Magento Cache"
Answers
E.
Set the cache destination host using magento CLI bin/magento setup:config:set --http-cachehosts<cache_server>:<varrnish port>
E.
Set the cache destination host using magento CLI bin/magento setup:config:set --http-cachehosts<cache_server>:<varrnish port>
Answers
Suggested answer: A, B

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

A.
Asynchronous indexing admin panel Setting (Stores > Settings > Ccr.f iguraticr. > Advanced > developer > Grid Settings > Asynchronous indexing) can be enabled by executing the following CLI command: tm/magento config:set dev/grid/async_ini*xmg 1
A.
Asynchronous indexing admin panel Setting (Stores > Settings > Ccr.f iguraticr. > Advanced > developer > Grid Settings > Asynchronous indexing) can be enabled by executing the following CLI command: tm/magento config:set dev/grid/async_ini*xmg 1
Answers
B.
Multithreaded checkout processing admin panel setting (stores > s ettmgs > Configuration > Sales> Checkout > General Settings > Asynchronous) can be set to a higher value representing the number of PHP threads used exclusively for checkout
B.
Multithreaded checkout processing admin panel setting (stores > s ettmgs > Configuration > Sales> Checkout > General Settings > Asynchronous) can be set to a higher value representing the number of PHP threads used exclusively for checkout
Answers
C.
Asynchronous email notifications admin panel Setting (stores > Settings > Configuration > Sales > Sales Emails > General Settings > Asynchronous) can be enabled
C.
Asynchronous email notifications admin panel Setting (stores > Settings > Configuration > Sales > Sales Emails > General Settings > Asynchronous) can be enabled
Answers
D.
A new database can be created and the Split Database feature can be automatically configured with the following command: bin/Magento setup:db-schema:split-sales-sales --host=''<checkout db host or ip>" —dbname="<name>" — username""<checkout db username>'' —password=" <password>"
D.
A new database can be created and the Split Database feature can be automatically configured with the following command: bin/Magento setup:db-schema:split-sales-sales --host=''<checkout db host or ip>" —dbname="<name>" — username""<checkout db username>'' —password=" <password>"
Answers
E.
The website deploy mode can be set to si-g- by executing the following CLI command: bin/magento deploy:mode:set siege. Provided that it will be changed back to production as soon as the number of simultaneously placed orders decreases to acceptable levels
E.
The website deploy mode can be set to si-g- by executing the following CLI command: bin/magento deploy:mode:set siege. Provided that it will be changed back to production as soon as the number of simultaneously placed orders decreases to acceptable levels
Answers
Suggested answer: A, B

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.

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)

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

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?

A.
Override setuo () method, receive instance of \Magento\TestFramework\App\config, and specify value via setValue () method
A.
Override setuo () method, receive instance of \Magento\TestFramework\App\config, and specify value via setValue () method
Answers
B.
Specify @magentoconfigFixture annotations for the test methods in PHPDoc
B.
Specify @magentoconfigFixture annotations for the test methods in PHPDoc
Answers
C.
Create a fixture file to configure Adobe Commerce and specify it in test method PHPDoc using the @magentoconfigFixture annotation
C.
Create a fixture file to configure Adobe Commerce and specify it in test method PHPDoc using the @magentoconfigFixture annotation
Answers
Suggested answer: B

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.

Total 50 questions
Go to page: of 5