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 design graphical user interfaces for websites
B. To provide a visual, node-based workflow automation tool
C. To compile C++ code into executable files
D. To serve as an operating system for mobile devices

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 completely offline, while self-hosted requires an internet connection
B. n8n Cloud is managed by the user, while self-hosted is managed by n8n
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 install operating system updates
B. To visually drag, drop, and connect nodes to build workflows
C. To write long-form documentation for APIs
D. To manage user billing and subscriptions

4 How are nodes linked together in an n8n workflow?

Node connection patterns Easy
A. By connecting their input and output connection points with lines
B. By placing them in alphabetical order on the canvas
C. By writing SQL queries to join them
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. JSON arrays
B. XML
C. CSV strings
D. HTML documents

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. From left to right, starting with the trigger node
C. All nodes execute simultaneously at the exact same time
D. Nodes execute randomly based on processing power

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 'Execute Node' button
B. The 'Export HTML' button
C. The 'Deploy Workflow' toggle
D. The 'Delete Node' icon

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 Trigger node
B. A Regular node
C. A Formatter node
D. An Output 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. Webhook Trigger
B. Error Trigger
C. Manual 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. Switch node
B. Set node
C. Merge 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. PUT
B. POST
C. DELETE
D. GET

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. OAuth2
B. Bearer Token
C. Digest Auth
D. Basic Auth

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

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

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. HTTP Request node
C. Webhook node
D. Code node

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

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

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

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

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

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

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. Merge node
B. IF node
C. Split In Batches 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. Schedule Trigger
D. Webhook 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. Webhook node
B. Merge node
C. Database node
D. Set 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. Main execution mode (default)
B. Single-threaded loop mode
C. Serverless function mode
D. Queue mode with Redis and worker nodes

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. Self-hosted deployment
B. n8n Cloud (Enterprise plan)
C. n8n Cloud (Starter plan)
D. Hybrid Cloud deployment

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. YAML
B. XML
C. JSON
D. Base64 encoded string

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. Connection timeout errors
B. The Merge node executing twice if not configured to wait for both branches
C. Data corruption in the JSON payload
D. Infinite loops causing workflow crashes

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. Zero times, as transformations require a Code node
B. Once, operating on the entire array as a single object
C. It depends on the manual trigger configuration
D. Three times, once for each item in the array

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 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
B. Node 1 processes the items asynchronously in random order
C. Node 1 passes item 1 to Node 2 and Node 3, then processes item 2
D. Node 3 starts processing before Node 2 finishes

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. Add a Sleep node of 60 seconds before the API call
B. Use an IF node to skip the API call randomly
C. Delete the API node and replace it with a webhook
D. Pin the data on the node immediately following the API call

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 must always return binary data
B. Trigger nodes can be placed anywhere in the workflow chain to pause execution
C. Trigger nodes automatically listen for external events or schedules and initiate the workflow, whereas regular nodes wait for data from preceding nodes
D. Regular nodes can start a workflow if a Trigger node fails

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. Set 'Respond' to 'Immediately' and use a mock JSON body in the node's response configuration
C. Set 'Respond' to 'Immediately' and 'Response Data' to 'First Item'
D. Webhooks in n8n cannot send custom JSON responses immediately

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 chain of three IF nodes
C. A Switch node configured with four routing rules based on the status field
D. A Merge node set to 'Multiplex'

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. Append
B. Combine
C. Keep Key Matches
D. Wait

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 URL field appended as a query string
B. In the Body Parameters section, ensuring the Send Body option is enabled
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[1].id }}
C. {{ $json.customer.orders[2].id }}
D. {{ $json.customer.orders.id[1] }}

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 single JSON object
B. An array of objects, where each object has a top-level json key containing the data
C. A stringified JSON array
D. An array of standard JavaScript objects

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. Connect API A directly to API B; n8n automatically throttles requests
C. Increase the timeout settings on the API B HTTP Request node
D. Use a Merge node to combine all 50 IDs into a single request to API B

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. A Primary Key or a UNIQUE constraint on the column used to match existing records
C. An index on all columns being updated
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. Save the file to disk and use a Read Text File node
B. Use the 'Extract from File' / 'Spreadsheet File' node to convert the binary CSV data into a JSON array of items
C. Use a JSON Parse expression directly on the binary property
D. Use the Code node to write a binary-to-string parser

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 ? $json.quantity : 1) }}
D. {{ 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. * 14 30 * 2,4
B. 30 2 * * 2,4
C. 14 30 * * TUE,THU
D. 30 14 * * 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 $items([{ json: { id: 1 } }, { json: { id: 2 } }, { json: { id: 3 } }]);
B. return { data: [{ id: 1 }, { id: 2 }, { id: 3 }] };
C. return [{ json: { id: 1 } }, { json: { id: 2 } }, { json: { id: 3 } }];
D. return [{ id: 1 }, { id: 2 }, { 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, processing only matching indexes and permanently discarding excess items from the longer input.
B. items, appending Input 2's items sequentially after Input 1's items.
C. items, where every item from Input 1 is merged with every item from Input 2.
D. items, merging matching indexes and padding remaining items with null structures.

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 updates the row based on the first mapped column provided in the n8n node interface.
C. It requires the workflow author to manually define the 'Conflict Target' (the specific unique column or constraint) to correctly form the ON CONFLICT clause.
D. It performs a deletion of the conflicting row followed by a fresh insertion to bypass constraint collisions entirely.

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

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 immediately merges the data streams into an overarching matrix payload and executes downstream nodes collectively.
C. 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.
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. Utilize the Webhook response mode to listen for sequential API push events triggered by the cursor.
B. Wrap the HTTP node within a Split In Batches sub-workflow loop, manually re-assigning the cursor value to a global environment variable.
C. 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.
D. Write a recursive pre-request script in JavaScript to hijack the Axios call stack and return the aggregated arrays.

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. Hardcode an HTTP Request node querying the /auth endpoint directly inside the 'Pre-request Code' text block of every single downstream API call.
B. 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.
C. 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.
D. 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.

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. {{ Math.average($json.sensor.readings) || 0 }}
B. {{ json.sensor.readings.count() }}
C. {{ (json.sensor.readings.reduce((a, b) => a + b, 0) / $json.sensor.readings.length) : 0 }}
D. {{ json.sensor.readings.length }}

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. Stream processing automatically splits files into physical chunks on the host's OS, preventing database locks during workflow commits.
C. Stream processing dynamically minifies the CSV content structure, optimizing string parsing for the downstream Code nodes.
D. 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.

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. Inject a Code node utilizing Atomics.wait() to pause the primary Node.js event loop for 100ms between implicit item iterations.
B. 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.
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. {{ $node["Previous Node Name"].json.myValue }}
C. {{ $('Previous Node Name').item.json.myValue }}
D. {{ $items("Previous Node Name")[0].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 disabled node automatically generates an empty JSON object {} and passes it to the subsequent nodes.
B. The workflow throws a critical 'Node Disabled' validation exception upon initialization and refuses to execute.
C. Execution halts silently at the disabled node, treating the branch as successfully completed but proceeding no further.
D. Execution bypasses the node's internal logic, passing the exact incoming payload directly to the next node as a transparent pass-through.

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 throws a multi-item execution error because IF logic can only strictly resolve against a single root boolean condition.
B. It resolves the boolean condition strictly against the first item in the array, routing all 10 items dynamically based on that single outcome.
C. 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.
D. It aggressively aggregates the items into two root JSON objects, one for true and one for false, resulting in exactly two total output items.

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. Only the continuous path originating from the activating Webhook trigger executes; all nodes isolated from that path are strictly ignored during that execution.
B. Both nodes execute their respective logic branches independently in parallel memory blocks.
C. It throws a 'Disconnected Nodes' structural validation error, preventing the Webhook execution from initiating.
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 are functionally standard nodes designed to deliver data externally, but they do not automatically halt or prevent subsequent connected nodes from executing.
C. They require the workflow to natively run in 'Synchronous' blocking mode to establish bidirectional streams.
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. 5 items, because the final execution overwrites the aggregate stack from the previous items.
B. 15 items, because the node processes 3 requests, extracts 5 objects per response, and flattens them into individual item arrays.
C. 8 items, due to flat additive vector mapping.
D. 3 items, representing the strict preservation of the incoming item count structure.