exam questions

Exam AD0-E716 All Questions

View all questions & answers for the AD0-E716 exam

Exam AD0-E716 topic 1 question 24 discussion

Actual exam question from Adobe's AD0-E716
Question #: 24
Topic #: 1
[All AD0-E716 Questions]

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?

  • A. Call the setDecorationType($type) method on the Symfony\Console\Output\OutputInterface object before calling writeln().
  • B. Wrap the output content in tags like <error>, <info>, or <comment>.
  • C. Throw a new CommandException with the desired message passed as an argument.
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️

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
TravisNguyen
5 months, 2 weeks ago
B is correct
upvoted 2 times
...
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