Adobe
AD0-E716 · Question #6
AD0-E716 Question #6: Real Exam Question with Answer & Explanation
Sign in or unlock AD0-E716 to reveal the answer and full explanation for question #6. The question stem and answer options stay visible for context.
Question
An Adobe Commerce developer is creating a new console command to perform a complex task with a lot of potential terminal output. If an error occurs, they want to provide a message that has higher visibility than some of the other content that may be appearing, so they want to ensure it is highlighted in red (as seen in the screenshot): How can they customize the appearance of this message?
Options
- ACall the setDecorationType(Stype) method On the Symfony\Console\Output\OutputInterface
- BWrap the output content in tags like <error>, <info>, or <comment>.
- CThrow a new commandException with the desired message passed as an argument.
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.