13_ProcessRecords Flashcards

1
Q

What does the ForEach scope do?

A

Splits a payload collection and processes the individual elements and returns the original payload.

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

What happens in a ForEach scope if an error occurs?

A

Stops processing and invokes an error if one element throws an exception.

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

What does the ForEach scope return?

A

The original paylaod (regardless of any modifications made inside the scope)

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

What can a collection be (for a ForEach scope)?

A

can be any supported content type including applicationjson, aplication/java and application/xml

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

What does the batch job provide?

A

The ability to split large messages and process them asynchronously in a batch jon.

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

Where is the batch job scope available?

A

Enterprise edition only.

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

What is created especially for processing data sets?

A

Batch Job scope.

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

What splits large or streamed messages into individual records, performs actions upon each record, handles record level failures that ocure so batch job is not aborted, reports on the results and potentially pushes the prcessed output to other systems or queues.

A

Batch Job scope.

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

Example use cases for Batch Job scope.

A

• Integrating data sets to parallel process records
– Small or large data sets, streaming or not
• Engineering “near real-time” data integration
– Synchronizing data sets between business applications
– Like syncing contacts between NetSuite and Salesforce
• Extracting, transforming, and loading (ETL) info into a target system
– Like uploading data from a flat file (CSV) to Hadoop
• Handling large quantities of incoming data from an API into a legacy
system

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

A batch job contains one or more ?

A

Batch steps

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

What are the 3 different phases in a batch job?

A

Load and dispatch (behind the scene work), Process (asynchronoulsy processes the records and contains one or more batch steps), On Complete (optional - reports summary of records processed, rovised insight into which records failed so you can address issues).

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

Do all records have to finish processing in one step before any of them are send to the next step?

A

No

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

Batch records are queued and scheduled in blocks of? and a threading profile of ?? threads per job?

A

100 records, 16 threads

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

Can you customise the configuration for the block and threads?

A

Yes, as it may improve the batch’s performance in certain use cases

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

Variables created BEFORE a batch job are available where?

A

in ALL batch steps

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

Variables created inside a batch step are available where?

A

Only in the batch step that they were created.

17
Q

What are the 3 options if a record fails in a batch job?

A

Stop processing (the entire batch, the in-flight steps are finished but other steps are skipped and the on complete phase invoked), Continue processing (you should handle failed records using the batch step filters), Continue processing until a max number of failed records is reached (at that point, the on complete phase is invoked).

18
Q

What happens when the record fails and it stops processing the entire batch?

A

• In-flight steps are finished, but all other steps are skipped and the on complete phase is
invoked

19
Q

What happens when the record fails and it continues processing?

A

You need to specify how subsequent batch steps should handle failed records
– To do this, use batch step filters that are covered in the next section

20
Q

What happens when the record fails and it continues processing until a max number of failed records is reached?

A

At that point, the on complete phase is invoked

21
Q

What are the 2 attributes that are used to filter a record for a batch job?

A

An accept expression and an accept policy

22
Q

What is an accept expression?

A

Used in a batch job to filter the records, it’s an inline expression that will decide if that part of the collection will be processed. e.g. #[not var.exists]

23
Q

What is an accept policy?

A

Used in a batch job to filter out records, either set to ALL, NO_FAILURES (default) or ONLY_FAILURES

24
Q

Batch Aggregator scope do?

A

It accumulates records, it can upload them in bulk e.g. instead of inserting 100 individual records it will do it all in 1 insert.

25
Q

What can you use to accumulate records?

A

Batch Aggregator

26
Q

Does the ForEach scope process the elements sequentially?

A

Yes

27
Q

Examples of complex batch jobs.

A

Created especially for processing data sets
– Splits messages into individual records and performs actions upon each record
– Can have multiple batch steps and these can have filters
– Record-level data is persisted across steps using variables
– Can handle record level failures so the job is not aborted
– The batch job returns an object with the results of the job for insight into which
records were processed or failed