Courseiva

CCNA Logging Questions

24 questions · Logging · All types, answers revealed

1
MCQmedium

Refer to the exhibit. Based on the log output, what is the most likely reason the process failed and then continued?

A.The developer manually stopped the process and restarted it
B.The workflow utilized a Retry Scope activity for the failed activity
C.The process is configured to ignore all exceptions by default
D.The application crashed and auto-restarted the workflow
AnswerB

The sequence of an ERROR followed by a retry log entry is characteristic of the Retry Scope activity in UiPath. This activity automatically catches exceptions during UI interactions and re-executes the child activities until they succeed or the maximum number of retries is reached, allowing the process to remain resilient.

Why this answer

The exhibit displays a standard error-handling pattern often implemented with a Retry Scope activity. The 'ERROR' log entry indicates a transient failure during UI interaction, likely a timing issue where the element was not immediately available. The subsequent 'Retrying action' log confirms that the workflow caught the exception and entered a retry cycle, successfully continuing the execution flow without crashing the entire process instance.

Exam trap

Candidates often assume the robot is programmed to restart the entire workflow on failure, missing that the Retry Scope activity allows for granular, local retries of specific failed actions.

2
MCQeasy

A developer is troubleshooting a UiPath automation and wants to see the values of variables at various points during execution. Which activity should the developer use to write a custom diagnostic message to the UiPath logs with a specified severity level?

A.Write Line
B.Log Message
C.Add Log Fields
D.Message Box
AnswerB

The Log Message activity writes a custom message to the UiPath logs and allows the developer to select a severity level such as Info, Warn, Error, or Verbose. It is the standard activity for adding diagnostic entries that appear in Orchestrator logs and local robot logs, making it ideal for troubleshooting variable values.

Why this answer

The Log Message activity is designed to write custom messages to the UiPath logs with a configurable severity level. It integrates with Orchestrator logging and respects the robot's log level settings, making it the correct choice for adding diagnostic entries during troubleshooting.

Exam trap

The trap here is confusing Write Line, which writes to the console, with Log Message, which writes to the structured UiPath logs; only the latter appears in Orchestrator and supports severity levels.

3
MCQmedium

In the context of the UiPath logging hierarchy, what is the impact of changing the log level from 'Information' to 'Warning'?

A.The robot will run faster because less data is written to the disk
B.Only events categorized as Warning, Error, or Fatal will be recorded
C.The robot will automatically resolve any Warning-level issues
D.It ensures that all 'Information' logs are automatically escalated to 'Warning'
AnswerB

Logging levels act as a threshold. By setting the level to 'Warning', the system discards any messages with a lower severity (Info and Trace). This enables administrators to ignore the 'noise' of successful operations and focus solely on anomalies or issues that require immediate attention or manual intervention.

Why this answer

Changing the log level from 'Information' to 'Warning' creates a filter that excludes lower-priority logs like 'Info' or 'Trace' from being recorded. Only messages with a severity of 'Warning', 'Error', or 'Fatal' will be stored. This is often done to reduce the volume of logs in high-transaction environments where standard informational messages are too frequent and provide little value for ongoing system health monitoring.

Exam trap

Candidates often think changing the level to 'Warning' includes everything below it, failing to realize that the logging hierarchy acts as a filter that excludes lower-priority 'Information' messages.

4
MCQeasy

Which activity is used to write a custom message to the UiPath logs at a specific severity level?

A.Write Line
B.Log Message
C.Append Text
D.Throw
AnswerB

The 'Log Message' activity is specifically designed for this purpose. It captures the specified message and severity level, ensuring the information is indexed correctly within the UiPath logging architecture. It is the primary method for providing visibility into the workflow execution for developers and operations teams via Orchestrator.

Why this answer

The 'Log Message' activity is the standard tool in UiPath Studio for adding custom entries to the execution logs. It allows developers to choose the severity level (Trace, Info, Warning, Error, Fatal) and provide a custom string message. Using this activity helps developers track the status of specific business logic steps or debug variable values without needing to use external logging libraries or complex workarounds.

Exam trap

Candidates often confuse 'Log Message' with 'Write Line'. While both output text, 'Log Message' is the required activity for structured logging with severity levels in the UiPath platform.

5
MCQeasy

Where can a developer configure the logging level for a specific robot connected to Orchestrator?

A.In the UiPath.settings file on the Robot machine
B.In the Orchestrator Robot or Machine settings
C.Inside the UiPath Studio Project settings
D.In the Windows Event Viewer
AnswerB

The Orchestrator provides a centralized interface to manage robot configurations, including the log level. This allows administrators to change the logging verbosity for specific machines or robot environments without requiring direct access to the remote machine, ensuring consistency and ease of maintenance across large-scale enterprise automation deployments.

Why this answer

The logging level for an unattended or attended robot is primarily controlled via the Orchestrator settings for that specific robot or machine template. By adjusting the 'Logging Level' in the Robot settings, developers can dynamically control the verbosity of logs generated during execution. This centralized control is vital for balancing the need for detailed troubleshooting data during development and minimizing storage overhead in stable, high-volume production environments.

Exam trap

Candidates often look for settings within the Studio project itself. However, the logging level for an unattended robot is managed centrally within Orchestrator, not the local project files.

6
Multi-Selectmedium

Which TWO of the following are primary benefits of using structured logging in UiPath Orchestrator?

Select 2 answers
A.Reduced disk space usage on the local robot machine
B.Improved searchability and filtering of logs in external platforms
C.Enhanced ability to correlate business events across complex workflows
D.Automatic encryption of all log entries before storage
E.Elimination of the need for log levels
AnswersB, C

By structuring logs into standardized formats like JSON, external log aggregators can easily index and filter specific fields. This allows developers and administrators to quickly isolate events, track specific business transactions, or identify bottlenecks across multiple robot instances, drastically reducing the time required for root cause analysis in production.

Why this answer

Structured logging allows developers to parse and analyze process data efficiently using external log management tools like Elasticsearch or Splunk. By treating logs as data rather than plain text, organizations can correlate process events, track business KPIs, and generate automated alerts based on specific metadata. This is essential for enterprise-grade monitoring, as it transforms raw log messages into actionable business intelligence that improves process transparency and enables proactive maintenance of automated workflows.

Exam trap

Candidates often select generic monitoring benefits like faster execution speed, confusing infrastructure performance gains with the actual architectural benefits of structured logging.

7
MCQeasy

A developer needs to log a custom message that includes the current invoice number and a status update. The message should appear in Orchestrator logs with a severity that indicates normal operation but is more significant than verbose details. Which activity and log level should they use?

A.Log Message with level 'Warning'
B.Log Message with level 'Verbose'
C.Log Message with level 'Info'
D.Write Line with level 'Info'
AnswerC

The Log Message activity is used to write custom messages to the UiPath logs. Setting the level to 'Info' (Information) is appropriate for normal operational messages that highlight progress or state, such as an invoice number and status. This level is higher than Verbose and Trace, making it suitable for production monitoring without excessive detail. It will be captured by Orchestrator if the minimum log level is Information or lower.

Why this answer

The Log Message activity is the correct tool for writing custom log entries to Orchestrator. Among the available levels, Information is designed for normal operational messages that confirm progress or state. It is more significant than Verbose but less severe than Warning.

Using Information ensures the message is captured under typical production log settings while avoiding unnecessary noise or false alarms.

Exam trap

The trap here is confusing Write Line with Log Message, or selecting a log level that is either too low (Verbose) or too high (Warning) for a routine status update.

8
MCQhard

A developer is troubleshooting a production automation that intermittently fails to process certain PDFs. They need to capture detailed diagnostic information, including variable values and execution flow, but only when the failure occurs. They want to minimize log volume and avoid exposing sensitive data. Which approach should they take?

A.Use the 'Add Log Fields' activity to add relevant variable values to the log context at the start of the process.
B.Configure the robot's log level to 'Verbose' and rely on the default execution logs to capture variable values.
C.Set the global log level to 'Trace' and add Log Message activities with Trace level throughout the workflow.
D.Implement a Try Catch block around the PDF processing, and in the Catch block, use Log Message activities with 'Error' level to log variable values and then rethrow the exception.
AnswerD

This approach captures detailed diagnostic information only when an exception occurs. By placing Log Message activities in the Catch block, the developer can log specific variable values and context at the moment of failure. Using the Error level ensures these logs are captured even if the global log level is set higher. It minimizes log volume during normal operation and allows selective data capture, avoiding exposure of sensitive data except on failure.

Why this answer

The most effective way to capture detailed diagnostics only on failure is to use exception handling. A Try Catch block around the risky operation allows the developer to log specific variable values and context in the Catch block, using a high severity level like Error to ensure capture. This minimizes log volume during successful runs and avoids unnecessary exposure of sensitive data.

It also provides targeted information for troubleshooting the intermittent failure.

Exam trap

The trap here is assuming that increasing the global log level or using Add Log Fields will automatically provide detailed diagnostics on failure, without considering the need for conditional logging within exception handling.

9
MCQhard

When designing a custom logging framework, which approach is most effective for ensuring consistent log correlation across multiple workflows?

A.Log the timestamp of every activity execution
B.Use the Robot ID to group all logs together
C.Pass a unique Correlation ID through arguments across workflows
D.Write logs to a local text file and sort by file size
AnswerC

Passing a unique identifier through arguments allows developers to attach a common tag to every log entry across different workflow files. This ensures that when querying a log aggregator, one can search for a single ID and retrieve the entire chronological execution path of that specific business transaction.

Why this answer

For effective log correlation in large-scale automations, developers should pass a unique 'Correlation ID' or 'Transaction ID' through arguments between workflows. By including this ID in every log message, the logs become traceable, allowing administrators to filter messages by the specific process instance across disparate components. This practice is vital for troubleshooting complex, modularized automation projects where child workflows are invoked frequently and independently of the parent.

Exam trap

Candidates often suggest relying on default system timestamps or machine names, which fail to uniquely isolate specific multi-step business transactions.

10
MCQeasy

A developer wants to log a warning message that will appear in the Orchestrator logs when a business rule is violated, such as an invoice amount exceeding a threshold. The message should be easily identifiable as a warning. Which activity should the developer use?

A.Write Line with a warning prefix
B.Log Entry with Level set to Info
C.Log Message with Level set to Warn
D.Add Log Fields with a 'Warning' field
AnswerC

The Log Message activity allows specifying a level, and setting it to Warn ensures the message is logged with Warning severity. This makes it easily identifiable in Orchestrator logs, which can be filtered by level. It directly satisfies the requirement of logging a warning when a business rule is violated, such as an invoice exceeding a threshold.

Why this answer

The Log Message activity with Level set to Warn writes a log entry with Warning severity, which appears in Orchestrator logs and can be filtered by level. This makes it the appropriate choice for logging a business rule violation that should be easily identifiable as a warning. Other activities either do not write to Orchestrator logs or do not set the severity to Warning.

Exam trap

The trap here is thinking that any logging activity can set the level, when in fact only certain activities like Log Message and Log Entry allow specifying the level, and Write Line does not log to Orchestrator at all.

11
MCQeasy

How can an administrator retrieve logs from a robot that is currently disconnected from Orchestrator?

A.By executing a command via the Orchestrator API
B.By manually accessing the local log files on the machine
C.By waiting for the robot to automatically reconnect
D.By using the 'Get Robot Logs' activity in a new process
AnswerB

When the central reporting mechanism is offline, the local log files remain the single source of truth. An administrator with physical or remote access to the machine can navigate to the log directory, copy the necessary files, and analyze them to determine why the robot disconnected or what happened during its offline state.

Why this answer

When a robot loses its connection to Orchestrator, it continues to generate logs locally on the machine. Administrators can access these files directly from the local log directory, typically found in the standard Windows user profile folders where the UiPath service stores logs. Retrieving these files manually is necessary for debugging environment-specific issues or network connectivity problems that prevent the robot from reaching the central management server.

Exam trap

Candidates often think disconnected robots store logs exclusively in Orchestrator database backups or that logs are permanently lost.

12
MCQmedium

A developer is building a UiPath automation that processes invoices. During testing, they notice that the Log Message activity output appears in the Output panel but not in the Orchestrator logs when the process runs unattended. The robot is connected to Orchestrator and the process is published. What is the most likely cause?

A.The Log Message activity must be placed inside a Try Catch block to be captured by Orchestrator.
B.The Log Message activity is configured with the 'Information' level, which is not sent to Orchestrator by default.
C.The Orchestrator log level for the robot is set to 'Error' or higher, filtering out Information-level messages.
D.The robot is running in a mode that does not forward logs to Orchestrator, such as when the process is executed from Studio without publishing.
AnswerC

Orchestrator allows administrators to set a minimum log level per robot or per process. If the level is set to Error, then Information-level logs are not transmitted or stored. This is a common configuration oversight. The Log Message activity's output appears locally in Studio, but Orchestrator only receives logs at or above the configured threshold, explaining the discrepancy.

Why this answer

Orchestrator filters logs based on the minimum log level configured for the robot or process. If that level is set to Error, Information-level messages from the Log Message activity are not forwarded. The activity itself works correctly and would appear in local output.

The key is to check the Orchestrator robot settings and ensure the log level is set appropriately, such as Information or Trace, to capture the desired messages.

Exam trap

The trap here is assuming that all logs generated by Log Message are automatically sent to Orchestrator, ignoring the configurable log level filter that can suppress lower-severity messages.

13
Multi-Selecthard

Which TWO actions should be taken if an automation is found to be logging sensitive customer data in plain text?

Select 2 answers
A.Change the log level to 'Error' to hide the data
B.Update the workflow to remove or mask the sensitive data
C.Delete the sensitive log entries from the log storage
D.Notify the user that the process was successful
E.Upgrade the robot to the latest UiPath version
AnswersB, C

Updating the workflow to sanitize or mask sensitive fields at the source is the only way to prevent the leakage from recurring. This proactive approach ensures that future logs remain clean and compliant, addressing the root cause of the security incident rather than just treating the symptoms after the fact.

Why this answer

Logging sensitive data is a major compliance risk that requires immediate action. The first priority is to stop the leakage by modifying the workflow to remove or mask the sensitive information. The second is to securely purge the existing log files, as these now contain confidential data that could be accessed by unauthorized personnel, ensuring the organization maintains adherence to data protection laws and internal security policies.

Exam trap

Candidates frequently think that updating the workflow to stop future leaks is sufficient, forgetting that previously written plain-text log files still pose an active compliance breach.

14
Multi-Selecthard

A developer is designing a UiPath automation that processes sensitive customer data. The developer needs to ensure that log entries do not contain personally identifiable information (PII) while still allowing effective troubleshooting. Which two actions should the developer take? (Choose two.)

Select 2 answers
A.Use the Add Log Fields activity to add a custom field containing the customer's full name for easy identification in logs.
B.Set the robot's logging level to Verbose to capture all details, then manually redact sensitive information from the logs before sharing them.
C.Replace direct logging of sensitive values with references to non-sensitive identifiers, such as a hashed customer ID or a queue item reference.
D.Configure the automation to log only non-sensitive metadata, such as timestamps, status codes, and transaction outcomes, for each processing step.
E.Use the Log Message activity with Level set to Error to log the full customer record when an exception occurs, ensuring that support can see the data.
AnswersC, D

Using non-sensitive identifiers allows the developer to correlate log entries with specific customers or transactions without exposing PII. A hashed ID or queue reference provides traceability for troubleshooting while ensuring that the actual sensitive data is never written to logs, satisfying both security and diagnostic needs.

Why this answer

To avoid logging PII while maintaining troubleshooting capability, the developer should replace sensitive values with non-sensitive identifiers and log only non-sensitive metadata. These actions ensure that logs remain useful for diagnostics without containing personally identifiable information, aligning with security best practices and compliance requirements.

Exam trap

The trap here is believing that sensitive data can be safely logged at higher severity levels or redacted later, when the correct approach is to never log PII in the first place.

15
MCQhard

A developer needs to log a message that includes a customer's credit card number for debugging purposes. The automation runs in a production environment with Orchestrator logging enabled. What should the developer do to comply with security best practices?

A.Mask the credit card number before logging, such as showing only the last four digits, and log the masked value at 'Info' level.
B.Log the credit card number at 'Verbose' level to ensure it is only visible during detailed debugging.
C.Use the 'Add Log Fields' activity to attach the credit card number as a custom field, which encrypts it automatically.
D.Log the credit card number at 'Error' level, because Error logs are encrypted in Orchestrator.
AnswerA

Masking sensitive data before logging is a security best practice. By showing only the last four digits, the developer can still identify the card for debugging without exposing the full number. Logging the masked value at Information level is appropriate for debugging in production, as it provides useful context without compromising sensitive information. This complies with data protection regulations.

Why this answer

Security best practices dictate that sensitive information like credit card numbers should never be logged in plain text, regardless of log level. Masking the data before logging ensures that only a portion is visible, which is sufficient for debugging while protecting the full number. Logging the masked value at Information level is appropriate for production debugging and complies with regulations such as PCI DSS.

Exam trap

The trap here is believing that certain log levels or activities like Add Log Fields provide automatic protection or encryption for sensitive data, when in fact they do not.

16
Multi-Selectmedium

Which THREE of the following are true regarding the default behavior of UiPath logging?

Select 3 answers
A.Logs are stored in the local Windows Event Viewer by default
B.Robot logs are sent to Orchestrator if the robot is connected
C.Log messages from 'Write Line' are always sent to Orchestrator
D.Default logging level for a new Robot is set to 'Information'
E.Logs can be retrieved via the Orchestrator API
AnswersB, D, E

Once a robot is successfully connected to Orchestrator, its logs are automatically forwarded to the Orchestrator database. This centralization is a core feature of the platform, enabling remote monitoring, reporting, and troubleshooting of unattended robots deployed across an enterprise without needing to manually collect log files from multiple machines.

Why this answer

UiPath logging is highly integrated with the platform, capturing execution events, robot status, and activity transitions by default. Understanding this behavior is crucial for developers to avoid 'log bloat' and ensure that necessary information is captured without negatively impacting system performance. These features are baked into the Robot and Orchestrator interaction, ensuring that even without custom configuration, a basic audit trail is available for every process execution.

Exam trap

Candidates frequently assume that logs are stored locally on the machine by default or that the default logging level is 'Verbose', which is incorrect for new robot configurations.

17
MCQmedium

Which log level should be used when logging sensitive information such as user passwords or personal identification numbers in a production environment?

A.Trace
B.Verbose
C.None of the above
D.Error
AnswerC

No log level is appropriate for logging sensitive information. Security standards explicitly prohibit exposing passwords or PII in logs, as these files are often accessible to support teams and monitoring systems. Developers must implement data masking or use secure credential stores to handle sensitive data without writing it to disk.

Why this answer

Logging sensitive information in production environments is a security violation that can lead to data breaches or non-compliance with privacy regulations like GDPR. Regardless of the log level, sensitive data should never be written to logs. Instead, developers should use secure assets or encrypted variables to handle credentials, ensuring that logs remain clean of confidential data while still providing enough context for troubleshooting automation execution flows.

Exam trap

Candidates often select 'Trace' or 'Debug' assuming that lower severity log levels safely hide sensitive data, forgetting that any log level will still expose plain-text credentials in the output.

18
MCQmedium

What is the best way to handle logging when working with large datasets in a loop?

A.Log every single item processed inside the loop
B.Use the 'Log Message' activity with a condition to log every N items
C.Disable all logs during the execution of the loop
D.Always set the log level to 'Trace' during the loop
AnswerB

Conditional logging allows for tracking progress without the performance penalty of logging every single iteration. By logging every N items, the developer gets a heartbeat of the process execution, ensuring visibility into the loop's status while keeping the overall log volume manageable and meaningful for analysis and monitoring purposes.

Why this answer

Logging inside a loop with large datasets can cause massive performance issues and produce unreadable logs. The best practice is to log summary information outside the loop or at significant intervals, such as every 100 iterations. This provides visibility into the process progress without overwhelming the logging system with redundant, high-frequency entries that add no meaningful value to the troubleshooting or audit trail.

Exam trap

Candidates often suggest logging every iteration to ensure visibility, which causes significant performance degradation and log bloat, failing to realize the impact on system resources during large dataset processing.

19
MCQmedium

Refer to the exhibit. Based on the provided policy, what will happen if a developer attempts to log a large volume of data at a 'Verbose' level during process execution?

A.The data will be recorded but truncated to 100MB
B.The robot will throw a policy exception and stop
C.The verbose logs will be suppressed by the robot
D.The logs will be saved to a local file instead of Orchestrator
AnswerC

Because the policy configuration explicitly disables verbose logging, any activity or 'Log Message' attempt set to 'Verbose' will be discarded. This helps maintain the integrity of the log files by preventing unnecessary, high-frequency diagnostic data from entering the production environment's logging systems and impacting overall monitoring performance.

Why this answer

The policy explicitly sets 'EnableVerboseLogging' to false. Consequently, any logs marked with the 'Verbose' level will be suppressed by the robot, preventing them from being recorded or transmitted. This configuration is a common practice in production to conserve storage and reduce noise in log management systems, ensuring that only critical and informational data are captured for reporting and auditing purposes.

Exam trap

Candidates mistakenly assume that setting verbose logging to false will cause the robot to throw an exception or fail execution.

20
MCQmedium

A developer notices that a UiPath automation is producing an excessive number of log entries in Orchestrator, making it difficult to identify errors. The developer wants to reduce the volume of logs without losing important error information. Which action should the developer take?

A.Change the robot's logging level from Information to Warning in Orchestrator.
B.Remove all Log Message activities from the workflows and rely solely on automatic logging.
C.Disable logging entirely for the robot by setting the logging level to None.
D.Set the logging level to Verbose to capture all details, then use Orchestrator's filtering to find errors.
AnswerA

Raising the minimum log level to Warning filters out Information, Verbose, and Trace entries, significantly reducing log volume while still capturing Warning, Error, and Critical messages. This preserves important error information and is a standard configuration change in Orchestrator for production robots to keep logs manageable.

Why this answer

Adjusting the robot's logging level to Warning in Orchestrator raises the minimum severity for log entries, filtering out lower-level messages such as Information and Verbose. This reduces log volume while ensuring that Warning, Error, and Critical entries are still captured, preserving important error information for troubleshooting.

Exam trap

The trap here is thinking that removing custom Log Message activities is the best way to reduce log volume, when adjusting the logging level filters all entries uniformly and retains errors.

21
MCQmedium

What is the primary risk of setting the logging level to 'Trace' in a production environment?

A.The robot might stop sending logs to Orchestrator
B.Excessive log volume and potential performance degradation
C.The logs will automatically be deleted by the robot
D.It will prevent the robot from executing any new jobs
AnswerB

Trace logs record every minute detail of the execution. In a production environment, this results in high disk I/O, increased log storage consumption, and potentially slower robot execution speeds as resources are diverted to writing massive amounts of data. This is typically unnecessary for stable processes and consumes valuable infrastructure resources.

Why this answer

Setting the logging level to 'Trace' records extremely granular details about the robot's execution, including UI element interactions and variable values at every step. In a production environment, this generates a massive volume of data that can lead to performance degradation, increased storage costs, and potential security risks by inadvertently logging PII or sensitive system information that would otherwise remain hidden in standard execution logs.

Exam trap

Candidates often choose answers related to compilation errors or missing packages, failing to recognize that Trace level functions technically but harms production performance.

22
MCQhard

A developer is reviewing logs from a production robot in Orchestrator and notices that many log entries contain the same custom field 'TransactionId' with different values. The developer wants to ensure that all log entries generated during the processing of a single transaction include the same TransactionId value, even when the transaction processing spans multiple workflows. Which approach should the developer take?

A.Use the Add Log Fields activity at the start of the transaction to add the TransactionId field, and use the Remove Log Fields activity at the end of the transaction to clean up.
B.Configure the robot's logging level to Verbose and rely on the default log entries to capture the TransactionId from the Orchestrator queue item.
C.Pass the TransactionId as an argument to each workflow and include it manually in every Log Message activity's message text.
D.Set the TransactionId as a global variable in the project and reference it from each Log Message activity using string concatenation.
AnswerA

Add Log Fields adds custom fields to the robot's logging context, and these fields persist for all subsequent log entries until removed. By adding TransactionId at the start of the transaction, every log entry generated during that transaction, across multiple workflows, will include the field. Removing it at the end prevents leakage to subsequent transactions.

Why this answer

Add Log Fields creates a logging context that automatically attaches specified custom fields to all subsequent log entries until Remove Log Fields is invoked. Placing Add Log Fields at the start of transaction processing ensures every log entry across all workflows within that transaction includes the TransactionId. This provides consistent correlation without modifying individual Log Message activities.

Exam trap

The trap here is thinking that custom fields must be manually added to each log message, when Add Log Fields automatically applies them to all subsequent entries until removed.

23
MCQmedium

Which of the following scenarios best justifies the use of a custom 'Log Message' activity instead of relying on default system logs?

A.When the robot needs to communicate with other robots
B.When you need to log business-specific transaction metadata
C.When you want to debug an activity that has no errors
D.When you want to bypass the log retention policy
AnswerB

Custom logs are the only way to store business context within the logging stream. By including identifiers like Order IDs or status codes, logs become valuable for business analysis. This enables stakeholders to track the end-to-end status of business transactions processed by the robot, bridging the gap between automation and business operations.

Why this answer

Default system logs record generic execution events, which are often insufficient for business-level auditing. Custom log messages allow developers to inject domain-specific data, such as invoice numbers, customer IDs, or transaction totals, directly into the logs. This provides stakeholders with clear visibility into the business outcomes of the automation, rather than just the technical status of the robot's execution, which is vital for compliance and reporting purposes.

Exam trap

Candidates often confuse system logs with business logs, assuming default logs are sufficient for all reporting needs, failing to realize system logs lack the specific transaction data required for business auditing.

24
MCQhard

A developer wants to log the start and end time of a long-running process for performance analysis. What is the most reliable way to achieve this?

A.Use the 'Write Line' activity at the start and end
B.Log the time using 'Log Message' with a unique process ID
C.Enable 'Trace' logging in Orchestrator for the duration
D.Use the Robot's system-generated job status logs
AnswerB

By using 'Log Message', the entries are captured in Orchestrator. Including a unique process ID allows developers to isolate the start and end logs for a single execution instance, enabling the accurate calculation of process duration, which is crucial for identifying bottlenecks and optimizing the automation for better performance.

Why this answer

Using the 'Log Message' activity at the start and end of the workflow is the standard approach. However, for true performance analysis, including a consistent process ID or unique instance ID is essential to ensure that the start and end entries can be paired correctly. This allows for simple duration calculations by subtracting the start timestamp from the end timestamp in an external analytics tool.

Exam trap

Candidates often rely solely on basic timestamps without including a unique identifier, making it impossible to accurately pair start and end times in parallel or high-volume runs.

Ready to test yourself?

Try a timed practice session using only Logging questions.