nerdexam
Oracle

1Z0-900 · Question #69

1Z0-900 Question #69: Real Exam Question with Answer & Explanation

Sign in or unlock 1Z0-900 to reveal the answer and full explanation for question #69. The question stem and answer options stay visible for context.

Use CDI Beans

Question

Given the following class definition with numbered lines: How do you specify to use this mock CDI bean implementation instead of the regular implementation class?

Options

  • AUse the alternatives element in the beans.xml file and specify the class name in the class element
  • BStart up the server with the optional -alternative command-line option, specifying any alternative
  • CReorder the implementation names in the beans.xml file such that the desired alternative is listed
  • DDelete the regular implementation class from the WAR.

Unlock 1Z0-900 to see the answer

You've previewed enough free 1Z0-900 questions. Unlock 1Z0-900 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.

Topics

#CDI alternatives#bean configuration#deployment configuration#CDI bean selection
Full 1Z0-900 Practice