Unit 2 - Practice Quiz

INT347 60 Questions
0 Correct 0 Wrong 60 Left
0/60

1 What is the primary function of n8n in software development?

N8N architecture Easy
A. To provide a visual, node-based workflow automation tool
B. To compile C++ code into executable files
C. To serve as an operating system for mobile devices
D. To design graphical user interfaces for websites

2 What is the main difference between n8n Cloud and a self-hosted n8n deployment?

cloud vs self-hosted deployment Easy
A. n8n Cloud is managed by the user, while self-hosted is managed by n8n
B. n8n Cloud is completely offline, while self-hosted requires an internet connection
C. n8n Cloud only supports JavaScript, while self-hosted supports Python
D. n8n Cloud is hosted and managed by n8n, while self-hosted runs on the user's own infrastructure

3 In the n8n interface, what is the 'Editor Canvas' used for?

N8N interface for canvas, nodes, connections Easy
A. To write long-form documentation for APIs
B. To visually drag, drop, and connect nodes to build workflows
C. To install operating system updates
D. To manage user billing and subscriptions

4 How are nodes linked together in an n8n workflow?

Node connection patterns Easy
A. By writing SQL queries to join them
B. By connecting their input and output connection points with lines
C. By placing them in alphabetical order on the canvas
D. By matching their color codes

5 In what format is data primarily passed between nodes in an n8n workflow?

Data flow mechanics Easy
A. HTML documents
B. XML
C. CSV strings
D. JSON arrays

6 What is the standard execution sequence for a basic n8n workflow?

Execution order Easy
A. From right to left, ending with the trigger
B. All nodes execute simultaneously at the exact same time
C. Nodes execute randomly based on processing power
D. From left to right, starting with the trigger node

7 Which n8n feature allows you to test a single step and view its specific output data during workflow creation?

Debugging techniques Easy
A. The 'Export HTML' button
B. The 'Execute Node' button
C. The 'Delete Node' icon
D. The 'Deploy Workflow' toggle

8 Which type of node is required to automatically start a workflow when a specific event occurs?

Node types as triggers, regular nodes, output nodes Easy
A. A Formatter node
B. An Output node
C. A Regular node
D. A Trigger node

9 If you want an n8n workflow to run every day at 8:00 AM, which Trigger node should you use?

Trigger nodes as manual, schedule, webhook Easy
A. Error Trigger
B. Manual Trigger
C. Webhook Trigger
D. Schedule Trigger

10 Which core node is used to split a workflow into 'True' and 'False' branches based on a logical condition?

Core nodes as Set, IF, Switch, Merge Easy
A. Merge node
B. Set node
C. Switch node
D. IF node

11 Which REST API method in the HTTP Request node is generally used to retrieve or fetch data from an external server?

HTTP Request node as REST API methods Easy
A. GET
B. DELETE
C. POST
D. PUT

12 When configuring an API connection that requires a token in the 'Authorization' header formatted as 'Bearer <token>', which authentication method are you using?

Authentication mechanisms as API Key, Bearer Token Easy
A. Basic Auth
B. OAuth2
C. Bearer Token
D. Digest Auth

13 What does JSON stand for in the context of n8n data handling?

JSON data operations Easy
A. Java Standard Output Network
B. JavaScript Oriented Network
C. JavaScript Object Notation
D. Joint Server Operation Node

14 Which node gives you the ability to write custom JavaScript to perform complex data transformations?

Data transformation as expressions and Code node Easy
A. Schedule node
B. Webhook node
C. HTTP Request node
D. Code node

15 What is the main benefit of multi-API integration in n8n?

Multi-API integration Easy
A. It guarantees 100% uptime for external web services
B. It converts APIs into local desktop applications
C. It prevents any external APIs from accessing your computer
D. It allows a single workflow to connect and exchange data seamlessly between multiple different services

16 Which of the following operations is commonly performed using the PostgreSQL node in n8n?

Database integration using PostgreSQL operations Easy
A. Generating SSL certificates
B. Executing INSERT, SELECT, or UPDATE queries
C. Sending SMS text messages
D. Editing video files

17 How are files like images, PDFs, or spreadsheets generally represented in n8n nodes?

File processing Easy
A. As Boolean values
B. As Binary data
C. As integer arrays
D. As plain text strings

18 Which node is used to combine multiple separate branches of a workflow back into a single branch?

Core nodes as Set, IF, Switch, Merge Easy
A. IF node
B. Split In Batches node
C. Merge node
D. Switch node

19 Which Trigger node is used to act as an endpoint that waits for external applications to send HTTP requests to it?

Trigger nodes as manual, schedule, webhook Easy
A. Manual Trigger
B. Code Trigger
C. Webhook Trigger
D. Schedule Trigger

20 Which core node is primarily used to easily add, update, or remove specific string or number fields in your JSON data?

Core nodes as Set, IF, Switch, Merge Easy
A. Set node
B. Merge node
C. Webhook node
D. Database node

21 In an enterprise deployment requiring high availability and the ability to process thousands of concurrent webhooks, which n8n architectural execution mode is most appropriate to prevent memory overloads?

N8N architecture Medium
A. Serverless function mode
B. Main execution mode (default)
C. Queue mode with Redis and worker nodes
D. Single-threaded loop mode

22 A team needs a workflow that reads physical configuration files located in /var/log/app on their internal server and executes custom NPM packages inside a Code node. Which deployment strategy is required?

cloud vs self-hosted deployment Medium
A. Hybrid Cloud deployment
B. Self-hosted deployment
C. n8n Cloud (Starter plan)
D. n8n Cloud (Enterprise plan)

23 When you select multiple nodes on the n8n canvas and copy them to your system clipboard, in what format is the underlying data stored?

N8N interface for canvas, nodes, connections Medium
A. XML
B. Base64 encoded string
C. YAML
D. JSON

24 If Node A is connected to both Node B and Node C in a parallel branch pattern, and both B and C are connected to a single Merge node, what potential issue must be accounted for in the Merge node configuration?

Node connection patterns Medium
A. The Merge node executing twice if not configured to wait for both branches
B. Connection timeout errors
C. Infinite loops causing workflow crashes
D. Data corruption in the JSON payload

25 n8n processes data as an array of items. If a node receives an input of 3 items and is designed to perform a standard data transformation (like the Set node), how many times does the internal node operation typically iterate by default?

Data flow mechanics Medium
A. Three times, once for each item in the array
B. Once, operating on the entire array as a single object
C. It depends on the manual trigger configuration
D. Zero times, as transformations require a Code node

26 In a workflow where Node 1 outputs 5 items to Node 2, and Node 2 outputs to Node 3, how does n8n handle the execution order across these nodes?

Execution order Medium
A. Node 3 starts processing before Node 2 finishes
B. Node 1 processes the items asynchronously in random order
C. Node 1 processes all 5 items, passes the entire batch of 5 items to Node 2, which then processes them and passes the batch to Node 3
D. Node 1 passes item 1 to Node 2 and Node 3, then processes item 2

27 While building a complex workflow, an external API used early in the workflow imposes strict rate limits. What is the most effective debugging technique in n8n to test downstream nodes without repeatedly calling this API?

Debugging techniques Medium
A. Pin the data on the node immediately following the API call
B. Add a Sleep node of 60 seconds before the API call
C. Delete the API node and replace it with a webhook
D. Use an IF node to skip the API call randomly

28 Which of the following statements accurately describes the behavior of Trigger nodes compared to Regular nodes in an active n8n workflow?

Node types as triggers, regular nodes, output nodes Medium
A. Trigger nodes automatically listen for external events or schedules and initiate the workflow, whereas regular nodes wait for data from preceding nodes
B. Trigger nodes can be placed anywhere in the workflow chain to pause execution
C. Regular nodes can start a workflow if a Trigger node fails
D. Trigger nodes must always return binary data

29 You are configuring a Webhook trigger node to receive data from an external service. The external service requires a specific JSON response { "status": "received" } immediately after the data is accepted, before the rest of the workflow finishes processing. How should the Webhook node be configured?

Trigger nodes as manual, schedule, webhook Medium
A. Set 'Respond' to 'Using 'Respond to Webhook' Node' and place it at the end of the workflow
B. Webhooks in n8n cannot send custom JSON responses immediately
C. Set 'Respond' to 'Immediately' and use a mock JSON body in the node's response configuration
D. Set 'Respond' to 'Immediately' and 'Response Data' to 'First Item'

30 A workflow receives data from an e-commerce platform. You need to route orders based on their status: 'pending', 'shipped', 'delivered', or 'canceled'. Which core node provides the most efficient and scalable way to route this data to four different downstream branches?

Core nodes as Set, IF, Switch, Merge Medium
A. A Set node using ternary expressions
B. A Merge node set to 'Multiplex'
C. A Switch node configured with four routing rules based on the status field
D. A chain of three IF nodes

31 You have two arrays of JSON objects arriving at a Merge node. Input 1 contains user profiles {"user_id": 1, "name": "Alice"} and Input 2 contains user scores {"user_id": 1, "score": 95}. To output a single merged object {"user_id": 1, "name": "Alice", "score": 95}, which Merge node mode should be used?

Core nodes as Set, IF, Switch, Merge Medium
A. Keep Key Matches
B. Combine
C. Wait
D. Append

32 When configuring an HTTP Request node to send a POST request with dynamic JSON data containing variables from a previous node, where should this data be mapped in the node settings?

HTTP Request node as REST API methods Medium
A. In the Body Parameters section, ensuring the Send Body option is enabled
B. In the URL field appended as a query string
C. In the Headers section under Content-Type
D. In the Query Parameters section

33 An external API requires Bearer Token authentication. If setting this up manually in an HTTP Request node via Headers rather than using predefined credentials, what is the exact string format for the Header Name and Header Value?

Authentication mechanisms as API Key, Bearer Token Medium
A. Name: Authorization, Value: <token>
B. Name: Authorization, Value: Bearer <token>
C. Name: Token, Value: Bearer <token>
D. Name: Bearer, Value: <token>

34 An incoming JSON payload is structured as follows: {"customer": {"orders": [{"id": 101}, {"id": 102}]}}. What is the correct n8n expression to extract the ID of the second order?

JSON data operations Medium
A. {{ $json.customer.orders.id[1] }}
B. {{ $json["customer"]["orders"]["id"][1] }}
C. {{ $json.customer.orders[1].id }}
D. {{ $json.customer.orders[2].id }}

35 When writing custom JavaScript in an n8n Code node operating in 'Run Once for All Items' mode, what specific data structure MUST the node return to successfully pass data to the next node?

Data transformation as expressions and Code node Medium
A. A stringified JSON array
B. An array of objects, where each object has a top-level json key containing the data
C. An array of standard JavaScript objects
D. A single JSON object

36 A workflow pulls a list of 50 users from API A. For each user, it must call API B to get their profile image using the user ID. If API B rate limits requests to 10 per second, what is the best node combination to handle this?

Multi-API integration Medium
A. Use a Loop (or Split In Batches) node between API A and API B, paired with a Sleep node
B. Use a Merge node to combine all 50 IDs into a single request to API B
C. Increase the timeout settings on the API B HTTP Request node
D. Connect API A directly to API B; n8n automatically throttles requests

37 When using the PostgreSQL node to perform an 'Upsert' operation on a users table, what prerequisite is required in the database schema to ensure the operation succeeds without creating duplicate records?

Database integration using PostgreSQL operations Medium
A. The table must have an auto-incrementing integer ID
B. An index on all columns being updated
C. A Primary Key or a UNIQUE constraint on the column used to match existing records
D. A foreign key constraint on the email column

38 An HTTP Request node downloads a CSV file. In n8n, this data is temporarily held in memory as binary data. To manipulate this data using standard n8n nodes (like Set or IF), what must be done next?

File processing Medium
A. Use the Code node to write a binary-to-string parser
B. Use a JSON Parse expression directly on the binary property
C. Use the 'Extract from File' / 'Spreadsheet File' node to convert the binary CSV data into a JSON array of items
D. Save the file to disk and use a Read Text File node

39 An n8n expression needs to calculate the total price by multiplying price and quantity from the incoming JSON. If quantity might sometimes be missing (undefined), which expression safely defaults the quantity to 1 to prevent NaN errors?

Data transformation as expressions and Code node Medium
A. {{ json.quantity || 1 }}
B. {{ json.quantity, 1) }}
C. {{ json.quantity ?? 1 }}
D. {{ json.quantity ? $json.quantity : 1) }}

40 You need a Schedule Trigger node to run a workflow exactly at 2:30 PM every Tuesday and Thursday. Which standard Cron expression achieves this in the node's settings?

Trigger nodes as manual, schedule, webhook Medium
A. 30 14 * * 2,4
B. 14 30 * * TUE,THU
C. 30 2 * * 2,4
D. * 14 30 * 2,4

41 When a node in n8n receives 5 input items but is explicitly configured with 'Execute Once' toggled on, how does the node process the incoming data, and what is its resultant output?

Data flow mechanics Hard
A. It throws a pipeline error, as 'Execute Once' can only be toggled when the upstream node inherently outputs a single item.
B. It processes all 5 items collectively as a single array object, requiring the node to possess native batching capabilities; otherwise, execution fails.
C. It executes its primary operation 5 separate times, but strictly outputs the aggregate result as a single merged item.
D. It processes only the first item, ignoring the rest, and outputs a single item containing the result of that operation.

42 In a Code node configured to 'Run Once for All Items', how must you structure the returned JavaScript code to properly output 3 distinct items back into the n8n data flow?

Data transformation as expressions and Code node Hard
A. return [{ id: 1 }, { id: 2 }, { id: 3 }];
B. return $items([{ json: { id: 1 } }, { json: { id: 2 } }, { json: { id: 3 } }]);
C. return { data: [{ id: 1 }, { id: 2 }, { id: 3 }] };
D. return [{ json: { id: 1 } }, { json: { id: 2 } }, { json: { id: 3 } }];

43 When configuring a Merge node to 'Multiplex' (Cross-Join) mode, where Input 1 receives items and Input 2 receives items, what is the exact number of output items produced?

Core nodes as Set, IF, Switch, Merge Hard
A. items, appending Input 2's items sequentially after Input 1's items.
B. items, merging matching indexes and padding remaining items with null structures.
C. items, where every item from Input 1 is merged with every item from Input 2.
D. items, processing only matching indexes and permanently discarding excess items from the longer input.

44 In a highly scaled n8n architecture utilizing 'Queue Mode' for execution distribution, which specific external services are strictly required to manage workload distribution and state between the main instance and worker processes?

N8N architecture Hard
A. A primary n8n instance, a MongoDB cluster for document storage, and an Nginx load balancer.
B. A primary n8n instance, an external RDBMS (like PostgreSQL), and a Redis instance for job queue management.
C. An array of independent n8n instances interconnected directly via peer-to-peer WebSockets.
D. A primary n8n instance, an SQLite database for persistence, and an MQTT broker for worker signaling.

45 When utilizing the PostgreSQL node for an 'Upsert' operation on a table containing multiple distinct unique constraints, how does n8n resolve potential constraint conflicts to execute an update?

Database integration using PostgreSQL operations Hard
A. It automatically introspects the database schema and updates based solely on the Primary Key, ignoring secondary unique constraints.
B. It requires the workflow author to manually define the 'Conflict Target' (the specific unique column or constraint) to correctly form the ON CONFLICT clause.
C. It performs a deletion of the conflicting row followed by a fresh insertion to bypass constraint collisions entirely.
D. It updates the row based on the first mapped column provided in the n8n node interface.

46 A Webhook node is explicitly set to 'Respond: Using Respond to Webhook Node'. If the workflow successfully executes to completion but the routing logic completely bypasses the 'Respond to Webhook' node, what is the resulting behavior sent to the client?

Trigger nodes as manual, schedule, webhook Hard
A. The webhook abruptly returns a 500 Internal Server Error upon workflow completion, citing that no response was provided.
B. The webhook returns the JSON payload of the final executed node in the workflow as an automatic default response.
C. The webhook keeps the HTTP connection alive until the proxy times out, eventually returning a 504 Gateway Timeout.
D. The webhook node immediately returns a 200 OK with an empty payload as a safe fallback mechanism.

47 During complex workflow debugging, you 'Pin' data to a node. Which of the following accurately describes the behavior of that specific node upon subsequent manual executions of the workflow?

Debugging techniques Hard
A. The node executes its underlying logic normally but performs a schema validation check against the pinned data, throwing an error on mismatch.
B. The node completely bypasses its native execution logic, instantly emitting the pinned static data to the subsequent connected nodes.
C. The node queries fresh data from its source, deeply merges it with the pinned data, and propagates the hybrid payload.
D. The entire workflow execution halts upon reaching the pinned node, entering a breakpoint state until manual user intervention occurs.

48 Which specific environment variable constitutes a critical security best practice in self-hosted n8n environments to prevent malicious workflow creators from accessing underlying operating system variables via Code nodes?

cloud vs self-hosted deployment Hard
A. EXECUTIONS_DATA_SAVE_ON_ERROR=all
B. N8N_DISABLE_WEBHOOK_EXECUTION=true
C. N8N_BLOCK_ENV_ACCESS_IN_NODE=true
D. N8N_ENFORCE_SANDBOX_STRICT=true

49 When a workflow execution hits a node with multiple outgoing connections (a branch), how does n8n handle the execution order of these disparate parallel branches?

Execution order Hard
A. It spawns distinct Node.js worker threads to execute all branches simultaneously in true parallel computing mode.
B. It executes the branches sequentially in a Depth-First Search (DFS) manner, fully completing the execution path of one branch before returning to initiate the next.
C. It immediately merges the data streams into an overarching matrix payload and executes downstream nodes collectively.
D. It progresses through the branches synchronously by executing one node from each branch in an alternating round-robin queue.

50 When using the HTTP Request node to interact with an API endpoint that mandates cursor-based pagination, what is the natively optimized approach to retrieve all pages within a single node boundary?

HTTP Request node as REST API methods Hard
A. Configure the node's built-in 'Pagination' settings, select 'Cursor' as the pagination mode, and dynamically map the response's next cursor token to the subsequent request's query or body.
B. Utilize the Webhook response mode to listen for sequential API push events triggered by the cursor.
C. Write a recursive pre-request script in JavaScript to hijack the Axios call stack and return the aggregated arrays.
D. Wrap the HTTP node within a Split In Batches sub-workflow loop, manually re-assigning the cursor value to a global environment variable.

51 An external API secures its endpoints using a Bearer Token that expires every 15 minutes, necessitating a refresh via a distinct /auth endpoint. What is the most robust n8n architectural pattern to handle this lifecycle without workflow interruption?

Authentication mechanisms as API Key, Bearer Token Hard
A. Configure the 'Error Trigger' node to intercept 401 Unauthorized errors, manually fetch a new token, and utilize a 'Go To' node to jump back to the failed request.
B. Implement an overarching Schedule Trigger workflow running every 14 minutes to write the new token to a local JSON file accessible by the main workflow.
C. Create a custom n8n OAuth2 credential configured with the 'Custom API' authentication flow, delegating token validation and autonomous refresh logic directly to n8n's credential manager.
D. Hardcode an HTTP Request node querying the /auth endpoint directly inside the 'Pre-request Code' text block of every single downstream API call.

52 Given the incoming payload { "sensor": { "readings": [10, 20, 30] } }, which expression inside a Set node correctly and safely calculates the mathematical average of the readings, gracefully handling scenarios where the array might be entirely missing or empty?

JSON data operations Hard
A. {{ json.sensor.readings.count() }}
B. {{ Math.average($json.sensor.readings) || 0 }}
C. {{ json.sensor.readings.length }}
D. {{ (json.sensor.readings.reduce((a, b) => a + b, 0) / $json.sensor.readings.length) : 0 }}

53 When configuring a workflow to process massive files (e.g., a 2GB CSV archive) in n8n, why is it architecturally critical to leverage stream-based processing rather than passing standard binary data?

File processing Hard
A. Standard binary data processing encrypts the payload implicitly, bottlenecking CPU cycles beyond the timeout limit.
B. Standard binary passing converts the entire file into a Base64-encoded string held entirely in memory, risking Memory Limit Exceeded (OOM) crashes in the V8 Node.js engine.
C. Stream processing dynamically minifies the CSV content structure, optimizing string parsing for the downstream Code nodes.
D. Stream processing automatically splits files into physical chunks on the host's OS, preventing database locks during workflow commits.

54 API A provides an array of 500 distinct IDs. API B accepts one ID per request to return detailed profiles, but strictly enforces a rate limit of 10 requests per second. How should this integration be orchestrated to successfully retrieve all profiles without encountering HTTP 429 Too Many Requests errors?

Multi-API integration Hard
A. Route the execution through a Loop (Split In Batches) node configured to process 10 items per batch, succeeded by a Wait node pausing for 1 second before querying API B.
B. Inject a Code node utilizing Atomics.wait() to pause the primary Node.js event loop for 100ms between implicit item iterations.
C. Set the 'Concurrency Limit' on API A's node to dynamically throttle the downstream flow into API B based on header extraction.
D. Enable 'Enable Rate Limiting' within the API B HTTP Request node, inputting '10' into the 'Requests per Second' parameter.

55 When utilizing a generic expression to reference a value from a node that executed several steps prior, what is the correct modern syntax to retrieve the exact item mapping corresponding to the current item's execution path, accounting for intermediate filtering or sorting?

Data transformation as expressions and Code node Hard
A. {{ $prevNode.json.myValue }}
B. {{ $items("Previous Node Name")[0].json.myValue }}
C. {{ $node["Previous Node Name"].json.myValue }}
D. {{ $('Previous Node Name').item.json.myValue }}

56 In the n8n canvas interface, if a regular transformational node situated directly between an HTTP Request node and a Postgres node is manually 'Disabled' (toggled off via the interface), what is the resulting execution behavior of that pathway?

N8N interface for canvas, nodes, connections Hard
A. The workflow throws a critical 'Node Disabled' validation exception upon initialization and refuses to execute.
B. Execution halts silently at the disabled node, treating the branch as successfully completed but proceeding no further.
C. Execution bypasses the node's internal logic, passing the exact incoming payload directly to the next node as a transparent pass-through.
D. The disabled node automatically generates an empty JSON object {} and passes it to the subsequent nodes.

57 When an IF node processes a single execution containing 10 items, where 4 items evaluate to true and 6 evaluate to false, how does the node structure and route the resulting output?

Core nodes as Set, IF, Switch, Merge Hard
A. It aggressively aggregates the items into two root JSON objects, one for true and one for false, resulting in exactly two total output items.
B. It throws a multi-item execution error because IF logic can only strictly resolve against a single root boolean condition.
C. It resolves the boolean condition strictly against the first item in the array, routing all 10 items dynamically based on that single outcome.
D. It outputs the 4 matching items to the 'True' output and the 6 failing items to the 'False' output, simultaneously pushing two independent item arrays down separate execution branches.

58 Consider a canvas containing an interconnected workflow sequence starting with a Webhook trigger, alongside a completely isolated Schedule Trigger node with no drawn connections to the rest of the canvas. If the Webhook trigger fires, how does n8n handle the disconnected Schedule Trigger node?

Node connection patterns Hard
A. It throws a 'Disconnected Nodes' structural validation error, preventing the Webhook execution from initiating.
B. Both nodes execute their respective logic branches independently in parallel memory blocks.
C. Only the continuous path originating from the activating Webhook trigger executes; all nodes isolated from that path are strictly ignored during that execution.
D. It dynamically establishes a phantom connection to execute the Schedule Trigger immediately after the Webhook sequence concludes.

59 What functional characteristic accurately describes the behavior of standard 'Output Nodes' (such as external service integrations) regarding workflow termination in n8n?

Node types as triggers, regular nodes, output nodes Hard
A. They implicitly possess a hidden loop connection to the triggering node to validate transaction receipts.
B. They require the workflow to natively run in 'Synchronous' blocking mode to establish bidirectional streams.
C. They are functionally standard nodes designed to deliver data externally, but they do not automatically halt or prevent subsequent connected nodes from executing.
D. They intrinsically halt and terminate the entire workflow process immediately upon completion, killing any lingering parallel branches.

60 Node A successfully outputs 3 distinct items. Node B (an HTTP Request node) is connected to Node A, and is explicitly configured with 'Split into Items' enabled. If the external API responds with a raw JSON array of 5 objects for each of the 3 API calls, how many total individual items are cumulatively outputted by Node B to Node C?

Data flow mechanics Hard
A. 3 items, representing the strict preservation of the incoming item count structure.
B. 5 items, because the final execution overwrites the aggregate stack from the previous items.
C. 8 items, due to flat additive vector mapping.
D. 15 items, because the node processes 3 requests, extracts 5 objects per response, and flattens them into individual item arrays.