Which two statements are true about @Controller annotated classes? (Choose two.)
Suggested Answer: B, E
Get Premium 2V0-72.22 Questions
as Interactive Web-Based Practice Test or PDF
Real Exam Format
Detailed Explanations
Instant Access
Get Your Practice Test
14 comments · newest first
AN
Antonio
1 year ago
C seems wrong, you don’t need @EnableMvcMappings for component scanning.
FA
Fabiola
1 year ago
E is spot on, @Controller is a stereotype annotation for sure!
RU
Rutha
1 year ago
Wait, are you saying @Controller and @RestController are interchangeable? That sounds off.
CA
Carolynn
1 year ago
I think A is misleading, @Controller can do more than just render views.
LU
Lucy
1 year ago
B and E are definitely true!
EL
Elenore
1 year ago
I’m a bit confused about the @EnableMvcMappings part. I thought @Controller classes were automatically discovered without that annotation.
ZO
Zona
1 year ago
I feel like we discussed @RestController and @Controller in class, and how they aren't exactly interchangeable without some changes.
KA
Kaycee
1 year ago
I remember something about @Controller being a stereotype annotation, similar to @Component. That might be true.
LI
Lina
1 year ago
I think @Controller classes can handle requests, but I'm not sure if they can only render views. That sounds too limiting.
JE
Jenelle
1 year ago
Hmm, let me think this through. I know the invoicing process involves some kind of document creation, but I'm not sure about the specifics. I'll need to review my notes to make sure I get this right.
CA
Carylon
1 year ago
Hmm, I'm not entirely sure about this one. I'll have to think it through carefully before selecting an answer.
JA
Jannette
1 year ago
I think ENIs are set to terminate with the instance, but I'm not completely sure if that's always the case.
VE
Velda
1 year ago
I'm not sure about this one. The question seems a bit tricky, and I want to make sure I understand the requirements correctly before I attempt to answer.
IV
Ivory
1 year ago
B and D don't seem to be the correct answers. I'm going to go with A as my final choice.