ExamGecko
Home Home / Adobe / AD0-E718

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

Question list
Search
Search

List of questions

Search

Related questions











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?

A.
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.
A.
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.
Answers
B.
Create two test Classes With one test method each. Use the @magentoExecuteInStoreContext 3 and @magentoExecuteInStoreContext 4 annotations on the class level.
B.
Create two test Classes With one test method each. Use the @magentoExecuteInStoreContext 3 and @magentoExecuteInStoreContext 4 annotations on the class level.
Answers
C.
Create one test class with two test methods. Use the @magentoStoreContext 3 annotation in one method and @magentoStoreContext 4 in the other one.
C.
Create one test class with two test methods. Use the @magentoStoreContext 3 annotation in one method and @magentoStoreContext 4 in the other one.
Answers
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.

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

A.
Enable price index customer group merging for products without tier prices
A.
Enable price index customer group merging for products without tier prices
Answers
B.
Set Customer Share Customer Accounts Option to Global
B.
Set Customer Share Customer Accounts Option to Global
Answers
C.
Edit customer groups to exclude websites that they are not using
C.
Edit customer groups to exclude websites that they are not using
Answers
D.
Set MaGE_INDEXER_THREADS_COUNT environment variable to enable parallel mode
D.
Set MaGE_INDEXER_THREADS_COUNT environment variable to enable parallel mode
Answers
E.
Move catalog price_index indexer to another custom indexer group
E.
Move catalog price_index indexer to another custom indexer group
Answers
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.

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:

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?

A.
Break the data gathering job into a number of smaller jobs, so that each individual job runs for a maximum of 5 minutes.
A.
Break the data gathering job into a number of smaller jobs, so that each individual job runs for a maximum of 5 minutes.
Answers
B.
Create a new cron group for the reporting job. Specifying<use_separate_process>1/use_separate_process>
B.
Create a new cron group for the reporting job. Specifying<use_separate_process>1/use_separate_process>
Answers
C.
Change the schedule of the sitemap_generate cron job to 30 o * * * so that it runs after the aacher_reporcmg_data job has completed.
C.
Change the schedule of the sitemap_generate cron job to 30 o * * * so that it runs after the aacher_reporcmg_data job has completed.
Answers
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.

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.

What should be added to set the customer attribute correctly?

A.
scope property should be added with a value of global
A.
scope property should be added with a value of global
Answers
B.
group property should be added with a value of 1
B.
group property should be added with a value of 1
Answers
C.
system property should be added with a value of true
C.
system property should be added with a value of true
Answers
Suggested answer: A

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)

B)

C)

A.
Option A
A.
Option A
Answers
B.
Option B
B.
Option B
Answers
C.
Option C
C.
Option C
Answers
Suggested answer: B

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

A.
remove-schema and --remove-data options are specified as arguments for the CLI command
A.
remove-schema and --remove-data options are specified as arguments for the CLI command
Answers
B.
bin/magento maintenance: enable command should be run in CLI before
B.
bin/magento maintenance: enable command should be run in CLI before
Answers
C.
composer.json file is present and defines the module as a composer package
C.
composer.json file is present and defines the module as a composer package
Answers
D.
Invoke uninstallData() and uninstallSchema () are defined in the Uninstall class
D.
Invoke uninstallData() and uninstallSchema () are defined in the Uninstall class
Answers
E.
--remove-data option is specified as an argument for the CLI command
E.
--remove-data option is specified as an argument for the CLI command
Answers
F.
invoked uninstall () method is implemented in the Uninstall class
F.
invoked uninstall () method is implemented in the Uninstall class
Answers
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.

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:

What should the Architect do to correct this issue?

A.
Utilize the Remote Storage module to synchronize sessions between the servers
A.
Utilize the Remote Storage module to synchronize sessions between the servers
Answers
B.
Update the session host value to a shared Redis instance
B.
Update the session host value to a shared Redis instance
Answers
C.
Increase the session size with the command config:set system/security/max_session_size_admin
C.
Increase the session size with the command config:set system/security/max_session_size_admin
Answers
Suggested answer: B

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:

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?

A.
Introduce a new class accepting those five scalars and use it in the constructor and the remaining logic of Myservice
A.
Introduce a new class accepting those five scalars and use it in the constructor and the remaining logic of Myservice
Answers
B.
Modify the code of Myservice so the number of different classes, interfaces, and scalar types used as parameters in the constructor and other methods is less than 13
B.
Modify the code of Myservice so the number of different classes, interfaces, and scalar types used as parameters in the constructor and other methods is less than 13
Answers
C.
Modify the code of Myservice so that the number of different classes and interfaces referenced anywhere inside the class is less than 13
C.
Modify the code of Myservice so that the number of different classes and interfaces referenced anywhere inside the class is less than 13
Answers
Suggested answer: A

Explanation:

The best way to fix the code so that it complies with the coding standard rule is to introduce a new class accepting those five scalars and use it in the constructor and the remaining logic of Myservice.

This will reduce the number of different classes, interfaces, and scalar types used as parameters in the constructor and other methods to less than 13, which is the limit set by the coding standard.

Additionally, any extra code that is not necessary can be removed to reduce the general complexity of the class and improve readability.

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?

A.
The developer forgot to use the getContentStagingValue() method to retrieve the active campaign value of the product data
A.
The developer forgot to use the getContentStagingValue() method to retrieve the active campaign value of the product data
Answers
B.
The developer retrieved product data directly from the database using the entity_id column rather than a collection or repository.
B.
The developer retrieved product data directly from the database using the entity_id column rather than a collection or repository.
Answers
C.
The developer did not check for an active content staging campaign and emulates the campaign state when retrieving product data.
C.
The developer did not check for an active content staging campaign and emulates the campaign state when retrieving product data.
Answers
Suggested answer: A

Explanation:

According to the Adobe Commerce documentation, when retrieving product data, developers must use the getContentStagingValue() method to ensure that the active campaign value for the product is retrieved. This method takes into account any content staging campaigns that might be active, and returns the appropriate value from the content staging campaign rather than the default value from the database. Failing to use this method can result in incorrect data being returned in the product feed.

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

A.
Run bin/magento setup:upgrade --keep-generated to Upgrade database
A.
Run bin/magento setup:upgrade --keep-generated to Upgrade database
Answers
B.
Run bin/magento setup:upgrade —dry-run=true to upgrade database
B.
Run bin/magento setup:upgrade —dry-run=true to upgrade database
Answers
C.
Rim bin/magento setup:upgrade --convert-old-scripts=true to Upgrade database
C.
Rim bin/magento setup:upgrade --convert-old-scripts=true to Upgrade database
Answers
D.
Enable config flag under developer/zere _down_time/enabled
D.
Enable config flag under developer/zere _down_time/enabled
Answers
E.
Enable config flag under deployment/blue_ green/enabled
E.
Enable config flag under deployment/blue_ green/enabled
Answers
Suggested answer: D, E

Explanation:

In order to ensure zero downtime during the deployment process of Adobe Commerce on-premises, the Architect should enable the config flags under developer/zerodowntime/enabled and deployment/bluegreen/enabled. The zerodowntime/enabled flag will allow for the deployment process to be completed without the need for any downtime, and the bluegreen/enabled flag will enable the blue-green deployment strategy, which allows for a seamless transition between the two deployments. Additionally, the Architect should run bin/magento setup:upgrade to upgrade the database.

Total 50 questions
Go to page: of 5