A single Adobe Commerce Cloud instance is set up with two websites (each with a single store view) with different domains.• The default website is website_one, with store view store_one, and domain storeone.com.• The second website is website_two, with store view store_two, and domain storetwo.com.The magento-vars.php file is set up as follows to determine which website each request runs against:When testing a new GraphQL integration, all requests returned data relating to the default website, regardless of the domain.What is causing this issue?
An Architect needs to integrate an Adobe Commerce store with a new Shipping Carrier. Cart data is sent to the Shipping Carrier’s API to retrieve the price and display to the customer. After the feature is implemented on the store, the API hits its quota and returns the error “Too many requests”. The Shipping Carrier warns the store about sending too many requests with the same content to the API.In the carrier model, what should the Architect change to fix the problem?
An Architect working on a headless Adobe Commerce project creates a new customer attribute named my_attribute. Based on the attribute value of the customer, the results of GraphQI queries are modified using a plugin. The frontend application is communicating with Adobe Commerce through Varnish by Fastly, which is already caching the queries that will be modified. The Adobe Commerce Fastly extension is installed, and no other modifications are made to the application.Which steps should the Architect take to make sure the vcl_hash function of Varnish also considers the newly created attribute?
An Architect wants to create an Integration Test that does the following:Adds a product using a data fixtureExecutes $this->someLogic->execute($product) on the productChecks if the result is true.$this->someLogic has the correct object assigned in the setUp() method.Product creation and the tested logic must be executed in the context of two different store views with IDs of 3 and 4, which have been created and are available for the test.How should the Architect meet these requirements?
An Adobe Commerce Architect notices that the product price index takes too long to execute. The store is configured with multiple websites and dozens of customer groups.Which two ways can the Architect shorten the full price index execution time? (Choose two.)
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?