BLACK FRIDAY SALE – Unlock Up to 25% OFF on All Exam Prep! - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

VMware 2V0-72.22 Exam - Topic 11 Question 26 Discussion

Posted by Donette on Feb 24, 2023 at 06:08 AM

Which is the correct approach to register for a bean destruction callback?

Suggested Answer: C

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
33 comments · newest first
LO
Lonna 1 year ago
Wait, can you really use prototype scope for this? Sounds off.
RI
Rima 1 year ago
I agree with A, but I’m surprised it’s not more commonly known.
PH
Phuong 1 year ago
C makes no sense here, @Lazy is for initialization.
HU
Hui 1 year ago
I thought it was B, @PreDestroy is for cleanup before destruction, right?
MY
Myrtie 1 year ago
Definitely A, @PostDestroy is the way to go!
NU
Nu 1 year ago
I don’t think C or D are related to destruction callbacks, but I can’t recall the exact definitions right now.
NA
Nathan 1 year ago
I feel like I’ve seen @PostDestroy used in examples, but I’m confused about whether it’s for cleanup or initialization.
RO
Roy 1 year ago
I remember practicing a question about lifecycle annotations, and I think @PreDestroy was mentioned a lot. So maybe B is the right choice?
PR
Princess 1 year ago
I think the correct answer might be A, but I’m not entirely sure if it’s specifically for destruction callbacks.
PA
Paz 1 year ago
Okay, let's break this down. If the primary Delivery Controllers are turned off, the VDAs should re-register with the passive data center. And GSLB should redirect connections there as well. I think I've got a good handle on this.
AL
Alisha 1 year ago
This question seems straightforward, but I want to make sure I understand the key details before answering. The company's earnings and the P/E ratios of similar companies are provided, so I'll need to calculate the company's valuation and compare it to the current share price.
JO
Jose 1 year ago
Hmm, I'm a little unsure about this one. I'll need to think through the differences between authority, involvement, influence, and interest to make sure I select the right answer.
OD
Odette 1 year ago
I'm a bit uncertain about A—doesn't the budget compare actuals to previous plans rather than just acting as a variable mechanism?
CR
Cruz 1 year ago
Okay, let's think this through. The key requirements are data stored on multiple nodes in separate geographic locations, with the ability to read from the secondary location. I believe Geo-redundant storage would be the best fit here.
LO
Lou 2 years ago
I'd like to register a bean destruction callback for my sense of humor. It seems to be self-destructing after reading these answer choices.
CA
Cassie 1 year ago
↳ replying to Lou
C) Add the @Lazy annotation to the bean configuration.
CO
Cortney 1 year ago
↳ replying to Lou
B) Annotate the callback method with @PreDestroy.
AL
Alease 1 year ago
↳ replying to Lou
A) Annotate the callback method with @PostDestroy.
SH
Sharee 2 years ago
D) Prototype scope? What does that have to do with bean destruction callbacks? Clearly, I need to review my Spring annotations.
AN
Antonette 2 years ago
C) @Lazy? Really? That's not related to bean destruction at all. Gotta be more careful with these tricky options.
FE
Felicidad 2 years ago
↳ replying to Antonette
D) Configure the bean instance to use prototype scope.
RO
Rosenda 2 years ago
↳ replying to Antonette
B) Annotate the callback method with @PreDestroy.
PR
Precious 2 years ago
↳ replying to Antonette
A) Annotate the callback method with @PostDestroy.
DI
Dierdre 2 years ago
Hmm, I was wondering if @PostDestroy would work, but you're right, @PreDestroy is the way to go. Thanks for the clarification!
SH
Sharen 1 year ago
↳ replying to Dierdre
Hmm, I was wondering if @PostDestroy would work, but you're right, @PreDestroy is the way to go. Thanks for the clarification!
AL
Alesia 1 year ago
↳ replying to Dierdre
B) Annotate the callback method with @PreDestroy.
CY
Cyndy 1 year ago
↳ replying to Dierdre
A) Annotate the callback method with @PreDestroy.
TE
Tenesha 2 years ago
B) Annotate the callback method with @PreDestroy. That's the correct way to register a bean destruction callback.
MA
Maynard 2 years ago
↳ replying to Tenesha
A) Annotate the callback method with @PostDestroy.
DE
Derick 2 years ago
↳ replying to Tenesha
B) Annotate the callback method with @PreDestroy.
JE
Jeannine 2 years ago
But doesn't @PreDestroy ensure that the callback method is called before the bean is destroyed?
GL
Glen 2 years ago
I disagree, I believe the correct approach is to configure the bean instance to use prototype scope.
JE
Jeannine 2 years ago
I think the correct approach is to annotate the callback method with @PreDestroy.
0/2000 characters

Save Cancel