VALID AD0-E704 Exam Dumps For Certification Exam Preparation [Q41-Q66]

Share

VALID AD0-E704 Exam Dumps For Certification Exam Preparation

AD0-E704 Dumps PDF 2023 Strategy Your Preparation Efficiently


Certification Topics of the Adobe AD0-E704: Adobe Certified Master Magento Commerce Architect Exam

Adobe AD0-E704: Adobe Certified Master Magento Commerce Architect consist of following topics:

  1. Section 1: Magento Architecture (6%)
  2. Section 2: Magento UI (7%)
  3. Section 3: Working with Databases (14%)
  4. Section 4: Using the Entity-Attribute-Value (EAV) Model (10%)
  5. Section 5: Developing with Adminhtml (5%)
  6. Section 6: Customizing the Catalog (23%)
  7. Section 7: Customizing the Checkout Process (17%)
  8. Section 8: Magento Commerce Features (13%)
  9. Section 9: Understanding Magento Security (5%)

 

NEW QUESTION 41
After enable the content security policy in a magento site, you see below warnings/errors in the browser console. "[Report Only] Refused to load the script 'https://cdn.jquery.com/jquery.js' because it violates the following Content Security Policy directive: "script-src assets.adobedtm.com".What could be the standard fix of this problem?

  • A. Add etc/csp_whitelist.xml in a custom module and whitelist it under policy id="link-src"
  • B. Add etc/csp_whitelist.xml in a custom module and whitelist it under policy id="script-src"
  • C. Disable the module Magento_Csp to let the browser load all script urls without error.
  • D. Add etc/config.xml in a custom module and set report only to 1, to let the browser load all script urls without error.

Answer: B

 

NEW QUESTION 42
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 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
  • 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 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
  • D. By creating a new record in the table cataiog_product_entity_varchar with a new row_id connected to the same entity_id

Answer: C

 

NEW QUESTION 43
You need to include the customer account menu on a custom storefront page, but only when the method MyCompany\\lyModule\ViewModel\MyView: :hasCustomerMenu() returns true. How do you accomplish this?

  • A. Create an after plugin for Magento\Framework\View\UyoutInterface::getOutput() and if hasCustomerMenuO returns true, Call $subject->addHandled customer_account')
  • B. In the page's layout XML file, add
    <update handle="customer_account" if="MyCompany\MyModule\ViewModel\MyView::hasCustomerMenu" >
  • C. In the page action controller, if hasCustomer-Menu() returns true, before returning the page result call
    Spage->addHandleC custoner_account')
  • D. In the page action controller, inject the Layoutinterface and if hasCustonerMenu() returns true, call
    $layout->addHandle('custooer_account')

Answer: B

 

NEW QUESTION 44
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. 9000 configurable products which have 6 variants each with 1000 values for an engraving custom option
  • B. 9000 simple products with 6 values for size custom option and 1000 values for an engraving custom option
  • C. 9000 configurable products which have 6x1000 variants each
  • D. 9000x6 simple products with 1000 values for engraving custom option

Answer: B

 

NEW QUESTION 45
You are debugging a problem with a shopping cart price rule which gives free shipping for the whole cart if the subtotal is greater than $100. You are seeing that when a custom shipping method is selected, the shipping price is still present even though the subtotal is greater than $100.
How do you fix this problem?

  • A. Add the shipping method's code to the price rule action
  • B. Add the shipping method's code to the price rule condition
  • C. Modify the carrier class to process the free_shipping flag of the quote items
  • D. Create an option allow_freeshiping in the system configuration of the shipping method and set its value to 1

Answer: D

 

NEW QUESTION 46
You are developing a new payment method. It is required that any new order created with this payment method needs to have a specific custom status. Assume the status has been added to the system already, assigned to the processing state, and the new order state for the payment method is processing. How do you set the custom status on orders placed with the new payment method?

  • A. Create an observer for the event sales_order_set_status, get the $status parameter and set the new status using $status->setStatus()
  • B. Add a custom status code to the Magento\Sales\Model\Order-\Payment class as a $newOrderStatus constructor parameter using di.xml
  • C. Create a command setOrderStatus and add it to a commandPool with a name set_status
  • D. Create a system configuration option order.status and set the status code as its value

Answer: A

 

NEW QUESTION 47
Suppose you are building an inquiry form using uicomponent. It has a feature that customer can edit the submitted data later if he wants to edit. What should the logic here to implement, in order to enable the form for re-edit:

  • A. DataProvider class provides getDataSourceData() method which is responsible for data loading.
  • B. DataProvider class provides getData() method which is responsible for data loading.
  • C. DataProvider class provides execute() method which is responsible for data loading.
  • D. DataProvider class provides prepare() method which is responsible for data loading.

Answer: B

 

NEW QUESTION 48
When you reference a factory or proxy in a class constructor, these classes are generated by default inside generated directory, if they are not present in codebase. Which Magento class is resposible for this?

  • A. IntanceManager
  • B. ObjectManager
  • C. ClassManager
  • D. FileManager

Answer: B

 

NEW QUESTION 49
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 toHtml() method, set _isScopePrivate property to false as per requested page number.
  • B. In block class _construct() method, define cache_lifetime, cache_tags and cache_key_<current_page_here>
  • C. In block class toHtml() method, define cache_lifetime, cache_tags and cache_key_<current_page_here>
  • D. In block class _construct() method, set _isScopePrivate property to false as per requested page number.

Answer: B

 

NEW QUESTION 50
You want to display customized product list along with it's tier prices. To render this price which class should be used and which data needs to be provided ?

  • A. In layout xml, use class= Magento\Catalog\Pricing\Render and
    price_render argument= product.price.render.simple
  • B. In layout xml, use class= Magento\Catalog\Pricing\Render and
    price_render argument= product.price.render.tier
  • C. In layout xml, use class= Magento\Catalog\Pricing\Render and
    price_render argument= product.price.render.default
  • D. None of these

Answer: C

 

NEW QUESTION 51
You are tasked to work on a message queue module. When looking at the queue configuration you see the following:

Keeping in mind maintainability, you change it to:

What will happen?

  • A. This code will replace all of the different topics as # is the symbol for everything
  • B. This code will cancel all the topic starting with customer
  • C. This code will replace only some of the topics
  • D. This code will not work as message queue does not allow # wildcard

Answer: C

 

NEW QUESTION 52
You are integrating an external system from which products and categories will be synchronized with Magento.
To keep the category tree synchronized, an identifier attribute needs to be added to the catalog_category entity. The identifier value is generated by the external system as an unsigned 3 byte integer and is global in scope. Your code will run many concurrent queries to select categories based on this ID in order to synchronize changes.
Keeping performance in mind, what attribute backend type do you choose when creating the EAV attribute?

  • A. int
  • B. varchar
  • C. text
  • D. static

Answer: A

 

NEW QUESTION 53
You are working on a project which uses Staging for different entities. You are considering the option to stage and rollback different entities independently. What is the scope of a Staging version in Magento?

  • A. Group of entities (catalog, customer, cms), which makes only possible to stage and rollback the whole group
  • B. Table, which makes it possible to stage and rollback the data from each table separately
  • C. Global, such that stage and rollback affect the whole database
  • D. Website, such that all entity values for the website are affected with a stage and rollback

Answer: C

 

NEW QUESTION 54
After the installation of several 3rd-party extensions to the merchant's store, it was noticed the admin panel authentication consistently fails with the credentials used before. Where do you start debugging to understand why the authentication is failing?

  • A. \Magento\Backend\App\Action\Composite\Authentication::dispatch
  • B. \Magento\Backend\App\Act ion\Plugin\Authentication::aroundDispatch
  • C. \Magento\Backend\App\Act ion\Observer\Authentication::execute
  • D. \Magento\Backend\App\Act ion\AuthenticationWrapper::dispatch

Answer: D

 

NEW QUESTION 55
Suppose you need to add a custom css file in layout XML in such a way that it should load asynchronously to improve the page load performance. What is the correct attribute for this:

  • A. rel
  • B. defer
  • C. ie_condition
  • D. async

Answer: B

 

NEW QUESTION 56
You have a task to show a new EAV attribute of the customer entity on the customer_account_create form. Assume that the attribute already exists and its name is custom_attribute.
How do you add it to the form using a Data Patch script?

  • A.
  • B. This requires Ul components customizations and can not be done with Data Patch
  • C.
  • D.

Answer: C

 

NEW QUESTION 57
While reviewing a module you found an upgrade script with the code:

What two actions will be done by the SalesSetup: :addAttribute method?

  • A. The sales_order_grid table is altered with a new field custom_attribute
  • B. The custom_attribute added to the eav_attribute table
  • C. The custom_attribute IS added to the order_eav_attribute table
  • D. The sales_ordor table is altered with a new field custom_attribute

Answer: C,D

 

NEW QUESTION 58
A merchant is planning to create a single scheduled update for one million products. They are wondering about website performance. What two performance issues will the update cause?

  • A. Magento will index all records in the cataiog_product_entity table regardless of the version so the index tables will be big
  • B. When applying a scheduled update Magento will reindex all affected products
  • C. Magento runs a cron job every minute to generate and maintain preview data
  • D. The catalog_product_entity_* tables will contain all the staged values which slows down all queries related to them

Answer: A,B

 

NEW QUESTION 59
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 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
  • B. Create a new shopping cart price rule with a condition based on the shipping address postcode
  • C. 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
  • D. Create a new total collector which adds a negative price adjustment based on the postcode

Answer: B,D

 

NEW QUESTION 60
A Magento site is experiencing an issue where a fatal out of memory error occurs during a custom bulk catalog import process. Here is the code:

  • A. UseMagento\Model\Entity\Collection\AbstractCollection: :setPage to iterate through the collection in chunks
  • B. Call Magento\Framework\Data\Collection: setMemoryLimit to increase PHP's memory limit
  • C. Inject an instance Of Uagento\Catalog\model\ResourceModel\Product\IteratingCollectionFactory into your code instead
  • D. Use a \Magento\Framework\Model\ResourceModel\iterator to walk through the collection row-by-row

Answer: C,D

 

NEW QUESTION 61
You defined a custom layout file 1column-2footers.xml under /view/frontend/layouts.xml. Now, what is the conventional path to creating the custom layout file 1column-2footers.xml?

  • A. <module_dir>/etc/frontend/page_layout/
  • B. <module_dir>/view/frontend/layout
  • C. <module_dir>/etc/frontend/layout
  • D. <module_dir>/view/frontend/page_layout

Answer: D

 

NEW QUESTION 62
You are programmatically creating a customer EAV attribute and want to add it to the customer segment's condition options. How do you do this?
A)

B)

C)

D)

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

Answer: C

 

NEW QUESTION 63
You want to run a script each time after all schema installation and schema upgrade scripts have executed, but before data setup scripts execution. What do you do?

  • A. Create a RecurringData. php Script in the MyCompany MyModule Setup folder
  • B. Create a Recurring, php Script in the MyCompany MyModule Setup folder
  • C. You need to run bin magento module:recurring MyCompanyJlyModule each time after bin magento setup:update
  • D. Add an event observer for the event setup_upgrade_schema_after

Answer: D

 

NEW QUESTION 64
You are working on a project with custom code located in an observer MyCompany\MyModule\Observer\Custom on the catalog_product_load_before event. How do you prevent your custom observer from being executed on a staging preview?

  • A. By moving your observer to the staged_catalog_product_load_before event
  • B. By adding your observer to the bannedobserver parameter of Magento\staging\Model\Event\Manager using di. xml
  • C. No action is required, the catalog_product_ioad_before event is excluded from the execution on staging preview
  • D. By specifying an attribute excude_from_staging_previwe*=''i'' in the declaration of the observer in the events.xml file

Answer: D

 

NEW QUESTION 65
You are implementing a requirement to exclude all shipping rates less than $50 if there is a specific product in the shopping cart. How do you do this?

  • A. Create an after plugin for the method \Hageino\checkoutUpi\shippinginfonaationManageDein::getShippingRates. The method returns a list of rates which you can filter in the plugin.
  • B. Create a shopping cart price rule with a condition of having the product in the cart and an action to exclude shipping rates less than $50.
  • C. Create an observer for the event shipping_rates_collect_after-. In the observer you have access to the rates result object which contains all the rates. You can set a new list of rates to the result object.
  • D. Create an after plugin for the method \Magento\shiPping\Modei\shipPing: : collectives and access the rate result object using the getResuh o method of the Shipping class. You can update the list of rates in the result object.

Answer: B

 

NEW QUESTION 66
......


Cost of the Adobe AD0-E704: Adobe Certified Master Magento Commerce Architect Exam

Adobe AD0-E704: Adobe Certified Master Magento Commerce Architect Exam costs $150 for the Indian people and this examination costs $225 all over the world.

 

Latest Verified & Correct AD0-E704 Questions: https://www.dumpsking.com/AD0-E704-testking-dumps.html

100% Pass Guaranteed Download Adobe Commerce Exam PDF Q&A: https://drive.google.com/open?id=1agLGu3UETqhgxHe8auzGLZ2x0_JRSgav