Question 10 — AB-620 Case Study Set
Paideffort requires both the start date and end date before a leave request can be created. Review the Adaptive Card fragment used by the leave topic.
{
"type": "Input.Date",
"id": "input2",
"label": "Start date",
"isRequired": true
},
{
"type": "Input.Date",
"id": "input3",
"label": "End date"
}
What should be changed to align the card with Paideffort's date-entry requirement? (Select one answer)
Add
"isRequired": trueto the end-date Input.Date while retaining required validation on the start-date Input.Date.Remove required validation from the start-date Input.Date so both fields behave consistently before downstream validation.
Change the end-date Input.Date to Input.Text and validate the entered date only after the Azure Function is called.
Change both Input.Date elements to Input.ChoiceSet and populate them with every possible calendar date.
Correct answers
Add
"isRequired": trueto the end-date Input.Date while retaining required validation on the start-date Input.Date.
Explanations
Correct Answer:
Add "isRequired": true to the end-date Input.Date while retaining required validation on the start-date Input.Date.
Explanation:
Paideffort requires both dates before a leave request can be created. The current card applies required validation only to the start date. Adding required validation to the end date makes the form's submission rules consistent with the business requirement.
Wrong Answers:
Remove required validation from the start-date Input.Date so both fields behave consistently before downstream validation.
This would make the implementation consistently weaker rather than satisfying Paideffort's requirement that both dates be supplied.
Change the end-date Input.Date to Input.Text and validate the entered date only after the Azure Function is called.
Paideffort already has a suitable date-specific input element. Delaying validation until after the leave-creation operation would also conflict with the requirement to prevent incomplete requests from reaching the service.
Change both Input.Date elements to Input.ChoiceSet and populate them with every possible calendar date.
A ChoiceSet is inappropriate for unrestricted calendar selection and would create a large, inefficient list. Paideffort already uses the appropriate Input.Date element.