Free AD0-E704 Exam Braindumps (page: 11)

Page 10 of 23

Your company asks you to create the option to disable RMA for the customer group named CustomerGroup1. How do you do it?

  1. It will require a code customization
  2. This feature already exists and can be set in:
    Admin > Store > Settings > Configuration > Sales > Rma Settings > Exclude Customer Group C)



    D)

  3. Option
  4. Option
  5. Option
  6. Option

Answer(s): B



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?

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

Answer(s): C



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?

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

Answer(s): B,C



Magento regenerates the admin URL secret key for each new session.
What is the purpose of this key?

  1. To prevent brute-force attacks
  2. To prevent admin pages from being cached
  3. To validate ACL permissions for the current admin user
  4. To prevent admin panel Cross Site Request Forgery attacks

Answer(s): C






Post your Comments and Discuss Adobe AD0-E704 exam with other Community members:

AD0-E704 Discussions & Posts