Unit 3 - Practice Quiz

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

1 Which of the following best describes a workflow failure pattern?

Workflow failure patterns Easy
A. A successful execution of a bot task.
B. A design pattern used to make workflows run faster.
C. A recurring way in which a software bot's automated process breaks or stops functioning.
D. A user interface layout for workflow builders.

2 What is the primary cause of a timeout error in a software bot?

Error types as timeout errors Easy
A. A process or external service takes longer to respond than the maximum allowed time limit.
B. The bot finished its task too quickly.
C. The bot attempts to process an empty dataset.
D. The workflow contains a syntax error in the code.

3 If a software bot receives an HTTP 404 error while trying to fetch data, this is an example of what kind of error?

API failures Easy
A. API failure
B. Memory leak
C. Syntax error
D. Hardware malfunction

4 A data validation error typically occurs when a software bot:

Data validation errors Easy
A. Exceeds its monthly execution quota.
B. Fails to log into a server.
C. Loses internet connection.
D. Receives input data that does not match the required format or rules.

5 In a visual workflow builder, what is the main purpose of an Error Trigger node?

Error Trigger node Easy
A. To purposely cause the workflow to fail for testing.
B. To pause a workflow until a human clicks 'resume'.
C. To delete all error logs from the system.
D. To automatically start a specific set of actions whenever a designated workflow fails.

6 What is an error workflow?

Error workflows Easy
A. A workflow that only generates fake errors.
B. A workflow that has permanently crashed.
C. A separate, dedicated workflow designed specifically to handle and recover from errors.
D. A list of syntax mistakes made by the developer.

7 In a Try-Catch pattern, what happens in the 'Catch' block?

Try-catch patterns Easy
A. It handles any errors or exceptions that were generated in the Try block.
B. It executes the main, happy-path logic.
C. It catches the data returned from a successful API call.
D. It speeds up the workflow execution time.

8 What does 'retry logic' do when a software bot encounters a temporary failure?

Retry logic Easy
A. It emails the developer to manually fix the code.
B. It attempts to perform the failed operation again after a specified condition.
C. It immediately shuts down the server.
D. It skips the step and finishes the workflow.

9 How does an exponential backoff strategy modify the wait time between retries?

Exponential backoff strategies Easy
A. It decreases the wait time to make the bot run faster.
B. It increases the wait time exponentially after each failed attempt.
C. It sets the wait time to zero.
D. It keeps the wait time exactly the same for every retry.

10 Which scenario best describes a fallback mechanism in a bot workflow?

Fallback mechanisms Easy
A. The bot switches to reading from a secondary, backup database if the primary database is unavailable.
B. The bot creates a loop to run indefinitely.
C. The bot deletes old data to free up space.
D. The bot completely crashes when the primary database is down.

11 Why are error notifications via Slack or email important for workflow reliability?

Error notifications – email, Slack, webhooks Easy
A. They alert human operators or developers to issues so they can be resolved quickly.
B. They speed up the execution time of the bot.
C. They increase the cost of running the workflow.
D. They fix the code automatically.

12 What is the primary benefit of execution history analysis?

Execution history analysis Easy
A. It prevents all future bugs.
B. It automatically writes new code for the software bot.
C. It predicts future user passwords.
D. It helps identify patterns in workflow successes, failures, and performance over time.

13 What does it mean for a software pipeline to be 'fault-tolerant'?

Fault-tolerant pipeline design Easy
A. The pipeline can continue operating properly in the event of the failure of some of its components.
B. The pipeline relies entirely on human intervention.
C. The pipeline never allows data to be deleted.
D. The pipeline is completely immune to any bugs.

14 What is the main goal of the Circuit Breaker pattern?

Circuit breaker patterns Easy
A. To execute tasks in a perfectly infinite loop.
B. To encrypt data before sending it over the network.
C. To prevent an application from repeatedly trying to execute an operation that is likely to fail.
D. To permanently shut down the server.

15 Which of the following is considered an error logging best practice?

Error logging best practices Easy
A. Delete logs every 5 minutes to save space.
B. Log sensitive user passwords to see why logins fail.
C. Log clear, actionable context such as timestamps, error codes, and input data.
D. Only log the word 'Error' without any details.

16 Workflow health monitoring typically involves tracking which of the following metrics?

Workflow health monitoring Easy
A. The physical temperature of the developer's computer.
B. The number of lines of code in the workflow.
C. Success rates, execution times, and error frequencies.
D. The color scheme of the workflow builder UI.

17 In a bot workflow, the 'Try' section of a Try-Catch block is used to:

Try-catch patterns Easy
A. Attempt to execute an operation that might potentially fail.
B. Send an email alert to the admin.
C. Store backup data.
D. Stop the workflow permanently.

18 If a software bot expects an email address but receives the string "12345", what type of error will likely occur?

Data validation errors Easy
A. Authentication error
B. Data validation error
C. Timeout error
D. Circuit breaker error

19 Which of the following is a common strategy to handle sudden, temporary API failures like rate limiting (HTTP 429)?

API failures Easy
A. Deleting the API from the workflow.
B. Using Retry logic with Exponential Backoff.
C. Sending an email to the customer.
D. Changing the database schema.

20 When a Circuit Breaker is in the 'Open' state, what does it do?

Circuit breaker patterns Easy
A. It runs the requests twice to be safe.
B. It allows all requests to pass through normally.
C. It deletes the failing service.
D. It immediately blocks requests and returns an error without trying the external service.

21 A software bot frequently queries a third-party API. When the API experiences an outage, the bot continues to send requests, wasting resources and exacerbating the API's load. Which pattern should be implemented to temporarily halt requests after a defined number of consecutive failures?

Circuit breaker patterns Medium
A. Circuit breaker pattern
B. Try-catch pattern
C. Data validation routing
D. Exponential backoff strategy

22 A bot uses an exponential backoff strategy for retrying failed network requests. If the initial delay is $2$ seconds and the multiplier is $2$, what will be the wait time before the 4th retry attempt? (Assuming no jitter is added)

Exponential backoff strategies Medium
A. 16 seconds
B. 32 seconds
C. 6 seconds
D. 8 seconds

23 When implementing retry logic for an HTTP POST request in an automation workflow, what is the most critical characteristic the target endpoint must possess to prevent unintended side effects?

Retry logic Medium
A. High availability
B. Idempotency
C. Synchronous execution
D. Asynchronous logging

24 An automation bot receives an HTTP 429 response code from a CRM API. How should the workflow handle this specific API failure?

API failures Medium
A. Implement a retry logic respecting the Retry-After header.
B. Trigger an immediate fallback to a secondary CRM.
C. Clear the bot's internal cache and restart the workflow.
D. Halt the workflow and notify the administrator of a permanent data error.

25 In a workflow designed to process invoices, a database connection is opened in the try block. If an error occurs during processing, the flow moves to the catch block. Why is a finally block also highly recommended in this scenario?

Try-catch patterns Medium
A. To restart the workflow from the beginning if the catch block fails.
B. To permanently delete the invoice file to prevent data corruption.
C. To ensure the database connection is securely closed regardless of success or failure.
D. To send an email notification to the administrator.

26 A weather-reporting bot relies on a premium meteorological API. If this API is unreachable, the bot is programmed to fetch slightly older data from a local Redis cache to ensure the user still receives a response. This design is an example of:

Fallback mechanisms Medium
A. Circuit breaking
B. Error triggering
C. Exponential backoff
D. Fallback mechanism

27 A workflow pulls user data from a web form. The bot fails repeatedly because a 'phone number' field contains alphabetic characters instead of digits. Which step should be added to prevent the bot from failing unexpectedly?

data validation errors Medium
A. Wrap the entire workflow in a global Error Trigger node.
B. Implement a JSON schema validation node before processing the data.
C. Increase the timeout threshold for the form submission node.
D. Add an API retry loop with exponential backoff.

28 In automation platforms like n8n or Make, what is the primary function of an Error Trigger node?

Error Trigger node Medium
A. It stops the workflow entirely to prevent Infinite loops.
B. It automatically fixes corrupted data payloads before they reach the main workflow.
C. It allows developers to manually inject fake errors to test pipeline resilience.
D. It catches unhandled exceptions in the platform and initiates a dedicated error-handling sub-workflow.

29 You are designing an error notification system for a mission-critical bot. Which of the following setups best utilizes webhooks for modern incident management?

Error notifications – email, Slack, webhooks Medium
A. Posting a message to a public Slack channel using a standard user account.
B. Sending a direct email to the lead developer containing the raw error stack trace.
C. Configuring a webhook to POST error details to a service like PagerDuty to trigger automated on-call alerts.
D. Writing the error to a local CSV file and emailing the file at the end of the week.

30 When configuring a software bot to log errors to an external monitoring tool, what is a crucial security practice regarding the log payload?

Error logging best practices Medium
A. Only logging HTTP 200 OK responses to obscure failure points from attackers.
B. Storing logs entirely in plain text to ensure rapid querying.
C. Ensuring Personally Identifiable Information (PII) and API keys are redacted or sanitized.
D. Encrypting the logs using MD5 hashing before transmission.

31 A bot's execution history shows that a specific workflow fails randomly about 5% of the time around 2:00 AM, but succeeds on retry. What is the most likely cause derived from this analysis?

Execution history analysis Medium
A. Hardcoded data validation rules rejecting all inputs.
B. Intermittent resource unavailability or scheduled maintenance on an external system.
C. A permanent authentication failure due to an expired API token.
D. A persistent syntax error in the bot's core script.

32 To improve fault tolerance, a developer decouples a bot's data-ingestion phase from its data-processing phase using a message queue (like RabbitMQ). How does this design improve workflow reliability?

Fault-tolerant pipeline design Medium
A. It automatically repairs malformed JSON data before processing.
B. It eliminates the need for API rate limiting.
C. It converts asynchronous tasks into synchronous tasks.
D. It prevents the ingestion bot from failing if the processing bot temporarily crashes.

33 Instead of just alerting on individual task failures, a DevOps engineer configures a dashboard to track the workflow's 'Success Rate Percentage' over a 24-hour rolling window. Why is this metric often preferred for workflow health monitoring?

Workflow health monitoring Medium
A. It provides a macro-level view of system reliability, preventing alert fatigue from isolated, self-correcting transient errors.
B. It forces the bot to execute faster by ignoring API rate limits.
C. It automatically fixes corrupted workflows when the rate drops below 90%.
D. It prevents the logging system from running out of storage space.

34 A bot querying a massive SQL database regularly throws a 'Timeout Exceeded' error. Aside from simply increasing the timeout threshold, what is the most robust architectural solution to resolve this?

Error types as timeout errors Medium
A. Switch the bot's error notification from Slack to Email.
B. Implement a circuit breaker to permanently block the database connection.
C. Optimize the database query (e.g., adding indexes) or paginate the data requests.
D. Wrap the query in a Try-Catch block that ignores the error.

35 A long-running software bot experiences a 'Memory Leak' failure pattern, where RAM usage increases steadily until the process crashes. Which workflow design pattern best mitigates the impact of this issue while the root cause is being investigated?

Workflow failure patterns Medium
A. Increasing the exponential backoff multiplier.
B. Storing all intermediary data in global variables instead of local scope.
C. Designing the workflow to run infinitely in a single while(true) loop.
D. Structuring the bot as stateless, short-lived executions triggered by a scheduler.

36 In a Circuit Breaker pattern, what happens when the circuit is in the 'Half-Open' state?

Circuit breaker patterns Medium
A. All requests are allowed through normally as the service is assumed to be fully healthy.
B. All requests are immediately rejected without attempting to contact the service.
C. The service automatically switches to a backup database to process the request.
D. A limited number of test requests are allowed through to check if the external service has recovered.

37 When multiple bot instances experience an outage simultaneously and attempt to reconnect using exponential backoff, they might overwhelm the server when they all retry at the exact same intervals. What technique is added to the backoff algorithm to prevent this 'thundering herd' problem?

Exponential backoff strategies Medium
A. Circuit breaking
B. Idempotency tokens
C. Jitter (Randomization)
D. Semantic logging

38 When designing an Error Workflow triggered globally by failures in other workflows, what crucial contextual data must the payload contain to ensure effective troubleshooting?

Error workflows Medium
A. The API keys and passwords used in the failed workflow.
B. The entire database schema of the target application.
C. The Execution ID, the Workflow Name, and the specific Node/Step where the failure occurred.
D. The source code of the automation platform.

39 A bot script attempts to parse a string into JSON format. Which of the following is the most appropriate use of a try-catch pattern in this context?

Try-catch patterns Medium
A. Putting the JSON.parse() method in the catch block.
B. Placing the JSON.parse() method in the finally block to ensure it always runs.
C. Using the try block to execute JSON.parse() and the catch block to assign a default empty JSON object if parsing fails.
D. Using try-catch to retry the parsing infinitely until the string format magically changes.

40 A workflow relies on an external API that occasionally returns a 503 Service Unavailable HTTP error. How does a 503 error dictate the bot's error handling strategy compared to a 401 Unauthorized error?

API failures Medium
A. A 503 error requires updating API credentials, while a 401 error requires a simple retry.
B. Both errors indicate permanent network failures and should trigger an immediate circuit breaker open state.
C. A 503 error means the payload was formatted incorrectly, requiring a JSON schema update.
D. A 503 is a temporary server issue suitable for automated retries, whereas a 401 requires manual intervention to fix credentials.

41 A distributed software bot pipeline updates a CRM, sends an email via SendGrid, and logs the transaction to a PostgreSQL database sequentially. If the database insertion fails, the pipeline leaves the system in an inconsistent state. Which advanced pattern is best suited to handle this specific cascading failure and ensure eventual consistency?

Workflow failure patterns Hard
A. Implementing a retry loop exclusively on the database insertion node with exponential backoff.
B. Implementing a Circuit Breaker pattern on the SendGrid API to halt email dispatch during database outages.
C. Wrapping the entire sequence in a monolithic try-catch block and relying on the database's internal transaction rollback.
D. Utilizing the Saga pattern with compensating transactions to explicitly revert the CRM update and send a cancellation email.

42 A bot makes a webhook request to a third-party data processing API. The bot receives an HTTP 202 (Accepted) response immediately, but the connection is later dropped by a reverse proxy citing a 504 Gateway Timeout before the final data payload is returned. What is the most robust way for the bot to handle this asynchronous timeout?

Error types as timeout errors Hard
A. Immediately retry the exact same HTTP POST request using a standard backoff mechanism.
B. Assume the data processing failed entirely and trigger a Dead Letter Queue (DLQ) event.
C. Implement a polling mechanism using a Location header or job ID provided in the HTTP 202 response to check the processing status.
D. Increase the bot's HTTP client maximum timeout configuration to infinity to wait for the data.

43 A bot orchestration engine is scaling up and hitting an external REST API, consistently receiving HTTP 429 (Too Many Requests) errors. The API response lacks a Retry-After header. To prevent a 'thundering herd' problem across multiple concurrent bot instances, what is the mathematically optimal retry calculation mechanism?

API failures Hard
A. Immediate retry restricted by a local node-level rate limiter.
B. Fixed interval retry: milliseconds for all instances.
C. Exponential backoff with full jitter: .
D. Linear backoff: , where is the retry attempt.

44 During a nightly ETL bot workflow, a third-party API silently changes its payload structure (schema drift), changing an expected customer_id integer into an alphanumeric string. This causes downstream data validation errors. How should the bot's pipeline be designed to handle this without terminating the entire batch process?

data validation errors Hard
A. Use an Error Trigger node to automatically restart the workflow from the beginning.
B. Fail the workflow immediately to prevent data corruption and page the on-call engineer.
C. Implement a Catch block that routes only the invalid JSON payloads to a Dead Letter Queue for manual review, allowing the loop to continue for valid records.
D. Automatically cast the alphanumeric string back to an integer using aggressive type coercion in the mapping node.

45 In a visual workflow automation tool (like n8n or Zapier), a global 'Error Trigger' node is configured to catch failures from all active workflows. What crucial piece of context must be passed from the failing workflow to the Error Trigger to enable programmatic recovery (e.g., resuming the workflow after human intervention)?

Error Trigger node Hard
A. The timestamp of the error and the name of the author of the workflow.
B. The raw JSON of the webhook that initially started the failed workflow.
C. The specific HTTP status code of the failed node.
D. The Execution ID and the state of the workflow memory at the point of failure.

46 A bot iterates over an array of 1,000 user records, making a POST request for each. If a single POST fails, the bot must log the failure but continue processing the remaining records. Furthermore, it must return an aggregate summary of successes and failures at the end. Which architectural placement of the Try-Catch pattern is required?

Try-catch patterns Hard
A. A Try-Catch placed inside the loop that recursively calls the loop function upon failure.
B. A single Try-Catch wrapping the entire loop, with an append operation in the Catch block.
C. A Try-Catch placed inside the loop structure, pushing results to a state variable (e.g., an array) initialized outside the loop.
D. A Catch block that explicitly throws a custom error to trigger a global Error Trigger node.

47 A bot is configured to retry a failed HTTP POST request that creates a new user profile in a database. Due to a network partition, the API processes the request but the response fails to reach the bot, triggering a timeout error and a subsequent retry. Which architectural mechanism must the API support to prevent the bot's retry logic from creating duplicate profiles?

Retry logic Hard
A. Idempotency Keys
B. Circuit Breakers
C. HTTP 301 Redirects
D. Eventual Consistency

48 A bot utilizes an exponential backoff algorithm calculated as , where is the retry attempt (starting at for the first retry). If the wait time is 2 seconds, and the bot implements a maximum delay cap of 15 seconds, what will be the wait times for retries 1, 2, 3, and 4 (in seconds)?

Exponential backoff strategies Hard
A. 0, 2, 4, 8
B. 2, 4, 6, 8
C. 2, 4, 8, 16
D. 2, 4, 8, 15

49 In a microservice-based bot architecture, a Circuit Breaker has transitioned from the 'Open' state to the 'Half-Open' state. What specific operational behavior defines the 'Half-Open' state in this pattern?

Circuit breaker patterns Hard
A. The circuit permits all traffic to pass through but monitors the error rate closely to see if it exceeds a threshold.
B. The circuit rejects all requests immediately with a fast-failure response to prevent system overload.
C. The circuit allows a limited, predefined number of test requests to pass through to the failing service to determine if it has recovered.
D. The circuit routes all traffic to a fallback mechanism while pinging the primary service's health endpoint in the background.

50 A conversational AI bot queries a real-time inventory API to answer customer questions. If the inventory API goes down, the bot falls back to querying a daily-synced caching database. This specific fallback mechanism is an implementation of which architectural pattern?

Fallback mechanisms Hard
A. Scatter-Gather Pattern
B. Fail-Fast Pattern
C. Graceful Degradation
D. Bulkhead Pattern

51 A high-throughput bot workflow experiences a sudden database outage, generating 5,000 error events in 10 seconds. To prevent alert fatigue and system overload via Slack notifications, which technique should the Error Trigger workflow implement before dispatching the webhook to Slack?

Error notifications – email, Slack, webhooks Hard
A. Synchronous blocking
B. Debouncing and Aggregation
C. Semantic logging
D. Exponential backoff

52 When analyzing the execution history of a complex bot that utilizes asynchronous queues (e.g., RabbitMQ or Kafka) to hand off tasks between different worker nodes, tracing a single user's request end-to-end becomes difficult. What industry-standard practice resolves this trace fragmentation?

Execution history analysis Hard
A. Injecting and propagating a unique Correlation ID through the message headers across all queues and workers.
B. Using a monolithic database to store the state of every function call sequentially.
C. Merging the local log files of all worker nodes based on the IP address of the initiating user.
D. Relying exclusively on the exact timestamp of execution across all distributed nodes.

53 A bot pipeline consumes messages from an event stream. Certain messages are malformed ('poison pills') and consistently cause the parsing node to crash, leading the stream consumer to infinitely retry the same message, halting the entire pipeline. Which architectural pattern prevents this?

Fault-tolerant pipeline design Hard
A. Configuring a Dead Letter Queue (DLQ) after a fixed number of unacknowledged retries.
B. Using a Circuit Breaker that opens indefinitely upon the first parsing failure.
C. Implementing an infinite while-loop with a Try-Catch block.
D. Increasing the memory allocation of the parsing node to handle larger payloads.

54 A support bot handles customer complaints and frequently logs the raw HTTP request payloads to an ELK stack for debugging complex API failures. These payloads often contain credit card numbers and passwords. According to strict error logging best practices and compliance standards, how should this be handled?

Error logging best practices Hard
A. Store sensitive logs in a separate, highly secure database specifically designed for debugging.
B. Restrict access to the ELK stack to senior engineers only.
C. Implement a log sanitizer middleware that redacts or hashes PII/sensitive fields before writing to standard output.
D. Encrypt the entire log database at rest using AES-256.

55 An engineering team monitors a bot's workflow health using an Error Budget based on a Service Level Objective (SLO) of 99.9% success rate over a 30-day rolling window. If the bot processes 1,000,000 requests in 30 days, what is the maximum number of allowable failed workflows before the Error Budget is completely exhausted?

Workflow health monitoring Hard
A. 100
B. 1,000
C. 100,000
D. 10,000

56 When designing an isolated Error Workflow intended to handle failures from multiple different primary pipelines, what is the most significant architectural challenge regarding context management?

Error workflows Hard
A. Securing the API keys used by the primary pipelines so the Error Workflow cannot access them.
B. Ensuring the Error Workflow uses the exact same software version as the primary pipelines.
C. Preventing the Error Workflow from triggering a Dead Letter Queue.
D. Standardizing the payload schema so the Error Workflow can interpret failure states, Node IDs, and runtime variables dynamically without hardcoded assumptions.

57 In a highly distributed bot architecture spanning multiple Kubernetes pods, relying on an in-memory Circuit Breaker per pod leads to a scenario where one pod trips its circuit while others continue to overwhelm the failing API. What is the standard design pattern to resolve this?

Circuit breaker patterns Hard
A. Implement a randomized jitter in the backoff algorithm of each individual pod.
B. Implement a Distributed Circuit Breaker utilizing a centralized fast-access datastore (like Redis) to share state across pods.
C. Use a reverse proxy to route all traffic through a single, monolithic pod.
D. Increase the failure threshold on all in-memory circuit breakers to delay the tripping.

58 A bot interacts with a legacy SOAP API that encapsulates all underlying system errors by returning an HTTP 200 OK status code, alongside an XML payload containing <error_code>500</error_code>. What is the most effective way to handle this in a modern workflow automation tool to ensure native error handling triggers correctly?

API failures Hard
A. Rely on the workflow tool's built-in 'Stop on HTTP Error' configuration.
B. Configure a global Error Trigger to listen specifically for HTTP 200 status codes.
C. Implement an exponential backoff directly on the HTTP Request node.
D. Use an intermediary parsing node immediately after the API call that checks the XML payload and explicitly throws a runtime exception if the error tag is present.

59 A bot processes heavy video files. The 'Download' node takes 5 minutes, the 'Process' node takes 20 minutes, and the 'Upload' node takes 5 minutes. The processing platform has a strict maximum execution timeout of 15 minutes per workflow invocation. Which design pattern avoids this systemic timeout failure?

Workflow failure patterns Hard
A. Increasing the CPU allocation of the bot to force the 20-minute process into a 10-minute window.
B. Implementing a Fan-Out / Fan-In architecture using Webhooks, splitting the tasks into separate asynchronous workflow executions.
C. Wrapping the 'Process' node in a Try-Catch block to suppress the timeout exception.
D. Using exponential backoff on the 'Download' node to delay the start of the workflow.

60 A developer implements a retry loop for an unreliable external database connection. The logic is: while (retries < 3) { try { connect(); break; } catch { retries++; } }. Under a specific edge case, this bot hangs indefinitely and exhausts memory. What is the most likely cause of this failure pattern?

Retry logic Hard
A. The connect() function succeeds but returns a null object.
B. The retries integer overflows after exceeding 2,147,483,647.
C. The connect() function hangs without throwing an error due to a missing internal timeout configuration.
D. The external database returns an HTTP 429 Too Many Requests status.