Apache Pig - Sample Interview Question (Junior Level)

Considering the below script & files, 

dataSet1 file content:
900,1
901,1 
902,2
903,3
904,3

dataSet2 file content:
1,2 
2,3
3,4
4,5

Pig Script file:
A = LOAD 'dataSet1' USING PigStorage(',') AS (aid:int,aen:int);
B = LOAD 'dataSet2'  USING PigStorage(',') AS (bid:int,ben:int);
//MISSING LINE
DUMP X;

Which of the following answers will result the following output?

(901,1,1,2)
(900,1,1,2)
(902,2,2,3)
(904,3,3,4)
(903,3,3,4)

  1. X = CROSS A, B;
  2. X = JOIN A BY aen FULL, B BY bid;
  3. X = JOIN A BY aen, B BY bid;
  4. None of the above.
Tests in Apache Pig for Juniors

Test Name Difficulty Time (minutes) No. of Questions
Apache Pig Online Test for Juniors Apache Pig Junior 20 10