ExamGecko
Home / Adobe / AD0-E718 / List of questions
Ask Question

Adobe AD0-E718 Practice Test - Questions Answers, Page 4

List of questions

Question 31

Report
Export
Collapse

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.

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

Create one test class with one test method. Use the \Magento\testFramework\ store\Executionstorecontext class once in the fixture and another time in the test.
Create one test class with one test method. Use the \Magento\testFramework\ store\Executionstorecontext class once in the fixture and another time in the test.
Create two test Classes With one test method each. Use the @magentoExecuteInStoreContext 3 and @magentoExecuteInStoreContext 4 annotations on the class level.
Create two test Classes With one test method each. Use the @magentoExecuteInStoreContext 3 and @magentoExecuteInStoreContext 4 annotations on the class level.
Create one test class with two test methods. Use the @magentoStoreContext 3 annotation in one method and @magentoStoreContext 4 in the other one.
Create one test class with two test methods. Use the @magentoStoreContext 3 annotation in one method and @magentoStoreContext 4 in the other one.
Suggested answer: B

Explanation:

The best approach for the Architect to meet the requirements is Option B. Create two test Classes With one test method each. Use the @magentoExecuteInStoreContext 3 and @magentoExecuteInStoreContext 4 annotations on the class level. This will ensure that the fixture is executed in the context of Store View 3, and the tested logic is executed in the context of Store View 4. This approach allows for more granular control of the store views and reduces the complexity of the test.

asked 02/10/2024
Akash Makkar
35 questions

Question 32

Report
Export
Collapse

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

Enable price index customer group merging for products without tier prices
Enable price index customer group merging for products without tier prices
Set Customer Share Customer Accounts Option to Global
Set Customer Share Customer Accounts Option to Global
Edit customer groups to exclude websites that they are not using
Edit customer groups to exclude websites that they are not using
Set MaGE_INDEXER_THREADS_COUNT environment variable to enable parallel mode
Set MaGE_INDEXER_THREADS_COUNT environment variable to enable parallel mode
Move catalog price_index indexer to another custom indexer group
Move catalog price_index indexer to another custom indexer group
Suggested answer: A, D

Explanation:

The two best ways the Architect can shorten the full price index execution time are Option A. Enable price index customer group merging for products without tier prices, and Option D. Set MaGEINDEXERTHREADS_COUNT environment variable to enable parallel mode. Enabling customer group merging will help reduce the number of customer groups that need to be processed, while setting the environment variable will allow the indexer to use multiple threads and run in parallel mode, thus reducing the overall execution time.

asked 02/10/2024
Jesse Serrano
37 questions

Question 33

Report
Export
Collapse

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:

Adobe AD0-E718 image Question 33 92246 10022024174846000000

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 site's sitemap. xml file has not been updated since the new job was added.

What should be done to fix this issue?

Break the data gathering job into a number of smaller jobs, so that each individual job runs for a maximum of 5 minutes.
Break the data gathering job into a number of smaller jobs, so that each individual job runs for a maximum of 5 minutes.
Create a new cron group for the reporting job. Specifying<use_separate_process>1/use_separate_process>
Create a new cron group for the reporting job. Specifying<use_separate_process>1/use_separate_process>
Change the schedule of the sitemap_generate cron job to 30 o * * * so that it runs after the aacher_reporcmg_data job has completed.
Change the schedule of the sitemap_generate cron job to 30 o * * * so that it runs after the aacher_reporcmg_data job has completed.
Suggested answer: B

Explanation:

This will ensure that the reporting job runs in its own process, separate from other cron jobs, and will not interfere with the sitemapgenerate cron job. This will ensure that the sitemapgenerate cron job runs as soon as the reporting job is finished, ensuring that the sitemap.xml is always up to date.

asked 02/10/2024
Zahidul Haque
47 questions

Question 34

Report
Export
Collapse

A merchant is utilizing an out-of-the-box Adobe Commerce application and asks to add a new reward card functionality for customers. During the code review, the Adobe Commerce Architect notices the reward_card_number attribute setup created for this functionality is causing the customer attribute to be unavailable in the My account/My rewards page template.

Adobe AD0-E718 image Question 34 92247 10022024174846000000

What should be added to set the customer attribute correctly?

scope property should be added with a value of global
scope property should be added with a value of global
group property should be added with a value of 1
group property should be added with a value of 1
system property should be added with a value of true
system property should be added with a value of true
Suggested answer: A
asked 02/10/2024
Maija Janite
38 questions

Question 35

Report
Export
Collapse

An Architect agrees to improve company coding standards and discourage using Helper classes in the code by introducing a new check with PHPCS.

The Architect creates the following:

• A new composer package under the AwesomeAgency\CodingStandard\ namespace

• The ruleset. xml file extending the Magento 2 Coding Standard

What should the Architect do to implement the new code rule?

A)

Adobe AD0-E718 image Question 35 92248 10022024174846000000

B)

Adobe AD0-E718 image Question 35 92248 10022024174846000000

C)

Adobe AD0-E718 image Question 35 92248 10022024174846000000

Option A
Option A
Option B
Option B
Option C
Option C
Suggested answer: B
asked 02/10/2024
mahdis khaledi
46 questions

Question 36

Report
Export
Collapse

A developer needs to uninstall two custom modules as well as the database data and schemas. The developer uses the following command: bin/magento module:uninstall Vendor_SampleMinimal Vendor_SampleModifyContent When the command is run from CLI, the developer fails to remove the database schema and data defined in the module Uninstall class.

Which three requirements should the Architect recommend be checked to troubleshoot this issue?

(Choose three.)

remove-schema and --remove-data options are specified as arguments for the CLI command
remove-schema and --remove-data options are specified as arguments for the CLI command
bin/magento maintenance: enable command should be run in CLI before
bin/magento maintenance: enable command should be run in CLI before
composer.json file is present and defines the module as a composer package
composer.json file is present and defines the module as a composer package
Invoke uninstallData() and uninstallSchema () are defined in the Uninstall class
Invoke uninstallData() and uninstallSchema () are defined in the Uninstall class
--remove-data option is specified as an argument for the CLI command
--remove-data option is specified as an argument for the CLI command
invoked uninstall () method is implemented in the Uninstall class
invoked uninstall () method is implemented in the Uninstall class
Suggested answer: A, D, F

Explanation:

To troubleshoot the issue, the Architect should check that the remove-schema and --remove-data options are specified as arguments for the CLI command, that the Uninstall class defines the uninstallData() and uninstallSchema() methods, and that the invoked uninstall() method is implemented in the Uninstall class.

asked 02/10/2024
Donovan Rodriguez
31 questions

Question 37

Report
Export
Collapse

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 napp/etc/env.php\ the session is configured as follows:

Adobe AD0-E718 image Question 37 92250 10022024174846000000

What should the Architect do to correct this issue?

Become a Premium Member for full access
  Unlock Premium Member

Question 38

Report
Export
Collapse

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:

Adobe AD0-E718 image Question 38 92251 10022024174846000000

The Architect looks at the class and notices that the constructor has 15 parameters. Five of these parameters are scalars configuring the behavior of Kyservice.

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

Become a Premium Member for full access
  Unlock Premium Member

Question 39

Report
Export
Collapse

An Architect needs to review a custom product feed export module that a developer created for a merchant. During final testing before the solution is deployed, the product feed output is verified as correct. All unit and integration tests for code pass.

However, once the solution is deployed to production, the product price values in the feed are incorrect for several products. The products with incorrect data are all currently part of a content staging campaign where their prices have been reduced.

What did the developer do incorrectly that caused the feed output to be incorrect for products in the content staging campaign?

Become a Premium Member for full access
  Unlock Premium Member

Question 40

Report
Export
Collapse

An Adobe Commerce Architect needs to ensure zero downtime during the deployment process of Adobe Commerce on-premises. Which two steps should the Architect follow? (Choose two.)

Become a Premium Member for full access
  Unlock Premium Member
Total 50 questions
Go to page: of 5
Search

Related questions