Adobe AD0-E722 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
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?
• 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?
- AThe magento-vars.php file is not processed for any GraphQL requests, so the default website is always processed.
- B$_SERVER[“MAGE_RUN_CODE”] needs to be set to store and $_SERVER[“MAGE_RUN_TYPE”] needs to be set to the store code instead.
- CGraphQL requests are always run against the default store view unless a Store header or store cookie is provided.
Correct Answer:
C
C
send
light_mode
delete
Question #22
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?
In the carrier model, what should the Architect change to fix the problem?
- AIn _doShipmentRequest(), call canCollectRates() before sending request to the API.
- BOverride getResponse(), save the response to a variable, check if the response exists, then return.
- CImplement _setCachedQuotes() and _getCachedQuotes(), return the data if the request matches.
Correct Answer:
C
C
send
light_mode
delete
Question #23
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?
Which steps should the Architect take to make sure the vcl_hash function of Varnish also considers the newly created attribute?
- ACreate a new class inheriting from Magento\GraphQlCache\Model\CacheId\CacheIdFactorProviderInterface and returning the value of my_attribute from the getFactorValue function and my_attribute from the getFactorName function. Then add this class through DI to the idFactorProviders array of Magento\GraphQlCache\Model\CacheId\CacheIdCalculator.
- BCreate a new class inheriting from Magento\Framework\GraphQl\Query\Resolver\IdentityInterface and returning the value of my_attribute from the getIdentities function. Then specify a @cache(cacheIdentity: Path\\To\\IdentityClass) directive for each GraphQL query to include the newly created IdentityClass to each query that adds the cache tags for each customer.
- CCreate a new class inheriting from Magento\Customer\CustomerData\SectionSourceInterface and returning the value of my_attribute from the getSectionData function. Then add this class through DI to the sectionSourceMap array of Magento\Customer\CustomerData\SectionPoolInterface.
Correct Answer:
A
A
send
light_mode
delete
Question #24
An Architect wants to create an Integration Test that does the following:
Adds a product using a data fixture
Executes $this->someLogic->execute($product) on the product
Checks 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?
Adds a product using a data fixture
Executes $this->someLogic->execute($product) on the product
Checks 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?
- ACreate two test classes with one test method each. Use the @magentoExecuteInStoreContext 3 and @magentoExecuteInStoreContext 4 annotations on the class level.
- BCreate one test class with two test methods. Use the @magentoStoreContext 3 annotation in one method and @magentoStoreContext 4 in the other one.
- CCreate one test class with one test method. Use the \Magento\TestFramework\store\ExecuteInStoreContext class once in the fixture and another time in the test.
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