Courseiva

CCNA Generic Automation Development Questions

37 questions · Generic Automation Development · All types, answers revealed

1
Multi-Selecteasy

Which TWO of the following are best practices for maintaining clean and scalable variables within a UiPath project?

Select 2 answers
A.Use PascalCase for all variable names to ensure consistency across the automation.
B.Limit the scope of variables to the smallest container necessary to reduce memory usage.
C.Use clear and descriptive names that indicate the data type and purpose.
D.Declare all variables as Global at the top level to avoid scope-related errors.
E.Initialize all variables with a default value to prevent NullReferenceExceptions.
AnswersB, C

Restricting variable scope ensures that variables are only active when needed. This improves readability by hiding variables from unnecessary parts of the workflow and helps the garbage collector manage memory more efficiently in large, complex enterprise projects involving many nested sequences.

Why this answer

Effective variable management minimizes memory overhead and prevents naming collisions in large projects. Using descriptive naming conventions allows developers to understand data purpose at a glance, while limiting the scope of variables to the smallest necessary sequence or flow reduces the risk of accidental modification. These practices are fundamental to creating maintainable automations that are easy for other developers to debug and modify.

Exam trap

Candidates often select options that sound like 'clean code' but are technically incorrect in UiPath, such as declaring everything as a Global variable for ease of access.

2
MCQeasy

A developer needs to extract a specific value from a JSON response returned by an API call. The JSON structure is nested and the developer wants to avoid writing custom string parsing. Which activity should be used?

A.Use the HTTP Request activity's built-in JSON path parser to extract the value directly.
B.Read Text File activity and then use regular expressions to find the value.
C.Deserialize JSON activity followed by accessing the resulting JObject properties.
D.Deserialize XML activity because JSON is a subset of XML.
AnswerC

Deserialize JSON converts the raw JSON string into a structured JObject, allowing direct access to nested properties by name or index. This avoids fragile string manipulation and is the standard way to work with JSON in UiPath, directly meeting the requirement.

Why this answer

Working with JSON in UiPath is done by deserializing the string into a JObject, which exposes nested properties through a structured object model. This eliminates the need for custom string parsing and is robust against formatting variations. The other options either misidentify the data format or rely on brittle text manipulation.

Exam trap

The trap here is assuming that regular expressions or XML tools can reliably handle JSON, when JSON requires a dedicated deserializer to navigate its structure safely.

3
MCQeasy

A developer needs to store a true/false value that indicates whether a transaction was successful. Which variable type should be used in UiPath Studio?

A.Object
B.Int32
C.String
D.Boolean
AnswerD

A Boolean variable in UiPath Studio holds only True or False. It is the correct type for storing the outcome of a transaction, such as success or failure. Boolean variables can be used directly in If activities and While loops, and they support logical operators like And, Or, and Not, making them ideal for decision logic.

Why this answer

The Boolean type is designed to store true/false values and integrates seamlessly with UiPath's conditional activities. It provides type safety and allows direct use in logical expressions. Using Boolean for transaction success flags is a best practice that improves readability and reduces the risk of conversion errors.

Exam trap

The trap here is overcomplicating a simple flag by using a String or Integer to represent true/false, which introduces unnecessary conversions and potential bugs.

4
MCQmedium

How should a developer handle a situation where an application takes a variable amount of time to open?

A.Use a fixed 'Delay' activity set to 30 seconds.
B.Implement a 'Wait Element Vanish' activity.
C.Use a 'Wait for Ready' property in the activity or 'Element Exists' check.
D.Increase the 'TimeoutMS' on every activity.
AnswerC

Dynamic synchronization is the best practice. By checking for a specific UI element that confirms the application is ready, the robot intelligently waits only as long as needed. This approach maximizes speed, improves robot performance, and makes the automation resilient to varying load times across different operating environments.

Why this answer

Using a combination of 'Element Exists' or 'Wait for Ready' properties is the correct, professional approach. Relying on fixed delays creates inefficient processes that waste time when the app is fast and fails when the app is slow. Dynamic waiting ensures the automation proceeds as quickly as possible while remaining robust to environment-induced latency, which is essential for high-quality, production-grade automation.

Exam trap

Candidates incorrectly rely on the 'Delay' activity to handle slow application loading, which creates brittle automations that are either too slow or prone to failure.

5
Multi-Selectmedium

Which TWO factors should be considered when choosing between 'Simulate' and 'Hardware Event' input methods?

Select 2 answers
A.The need for the bot to run in the background (Unattended).
B.The total number of activities in the workflow.
C.The requirement to trigger application-specific JavaScript events.
D.The version of the UiPath Studio installed on the machine.
E.The color depth settings of the robot machine's display.
AnswersA, C

Background execution is a key advantage of the 'Simulate' method. It allows the robot to perform tasks without needing the application to be in the foreground, which increases concurrency and overall efficiency. If an automation must run in the background, this is the primary consideration for selecting the input method.

Why this answer

Choosing the correct input method is vital for the reliability and speed of an automation. 'Simulate' is generally faster and works in the background, but it has limitations with certain web applications. 'Hardware Events' provide higher compatibility as they mimic actual user behavior, but they require the window to be in focus, which can create dependencies in unattended bot deployments. Balancing these factors is key to robust automation design.

Exam trap

Candidates often assume 'Simulate' is always superior because it is faster, failing to realize that it may fail if the target application requires specific hardware-level events or physical input triggers.

6
MCQmedium

An automation project must process an Excel file located on a network drive. Which activity strategy best ensures robust execution when the network connection is intermittent?

A.Increase the 'TimeoutMS' property to the maximum value allowed by the activity.
B.Use an Invoke Power Shell activity to map the network drive to a local drive letter.
C.Wrap the Excel activities inside a Retry Scope with a custom 'Retry Condition' checking for file accessibility.
D.Add a Delay activity at the start of the sequence to allow for network stabilization.
AnswerC

The Retry Scope allows the robot to re-execute a set of activities until a condition is met or the max retry count is reached. This is the standard UiPath pattern for managing transient infrastructure failures, ensuring the workflow automatically recovers from momentary network glitches.

Why this answer

Using a Try-Catch block wrapping the Excel Application Scope or Use Excel File activity is essential for handling network instability. By implementing a Retry Scope with a specific condition or a delay before re-attempting, the automation gains resilience against transient network failures. This approach prevents job failure due to temporary connectivity drops, ensuring reliable execution in enterprise environments where network latency fluctuates frequently.

Exam trap

Candidates often assume that simply setting a longer timeout property within the activity will resolve network drops. However, timeouts usually handle application responsiveness rather than full network path availability.

7
MCQmedium

When using a 'For Each' loop to process a list of items, what is the best way to handle an error that occurs for only one specific item?

A.Place the entire 'For Each' loop inside a single Try-Catch block.
B.Place a Try-Catch block inside the loop body.
C.Use the 'Continue' property in the For Each activity.
D.Disable error handling and allow the process to fail.
AnswerB

This is the best practice for robust iteration. By scoping the Try-Catch inside the loop, the robot can catch, log, and handle an error for the current item individually. This allows the process to skip the failing item and continue successfully with the rest of the list, ensuring maximum possible throughput.

Why this answer

Placing a Try-Catch block *inside* the loop is the standard pattern for row-level or item-level error handling. This allows the robot to catch the error, log the specific failure for that item, and then continue to the next iteration. This ensures the entire process does not crash due to a single bad data record, which is vital for high-volume automated processing.

Exam trap

Candidates often place the Try-Catch block outside the loop. This causes the entire process to stop or exit the loop when an error occurs, rather than skipping the single bad item.

8
Multi-Selecthard

A team is preparing a long-running unattended process that interacts with a browser-based application and a legacy desktop client. Before publishing, they review configuration to reduce failures caused by UI elements not being ready. Which TWO settings or practices should they apply? (Choose two.)

Select 2 answers
A.Add an Element Exists activity before each interaction to poll for the element and branch on the result.
B.Set the WaitForReady property to Interactive or Complete on activities that need the target to be fully rendered before acting.
C.Configure a retry scope around transient UI interactions so that failed attempts are repeated before the workflow throws.
D.Increase the Delay After property on individual activities that follow navigation or window switching.
E.Enable the ContinueOnError property on all activities so execution proceeds even when an element is not found.
AnswersB, C

WaitForReady controls how long the activity waits for the target application to reach a usable state before executing. Choosing Interactive or Complete ensures the element is rendered and ready, which directly addresses failures caused by acting too early. This is a targeted, condition-based setting rather than an arbitrary pause, so it improves reliability without inflating runtime on every step.

Why this answer

Robustness against unready UI comes from waiting on conditions and recovering from transient faults, not from fixed pauses or blanket error suppression. Setting WaitForReady so activities wait for a usable target state, and wrapping fragile interactions in a Retry Scope, addresses both the cause and the recovery. Together they keep an unattended run moving without masking real defects.

Exam trap

The trap here is treating fixed delays and ContinueOnError as reliability features, when they actually mask timing problems and hide failures instead of resolving them.

9
MCQmedium

A developer builds a UiPath process that must run unattended on a machine where Microsoft Excel is not installed. The process reads a 200-row spreadsheet, filters rows, and writes a summary sheet. Which activity package and approach should the developer use to meet this requirement without installing Excel?

A.Use the UiPath.Excel.Activities package with classic Excel Application Scope and Read Range activities.
B.Use the UiPath.Excel.Activities package with Workbook activities such as Read Range Workbook and Write Range Workbook.
C.Use the UiPath.MicrosoftOffice365.Activities package with Get Mail and Excel Online activities.
D.Use the UiPath.Database.Activities package with Execute Query against the spreadsheet using an OLEDB connection string.
AnswerB

Workbook activities in UiPath.Excel.Activities use the OpenXML SDK and do not require Microsoft Excel to be installed on the robot machine. They support reading and writing .xlsx files, filtering can be done with DataTable operations, and a summary sheet can be written with Write Range Workbook, so the unattended robot works headlessly.

Why this answer

Workbook activities use the OpenXML SDK to read and write .xlsx files directly, so they function on robots where Excel is not installed. This makes them the correct choice for unattended processes on locked-down or server machines. Application Scope activities depend on Excel COM, while cloud and database packages address entirely different data sources than a local spreadsheet file.

Exam trap

The trap here is assuming any activity in the Excel package needs Excel installed, when Workbook activities deliberately bypass Excel via OpenXML.

10
MCQeasy

A developer needs to extract text from a PDF file that contains scanned images. The developer has installed the UiPath.PDF.Activities package and the UiPath.DocumentUnderstanding.Activities package. Which activity should be used to extract text from the scanned PDF?

A.Digitize Document
B.Read PDF With OCR
C.Read PDF Text
D.Get OCR Text
AnswerB

Read PDF With OCR uses optical character recognition to extract text from scanned images within a PDF. It is specifically designed for documents without a text layer. By configuring an OCR engine, such as UiPath Screen OCR or Tesseract, it can accurately read the scanned content.

Why this answer

For scanned PDFs, the Read PDF With OCR activity is the correct choice because it applies OCR to extract text from images. Other activities like Read PDF Text fail on scanned documents, and Get OCR Text requires UI elements. Digitize Document is more complex and intended for structured data extraction.

Exam trap

The trap here is assuming that Read PDF Text can handle scanned documents, when it only works on PDFs with embedded text.

11
MCQeasy

Which UiPath Studio feature is most effective for visualizing the sequence of decisions and processes in a complex automation project?

A.Sequence activity.
B.State Machine diagram.
C.Flowchart activity.
D.Data Table activity.
AnswerB

State Machines provide an intuitive, visual representation of complex logic transitions. They are superior to standard sequences for projects that involve conditional workflows, cyclic operations, and multiple exit points, as they allow for better modularity and a clear separation of concerns between states, leading to much cleaner project structures.

Why this answer

A State Machine diagram is explicitly designed to handle complex, non-linear logic that would otherwise become a 'spaghetti' of nested 'If' and 'Switch' activities. By using states and transitions, developers can clearly map out the lifecycle of a transaction, making it easier to debug and communicate the automation logic to stakeholders or other team members, which is standard practice in REFramework projects.

Exam trap

Many candidates confuse 'Flowchart' with 'State Machine'. While both visualize logic, only State Machine is designed to handle the event-driven transitions and states required for complex, enterprise-grade transaction processing.

12
MCQmedium

When designing an automation that interacts with a web-based portal requiring MFA, what is the recommended approach to handle the dynamic authentication prompts while maintaining security?

A.Store the MFA token in a hardcoded text file inside the project folder.
B.Use the Get Credential activity and implement a Wait for Element for the MFA prompt.
C.Bypass MFA by hardcoding the device ID into the browser's cookies.
D.Use the Type Into activity to send the password and MFA code sequentially.
AnswerB

This approach uses secure credential retrieval and enables the robot to monitor the UI for the MFA prompt. It allows the automation to gracefully wait for the human user to provide the token, ensuring a secure and reliable integration with portals requiring multi-factor authentication without compromising credential integrity.

Why this answer

Using Orchestrator Credentials or secure Vault integration ensures that sensitive data is not exposed within the workflow. Handling MFA prompts usually requires a human-in-the-loop strategy using Action Center or waiting for specific UI elements indicating the MFA request. This approach balances security compliance with automation requirements, ensuring that credentials remain encrypted while allowing the process to pause and resume securely once the human component provides the necessary authorization.

Exam trap

Candidates often try to automate MFA by hardcoding codes or using insecure workarounds, failing to realize that human interaction is required for security compliance.

13
MCQhard

When designing a large-scale automation, which approach is most effective for managing sensitive configuration data and credentials?

A.Store credentials as clear-text inside an Excel configuration file.
B.Use Orchestrator Assets to retrieve credentials during runtime.
C.Hard-code credentials directly in the activity properties for performance.
D.Implement a custom local JSON file with hashed passwords.
AnswerB

Orchestrator Assets provide a centralized, secure repository for configuration data and credentials. They enable environment-specific management and ensure that sensitive info is never exposed in the source code, making it the most robust and secure method for managing automation configuration.

Why this answer

Using Orchestrator Assets is the industry standard for securing sensitive data. It separates the credentials from the project code, ensuring that sensitive information is encrypted at rest and accessed only by authorized robots. This approach facilitates environment-specific configuration, allowing the same code to run in Development, UAT, and Production by simply pointing to different Orchestrator asset values without modifying the underlying workflow files.

Exam trap

Many candidates choose 'hard-coding in a config file' because it is easy, failing to realize that config files are often stored in source control, which exposes credentials.

14
MCQmedium

A developer is building a UiPath automation that must process invoices received as email attachments. The process runs unattended overnight and must log into a web portal that uses a multi-factor authentication prompt delivered to a shared mobile device. The developer needs to ensure the robot can complete the login without human intervention. Which approach should be used?

A.Use a human-in-the-loop action in Orchestrator to ask an operator to type the MFA code each night.
B.Store the portal credentials in Orchestrator Assets and configure the MFA code retrieval using a TOTP-based authenticator asset.
C.Hardcode the username, password, and a static MFA backup code inside the process workflow.
D.Disable MFA on the portal account so the robot can log in with only a username and password.
AnswerB

Orchestrator Assets securely store credentials, and a TOTP asset can generate time-based one-time passwords that the robot reads at runtime. This allows unattended login without a human entering the MFA code, satisfying the overnight requirement while keeping secrets out of the project files.

Why this answer

Unattended automation that faces MFA must retrieve both the credential and the one-time code programmatically. Orchestrator credential assets protect the password, while a TOTP asset supplies the rotating code. Together they let the robot authenticate without a human, which is the only approach here that satisfies both the unattended schedule and security requirements.

Exam trap

The trap here is assuming that any MFA prompt automatically requires a human-in-the-loop action, when time-based one-time passwords can be generated and consumed by the robot itself.

15
MCQmedium

Which property must be configured in the 'Type Into' activity to ensure that the input field is cleared before typing, preventing accidental appending of text?

A.Activate
B.EmptyField
C.SimulateType
D.DelayBefore
AnswerB

The 'EmptyField' property is explicitly designed to clear the UI element before sending the keystrokes. This ensures that the field contains only the intended input, preventing data integrity issues that occur when new information is appended to old values already present in the target application's UI components.

Why this answer

Setting the 'EmptyField' property to True is the standard way to ensure that any existing content in an input field is deleted before the robot types new data. This is crucial for data accuracy, as failing to clear fields often results in concatenated or invalid data, which can lead to downstream system errors or incorrect business outcomes in the target application.

Exam trap

Candidates often forget the 'EmptyField' property and attempt to clear inputs using 'Send Hotkey' (Ctrl+A then Backspace), which is unreliable and prone to timing issues.

16
Multi-Selecthard

Which THREE actions are essential when implementing a robust Global Exception Handler in a UiPath automation?

Select 3 answers
A.Use the 'Log Message' activity to record the exception source and message.
B.Call the 'Kill Process' activity to restart the application immediately.
C.Use 'Take Screenshot' to capture the state of the UI at the time of failure.
D.Set the 'errorAction' variable to 'Retry' to attempt the process indefinitely.
E.Assign the 'errorAction' argument to 'Abort' when a business rule exception occurs.
AnswersA, C, E

Logging the exception source and message is critical for debugging. It provides visibility into exactly where the error occurred and what went wrong. Without these logs, it is nearly impossible to diagnose intermittent issues in unattended production bots, making it a mandatory practice for any enterprise-level automation.

Why this answer

A Global Exception Handler provides a centralized mechanism to log errors, take screenshots for troubleshooting, and decide whether to retry, ignore, or abort the process. Properly configuring this handler prevents unhandled exceptions from crashing the robot ungracefully. It is vital for maintaining auditability and ensuring that developers can diagnose issues quickly when the robot encounters unexpected application states or data anomalies during execution.

Exam trap

Candidates incorrectly assign business rule exceptions to retry or ignore instead of aborting, violating standard exception handling design principles.

17
MCQmedium

When extracting data from a web table that spans multiple pages, what is the best strategy to ensure all data is captured?

A.Hardcode the number of pages to loop through based on a manual count.
B.Use the 'Data Scraping' wizard and check the 'Extract All' box.
C.Loop through pages until the 'Next' button is no longer found.
D.Read the table once, then use 'Get Attribute' to find the last page number.
AnswerC

Checking for the visibility of the 'Next' button is a robust way to handle pagination. It dynamically stops the loop only when the end of the data is reached. This approach ensures that the robot can handle any number of pages, making the automation flexible and reliable for production business processes.

Why this answer

Implementing a loop with a condition to check for the 'Next' button's existence is the industry-standard approach. This ensures the robot continues to scrape until the final page is reached. This strategy is critical for any web-based scraping automation, as it allows for scaling to datasets of unknown sizes while ensuring complete data coverage for downstream processing in the automation pipeline.

Exam trap

Candidates often try to hardcode the number of pages or attempt to calculate the page count beforehand, which fails if the dataset size changes or is dynamic.

18
MCQeasy

An automation developer is using the 'Type Into' activity to enter a date into a web form. The field already contains a placeholder value 'MM/DD/YYYY'. The developer wants to ensure the placeholder is removed before typing the new date. Which property of the 'Type Into' activity should be configured?

A.DelayAfter
B.EmptyField
C.ClickBeforeTyping
D.Activate
AnswerB

The EmptyField property, when set to True, clears any existing content in the target field before typing. This ensures that the placeholder text is removed and the new date is entered correctly. It is the standard property for this purpose in the Type Into activity.

Why this answer

To ensure the input field is cleared before typing, the EmptyField property must be set to True. This removes any existing content, including placeholders, so the new date is entered cleanly. Other properties like ClickBeforeTyping or Activate only manage focus and do not alter the field's content.

Exam trap

The trap here is confusing focus-related properties such as ClickBeforeTyping or Activate with the property that actually clears the field content.

19
MCQhard

Which activity should be used to interact with a background application without taking focus from the current window?

A.Click activity with 'Hardware Events' enabled.
B.Click activity with 'Simulate' enabled.
C.Click activity with 'Focus' property enabled.
D.Use the 'Attach Window' activity without a 'Do' block.
AnswerB

The 'Simulate' property is specifically designed for background interaction. It interacts directly with the application's event handling system, allowing the robot to click buttons or type text without requiring the window to be the active foreground element. This is essential for high-performance unattended automation that operates in the background.

Why this answer

Using 'Simulate' or 'SendWindowMessages' input methods, combined with activities that support background execution, is the correct path. These methods interact directly with the application's message queue or UI layer, bypassing the need for keyboard/mouse focus. This is a vital technique for increasing concurrent process efficiency, allowing robots to handle multiple tasks without interfering with one another's active window states on the same machine.

Exam trap

Candidates frequently select 'Click' without checking the input method, forgetting that default hardware clicks require the window to be in focus, which breaks background execution logic.

20
MCQhard

A developer needs a workflow that accepts a list of invoice numbers, processes each one, and returns a collection of the successfully processed invoices to the caller. The workflow will be invoked from several places in the project. Which implementation correctly exposes this contract?

A.Declare both the invoice numbers and the results as In arguments, and have the workflow modify the results list in place.
B.Declare an In argument of type List(Of String) for the invoice numbers and an Out argument of type List(Of String) for the processed results, then invoke the workflow with those arguments bound.
C.Declare a single In/Out argument of type List(Of String) and return the results by clearing and repopulating the same list.
D.Declare an Out argument of type String that contains the results joined with a delimiter, then split it in the caller.
AnswerB

In arguments carry data into an invoked workflow and Out arguments return data to the caller, which matches the stated contract exactly. Typing both as List(Of String) preserves the collection shape on both ends, and binding them at each Invoke Workflow File call keeps the workflow reusable. This is the standard, explicit way to pass structured data across workflow boundaries.

Why this answer

A reusable workflow should declare its data contract explicitly: inputs flow in through In arguments and results flow out through Out arguments. Using List(Of String) on both sides preserves the collection structure and lets every caller bind arguments at the Invoke Workflow File activity. This keeps the workflow testable and prevents callers from depending on implicit mutations.

Exam trap

The trap here is assuming that returning a reference type through an In argument is sufficient, when the caller needs a declared output to consume the results reliably.

21
Multi-Selectmedium

Which TWO of the following best practices should be implemented to ensure maintainability and scalability of large-scale UiPath automation projects?

Select 2 answers
A.Hardcode all selector attributes and file paths directly within the main workflow.
B.Use Reusable Components for common tasks such as logging in or data validation.
C.Store environment-specific settings in an external Config file or Orchestrator Assets.
D.Avoid using arguments and focus exclusively on global variables for data exchange.
E.Include all exception handling logic inside a single monolithic workflow.
AnswersB, C

Creating reusable workflows allows developers to maintain a single source of truth for frequently used logic. If an application update changes a login process, the developer updates one component rather than every workflow in the project, which ensures consistency and saves significant time during maintenance and troubleshooting cycles.

Why this answer

Modularization through Reusable Components and effective use of Configuration files are essential for large projects. Reusability reduces code duplication, making updates easier when business logic changes. Configuration files decouple hardcoded values from logic, allowing environment-specific adjustments without code changes.

These practices are standard in the Robotic Enterprise Framework and are critical for managing technical debt in production-grade automations that must handle evolving business requirements and complex organizational environments.

Exam trap

Candidates often hardcode environment-specific URLs or paths directly into the activities, making the project impossible to deploy across Development, Test, and Production environments without manual code changes.

22
MCQmedium

A developer is building an unattended automation that must read values from a desktop application whose UI elements change their AutomationId each time the application restarts. The developer has validated that the element's visible label text is stable and unique on the screen. Which selector strategy should the developer apply to make the selector resilient across restarts?

A.Set the Targeting property of the activity to Image and capture a screenshot of the element on first run for later reuse.
B.Add the volatile AutomationId to the selector together with a wildcard character so that any value is accepted at match time.
C.Dynamically generate the selector at runtime by reading the AutomationId from a configuration asset and injecting it into the Selector property using a variable.
D.Replace the volatile AutomationId attribute in the selector with the stable label attribute (for example aaname) and validate it with the Selector Editor and UI Explorer.
AnswerD

Because the visible label text is stable and unique, using the attribute that maps to that text (commonly aaname or innertext) produces a selector that survives application restarts. The Selector Editor and UI Explorer let the developer confirm the attribute matches the live element and that the selector remains valid without depending on the changing AutomationId.

Why this answer

Selectors should rely on attributes that remain constant across sessions. When an AutomationId is regenerated on each launch, it is unsuitable as an anchor, but a stable visible label exposed through attributes such as aaname gives a durable match. Building that selector and confirming it in the Selector Editor or UI Explorer yields resilience without sacrificing specificity, which is the goal for unattended runs.

Exam trap

The trap here is assuming that any attribute present in the selector is trustworthy, when volatile attributes like a regenerated AutomationId must be replaced rather than wildcarded or stored externally.

23
MCQmedium

Refer to the exhibit. An automation is configured with the shown retry policy. If the 'Open Browser' activity throws a timeout error on every attempt, how long will the process wait before the final failure?

A.5 seconds
B.10 seconds
C.15 seconds
D.20 seconds
AnswerC

With a RetryCount of 3, the robot attempts the action, then retries three additional times. Between the four total attempts, there are three 5-second intervals. Calculating 3 times 5 seconds results in 15 seconds of total wait time before the final attempt fails.

Why this answer

The Retry Scope performs the initial attempt plus three retries, totaling four executions. There are intervals between the first and second, second and third, and third and fourth attempts. With three retries and a 5-second interval, the robot waits for 15 seconds of cumulative delay before definitively failing.

Understanding this timing is critical for setting realistic Service Level Agreements (SLAs) and ensuring orchestrator alerts trigger at appropriate times.

Exam trap

Many candidates count only the 'RetryCount' as 3, leading them to believe there are only 3 attempts total. They often overlook the initial attempt or miscalculate the total interval count.

24
MCQmedium

A developer is building a UiPath automation that uses a Try Catch activity. Inside the Try block, a business rule exception is thrown by a Throw activity when an invoice amount exceeds a configured limit. The developer wants the Catch block to handle this specific business rule exception differently from system exceptions. Which Catch block configuration should be used?

A.Add a Catch block with the exception type set to System.Exception and check the exception message for the business rule text.
B.Add a Catch block with the exception type set to System.Exception and set the 'Rethrow' property to True.
C.Add a Catch block with the exception type set to BusinessRuleException and set the 'ContinueOnError' property to True.
D.Add a Catch block with the exception type set to BusinessRuleException before any System.Exception Catch block.
AnswerD

In UiPath, Catch blocks are evaluated in order. Placing a BusinessRuleException Catch before a System.Exception Catch ensures business rule exceptions are caught by the specific handler first. This allows the developer to handle business rule violations separately, such as logging and continuing, while system exceptions fall through to the general handler. This is the recommended approach for distinguishing exception types.

Why this answer

The correct approach is to use a Catch block typed to BusinessRuleException, placed before any System.Exception Catch block. UiPath evaluates Catch blocks sequentially, so the specific exception type must come first to be caught appropriately. This allows distinct handling for business rule violations versus system errors, which is essential for robust automation design.

Other options either use overly broad exception types or invalid properties.

Exam trap

The trap here is assuming that checking the exception message within a generic System.Exception Catch block is sufficient to differentiate business rule exceptions, which is unreliable and not best practice.

25
MCQeasy

A developer needs to store a single true or false value that indicates whether an invoice was approved. The value will be used in If activities and written to a log. Which variable type should be used in UiPath Studio?

A.Integer
B.Object
C.Boolean
D.String
AnswerC

Boolean holds exactly true or false, which is the natural type for an approval flag. It plugs directly into If and While conditions without conversion, and logging it produces a clear True or False value. This is the correct and simplest choice for a single yes-or-no state.

Why this answer

Boolean is the precise type for a single true or false state such as invoice approval. It works directly in conditions without conversion and logs clearly. Strings and integers can represent the same idea only indirectly and permit invalid values, while Object removes compile-time type safety and forces casts, making Boolean the clean and correct choice.

Exam trap

The trap here is choosing String because the value is written to a log, when logging handles Boolean natively and String introduces conversion risk.

26
Multi-Selectmedium

A developer is configuring a UiPath queue to handle transaction items that may fail due to transient network errors. The developer wants to ensure that failed items are retried automatically and that the process can distinguish between business exceptions and application exceptions. (Choose two.)

Select 2 answers
A.Configure the queue to store all transaction data in the queue item's Specific Data field.
B.Set the queue's Max Retry Number to a value greater than zero.
C.Use the Set Transaction Status activity with the BusinessException type for validation failures.
D.Set the queue's Auto Retry property to false and handle retries manually in the workflow.
E.Enable the queue's Unique Reference property to prevent duplicate items.
AnswersB, C

Max Retry Number defines how many times Orchestrator will retry a failed queue item automatically. Setting it above zero ensures transient failures get additional attempts without manual intervention, which directly addresses the requirement for automatic retries of failed transaction items.

Why this answer

Automatic retries for transient failures are controlled by the queue's Max Retry Number, which must be greater than zero. Distinguishing business from application exceptions requires marking validation failures as BusinessException via Set Transaction Status, so Orchestrator does not retry them. Together these settings meet both stated requirements without manual intervention.

Exam trap

The trap here is confusing queue properties that control deduplication or data storage with those that control retry behavior and exception classification.

27
MCQmedium

A developer is building a REFramework-based process. The transaction data is stored in a Queue named 'Invoices'. During the Process Transaction state, the developer needs to mark a transaction item as Failed with a specific reason so that it will be retried according to the queue's MaxRetryNumber. Which activity and setting should be used inside the Catch block of the Process Transaction state?

A.Use Delete Queue Item to remove the failed item and rely on Orchestrator to regenerate it.
B.Use Set Transaction Status with Status set to 'Successful' and write the error to a log file.
C.Use Set Transaction Status with Status set to 'Failed' and provide the exception reason.
D.Use Add Queue Item to create a new transaction item with the failure details in the reference field.
AnswerC

Set Transaction Status with Status Failed records the failure against the current queue item and increments its retry counter. When the queue's MaxRetryNumber is greater than zero, the item is re-queued for another attempt until retries are exhausted. This is the standard REFramework behavior for handling business or application exceptions that should be retried.

Why this answer

Set Transaction Status with a Failed status is the correct way to record an exception against the current queue item while preserving its retry counter. When MaxRetryNumber is configured, Orchestrator re-queues the item for the specified number of attempts. Creating, deleting, or falsely succeeding the item all break the queue's built-in retry and reporting behavior.

Exam trap

The trap here is thinking a failed transaction should be deleted or re-added, when the queue's native retry counter only works through Set Transaction Status.

28
MCQhard

An unattended automation processes invoices by opening a legacy desktop application, extracting totals, and entering them into a web portal. The robot runs on a virtual machine with a locked screen. Data extraction succeeds, but UI interactions with the web portal intermittently fail with 'Element not found' errors even though the element exists. Which change is most likely to resolve the intermittent failures while preserving unattended execution?

A.Ensure the robot session is configured so UI automation runs in the active user session, for example by using UiPath Remote Runtime or setting up the machine for unattended UI interaction.
B.Set the UiPath.UIAutomation.Activities property 'WaitForReady' to 'None' for the web portal activities.
C.Change the web portal selectors from dynamic to static by using wildcard characters in the title attribute.
D.Increase the TimeoutMS property of the failing web portal activities from 30000 to 120000.
AnswerA

When the screen is locked or the session is disconnected, UI automation can behave unpredictably because the desktop is not actively rendering. Configuring the robot to run in an active session, or installing UiPath Remote Runtime for Citrix or RDP scenarios, keeps the UI available. This directly addresses intermittent element detection caused by a non-interactive desktop.

Why this answer

Intermittent element detection on an unattended robot with a locked screen typically stems from the desktop session not being interactive, which prevents proper UI rendering and automation hooks. Running UI automation in an active user session, or using UiPath Remote Runtime for virtualized environments, restores reliable element access. Selector wildcards, disabling readiness waits, and longer timeouts do not fix the underlying session interactivity problem.

Exam trap

The trap here is treating intermittent element failures as a selector or timeout problem when the real cause is a non-interactive locked session.

29
Multi-Selectmedium

Which TWO of the following configurations are best practices for managing credentials in an Orchestrator-connected environment?

Select 2 answers
A.Store passwords in a Config.xlsx file with the 'Private' attribute enabled.
B.Use Orchestrator Assets to store credentials and retrieve them using the Get Asset activity.
C.Define passwords as String variables and set them as arguments in the main workflow.
D.Retrieve credentials as SecureString and pass them to activity properties that support it.
E.Hardcode credentials in the workflow using a Dictionary object for quick access.
AnswersB, D

Orchestrator Assets are the recommended mechanism for secure, centralized storage. Using Get Asset allows the robot to fetch credentials dynamically at runtime, ensuring that if a password changes, the robot can immediately use the new value without requiring the developer to modify or republish the automation project.

Why this answer

Centralizing credentials in Orchestrator ensures that secrets are not hardcoded in workflows, satisfying security audit requirements. By using Assets, developers can update values without redeploying code. Furthermore, leveraging the 'SecureString' data type for passwords ensures that sensitive information remains encrypted in memory during execution, preventing accidental exposure in log files or during debugging sessions.

These configurations are essential for creating production-ready, secure, and maintainable automation deployments.

Exam trap

Candidates mistakenly store credentials in hardcoded variables or config files, ignoring the security risk of exposing plain-text passwords in the project files or log outputs.

30
MCQhard

Refer to the exhibit. An API automation receives this error. Which troubleshooting step should be prioritized?

A.Check if the API service is currently undergoing maintenance.
B.Validate the endpoint URL and the parameters being passed in the HTTP request.
C.Reset the robot's session and clear the temporary files in the local machine.
D.Increase the timeout property in the HTTP Request activity to allow more time.
AnswerB

The 404 status code confirms that the server is reachable, but the specific resource requested is not found. This points directly to an incorrect URL path or missing/incorrect dynamic parameters. Developers must ensure that the URI is formatted according to the API documentation and that parameters are passed correctly.

Why this answer

A 404 error indicates the resource cannot be located. This usually implies that the URL, endpoint, or a dynamic parameter being passed to the API is incorrect. Prioritizing the verification of the base URL and the construction of the request parameters is essential.

This is common in API automation where dynamic data might lead to malformed requests that the server is unable to resolve or locate correctly.

Exam trap

Candidates often assume the error is related to authentication or server-side permissions. They waste time checking API keys or credentials instead of validating the request URL path and dynamic parameters first.

31
Multi-Selectmedium

A developer is creating a reusable library in UiPath Studio that will be published to Orchestrator and consumed by multiple automation projects. The library must expose activities that accept input arguments and return output values. Which two actions are required to ensure that the library can be properly consumed? (Choose two.)

Select 2 answers
A.Define the input and output arguments in the library's workflow using the Arguments panel, specifying the direction (In, Out, In/Out) for each.
B.Add the library to the Global Assembly Cache (GAC) on all robot machines to enable activity access.
C.Publish the library to Orchestrator as a Library package, and ensure that the package is available in the Orchestrator Libraries page.
D.Convert the library project to a Windows-Legacy project to ensure compatibility with all UiPath robots.
E.Create a test workflow within the library that invokes each activity to verify functionality before publishing.
AnswersA, C

Arguments in a library workflow define the interface that consuming projects use. The direction property determines whether the argument is an input, output, or both. Properly configured arguments allow the library to receive data and return results, making it reusable across projects. Without correct argument directions, the library cannot be invoked with the expected parameters.

Why this answer

To make a library consumable, the developer must define its input and output arguments and publish it as a Library package to Orchestrator. These steps establish the interface and distribution mechanism. Other actions like compatibility mode or GAC installation are not required and can even hinder portability.

Exam trap

The trap here is confusing library distribution with .NET assembly deployment, leading to choices like GAC installation that are irrelevant to UiPath libraries.

32
MCQeasy

Which state machine transition condition should be used to move to the 'End Process' state if the 'TransactionNumber' exceeds the 'TotalItems' count?

A.TransactionNumber = TotalItems
B.TransactionNumber > TotalItems
C.TransactionNumber < TotalItems
D.TransactionNumber == TotalItems
AnswerB

This expression correctly identifies when the current transaction index has surpassed the total available items. Once this condition evaluates to True, the state machine triggers the transition to the termination state, safely ending the process without errors or incomplete work units, following standard REFramework conventions for workflow completion.

Why this answer

In a state machine, conditions must be defined as boolean expressions. 'TransactionNumber > TotalItems' is the correct syntax for evaluating this comparison. This logic is foundational for managing loop-like structures in State Machines, ensuring that the process terminates gracefully once all work items have been successfully processed, which is a core requirement for the Robotic Enterprise Framework (REFramework) to function correctly in production environments.

Exam trap

Candidates often confuse the syntax, attempting to write complex code or string comparisons instead of a simple boolean expression that evaluates to True or False.

33
MCQhard

Refer to the exhibit. If a process is configured with this policy, what happens when 6 instances are triggered simultaneously?

A.All 6 instances run concurrently, consuming more memory.
B.The 6th instance is rejected and throws an error immediately.
C.The 6th instance is queued until a slot becomes available.
D.The 6th instance preempts the first running instance.
AnswerC

This is the intended behavior of a concurrency limit. By queuing the excess instances, Orchestrator ensures that the system maintains a stable and predictable load. This prevents resource over-allocation, which is essential for maintaining consistent performance levels and avoiding system instability on production environments handling high volumes of requests.

Why this answer

The 'MaxConcurrentInstances' parameter defines the limit for simultaneous executions. In this configuration, if 6 instances are triggered, 5 will start immediately, and the 6th will be queued. This is vital for resource management on production machines, preventing robots from overwhelming local system resources like CPU or RAM, which would otherwise lead to performance degradation or system crashes during high-load periods.

Exam trap

Candidates frequently mistake the behavior for an error or a process crash. They often incorrectly assume that exceeding the limit causes the entire job to fail immediately upon execution.

34
MCQhard

Refer to the exhibit. An automation developer is configuring a Global Exception Handler. Based on the provided JSON policy, what occurs when an activity fails for the first time?

A.The process automatically retries the failed activity three times without invoking the handler.
B.The automation terminates immediately after logging the error to the Orchestrator logs.
C.The Global Exception Handler workflow is invoked to determine the recovery action.
D.The system ignores the error and continues to the next activity without notification.
AnswerC

When an exception occurs in a project containing a Global Exception Handler, the handler is triggered. The workflow receives the error details and the activity information, allowing the developer to implement logic to decide whether to retry the action, abort the process, or ignore the error entirely.

Why this answer

The Global Exception Handler intercepts the error, allowing the developer to define custom recovery logic. According to the policy, the exception will trigger the handler, which evaluates the error. In the context of UiPath, this prevents process termination, allowing for logging, retrying specific activities, or gracefully closing applications.

This is critical for enterprise resiliency, ensuring that transient errors do not cause entire unattended processes to fail during execution.

Exam trap

Candidates often assume the process immediately terminates upon the first error. They fail to realize the Global Exception Handler intercepts execution to allow for custom recovery logic before termination.

35
MCQeasy

Which variable type should be used to store a collection of unique strings that need to be accessed by their index in a strictly ordered sequence?

A.List<String>
B.Dictionary<String, String>
C.Array of Strings
D.DataTable
AnswerC

An Array provides high-performance access to elements via a zero-based integer index. It is the most memory-efficient structure for static collections of strings that do not require frequent additions or deletions, perfectly aligning with the requirement for ordered sequence access in standard UiPath automation development workflows.

Why this answer

An Array of Strings is the ideal structure for storing a fixed-size collection of items that must be accessed by index. Understanding collection types is fundamental for developers to manage data structures efficiently. Choosing the correct collection prevents type casting errors and allows for better memory management, ensuring the automation remains stable while performing iterative logic on ordered lists of data.

Exam trap

Candidates often confuse Arrays with Lists or Dictionaries. They may choose a List when an Array is more appropriate for fixed-size, indexed, and ordered collections of strings.

36
Multi-Selecthard

A developer is refactoring a monolithic UiPath sequence into reusable components used by multiple processes. The components must be versioned, shared across teams, and updated without breaking existing consumers. (Choose two.)

Select 2 answers
A.Publish the components as NuGet packages to Orchestrator's Libraries feed or a custom NuGet feed.
B.Embed the components as inline sequences in every process to avoid external dependencies.
C.Use semantic versioning for each published package so consumers can pin to a compatible major version.
D.Copy the .xaml files directly into each consuming project's folder and edit them in place.
E.Reference the components by their absolute file path on a shared network drive.
AnswersA, C

Publishing components as NuGet packages makes them versioned, distributable, and consumable by other projects through Manage Packages. Orchestrator's Libraries feed or a custom feed provides centralized storage so teams can share and update components while controlling which version each process references, which supports safe reuse across many automations.

Why this answer

Publishing components as NuGet packages to a Libraries or custom feed, combined with semantic versioning, gives teams centralized, versioned, and safely upgradable reuse. Consumers pin compatible versions and receive fixes without breaking changes. Copying files, using absolute paths, or inlining sequences all create untracked duplicates that drift and multiply maintenance effort across processes.

Exam trap

The trap here is believing that sharing .xaml files on a network drive is equivalent to a versioned package, when only NuGet packaging provides dependency resolution and version control.

37
MCQhard

An automation developer is building a process that must interact with a Java-based application. The UI elements are not reliably detected by the default UiPath selectors, and the developer needs a more robust method to identify and interact with the application's controls. Which UiPath feature should be used to achieve reliable automation of this Java application?

A.Use Computer Vision activities exclusively, because they do not depend on selectors and can interact with any application regardless of technology.
B.Configure the UiPath UIAutomation activities to use the Active Accessibility mode instead of the default UIA mode, because Java applications expose MSAA interfaces.
C.Enable the UiPath Java Extension and use the Java Explorer to inspect and generate selectors for the Java application's controls.
D.Use the Click activity with the 'SimulateClick' property enabled, as this bypasses selector validation and directly invokes the Java control's action.
AnswerC

The UiPath Java Extension bridges the automation and the Java Access Bridge, allowing UiPath to recognize Java controls and generate reliable selectors. The Java Explorer helps inspect the control hierarchy and create selectors that are stable across sessions. This is the recommended approach for automating Java applications that do not expose standard Windows accessibility interfaces.

Why this answer

The UiPath Java Extension integrates with the Java Access Bridge to expose Java controls to UiPath. This allows the generation of stable selectors that are resilient to UI changes. Using the Java Explorer, developers can inspect the control hierarchy and create reliable automation for Java applications, which is essential when default selectors are insufficient.

Exam trap

The trap here is thinking that Computer Vision or SimulateClick can replace proper Java control recognition, when they are only workarounds that do not address selector reliability.

Ready to test yourself?

Try a timed practice session using only Generic Automation Development questions.