Exam4Training

Which solution should the Architect recommend?

While reviewing a newly developed pull request that refactors multiple custom payment methods, the Architect notices multiple classes that depend on MagentoFrameworkEncryptionEncryptorInterf 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 VendorPaymentModuleGatewayConfigConfig Classes With virtualTyp- Of
MagentoPayxer.tGatewayConflgConfig and Set <user_secret
backend_Model="MagentoConfigModelConfigBackendEncrypted" /> 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 vendorPaymentGatewayconfigConfig under
Vendor.Payment and use it as a parent class for all of the Vender
EaymentModuleGatewayConfigConfig Classes and remove $sccpeConfig and
$encryptor dependencies

Answer: C

Latest AD0-E718 Dumps Valid Version with 50 Q&As

Latest And Valid Q&A | Instant Download | Once Fail, Full Refund

Exit mobile version