exam questions

Exam C1000-056 All Questions

View all questions & answers for the C1000-056 exam

Exam C1000-056 topic 1 question 42 discussion

Actual exam question from IBM's C1000-056
Question #: 42
Topic #: 1
[All C1000-056 Questions]

The following simple message flow receives orders on an MQInput node and forwards only a subset of the incoming request to another MQ queue through an MQOutput node.

The solution developer decided to use a Compute node to copy the request without the shipping xml element. Which two ESQL expressions can be used in the Compute node to implement this design? (Choose two.)

  • A. SET OutputRoot.XMLNSC = InputRoot.XMLNSC;
    THROW OutputRoot.XMLNSC.order.shipping DELETE;
    RETURN TRUE;
  • B. SET OutputRoot.XMLNSC = InputRoot.XMLNSC;
    SET OutputRoot.XMLNSC.order.shipping = NULL;
    RETURN TRUE;
  • C. SET OutputRoot.XMLNSC = InputRoot.XMLNSC;
    DECLARE myref REFERENCE TO OutputRoot.XMLNSC.order.shipping DETACH;
    RETURN TRUE;
  • D. SET OutputRoot.XMLNSC = InputRoot.XMLNSC;
    DELETE FIELD OutputRoot.XMLNSC.order.shipping;
    RETURN TRUE;
  • E. SET OutputRoot.XMLNSC = InputRoot.XMLNSC;
    CUT OutputRoot.XMLNSC.order.shipping:
    RETURN TRUE;
Show Suggested Answer Hide Answer
Suggested Answer: CD 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
Currently there are no comments in this discussion, be the first to comment!
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago