You are a Dynamics 365 Finance developer. You create a class.
You need to mark the class to ensure that when code is compiled, the process fails if a specific method is called in the source code.
Which attribute should you use?
Suggested Answer: A
Get Premium MB-500 Questions
as Interactive Web-Based Practice Test or PDF
Real Exam Format
Detailed Explanations
Instant Access
Get Your Practice Test
One use of the SysObsoleteAttribute class is to notify the compiler that the compile should fail if a particular method is called in the source code. The compiler rejects the compile, and displays the specific message that is stored in this use of the attribute.
https://docs.microsoft.com/en-us/dynamics365/fin-ops-core/dev-itpro/dev-ref/xpp-attribute-classes
13 comments · newest first
HA
Hannah
12 months ago
A is correct, but I wish there were more options!
CH
Cherilyn
1 year ago
SysEntryPointAttribute is not even close, lol.
TI
Timothy
1 year ago
Wait, are we sure about A? Seems too straightforward.
DA
Dana
1 year ago
I thought it was B at first, but A makes more sense.
LA
Lang
1 year ago
Definitely A, SysObsoleteAttribute is the way to go!
CL
Clarinda
1 year ago
I’m leaning towards SysObsoleteAttribute as well, but I wonder if there are any specific scenarios where the other attributes could be used instead.
JA
Janessa
1 year ago
I feel like getAttributes might be related, but it doesn't seem like it would cause a compile-time failure like the other options.
SH
Sheridan
1 year ago
I remember practicing a similar question where we had to mark methods as obsolete, and I think SysObsoleteAttribute was the right choice there too.
CH
Chaya
1 year ago
I think we might need to use the SysObsoleteAttribute to mark the method, but I'm not completely sure if that's the only option.
LO
Louis
1 year ago
Ah, I remember learning about virtual power purchase agreements in one of my energy policy classes. I'm confident I can get this one right.
PA
Paz
1 year ago
I'm pretty confident about this one. The vManage Certificate Management API can definitely generate SSL certificates, so I'm going to go with option C.
CH
Chi
1 year ago
I think it might be Assignment Manager, but I'm not completely sure. We definitely covered something about resource allocation in that section.
CH
Cherry
1 year ago
This looks like a complex question covering a lot of cloud architecture concepts. I'll need to carefully read through the details and think about the different patterns that could be applied to address the issues raised.