Summer Sale Special - 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: 70dumps

AD0-E718 Questions and Answers

Question # 6

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 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?

A.

Replace all Vendor\PaymentModule\Gateway\Config\Config Classes With virtualTyp- Of Magento\Payxer.t\Gateway\Conflg\Config and Set under ccnfig.xml

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?

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

Full Access
Question # 7

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

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

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

Full Access