ADM-201 practice question 23 of 30

Ursa Major Solar provides a 1-year warranty on all of the panels it installs. Installation details, along with the warranty information, a captured…

Full set: 246 questions

Domain Object Manager and Lightning App Builder

Ursa Major Solar provides a 1-year warranty on all of the panels it installs. Installation details, along with the warranty information, a captured on a custom object called Installation. The installation record is created by the installer from the mobile app. Customers son receive a longer warranty as a way of increasing customer satisfaction when an installation gets delayed or has issues. How should the administrator configure Salesforce to capture the expiration date of the warranty?
Answer options
A: Use a formula as the default value of the warranty Expiration Date field. Correct answer
B: Create a formula field to display l year from the warranty purchased.
C: Add a validation rule to ensure the Expiration Date field is populated.
D: Include the warranty Expiration Date field on the mobile page layout.
Correct Answer:
A. Use a formula as the default value of the warranty Expiration Date field.
Explanation

The requirement is to set a standard 1-year warranty expiration date that can be manually extended. A Date field with a default value formula is the optimal solution. The formula (e.g., ADDMONTHS(CreatedDate, 12)) automatically populates the standard 1-year expiration date upon record creation. Because this is a default value on an editable Date field, users retain the flexibility to override this date and enter a later one to accommodate the non-standard, longer warranties mentioned in the scenario.

Why Incorrect

B: A formula field is read-only and its value is always determined by its formula. It cannot be manually edited, making it impossible to grant a longer, non-standard warranty. C: A validation rule enforces data integrity by checking if a field is populated, but it does not calculate or set the field's value itself. D: Including the field on the page layout is necessary for user visibility and interaction, but it does not define the business logic for how the date is initially calculated or set.

References

1. Salesforce Help Documentation - Set Default Field Values: This document explains how to use a formula to define a default value for a field. It states

"The default value pre-populates the field... Users can accept the default value or enter a different value." This directly supports the flexibility required in the scenario.

Source: Salesforce Help

"Set Default Field Values."

2. Salesforce Help Documentation - Formula Field Considerations: This official documentation clarifies the nature of formula fields. It explicitly states

"You can't change the value of a formula field." This confirms why a formula field is unsuitable for this scenario where manual overrides are necessary.

Source: Salesforce Help

"Formula Field Considerations."

3. Trailhead - Formulas and Validations Module: The "Use Formula Fields" unit describes formula fields as read-only fields that derive their value from a formula expression. This contrasts with a standard field that can have a default value but remains editable.

Source: Trailhead

Module: Formulas and Validations

Unit: Use Formula Fields.

Scroll to Top