nerdexam
Adobe

AD0-E716 · Question #47

AD0-E716 Question #47: Real Exam Question with Answer & Explanation

Sign in or unlock AD0-E716 to reveal the answer and full explanation for question #47. The question stem and answer options stay visible for context.

Question

A message queue currently has queue/consumer-wait-for-messages set to true, which allows the consumer process to run until a message is inserted into the queue. A piece of functionality is driven by data stored in the model \Magento\variable\Model\variable and this value is only loaded once during the consumer run. If the variable is updated we want the consumer to restart so that the new value is loaded into memory without having to reload the variable on each message consumed. The Adobe Commerce developer has created an after plugin on the \Magento\Variable\Model\variable:: save() function. How would the developer use the plugin to trigger the consumer restart?

Options

  • ACall the function \Magento\Framework\MessageQueue\PoisonPill\Poi5onPillPutInterface::put().
  • BCall the function
  • CSet the global Cache key trigger_consumer_restart t0 1.

Unlock AD0-E716 to see the answer

You've previewed enough free AD0-E716 questions. Unlock AD0-E716 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.

Full AD0-E716 Practice