Adobe AD0-E718 Exam Practice Questions (P. 5)
- Full Access (50 questions)
- Six months of Premium Access
- Access to one million comments
- Seamless ChatGPT Integration
- Ability to download PDF files
- Anki Flashcard files for revision
- No Captcha & No AdSense
- Advanced Exam Configuration
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?
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?
- AEach 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
- BSpecify a @cache(cacheable: false) directive for each GraphQL query, making sure that the data returned is not cached, and is up to date
- CSpecify a @cache(cacheIdentity: Path\\To\\IdentityClass) directive for each GraphQL query, corresponding to a class that adds cache tags for relevant brands and associated productsMost Voted
Correct Answer:
B
B
send
light_mode
delete
Question #22
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.
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.)
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.)
- ACreate 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.
- BCreate an observer that listens to the controller_front_send_responce_before event, 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.
- CCreate a plugin that intercepts Magento\Framework\App\Action::execute(), 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.
- DCreate 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.
- ECreate 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.
Correct Answer:
AE
AE
send
light_mode
delete
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?
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?
- ACreate 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; - BCreate 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; - CCreate Grouped Product and create after plugin on \Magento\GroupedProduct\Model\Product\Type\Grouped::prepareForCartAdvanced 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;
Correct Answer:
B
B
send
light_mode
delete
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\EncryptorInterface to decrypt credentials for sensitive data.
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?
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?
- AReplace all Vendor\PaymentModule\Gateway\Config classes with virtualType of Magento\Payment\Gateway\Config\Config and set <user_secret backend_model=“Magento\Config\Model\Config\Backend\Encrypted” /> under config.xmlMost Voted
- BAdd 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’
- CCreate a common config service class Vendor\Payment\Gateway\Config\Config under Vendor_Payment and use it as a parent class for all of the Vendor\PaymentModule\Gateway\Config\Config classes and remove $scopeConfig and $encryptor dependencies
Correct Answer:
C
C
send
light_mode
delete
Question #25
The final section of each exam is exclusively available to users with Contributor Access. This temporary measure was implemented to cover the expenses of the SecExams infrastructure and moderation staff while also decreasing the load on our infrastructure.
- ARestricted Option
- BRestricted Option
- CRestricted Option
- DRestricted Option
send
light_mode
delete
All Pages