Multiple Choice
Your module adds a new controller class which will return a JSON response. What will be the return type of the execute method?
A) You should implement a new API endpoint instead of returning JSON from a controller
B) The string value of \Zend_Json::encode() The string value of \Zend_Json::encode()
C) An instance of \Magento\Framework\Controller\Result\Json An instance of \Magento\Framework\Controller\Result\Json
D) No return needed, an object that can be converted to JSON must be set as the Response body
Correct Answer:

Verified
Correct Answer:
Verified
Q31: Which three scopes can be used to
Q32: Where do you change the frontName for
Q33: You are tasked with ensuring customers who
Q34: The module MyCompany_MyModule will add a new
Q35: You have created a custom module which
Q37: While developing a module you need to
Q38: You have been given the task of
Q39: You are working on a new entity
Q40: You need to add a new text
Q41: You have added a new attribute origin