IBM
C2180-404 · Question #23
C2180-404 Question #23: Real Exam Question with Answer & Explanation
Sign in or unlock C2180-404 to reveal the answer and full explanation for question #23. The question stem and answer options stay visible for context.
Question
The DocType field in the record identifies the document type and contains PO when the record is for a purchase order and ACK when it is an acknowledgement. The format of each record is the same except for the ShipDate field. When the document type is ACK, ShipDate is in the record. When the document type is PO, ShipDate is not in the record. What change can the developer make to the DFDL model to handle the differences in the record format and prevent parsing errors when parsing a file that contains both types of records?
Exhibit
Options
- AAdd a choice element before theShipTypeelement
- BAdd an asset toShipDatethat testsDocType=ACK
- CAdd a discriminator toShipDatethat testsDocType=ACK
- DChange theMinOccursproperty to 0 (zero) forShipTypeto make it an optional field
Unlock C2180-404 to see the answer
You've previewed enough free C2180-404 questions. Unlock C2180-404 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.
