New Year Special Limited Time Flat 70% Discount offer - Ends in 0d 00h 00m 00s - Coupon code: 70spcl

Adobe AD0-E722 Adobe Commerce Architect Master Exam Practice Test

Page: 1 / 5
Total 50 questions

Adobe Commerce Architect Master Questions and Answers

Question 1

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:

Question # 1

During testing, the queries sometimes return out-of-date information. How should this problem be solved while maintaining performance?

Options:

A.

Specify a @cacgecacheable(cacheable: false) directive for each GraphQL query, making sure that the data returned is not cached, and is up to date

B.

Specify a $cache(cacheidentity: Path\\To\\identityclass) directive for each GraphQL query, corresponding to a class that adds cache tags for relevant brands and associated products

C.

Each 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.

Question 2

An Architect is investigating a merchant's Adobe Commerce production environment where all customer session data is randomly being lost. Customer session data has been configured to be persisted using Redis, as are all caches (except full page cache, which is handled via Varnish).

After an initial review, the Architect is able to replicate the loss of customer session data by flushing the Magento cache storage, either via the Adobe Commerce Admin Panel or running bin/magento cache: flush on the command line. Refreshing all the caches in the Adobe Commerce Admin Panel or running bin/magento cache: clean on the command line does not cause session data to be lost.

What should be the next step?

Options:

A.

Check app/etc/env.php and make sure that the Redis configuration for caches and session data use different database numbers.

B.

Educate the merchant to not flush cache storage and only refresh the caches in future.

C.

Set the Stores > Configuration' option for Store Session Data Separately' to 'Yes' in the Adobe Commerce Admin Panel.

Question 3

An Adobe Commerce Architect runs the PHP Mess Detector from the command-line interface using the coding standard provided with Adobe Commerce. The following output appears:

Question # 3

The Architect looks at the class and notices that the constructor has 15 parameters. Five of these parameters are scalars configuring the behavior of MyService. The class also contains three constants referencing one other class.

How should the Architect fix the code so that it complies with the coding standard rule?

Options:

A.

Modify the code of MyService so that the number of different classes and interfaces referenced anywhere inside the class is fewer than 13.

B.

Consolidate the constants referencing other classes into a string representation.

C.

Introduce a new class accepting those five scalars and use it in the constructor and the remaining logic of MyService.

Question 4

An Adobe Commerce Architect is reviewing API-functional test code. Some tests send errors to indicate that the customer address does not exist. The test codes show the following:

Question # 4

Which step should the Architect take to fix the test errors?

Options:

A.

Change the annotation to Use@magentoApiDataFixture Magento/Customer/_files/ instead Or dmagentoDataFixture Magento/Customer/_files/customer_one_address.php

B.

Set the annotation to USe AmagentoPersistDataFixture Magento/Cu5tomer/_f iles/custcwer_one_address.php instead Of @magentoDataFixture Magento/Customer/_f iles/customer_one_address.php

C.

Update the annotation to Specify addreSSjd £niagentoDataFixture Magento/Customer/_files/customer_one_address.php with:{Maddress_id":"$address.id$"}

Question 5

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.

Options:

A.

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.)

B.

Create a standard controller route and mapping the internal URLs (such as news/article/view/id/i) to rewrites that are generated on save and then stored in the URL rewrites table.

C.

Create 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

D.

Create a plugin that intercepts Magento\Framework\App\Action: :(), 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.

E.

Create 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.

Question 6

An Adobe Commerce Architect is investigating a case where some EAV product attributes are no longer updated.

• The catalog is composed of 20.000 products with 100 attributes each.

• The product updates are run by recurring Adobe commerce imports that happen multiple times a day.

• The Architect finds an error in the logs that indicates an integrity constraint while trying to insert row with id 2147483647.

What is causing this error?

Options:

A.

Magento framework uses INSERT on DUPLICATE, which leads to reaching the max limit of the increment of the column.

B.

Integrity constraints were dropped after upgrading to the latest version, and the integrity checks were missed.

C.

EAV attribute import uses REPLACE, which leads to reaching the max limit of the increment of the column

Question 7

The development of an Adobe Commerce website is complete. The website is ready to be rolled out on the production environment.

An Architect designed the system to run in a distributed architecture made up of multiple backend webservers that process requests behind a Load Balancer.

After deploying the system and accessing the website for the first time, users cannot access the Customer Dashboard after logging in. The website keeps redirecting users to the sign-in page even though the users have successfully logged in The Architect determines that the session is not being

saved properly.

In the "app/etc/env.php", the session is configured as follows:

Question # 7

What should the Architect do to correct this issue?

Options:

A.

Update the session host value to a shared Redis instance

B.

increase the session size with the command config:set system/security/max_session_size_admin

C.

Utilize the Remote Storage module to synchronize sessions between the servers

Question 8

In a custom module, an Architect wants to define a new xml configuration file. The module should be able to read all the xml configuration files declared in the system, merge them together, and use their values in PHP class.

Which two steps should the Architect make to meet this requirement? (Choose two.)

Options:

A.

Inject a "reader" dependency for "Magento\Framework\Config\Data" in di.xml

B.

Write a plugin for \Magento\Framework\Config\Data::get() and read the custom xml files

C.

Create a Data class that implements "\Magento\Framework\Config\Data"

D.

Append the custom xml file name in "Magento\Config\Model\Config\Structure\Reader" in di.xml

E.

Make a Reader class that implements '\Magento\Framework\Config\Reader\Filesystem"

Question 9

A client has multiple warehouses where orders can be fulfilled. The cost of shipping goods from each warehouse varies by day, due to the number of workers available. The Architect needs to make sure that when an order is shipped, it is shipped from the lowest cost warehouse that is open.

How should this functionality be implemented?

Options:

A.

Create anew class as a preference for Magento\inventoryShipping\piugin\Sales\shipment\AssignSourceCodeToShipmentPlugin to set the lowest-cost warehouse on a shipment.

B.

Create a new class implementing Magento\invtntorysourceSelectionApi\Modei\sourceSelectioninterfacece. which returns open warehouses sorted by cost.

C.

Create an after plugin OnHagento\InventoryDistanceBasedSourceSelection\Hodel\Algorithms\DistanceBasedAlgorithto sortto Warehouse sources by cost

Question 10

A third-party company needs to create an application that will integrate the Adobe Commerce system to get orders data for reporting. The integration needs access to the GET /Vl/orders endpoint. It will call this endpoint automatically every hour around the clock. The merchant wants the ability to restrict or extend access to resources as well as to revoke the access using Admin Panel.

Which type of authentication available in Adobe Commerce should be used and implemented in a third-party system for this integration?

Options:

A.

Use token-based authentication to obtain the Admin Token. The third-party system will utilize the REST endpoint using the admin username and password to get the Admin Token, which will be used as the Bearer Token to authorize.

B.

Use token-based authentication to obtain an integration Token, integration will be created and activated in the admin panel using default integration token settings to get access to the token, which will be used as the Bearer Token to authorize.

C.

Use OAuth-based authentication to provide access to system resources. Integration will be registered by the merchant in the admin panel with an OAuth handshake during activation. The third-party system should follow OAuth protocol to authorize.

Question 11

An Adobe Commerce Architect needs to log the result of a ServiceClass:: getData method execution after all plugins have executed. The method is public, and there are a few plugins declared for this method. Among those plugins are after and around types, and all have sortOrder specified.

Which solution should be used to meet this requirement?

Options:

A.

Declare a new plugin with the sortOrder value lower than the lowest declared plugin sortOrder and implement aroundGetData method.

B.

Declare a new plugin with the sortOrder value higher than the highest declared plugin sortOrder and implement afterGetData method.

C.

Declare a new plugin with the sortOrder value higher than the highest declared plugin sortOrder and implement aroundGetData method.

Question 12

Due to a marketing campaign, a website is experiencing a very large number of simultaneously placed orders, which is affecting checkout performance. The website is in the production deploy mode.

Which two website settings can an Architect optimize to decrease the impact on checkout performance? (Choose two.)

Options:

A.

Asynchronous indexing admin panel Setting (Stores > Settings > Configuration > Advanced> Developer > Grid Settings > Asynchronous indexing) can be enabled by executing the following CLI Command: bin/Magento config:set dev/grid/async_indexing 1

B.

Asynchronous email notifications admin panel setting (stores > settings > configuration > sales > sales Emails > General settings > Asynchronous) can be enabled

C.

A new database can be created and the Split Database feature can be automatically configured with the following command: bin/Magento setup:db-schema:spiit-sales –host"- --dbnanie""" --username""

D.

The website deploy mode can be set to siege by executingthe following CLI command: bin/Magento deploy:mode:set siege, provided that it will be changed back to production as soon as the number of simultaneously placed orders decreases to acceptable levels

E.

Multithreaded checkout processing admin panel setting (stores > settings > configuration > sales > checkout > General settings > Asynchronous) can be set to a higher value representing the number of PHP threads used exclusively for checkout

Question 13

A custom cron job has been added to an Adobe Commerce system to collect data for several reports. Its crontab. xml configuration is as follows:

Question # 13

The job is data intensive and runs for between 20 and 30 minutes each night.

Within a few days of deployment, it is noticed that the sites sitemap. xml file has not been updated since the new job was added.

What should be done to fix this issue?

Options:

A.

Change the schedule of the siten.aP_generate cron job to 30 0 * * *so that it runs after the gather_reporting_data job has completed.

B.

Create a new cron group for the reporting job, specifying i

C.

Break the data gathering job into a number of smaller jobs, so that each individual job runs for a maximum of 5 minutes

Question 14

An Adobe Commerce Architect is asked by a merchant using B2B features to help with a configuration issue.

The Architect creates a test Company Account and wants to create Approval Rules for orders. The Approval Rules tab does not appear in the Company section in the Customer Account Menu when the Architect logs in using the Company Administrator account.

Which two steps must be taken to fix this issue? (Choose two.)

Options:

A.

Set 'Enable B2B Quote’ in the B2B Admin to TRUE

B.

Merchant needs to log out of frontend and then log back in to load new permissions

C.

Set 'Enable Purchase Orders' in the B2B Admin to TRUE

D.

Set 'Enable Purchase Orders' on the Company Record to TRUE

E.

Make sure that the 'Purchase Order' payment method is active

Question 15

An Architect is investigating a deployment issue with a server that is configured to work under the symlink directory /var/www/current, which lead to the latest released version of the application.

The deployment process performs the following steps:

Question # 15

After the last deployment, the merchant reported that the Adobe Commerce Import/Export functionality to export Customer Main File data is not working. The Architect discovered that the export file is not shown in the list of generated files.

Which change to the deployment process should be performed to solve this issue?

Options:

A.

Restart the consumer process during deployment to use the directory with a new application version for export files.

B.

Execute Command config:set export/customr/files_directory /var/releases/{release_nunber} toSet the new export path.

C.

Doable Crontab before deployment and re-launch after deployment.

Page: 1 / 5
Total 50 questions