Actually, the question and the options are not very well worded, I admit. Option 4 is a little weird and if option 5 was not there, option 4 would be correct. The bean instance has to get values by going through JNDI interfaces and cannot get those values directly from the deployment descriptor. You can read section 20.2 of the
EJB 2.1 specification for more details.