Demonstrate the use of Map/Reduce technology to efficiently process data. Flashcards

1
Q

In a Map/Reduce script, which entry function is the beginning of the script and is only invoked once?

A

getInputData

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

In a Map/Reduce script, which entry function can be skipped if the Reduce entry point is present, and is invoked once for each key/value pair provided by getInputData?

A

Map

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

In a Map/Reduce script, which entry point can be skipped if the map entry point is present, and is invoked once for each key/value pair provided by map or getInputData if map is not present

A

Reduce

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

True or False?

In a Map/Reduce, the summarise function is optional, and only invoked once.

A

True

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What does the summaryContext.concurrency property show?

A

Shows the maximum concurrency number when running the map/reduce script.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What does the summaryContext.dateCreated property show?

A

Shows the time and day when the script began running.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What does the summaryContext.seconds property show?

A

Shows the total number of seconds that elapsed during the processing of the script.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What does the summaryContext.usage property show?

A

Shows the total number of usage units consumed during the processing of the script.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What does the summaryContext.yields property show?

A

Shows the total number of yields that occurred during the processing of the script.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What does the summaryContext.inputSummary object contain?

A

Object that contains data about the input stage

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What does the summaryContext.inputSummary.dateCreated property contain?

A

The time and day when the getInputData(inputContext) function began running.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What does the summaryContext.inputSummary.error property contain?

A

Holds serialized errors thrown from the getInputData(inputContext) function

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What does the summaryContext.inputSummary.seconds property contain?

A

The total number of seconds that elapsed during execution of the getInputData(inputContext) function. This tally does not include idle time.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What does the summaryContext.inputSummary.usage property contain?

A

The total number of usage units consumed by processing of the getInputData(inputContext) function.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What does the summaryContext.mapSummary object contain?

A

Contains data about the map stage

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

What does the summaryContext.mapSummary.concurrency property contain?

A

The maximum concurrency number for executing parallel tasks during the map stage

17
Q

What does the summaryContext.reduceSummary.concurrency property contain?

A

The maximum concurrency number for executing parallel tasks during the reduce stage.

18
Q

What does the summaryContext.mapSummary.dateCreated property contain?

A

The time and day when the map function began running.

19
Q

What does the summaryContext.reduceSummary.dateCreated property contain?

A

The time and day when the reduce function began running.

20
Q

What does the summaryContext.mapSummary.errors property contain?

A

Holds all serialized errors thrown from the map function.

May also hold the SSS_APP_SERVER_RESTART error code, which is recorded in the event of an application server restart.

21
Q

What does the summaryContext.reduceSummary.errors property contain?

A

Holds all serialized errors thrown from the reduce function.

May also hold the SSS_APP_SERVER_RESTART error code, which is recorded in the event of an application server restart.

22
Q

What does the summaryContext.mapSummary.keys property contain?

A

Holds the keys that were passed to the map stage by the getInputData stage.

Note that keys are sorted in the following way:

If all values are numeric, values are listed in numeric order.
If one or more values are strings, values are listed in lexicographical order.

23
Q

What does the summaryContext.reduceSummary.keys property contain?

A

Holds the keys that were passed to the reduce stage, either by the map stage, if it was used, or by the getInputData stage.

These keys are listed in lexicographical order.

24
Q

What does the summaryContext.mapSummary.seconds property contain?

A

Total seconds elapsed when running map.

25
Q

What does the summaryContext.reduceSummary.seconds property contain?

A

Total seconds elapsed when running reduce.

26
Q

What does the summaryContext.mapSummary.usage property contain?

A

Total number of usage units consumed when running map.

27
Q

What does the summaryContext.reduceSummary.usage property contain?

A

Total number of usage units consumed when running reduce.

28
Q

What does the summaryContext.mapSummary.yields property contain?

A

Total number of times yields when running map.

29
Q

What does the summaryContext.reduceSummary.yields property contain?

A

Total number of times yields when running reduce.

30
Q

What does the summaryContext.output property contain?

A

Iterator that contains the keys and values saved as the output of the reduce stage.