AD0-E704 Braindumps Real Exam Updated on Jul 03, 2023 with 90 Questions [Q20-Q39]

Share

AD0-E704 Braindumps Real Exam Updated on Jul 03, 2023 with 90 Questions

Latest AD0-E704 PDF Dumps & Real Tests Free Updated Today

NEW QUESTION # 20
You have a requirement to customize the Product Detail Page so users can enter their ID in a custom field and get a personalized price. The user has to see the lower of the personalized and the Magento price.
Which two actions do you take to enable the personalized price on the Product Detail Page and the checkout?

  • A. Create a plugin for the Magento\Catalog\Model\Product::getFinalPrice method
  • B. Modify the indexer so all possible prices are listed in the price index table
  • C. Create an observer for the event catalog_product_load_after, access the $product object and set a new price using the setFinalPrice method
  • D. Add a price class to the prices parameter of the Magento\Catalog\Pricing\Price\Pool class and implement the getvalue method

Answer: A,C


NEW QUESTION # 21
A merchant has created a segment that applies to registered customers whose gender is female. You then migrate customers by copying data directly from one database to another. What two ways are used to assign migrated customers with a female gender to the segment?

  • A. Re-save the customer segment in the Admin
  • B. They will be automatically assigned by a cron job at the scheduled time
  • C. Run bin Mgento index:reinde.\ customer_segment
  • D. Click on the Refresh Segment Data button in the Admin

Answer: C,D


NEW QUESTION # 22
A furniture merchant have 100k products in the store. In a custom product list page, he advised you to enable the caching as per user paginate the products. So what should the approach to cache the block data as per pagination request:

  • A. In block class _construct() method, define cache_lifetime, cache_tags and cache_key_<current_page_here>
  • B. In block class toHtml() method, define cache_lifetime, cache_tags and cache_key_<current_page_here>
  • C. In block class _construct() method, set _isScopePrivate property to false as per requested page number.
  • D. In block class toHtml() method, set _isScopePrivate property to false as per requested page number.

Answer: A


NEW QUESTION # 23
A merchant is asking you to organize a catalog of 9000 rings which come in six sizes, each with unique inventory. Additionally, the customers will have 1000 unique engravings to choose from for their ring. The engraving is made on the selected ring just before the order is shipped.
How do you organize such a catalog to achieve optimal store performance and ease of management?

  • A. 9000x6 simple products with 1000 values for engraving custom option
  • B. 9000 configurable products which have 6x1000 variants each
  • C. 9000 configurable products which have 6 variants each with 1000 values for an engraving custom option
  • D. 9000 simple products with 6 values for size custom option and 1000 values for an engraving custom option

Answer: D


NEW QUESTION # 24
You are creating a module lo enable customers to attach an image file to the quote items while adding a product to the cart. To save development time, you want to build on top of functionality provided by the class \Magento\Catalog\Model\ImageUploader as much as possible.
The class constructor signature is:
What do you do to process the uploaded file?

  • A. Configure a Virtual type based on \Magento\Catalog\Model\ImageUploader Specifying $baseTmpPath. $basePath and SallowedExtensions
  • B. Create a custom implementation because the catalog imageUploader can not be used to for files associated with quote items
  • C. Configure a plugin for the method \Magento\Catalog\Model\ImageUploader: moveFileFromTmp() in di. xml
  • D. Create a custom Class implementing \Magento\Catalog\Model\ImageUploaderInterface and add it to the $uploaders argument of the UploaderPoolinterface via di.xml

Answer: A


NEW QUESTION # 25
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 attribute must be created as extension_attribute to restrict the access using ACL
  • B. New attributes must be created as custom_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.

Answer: A


NEW QUESTION # 26
You are working on a new feature to allow multiple vendors for various products. To display vendors you add a custom fieldset component and select with the name myCompanyVendors. It will be shown if the number of vendors is more than one.
To do this you implement a custom method on your component:

How do you cause the method to be called when the value of options change?
A)

B)

C)

D)

  • A. Option C
  • B. Option D
  • C. Option B
  • D. Option A

Answer: C


NEW QUESTION # 27
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
  • B. PluginB, PluginC, PluginA
  • C. PluginA, PluginB, PluginC
  • D. PluginB, PluginC

Answer: A


NEW QUESTION # 28
You have a task to modify the grand total on the checkout page with a negative price adjustment which depends on the shipping address postcode. What are two approaches to be used in this case?

  • A. Create an observer on the event sales_quote_collect_totals_after, get the quote object, check the postcode and set the modified grand total into it
  • B. Create a new total collector which adds a negative price adjustment based on the postcode
  • C. Create a new shopping cart price rule with a condition based on the shipping address postcode
  • D. Create a JavaScript mixin for the Magento_Checkout/ js /view /summary/,subtotal, change total there and Magento will submit the modified total when placing an order

Answer: B,C


NEW QUESTION # 29
You are making a module MyCompany_MyModule and the merchant asks for an attribute that is only available to simple and configurable products. This needs to be defined in the catalog_eav_attribute table.
How can we create this behavior during the creation of this attribute?
A)

B)

C)

D)

  • A. Option C
  • B. Option D
  • C. Option B
  • D. Option A

Answer: C


NEW QUESTION # 30
You are starting a project and realized you need to clean the content of a container. How do you achieve this?

  • A. YOU create a view\layout override/mycoapany_mymodule_index. xml and add the new blocks to the referenceContainer to override the previous ones
  • B. The layout merging logic will override a container if you reference the container and load your module after the original one using sequence in your module. xml
  • C. YOU create a view/layout/mycompany_mymodule_index. xmlWith the referenceContainer and remove all the blocks by adding remove name='*' />
  • D. You create a view/layout/mycompany_mymodule_index. xml and add a referenceContainer. You will then remove the existing blocks one by one

Answer: A


NEW QUESTION # 31
You are working on a project where a custom option of type text for a certain product has been created. The merchant wants to customize the add to cart functionality for this product, such that products with different text for the custom option will be represented as separate shopping cart line items.
How does Magento split shopping cart line items for a product based on custom options?

  • A. When value and price of a custom option that changes the price are different
  • B. When values of any custom options are different
  • C. When a product has any custom option value it will be represented as a separate line item
  • D. When values for custom options that change the price are different

Answer: C


NEW QUESTION # 32
You are working on a custom page where the content of a CMS block has to be rendered. You know the merchant is using Staging for CMS blocks. In your code you have access to the $repository object which is an instance of \Magento\Cms\Api\BlockRepositoryInterface. $blockld which is the original block ID, and $current Version which is the current Staging version.
How do you load the CMS block with the right Staging version?
A)

B)

C)

D)

  • A. Option C
  • B. Option D
  • C. Option B
  • D. Option A

Answer: B


NEW QUESTION # 33
Suppose you are working on a specific uicomponet form where front-end customers can update their name and phone number only when the admin user sets the editable_field_flag to 1 for his submitted data from the backend. According to this flag, when loading the data in the form for front-end users, how would you check and customize to enable/disable the name and phone number fields?

  • A. In uicomponet xml, under DataSource node, include the Form Provider Javascript component "Magento_Ui/js/form/dataProvider" and extend it to customize the specific fields when data is being populated by it.
  • B. In uicomponet xml, under fieldset node, include the Form Provider Javascript component "Magento_Ui/js/form/dataProvider" and extend it to customize the specific fields when data is being populated by it.
  • C. In uicomponet xml, under DataSource node, include the Form Provider Javascript component "Magento_Ui/js/form/provider" and extend it to customize the specific fields when data is being populated by it.
  • D. In uicomponet xml, under fieldset node, include the Form Provider Javascript component "Magento_Ui/js/form/provider" and extend it to customize the specific fields when data is being populated by it.

Answer: C


NEW QUESTION # 34
You want to add an additional validation rule, allowed_symbols, to the telephone field on the Checkout Address form. You have created the validation rule and added it to the Magento_Ui/js/lib validation validator instance.
What action is required to complete the task?

  • A. Add your validation rule name to the Magento\checkout\Model\validation\Pool class, $validationRules array parameter with the key telephone
  • B. Add your validation rule to the Magento_Checkout/js/element/validation validator instance
  • C. Add the validation rule name to the checkout_index_index layout in the telephone validation path
  • D. Create a mixin on the validateShippinginformation method to add your rule

Answer: A


NEW QUESTION # 35
A merchant wants to send email notifications to those customers after a week who placed the order but didn't pay. Suppose email content is almost similar to the default order email template content with some additional text, so you decided to use the same but in a new custom template. How you pass the order object to the email template so that it will render the all data of default template?

  • A. Load the order using increment_id and pass this object to setTemplateVars method of _transportBuilder instance.
  • B. None of these.
  • C. Create json of all variables that are used in the email template and pass to setTemplateVars method of _transportBuilder insatance.
  • D. Load the order using increment_id and use getData() to convert it to array and then pass to setTemplateVars method of _transportBuilder instance.

Answer: B


NEW QUESTION # 36
When your class will be instantiated all the dependencies injected in your class constructor will also get instantiated, and it will trigger a chain reaction of object creation, this can really slow down the process. What could be the solution of above problem?

  • A. Use Proxy classes with help of di.xml
  • B. Use Dependecy Injection with help of di.xml
  • C. Use VitualType classes with help of di.xml
  • D. Use factory classes instead of Model.

Answer: A


NEW QUESTION # 37
You are debugging an issue where the staged product custom attribute value is not displayed properly. The attribute backend type is varchar. How does Magento store scheduled values for varchar attributes?

  • A. By creating a new record in the cataiog_product_entity table with the same entity_id and different rowjd and it creates a new record in the catalog_product_entity_varchar table connected to the new row-id
  • B. By creating a new table cataiog_product_entity_varchar_<version> where the scheduled attribute value is located
  • C. By creating a new record in the table cataiog_product_entity_varchar with a new row_id connected to the same entity_id
  • D. By creating a new website called staging_<version and saving the new attribute value for that website in the catalog_produt_entity_varchar table with the same entity_id

Answer: A


NEW QUESTION # 38
Suppose you need to add an admin grid using uiComponent. if page URL ends with banners/index/index, then which basic uiComponent you would use and what should be the page layout file:

  • A. Form component in the banner_index_index.xml
  • B. Grid component in the banner_index_index.xml
  • C. Listing component in the banner_index_index.xml
  • D. We can not define uiComponent file in a page-layout file.

Answer: C


NEW QUESTION # 39
......

AD0-E704 Dumps With 100% Verified Q&As - Pass Guarantee or Full Refund: https://www.examtorrent.com/AD0-E704-valid-vce-dumps.html

Pass Adobe AD0-E704 Exam With Practice Test Questions Dumps Bundle: https://drive.google.com/open?id=1zbsAZ33gW5g7-rbWr9NsyvNC9OxgcAOq