exam questions

Exam Magento 2 Certified Associate Developer All Questions

View all questions & answers for the Magento 2 Certified Associate Developer exam

Exam Magento 2 Certified Associate Developer topic 1 question 65 discussion

Actual exam question from Magento's Magento 2 Certified Associate Developer
Question #: 65
Topic #: 1
[All Magento 2 Certified Associate Developer Questions]

You need to find all orders in the processing state. You have written the code:

When you run the code, you get the following exception:

How do you resolve the exception?

  • A. Specify a preference in di.xml to map SearchCriteriaBuilder to SearchCriteriaInterface
  • B. Use dependency injection to load an instance of the SearchCriteria class
  • C. Change the getList parameter to: $searchCriteriaBuilder->addFilter('state', 'processing')->create()
  • D. Clear generated code to get a new version of SearchCriteriaBuilder
Show Suggested Answer Hide Answer
Suggested Answer: C 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
Currently there are no comments in this discussion, be the first to comment!
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago