Special Limited Time 65% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: dpt65

AD0-E704 Questions and Answers

Question # 6

Suppose, you need to create custom configuration file called search.xml, in the a custommodule under etc/. Which steps are needed to achieve this:

A.

Create module_dir/etc/search.xml and modules_dir/etc/search.xsd

B.

Define loader in module_dir/etc/di.xml, for the custom conifguration file module_dir/etc/search.xml

C.

Create module_dir/etc/config.xml and modules_dir/etc/config.xsd

D.

Define loader in module_dir/etc/di.xml, for the custom conifguration file module_dir/etc/config.xml

Full Access
Question # 7

Suppose in the product rest API in Magento, you added a new attribute. But this attribute can be accessed by API consumers only when they have access permission. How do you create the attributes following the above condition:

A.

New attributes must be created as custom_attribute to restrict the access using ACL

B.

New attribute must be created as extension_attribute to restrict the access using ACL

C.

We can’t create access permission for REST API, it’s only applicable for entity and repository.

D.

New attributes must be created by extending the product API interface, to restrict access using ACL.

Full Access
Question # 8

Suppose you are asked to disable/remove the customer review related functionalities. You can not disable the review module directly because the customer module depends on it. What is the possible way to remove all HTML outputs of the review module, from the frontend and backend? :

A.

Turn-off Review module output globally by extending /vendor/magento/module-backend/etc/config.xml

B.

Turn-off Review module output globally by extending /vendor/magento/module-backend/etc/module.xml

C.

Create plugin or Override the

class \Magento\Framework\View\Element\AbstractBlock and toHtml() method, and implement the logic to return empty data in case of review module’s block instance is present.

D.

Create plugin or Override the

class \Magento\Backend\Block\Template and isOutputEnabled() method, and implement the logic to return false value in case of review module’s block instance is present.

Full Access
Question # 9

You are reviewing a codebase and come across the following in a layout XML file:

The project is using Varnish for full page caching. How will Magento use the 111 attribute value?

A.

To set the Expires HTTP response headers for any page containing this block

B.

To set the timeout for the block output in the browser local storage

C.

To set the cache lifetime when saving the block output to the block cache

D.

To set the Expires HTTP header when serving the block as an ESI

Full Access
Question # 10

You are working on a project where many catalog managers often change products in the admin panel.

The merchant is considering changing the indexers mode to "Update on Schedule" from "Update on Save" to achieve better performance. However, the merchant is concerned about data consistency and the probability of the scheduled updates being lost.

How does Magento store the IDs of updated products for reindex in "Update on Schedule" mode?

A.

Magento is gathering updated IDs using catalog_product_save_commit_after events and publishes them into the Message Queue.

B.

Magento sets a reindex_required flag on updated products and a later reindex run by the cron will pick up IDs based on that flag.

C.

Using the Staging update scheduled for every minute, which includes modified products, Magento will automatically reindex affected products when the update is applied.

D.

Magento enables database triggers which collect updated IDs and saves them in special changelog tables.

Full Access
Question # 11

You are creating a module that creates a Catalog Price Rule. You have written this code to specify the conditions:

After saving the catalog rule, the second and third condition do not seem to fall under the combine condition.

How do you fix the issue?

A.

The type of the third condition needs to be Magento\CatalogRule\Model\Rule\Condition\Category since you are checking on category_ids

B.

The array keys are incorrect they need to be 1--1 and 1--2

C.

The value field in the first condition is changed to "2. 3"

D.

The () operator in the third condition is invalid, which prevents the conditions from being saved correctly

Full Access
Question # 12

For an existing core class, you created 3 plugins PluginA, PluginB and PluginC with sort orders 10, 20 and 30 respectively. but when implementing pluginB you used around method and did not used callable in it.What should be the plugins executaion order as per above scenerio:

A.

PluginA, PluginB, PluginC

B.

PluginB, PluginC, PluginA

C.

PluginA, PluginB

D.

PluginB, PluginC

Full Access
Question # 13

You are developing an in-house solution for catalog management which is implemented as a Magento module called MyCompany_MyModule. To streamline integration with the ERP system you decided to expose MyCompany_MyModule'S functionality via REST.

What are the three minimum requirements to achieve this?

A.

Add webapi. xml declarations for all methods to be exposed

B.

Specify the parameter and return types in the PHP method signatures

C.

Represent all functionalities which need to be exposed as service contracts

D.

Specify the parameter and return types in the method annotations

E.

Add Cap: annotations to all methods which need to be exposed

Full Access