Question 96

Note: This question is part of a series of questions that present the same scenario. Each question in the series contains a unique solution. Determine whether the solution meets the stated goals. Some question sets might have more than one correct solution, while others might not have a correct solution.
After you answer a question in this section, you will NOT be able to return to it. As a result, these questions will not appear in the review screen.
You must create a new attribute class in which to mark other classes in the ISV solution and their respective methods with the error levels Warning and Error.
You have the following class: (Line numbers are included for reference only.)

You need to ensure that the compiler will report an error if code calls the bike method.
Solution:
Create the following attribute class:

Insert the following code at line 04:
[SysObsoleteAttribute("Deprecated. Please use the bicycle class instead.", false)] Does the solution meet the goal?
  • Question 97

    A company requires Dynamics 365 finance and operations apps to notify third-party applications when data from purchase orders is available for consumption.
    You need to configure the trigger to capture the purchase order data.
    Which mechanism should you use?
  • Question 98

    You are a Dynamics 365 Finance developer. You have the following Extended Data Types (EDTs):

    You plan to modify the EDT properties by using an extension.
    You need to determine which operations can be performed.
    Which operation is possible?
  • Question 99

    You are a Dynamics 365 Finance developer. You have two tables as shown in the following exhibit:

    You need to configure Table1 to ensure that records cannot be deleted from Table1 if Table2 contains related records.
    Which value should you use for the OnDelete property?
  • Question 100

    You are a Dynamics 365 Finance developer for a company that sells pre-owned vehicles. When the company acquires a new vehicle, vehicle identification (VIN) numbers are added to the VIN field in the CustTable.
    You need to create an event handler to validate that new VIN values are at least 10 characters long. Validation must occur when records are saved.
    Which three actions should you perform in sequence? To answer, move the appropriate actions from the list of actions to the answer area and arrange them in the correct order.