ExamGecko
Home Home / Adobe / AD0-E722

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

Question list
Search
Search

List of questions

Search

Related questions











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

What should be done to fix this issue?

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.
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.
Answers
B.
Create a new cron group for the reporting job, specifying <use_separate_process>i</use_separate_process>
B.
Create a new cron group for the reporting job, specifying <use_separate_process>i</use_separate_process>
Answers
C.
Break the data gathering job into a number of smaller jobs, so that each individual job runs for a maximum of 5 minutes
C.
Break the data gathering job into a number of smaller jobs, so that each individual job runs for a maximum of 5 minutes
Answers
Suggested answer: B

Explanation:

The issue here is that the gather_reporting_data job is running for a long time and blocking the sitemap_generate job from running. The solution is to create a new cron group for the reporting job and specify <use_separate_process>i</use_separate_process> so that the reporting job runs in a separate process and does not block the sitemap_generate job.Reference: https://experienceleague.adobe.com/docs/commerce-cloud-service/user-guide/architecture/starter-architecture.html?lang=en#cron-groups-and-processes

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

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.
group property should be added with a value of 1
A.
group property should be added with a value of 1
Answers
B.
system property should be added with a value of true
B.
system property should be added with a value of true
Answers
C.
scope property should be added with a value of global
C.
scope property should be added with a value of global
Answers
Suggested answer: A

Explanation:

The group property determines which section of the customer account the attribute belongs to. By setting the group property to 1, the reward_card_number attribute will be assigned to the default group, which is the Account Information section.This will make the attribute available in the My account/My rewards page template.Reference: https://experienceleague.adobe.com/docs/commerce-admin/customers/customer-accounts/attributes/attribute-properties.html?lang=en#group1

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 retrieved product data directly from the database using the entity_id column rather than a collection or repository.
A.
The developer retrieved product data directly from the database using the entity_id column rather than a collection or repository.
Answers
B.
The developer forgot to use the getContentStagingValue method to retrieve the active campaign value of the product data.
B.
The developer forgot to use the getContentStagingValue method to retrieve the active campaign value of the product data.
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: C

Explanation:

Option C is correct because the developer did not check for an active content staging campaign and emulate the campaign state when retrieving product data. Content staging campaigns can modify the product data such as price, name, description, and so on, based on a schedule.To get the correct product data for a specific date and time, the developer needs to use the Magento\Staging\Model\VersionManager class to set the current version ID and emulate the campaign state1. Otherwise, the product data will be retrieved from the default store view without applying the campaign changes.

Option A is incorrect because retrieving product data directly from the database using the entity_id column is not necessarily wrong. It may not be the best practice, but it does not cause the feed output to be incorrect for products in the content staging campaign.The content staging campaigns are stored in separate tables with a version ID that links to the main product table2. The developer can still join these tables and query the product data based on the version ID and date.

Option B is incorrect because there is no such method as getContentStagingValue in Magento 2. The developer cannot use this method to retrieve the active campaign value of the product data. The correct way to get the product data for a specific campaign is to use the Magento\Staging\Model\VersionManager class as mentioned above.

1: Content Staging | Adobe Commerce Developer Guide

2: Content Staging | Adobe Commerce Developer Guide

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: C

Explanation:

Option C is correct because adjusting the ruleset.xml file with the new rule is the simplest and most effective way to implement the new code rule. The ruleset.xml file defines the coding standards that are applied by PHP_CodeSniffer. By extending the Magento 2 Coding Standard and adding a new rule, the Architect can customize the code analysis and enforce the company coding standards.The new rule can use the Magento2.Namespaces.ForbiddenNamespaces sniff to check for any usage of Helper classes in the code and report them as errors or warnings1.

Option A is incorrect because creating a new composer package under the AwesomeAgency\CodingStandard\ namespace is not enough to implement the new code rule. The composer package is just a way to distribute and install the coding standard, but it does not define the rules themselves.The Architect still needs to create a ruleset.xml file and register it with PHP_CodeSniffer2.

Option B is incorrect because creating a new class \AwesomeAgency\CodingStandard\Ruleset\ForbiddenNamespaces and specifying the rule inside the process method is unnecessary and complicated. The Architect does not need to create a new class or a new sniff for this rule, as there is already an existing sniff in the Magento 2 Coding Standard that can be used for this purpose.The Magento2.Namespaces.ForbiddenNamespaces sniff can be configured with an include-pattern element to specify which namespaces are forbidden1.

1: Magento 2 Coding Standards | Adobe Commerce Developer Guide

2: How to create a custom coding standard | PHP_CodeSniffer Documentation

A merchant notices that product price changes do not update on the storefront.

The index management page in the Adobe Commerce Admin Panel shows the following:

* All indexes are set to 'update by schedule'

* Their status is 'ready'

* There are no items in the backlog

* The indexes were last updated 1 minute ago

A developer verifies that updating and saving product prices adds the relevant product IDs into the catalog_product_price_cl changelog table. Which two steps should the Architect recommend to the developer to resolve this issue? (Choose two.)

A.
Reduce the frequency of the cron job to 5 minutes so the items have more time to process.
A.
Reduce the frequency of the cron job to 5 minutes so the items have more time to process.
Answers
B.
Make sure that no custom or third-party modules modify the changelog and indexing process.
B.
Make sure that no custom or third-party modules modify the changelog and indexing process.
Answers
C.
Make sure that the version_id for the price indexer in the mview_state table is not higher than the last entry for the same column in the changelog table and re-synchronize.
C.
Make sure that the version_id for the price indexer in the mview_state table is not higher than the last entry for the same column in the changelog table and re-synchronize.
Answers
D.
Invalidate the catalog_Product_price indexer in the Adobe Commerce Admin Panel so that it is fully reindexed next time the cron runs.
D.
Invalidate the catalog_Product_price indexer in the Adobe Commerce Admin Panel so that it is fully reindexed next time the cron runs.
Answers
E.
Manually reindex the catalog_product_price index from the command line: bin/magento indexer:reindex catalog_product_price.
E.
Manually reindex the catalog_product_price index from the command line: bin/magento indexer:reindex catalog_product_price.
Answers
Suggested answer: B, C

Explanation:

The issue here is that the product price changes are not reflected on the storefront, even though the indexes are set to update by schedule and there are no items in the backlog. This indicates that there might be some problem with the changelog and indexing process, which are responsible for tracking and applying the data changes to the index tables. Therefore, the Architect should recommend the developer to check if any custom or third-party modules interfere with the changelog and indexing process, and disable or fix them if needed. Additionally, the Architect should recommend the developer to verify that the version_id for the price indexer in the mview_state table is consistent with the last entry for the same column in the changelog table, and re-synchronize them if they are out of sync.This will ensure that the indexer can process all the data changes correctly and update the index tables accordingly.Reference: https://experienceleague.adobe.com/docs/commerce-admin/systems/tools/index-management.html?lang=en#cron-groups-and-processes1https://devdocs.magento.com/guides/v2.4/extension-dev-guide/indexing.html#m2devgde-mview2

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:

What should the Architect do to correct this issue?

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

Explanation:

Option A is correct because updating the session host value to a shared Redis instance in the ''app/etc/env.php'' file will allow the session to be saved properly and prevent users from being redirected to the sign-in page after logging in. Redis is a fast and reliable in-memory data store that can be used for session storage in Magento 2. By using a shared Redis instance, the session data can be accessed by any of the backend web servers behind the load balancer, regardless of which server handled the initial request.This ensures that the user's session is maintained and consistent across different servers1.

Option B is incorrect because increasing the session size with the command config:set system/security/max_session_size_admin will not solve the issue of session not being saved properly. This command only affects the admin session size limit, not the customer session size limit.Moreover, this command does not address the root cause of the issue, which is that the session data is not shared among the backend web servers2.

Option C is incorrect because utilizing the Remote Storage module to synchronize sessions between the servers is not a viable solution for this issue. The Remote Storage module is a feature of Magento Commerce Cloud that allows storing media files and other static content on a remote storage service such as AWS S3 or Azure Blob Storage.This module does not support synchronizing sessions between servers, as sessions are dynamic and transient data that need to be stored in a fast and accessible data store such as Redis3.

1: Use Redis for session storage | Adobe Commerce Developer Guide

2: Security | Adobe Commerce User Guide

3: Remote storage | Adobe Commerce Developer Guide

An Adobe Commerce Architect designs and implements functionality that introduces a new Complex Product Type to the existing Adobe Commerce website. Besides visual demonstration of the new product type, the changes include adjustments to the price index.

The website utilizes a multi-dimensional indexer feature to store the price index. The Architect decides to cover it with integration tests. After creating and running one test, the Architect discovers that database storage is not being fully cleaned.

The test method has the following annotation declaration:

Which adjustment should the Architect make to fix this issue?

A.
Add annotation @magentoApplsolation enabled to method PHPDoc
A.
Add annotation @magentoApplsolation enabled to method PHPDoc
Answers
B.
Modify method PHPDoc and change annotation @magentoDbIsolation to enabled
B.
Modify method PHPDoc and change annotation @magentoDbIsolation to enabled
Answers
C.
Create Customer_ProductType: :Test/_files/{fixture_name)_rollback.php for every fixture
C.
Create Customer_ProductType: :Test/_files/{fixture_name)_rollback.php for every fixture
Answers
Suggested answer: B

Explanation:

The issue here is that the database storage is not being fully cleaned after the test is run. The solution is to modify the method PHPDoc and change the annotation @magentoDbIsolation to enabled.This will ensure that the database storage is fully cleaned after the test is run.Reference: https://developer.adobe.com/commerce/testing/guide/integration/#database-isolation1

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.
Enable Config flag Under deployement/blue_green/enabled
A.
Enable Config flag Under deployement/blue_green/enabled
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.
Run bin/magento setup:upgrade - -keep-generated to Upgrade database
C.
Run bin/magento setup:upgrade - -keep-generated to Upgrade database
Answers
D.
Run bin/magento setup:upgrad --convert-old-scripts-true to Upgrade database
D.
Run bin/magento setup:upgrad --convert-old-scripts-true to Upgrade database
Answers
E.
Enable Config flag Under developer/zero_down_time/enabled
E.
Enable Config flag Under developer/zero_down_time/enabled
Answers
Suggested answer: A, C

Explanation:

Option A is correct because enabling the config flag under deployment/blue_green/enabled is one of the steps to ensure zero downtime during the deployment process of Magento 2 on-premises. This flag enables the blue-green deployment feature, which allows deploying a new version of the Magento application to a separate environment (blue) without affecting the current live environment (green).Once the new version is ready, the traffic can be switched from green to blue with minimal or no downtime1.

Option C is correct because running bin/magento setup:upgrade --keep-generated is another step to ensure zero downtime during the deployment process of Magento 2 on-premises. This command updates the database schema and data without deleting the generated code and static view files.This way, the Magento application can still serve requests from the cache while the database is being upgraded2.

Option B is incorrect because running bin/magento setup:upgrade --dry-run=true does not upgrade the database, but only checks if there are any errors or conflicts in the database schema or data.This command can be used for testing purposes, but it does not affect the deployment process or the downtime3.

Option D is incorrect because there is no such option as --convert-old-scripts-true for the bin/magento setup:upgrade command. This option does not exist in Magento 2 and does not have any effect on the deployment process or the downtime.

Option E is incorrect because there is no such config flag as developer/zero_down_time/enabled in Magento 2. This flag does not exist in Magento 2 and does not have any effect on the deployment process or the downtime.

1: Blue-green deployment | Adobe Commerce Developer Guide

2: Deploy Magento to production | Adobe Commerce Developer Guide

3: Command-line installation options | Adobe Commerce Developer Guide

An Adobe Commerce Architect is working on a scanner that will pull prices from multiple external product feeds. The Architect has a list of vendors and decides to create new config file marketplace.feeds.xml.

Which three steps can the Architect take to ensure validation of the configuration files with unique validation rules for the individual and merged files? (Choose three.)

A.
Implement validation rules in the Converter class for the Config Reader
A.
Implement validation rules in the Converter class for the Config Reader
Answers
B.
Create validation rules in marketplace.schema.xsd.
B.
Create validation rules in marketplace.schema.xsd.
Answers
C.
Provide schema to validate a merged file.
C.
Provide schema to validate a merged file.
Answers
D.
Add the Uniform Resource Name to the XSD file in the config XML file.
D.
Add the Uniform Resource Name to the XSD file in the config XML file.
Answers
E.
Provide schema to validate an individual file.
E.
Provide schema to validate an individual file.
Answers
F.
Create a class that implements \Magento\Framework\Config\Datainterface.
F.
Create a class that implements \Magento\Framework\Config\Datainterface.
Answers
Suggested answer: B, C, E

Explanation:

The Architect can take the following steps to ensure validation of the configuration files with unique validation rules for the individual and merged files:

Create validation rules in marketplace.schema.xsd. This file defines the structure and constraints of the XML elements and attributes for the marketplace.feeds.xml configuration file. The Architect can use this file to specify the required and optional elements, data types, values, and patterns for the configuration file.

Provide schema to validate a merged file. This schema is used to validate the final configuration file that is generated after merging all the individual configuration files from different modules. The Architect can use this schema to check the consistency and completeness of the merged configuration file.

Provide schema to validate an individual file. This schema is used to validate each individual configuration file from each module before merging them. The Architect can use this schema to check the syntax and validity of each configuration file.

Total 50 questions
Go to page: of 5