Go to AD0-E718 Questions - Try AD0-E718 dumps pdf [Q12-Q35]

Share

Go to AD0-E718 Questions - Try AD0-E718 dumps pdf

Dumps Practice Exam Questions Study Guide for the AD0-E718 Exam

NEW QUESTION # 12
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 /vi/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?

  • A. 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.
  • B. 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.
  • C. Use OAuth-based authentication to provide access to system resources. Integration will be registered by the merchant in the panel an OAuth handshake during activation. The third-party system should follow OAuth protocol to authorize.

Answer: C

Explanation:
Explanation
According to the documentation1, token-based authentication is a simple way to access resources using an access token that is generated when an integration is activated. OAuth-based authentication is a more secure way to access resources using a consumer key, consumer secret, access token, and access token secret that are generated when an integration is registered and authorized.
Based on these definitions, I would say that the type of authentication that should be used and implemented in a third-party system for this integration is:
* B. Use OAuth-based authentication to provide access to system resources. Integration will be registered
* by the merchant in the panel an OAuth handshake during activation. The third-party system should follow OAuth protocol to authorize.


NEW QUESTION # 13
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/iuagento 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?

  • A. Set the 'Stores > Configuration' option for "Store Session Data Separately' to 'Yes' in the Adobe Commerce Admin Panel.
  • B. Educate the merchant to not flush cache storage and only refresh the caches in future.
  • C. Check app/etc/evn.php and make sure that the Redis configuration for caches and session data use different database numbers.

Answer: C

Explanation:
Checking app/etc/env.php and making sure that the Redis configuration for caches and session data use different database numbers is the next step. This is because using the same database number for both caches and session data can cause session data to be lost when flushing the cache storage. By using different database numbers, the session data can be isolated from the cache data and avoid being overwritten. See Use Redis for session storage in the Adobe Commerce Help Center1. Reference: https://experienceleague.adobe.com/docs/commerce-operations/configuration-guide/cache/redis/redis-session.html?lang=en1


NEW QUESTION # 14
An external system integrates functionality of a product catalog search using Adobe Commerce GraphQL API. The Architect creates a new attribute my_attribute in the admin panel with frontend type select.
Later, the Architect sees that Productinterface already has the field my_atcribute, but returns an mc value. The Architect wants this field to be a new type that contains both option id and label.
To meet this requirement, an Adobe Commerce Architect creates a new module and file etc/schema.graphqls that declares as follows:

After calling command setup:upgrade, the introspection of Productlnterface field xy_attribute remains int. What prevented the value type of field my_attribute from changing?

  • A. The Magento.CatalogGraphQI module occurs later in sequence than the Magento.GraphQI module and merging output of dynamic attributes schema reader overrides types declared in schema.graphqls
  • B. The interface Productlnterface is already declared in Magento.CatalogGraphQI module. Extending requires use of the keyword -xceni before a new declaration of Productlnterface.
  • C. The fields of Productlnterface are checked during processing schema.graphqls files. If they have a corresponding attribute, then the backendjype of product attribute is set for field type.

Answer: C

Explanation:
According to the Adobe Commerce Developer Guide1, the fields of ProductInterface are checked during processing schema.graphqls files. If they have a corresponding attribute, then the backend_type of product attribute is set for field type. Therefore, the value type of field my_attribute remains int because it corresponds to the attribute my_attribute that has a frontend type select and a backend_type int.


NEW QUESTION # 15
An Adobe Commerce Architect creates a new functionality called Customs Fee, which adds a new total that applies to additional costs for handling customs clearance expenses. The extension allows specifying fee value for every website separately via the Adobe Commerce Configuration System.
The Architect plans to cover new functionality with integration tests. One test case needs to confirm if the total is calculated correctly on different websites.
How should the Architect make sure that test configuration data is added to test methods according to best practices?

  • A. Specify @magentoconfigFixture annotations for the test methods in PHPDoc
  • B. Create a fixture file to configure Adobe Commerce and specify it in test method PHPDoc using the @magentoconfigFixture annotation
  • C. Override setuo () method, receive instance of \Magento\TestFramework\App\config, and specify value via setValue () method

Answer: B

Explanation:
The best practice for adding test configuration data is to use a fixture file that contains the configuration values for different websites. The fixture file can be specified in the test method PHPDoc using the @magentoconfigFixture annotation. This way, the configuration data is isolated from the test code and can be reused for other tests. Reference: https://devdocs.magento.com/guides/v2.4/test/integration/annotations/magento-config-fixture.html


NEW QUESTION # 16
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.
  • B. 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 two test Classes With one test method each. Use the @magentoExecuteInStoreContext 3 and
    @magentoExecuteInStoreContext 4 annotations on the class level.

Answer: C

Explanation:
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.


NEW QUESTION # 17
An Adobe Commerce store owner sets up a custom customer attribute "my.attribute" (type int).
An Architect needs to display customer-specific content on the home page to Customers with "my.attribute" greater than 3. The website is running Full Page Cache.
Using best practices, which two steps should the Architect take to implement these requirements? (Choose two.)

  • A. Use customer-data JS library to retrieve "my.attribute" value
  • B. Add a custom block and a phtml template with the content to the cmsjndexjndex.xml layout
  • C. Add a dynamic block with the content to the Home Page
  • D. Create a Customer Segment and use "my.attribute" in the conditions
  • E. Add a new context value of "my.attribute" to Magento\Framework\App\Http\Context

Answer: C,E

Explanation:
To display customer-specific content on the home page with Full Page Cache enabled, the Architect needs to add a new context value of "my.attribute" to Magento\Framework\App\Http\Context. This will allow the cache to vary based on the value of "my.attribute". Then, the Architect needs to add a dynamic block with the content to the Home Page. A dynamic block is a type of content block that can be personalized based on customer segments or other conditions. Reference: https://devdocs.magento.com/guides/v2.4/extension-dev-guide/cache/page-caching/public-content.html https://docs.magento.com/user-guide/marketing/page-builder-add-content-block.html


NEW QUESTION # 18
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
  • B. The developer did not check for an active content staging campaign and emulates the campaign state when retrieving product data.
  • C. The developer retrieved product data directly from the database using the entity_id column rather than a collection or repository.

Answer: B

Explanation:
Based on the given scenario, it is likely that option C - "The developer did not check for an active content staging campaign and emulates the campaign state when retrieving product data" - is the correct answer. It appears that the developer did not take into account the active content staging campaign and did not properly adjust the product data when generating the product feed. As a result, the feed output is incorrect for products that are part of the staging campaign and have their prices reduced. The correct solution would be to check for an active content staging campaign and properly adjust the product data to reflect the campaign state.


NEW QUESTION # 19
A representative of a small business needs an Adobe Commerce Architect to design a custom integration of a third-party payment solution. They want to reduce the list of controls identified in their Self-Assessment Questionnaire as much as possible to achieve PCI compliance for their existing Magento application.
Which approach meets the business needs?

  • A. Utilize the Advanced Encryption standard (AES-256) algorithm to encrypt all customer-sensitive data from the payment module.
  • B. Utilize the payment provider Iframe system to isolate content of the embedded frame from the parent web page.
  • C. Utilize a trusted signed certificate issued by a Certification Authority (CA) to secure each connection made by the payment solution protocol via HTTPS.

Answer: B

Explanation:
The Architect should utilize the payment provider iframe system to isolate content of the embedded frame from the parent web page. This approach will reduce the list of controls identified in their Self-Assessment Questionnaire as much as possible to achieve PCI compliance for their existing Magento application. By using an iframe, the payment provider handles all customer-sensitive data and Magento does not store or process any cardholder data. This reduces the PCI scope and simplifies the compliance process. Option B is incorrect because utilizing the Advanced Encryption Standard (AES-256) algorithm to encrypt all customer-sensitive data from the payment module will not reduce the PCI scope, but rather increase it. Magento will still store and process cardholder data, which requires more controls and validation. Option C is incorrect because utilizing a trusted signed certificate issued by a Certification Authority (CA) to secure each connection made by the payment solution protocol via HTTPS will not reduce the PCI scope, but rather ensure the security of data transmission. Magento will still store and process cardholder data, which requires more controls and validation. Reference: https://devdocs.magento.com/guides/v2.4/payments-integrations/payment-gateway/integration.html


NEW QUESTION # 20
An Adobe Commerce Architect designs a data flow that contains a new product type with its own custom pricing logic to meet a merchant requirement.
Which three developments are valid when reviewing the implementation? (Choose three.)

  • A. A new class with custom pricing logic, extending the abstract Product model class
  • B. Custom type model extended from the abstract Product Type model
  • C. New price model extending \Magento\Catalog\Model\Product\Type\Price
  • D. Content of the etc/product_types.xml file
  • E. Data patch to register the new product type
  • F. Hydrator for attributes belonging to the new product type

Answer: B,C,D

Explanation:
To create a new product type with its own custom pricing logic, you need to consider the following developments:
Content of the etc/product_types.xml file. This file will define the name, label, modelInstance, and priceModel of the new product type. The modelInstance will specify the custom type model that extends from the abstract Product Type model. The priceModel will specify the new price model that extends \Magento\Catalog\Model\Product\Type\Price.
Custom type model extended from the abstract Product Type model. This model will implement the logic and behavior of the new product type, such as how to prepare product for cart, how to process buy request, how to check product options, etc.
New price model extended \Magento\Catalog\Model\Product\Type\Price. This model will implement the custom pricing logic for the new product type, such as how to calculate final price, tier price, minimal price, etc.
Reference:
1: https://meetanshi.com/blog/create-custom-product-type-in-magento-2/


NEW QUESTION # 21
An Adobe Commerce Architect is troubleshooting an issue on an Adobe Commerce Cloud project that is not yet live.
The developers migrate the Staging Database to Production in readiness to Go Live. However, when the developers test their Product Import feature, the new products do not appear on the frontend.
The developers suspect the Varnish Cache is not being cleared. Staging seems to work as expected. Production was working before the database migration.
What is the likely cause?

  • A. The Fastly credentials in the Production Database are incorrect.
  • B. The site URLs in the Production Database are the URLs of the Staging Instance and must be updated.
  • C. A deployment should have been done on Production to initialize Fastly caching.

Answer: C

Explanation:
Explanation
The likely cause of the issue is that a deployment should have been done on Production to initialize Fastly caching. This is because when the database is migrated from Staging to Production, any changes made to the Staging Database will not be reflected in the Production environment until a deployment is made. This includes any changes made to the Varnish Cache, which needs to be cleared in order for the new products to appear on the frontend.


NEW QUESTION # 22
An Adobe Commerce Architect needs to set up two websites on a single Adobe Commerce instance with base URLs: example.com and website2.example.com.
How should the Architect configure this project so that both websites can use the same customer base?

  • A. Change Session Cookie attribute to "SameSite=None"
  • B. Set Cookie Domain for both websites to ".example.com"
  • C. Disable Session Validation for "HTTP_X_FORWARDED_FOR" header

Answer: B

Explanation:
Explanation
By setting the same cookie domain for both websites, the customer base can be shared between both websites, as the customer will be authenticated by the same cookie across both sites. This will ensure that customers don't have to log in twice when switching between the two sites.


NEW QUESTION # 23
An Adobe Commerce Architect notices that queue consumers close TCP connections too often on Adobe Commerce Cloud server leading to delays in processing messages.
The Architect needs to make sure that consumers do not terminate after processing available messages in the queue when CRON job is running these consumers.
How should the Architect meet this requirement?

  • A. Increase multiple_process limit to spawn more processes for each consumer.
  • B. Set CONSUMER_WAIT_FOR_MAX_MESSAGES variable true in deployment stage.
  • C. Change max_messages from 10,000 to 1,000 for CRON_CONSUMER_RUNNERvariable.

Answer: B

Explanation:
Explanation
The best way to meet this requirement is to set the CONSUMERWAITFORMAXMESSAGES variable to true in the deployment stage. This variable will ensure that the consumer will not terminate when there are no more messages in the queue and will instead wait until a new message is available, preventing it from closing the connection prematurely. Additionally, the multiple_processes limit can be increased to spawn more processes for each consumer, which will help ensure that messages can be processed faster.


NEW QUESTION # 24
An external system integrates functionality of a product catalog search using Adobe Commerce GraphQL API. The Architect creates a new attribute my_attribute in the admin panel with frontend type select.
Later, the Architect sees that Productinterface already has the field my_atcribute, but returns an mc value. The Architect wants this field to be a new type that contains both option id and label.
To meet this requirement, an Adobe Commerce Architect creates a new module and file etc/schema.graphqls that declares as follows:

After calling command setup:upgrade, the introspection of Productlnterface field xy_attribute remains int. What prevented the value type of field my_attribute from changing?

  • A. The Magento.CatalogGraphQI module occurs later in sequence than the Magento.GraphQI module and merging output of dynamic attributes schema reader overrides types declared in schema.graphqls
  • B. The fields of Productlnterface are checked during processing schema.graphqls files. If they have a corresponding attribute, then the backendjype of product attribute is set for field type.
  • C. The interface Productlnterface is already declared in Magento.CatalogGraphQI module. Extending requires use of the keyword -xceni before a new declaration of Productlnterface.

Answer: A

Explanation:
products query is a GraphQL query that returns information about products that match specified search criteria. It also shows how to use ProductInterface fields to retrieve product data.
https://devdocs.magento.com/guides/v2.3/graphql/queries/products.html
The Magento.CatalogGraphQI module occurs later in sequence than the Magento.GraphQI module and merging output of dynamic attributes schema reader overrides types declared in schema.graphqls. The dynamic attributes schema reader is responsible for adding product attributes to the Productinterface based on the backend type of the attribute. Since the attribute my_attribute has a backend type of int, the field my_attribute in the Productinterface will also have a type of int, regardless of the custom type declared in the schema.graphqls file. To avoid this, the Architect should either change the backend type of the attribute to match the custom type, or use a different name for the field that does not conflict with the attribute name. Reference: https://devdocs.magento.com/guides/v2.4/graphql/develop/create-graphqls-file.html


NEW QUESTION # 25
A merchant asks for a new category attribute to allow uploading an additional mobile image against categories. The merchant utilizes the content staging and preview feature in Adobe Commerce and wants to schedule and review changes to this new mobile image field.
A developer creates the attribute via a data patch and adds it to view/adminhtml/ui_component/category_form.xml. The attribute appears against the category in the main form, but does not appear in the additional form when scheduled updates are made.
To change this attribute when scheduling new category updates, which additional action should the Architect ask the developer to take?

  • A. The attribute must have its apply_to field set to "staging" in the data patch file.
  • B. The attribute must have<item name=''allow_staging'' xsi:type="boolean''>true<item> set in the =category_form.xml file under the attributes config" section.
  • C. The attribute must also be added to view/adminhtml/ul_component/catalogstaging_category_update_form.xml.

Answer: C

Explanation:
This is because, in order to change the attribute when scheduling new category updates, the attribute must be added to the view/adminhtml/ulcomponent/catalogstagingcategoryupdateform.xml file in order to be displayed in the additional form when scheduling updates. This additional form is used to set the values for the category attributes when scheduling updates.


NEW QUESTION # 26
A company wants to build an Adobe Commerce website to sell their products to customers in their country.
The taxes in their country are highly complex and require customization to Adobe Commerce. An Architect is trying to solve this problem by creating a custom tax calculator that will handle the calculation of taxes for all orders in Adobe Commerce.
How should the Architect add the taxes for all orders?

  • A. Write a before plugin to \Magento\Quote\Model\QuoteManagement::placeOrder() and add the custom tax to the quote
  • B. Add a new observer to the event 'sales_quote_collect_totals_before" and add the custom tax to the quote
  • C. Declare a new total collector in "etc/sales.xml" in a custom module

Answer: C

Explanation:
Explanation
you can create tax rules in Magento 2 by going to Stores > Taxes > Tax Rules and choosing or adding tax rates. However, this may not be enough for complex tax scenarios that require customization.
https://amasty.com/knowledge-base/how-to-configure-tax-calculation-in-magento-2.html


NEW QUESTION # 27
An Adobe Commerce Architect designs a data flow that contains a new product type with its own custom pricing logic to meet a merchant requirement.
Which three developments are valid when reviewing the implementation? (Choose three.)

  • A. A new class with custom pricing logic, extending the abstract Product model class
  • B. Custom type model extended from the abstract Product Type model
  • C. New price model extending \Magento\Catalog\Model\Product\Type\Price
  • D. Content of the etc/product_types.xml file
  • E. Data patch to register the new product type
  • F. Hydrator for attributes belonging to the new product type

Answer: B,C,D

Explanation:
Explanation
According to some tutorials45, creating a custom product type in Adobe Commerce involves several steps, such as:
* Creating a product_types.xml file in etc folder to declare the new product type
* Creating a custom type model that extends from an abstract product type model
* Creating a custom price model that extends from an abstract price model
* Creating a layout file for the new product type
* Creating a data patch to register the new product type
Based on these steps, I would say that three possible developments that are valid when reviewing the implementation are:
* A. Content of the etc/product_types.xml file
* C. Custom type model extended from the abstract Product Type model
* F. New price model extending \Magento\Catalog\Model\Product\Type\Price These developments would allow creating a new product type with its own custom pricing logic and attributes.


NEW QUESTION # 28
An Adobe Commerce Architect is supporting deployment and building tools for on-premises Adobe Commerce projects. The tool is executing build scripts on a centralized server and using an SSH connection to deploy to project servers.
A client reports that users cannot work with Admin Panel because the site breaks every time they change interface locale.
Considering maintainability, which solution should the Architect implement?

  • A. Adjust the tool's build script and specify required locales during 'setup:static-content:deploy' command
  • B. Edit project env.php file, configure 'admin_locales_for.build' value, and specify all required locales
  • C. Modify project config.php file, configure 'admin_locales_for_deploy' value, and specify all required locales

Answer: A

Explanation:
The 'setup:static-content:deploy' command allows you to generate static view files for specific locales. If you do not specify any locales, the command uses the default locale that is set in the configuration. To avoid breaking the site when changing interface locale in the Admin Panel, you need to generate static view files for all the locales that you want to use. You can do this by adjusting the tool's build script and adding the locales as arguments to the 'setup:static-content:deploy' command. For example:
bin/magento setup:static-content:deploy en_US fr_FR de_DE
This will generate static view files for English, French, and German locales. Reference: https://experienceleague.adobe.com/docs/commerce-operations/configuration-guide/setup/static-view.html?lang=en#generate-static-view-files


NEW QUESTION # 29
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 C
  • B. Option B
  • C. Option A

Answer: A

Explanation:
To implement the new code rule, the Architect should create a new class that extends the \PHP_CodeSniffer\Sniffs\Sniff interface and implements the register() and process() methods. The register() method should return an array of tokens that the rule applies to, such as T_STRING for class names. The process() method should contain the logic to check if the class name contains Helper and report an error if so. The Architect should also add a reference to the new class in the ruleset.xml file under the <rule> element with a ref attribute. This will enable PHPCS to use the new rule when checking the code.


NEW QUESTION # 30
An Adobe Commerce Architect is supporting deployment and building tools for on-premises Adobe Commerce projects. The tool is executing build scripts on a centralized server and using an SSH connection to deploy to project servers.
A client reports that users cannot work with Admin Panel because the site breaks every time they change interface locale.
Considering maintainability, which solution should the Architect implement?

  • A. Adjust the tool's build script and specify required locales during 'setup:static-content:deploy' command
  • B. Modify project config.php file, configure 'admin_locales_for_deploy' value, and specify all required locales
  • C. Edit project env.php file, configure 'admin_locales_for.build' value, and specify all required locales

Answer: C

Explanation:
Editing project env.php file, configuring 'admin_locales_for.build' value, and specifying all required locales is the solution that the Architect should implement. This is because this configuration allows the tool to generate static content for different locales during the build phase, which improves performance and avoids breaking the site when changing interface locale. See Deploy static view files in the Adobe Commerce Help Center1. Reference: https://experienceleague.adobe.com/docs/commerce-operations/configuration-guide/cli/static-view/static-view-file-deployment.html?lang=en1


NEW QUESTION # 31
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. Modify the code of Myservice so that the number of different classes and interfaces referenced anywhere inside the class is less than 13
  • B. Introduce a new class accepting those five scalars and use it in the constructor and the remaining logic of Myservice
  • C. 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

Answer: B

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.
The coding standard rule that is violated by the code is the Coupling Between Objects (CBO) metric. This metric measures the number of different classes and interfaces that a class depends on. A high CBO value indicates that the class is tightly coupled with other classes and interfaces, which makes it harder to maintain and test. The recommended CBO value for Adobe Commerce classes is less than 13. To reduce the CBO value of Myservice, the Architect should introduce a new class that encapsulates the five scalar parameters that configure the behavior of Myservice. This way, the constructor of Myservice will only depend on one additional class instead of five scalars, and the CBO value will be reduced by four. Reference: https://devdocs.magento.com/guides/v2.4/coding-standards/code-standard-php.html#coupling-between-objects


NEW QUESTION # 32
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.)

  • A. Set Enable Purchase Orders' on the Company Record to TRUE
  • B. Set 'Enable B2B Quote" in the B2B Admin to TRUE
  • C. Make sure that the 'Purchase Order' payment method is active
  • D. Merchant needs to log out of frontend and then log back in to load new permissions
  • E. Set 'Enable Purchase Orders' in the B2B Admin to TRUE

Answer: A,E

Explanation:
Explanation
Enabling Purchase Orders at both the B2B Admin and the Company Record levels is necessary for Approval Rules to appear in the Company section of the Customer Account Menu. When 'Enable Purchase Orders' is set to TRUE, the system assumes that the company will be making purchases using purchase orders, and the Approval Rules tab becomes visible.


NEW QUESTION # 33
While reviewing a newly developed pull request that refactors multiple custom payment methods, the Architect notices multiple classes that depend on \Magento\Framework\Encryption\EncryptorInterf ace to decrypt credentials for sensitive data. The code that is commonly repeated is as follows:

In each module, the user_secret config is declared as follows:

The Architect needs to recommend an optimal solution to avoid redundant dependency and duplicate code among the methods. Which solution should the Architect recommend?

  • A. Replace all Vendor\PaymentModule\Gateway\Config\Config Classes With virtualTyp- Of Magento\Payxer.t\Gateway\Conflg\Config and Set <user_secret backend_Model="Magento\Config\Model\Config\Backend\Encrypted" /> under ccnfig.xml
  • B. Add a plugin after the getvalue method of $sccpeConfig, remove the $encryptor from dependency and use it in the plugin to decrypt the value if the config name is 'user.secret?
  • C. Create a common config service class vendor\Payment\Gateway\config\Config under Vendor.Payment and use it as a parent class for all of the Vender \EaymentModule\Gateway\Config\Config Classes and remove $sccpeConfig and $encryptor dependencies

Answer: C

Explanation:
To avoid redundant dependency and duplicate code among the methods, you need to use the following solution:
Create a standard controller route and mapping the internal URLs (such as news/article/view/id/1) to rewrites that are generated on save and then stored in the URL rewrites table. This solution will leverage the built-in URL rewrite functionality of Magento to handle the news requests. You can create a standard controller route that handles the internal URLs and loads the news article by its ID. Then, you can generate URL rewrites for each news article based on its date and URL key and store them in the URL rewrites table. This way, you can avoid using a custom router or a plugin and reduce the code complexity.
Reference:
https://devdocs.magento.com/guides/v2.4/extension-dev-guide/routing.html
https://devdocs.magento.com/guides/v2.4/extension-dev-guide/url-rewrite.html


NEW QUESTION # 34
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. Increase the session size with the command config:set system/security/max_session_size_admin
  • B. Update the session host value to a shared Redis instance
  • C. Utilize the Remote Storage module to synchronize sessions between the servers

Answer: B


NEW QUESTION # 35
......

Free Adobe Commerce AD0-E718 Exam Question: https://testking.vceengine.com/AD0-E718-vce-test-engine.html