Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Microsoft MB-500 Exam - Topic 6 Question 31 Discussion

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?
A) SysObsoleteAttribute
B) getAttributes
C) SysEntryPointAttribute
D) SysAttribute

Microsoft MB-500 Exam - Topic 6 Question 31 Discussion

Actual exam question for Microsoft's MB-500 exam
Question #: 31
Topic #: 6
[All MB-500 Questions]

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?

Show Suggested Answer Hide Answer
Suggested Answer: A

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

Contribute your Thoughts:

0/2000 characters
Hannah
9 months ago
A is correct, but I wish there were more options!
upvoted 0 times
...
Cherilyn
9 months ago
SysEntryPointAttribute is not even close, lol.
upvoted 0 times
...
Timothy
9 months ago
Wait, are we sure about A? Seems too straightforward.
upvoted 0 times
...
Dana
9 months ago
I thought it was B at first, but A makes more sense.
upvoted 0 times
...
Lang
9 months ago
Definitely A, SysObsoleteAttribute is the way to go!
upvoted 0 times
...
Clarinda
9 months 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.
upvoted 0 times
...
Janessa
10 months 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.
upvoted 0 times
...
Sheridan
10 months 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.
upvoted 0 times
...
Chaya
10 months 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.
upvoted 0 times
...
Louis
10 months 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.
upvoted 0 times
...
Paz
10 months 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.
upvoted 0 times
...
Chi
10 months ago
I think it might be Assignment Manager, but I'm not completely sure. We definitely covered something about resource allocation in that section.
upvoted 0 times
...
Cherry
10 months 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.
upvoted 0 times
...

Save Cancel