Automation & Scripting Flashcards
7 cards from real CDT practice questions. Tap to flip, then mark Knew It or Still Learning — missed cards come back until you master them.
Read the first 7 Automation & Scripting flashcards as text
A document automation script must apply different retention policies based on document classification tags embedded in metadata. What design pattern best supports this?
Answer: A rules engine that reads policy definitions from an external configuration and applies the matching rule at runtime
A rules engine externalizes policy logic so that new classifications or updated retention periods can be added without modifying script code.
When automating document classification using machine learning, what is 'confidence score thresholding'?
Answer: Accepting an ML model's classification only when its probability score exceeds a defined minimum, routing lower-confidence documents to manual review
Thresholding ensures that uncertain predictions do not get auto-processed, instead sending low-confidence documents to a human reviewer to preserve accuracy.
A script automates delivery of signed contracts via email. To prevent sensitive attachments from being intercepted, which approach should the script implement?
Answer: Encrypt the PDF attachment (e.g., password-protect or use S/MIME) and transmit via TLS-encrypted SMTP
Encrypting the attachment and using TLS for transport protects the document both in transit and at rest in the recipient's mailbox.
In automated document indexing, what does 'full-text indexing' enable that 'metadata-only indexing' does not?
Answer: Searching for any word or phrase that appears anywhere in the document body, not just in predefined metadata fields
Full-text indexing parses and indexes every word in the document, enabling free-text searches on content that was never explicitly tagged as metadata.
A Bash script that processes documents must handle filenames containing spaces. Which syntax correctly passes such a filename to a command?
Answer: process_doc "$filename"
Double-quoting the variable prevents the shell from splitting the filename on whitespace, treating the entire string as a single argument.
What is the purpose of a 'document manifest' file generated by an automation pipeline?
Answer: To provide a machine-readable inventory listing each processed document, its metadata, and processing status for auditability and reconciliation
A manifest records what was processed, when, and with what outcome, enabling audit trails, reconciliation against source systems, and reprocessing of failures.
A document automation system must comply with HIPAA when processing medical records. Which scripting practice is REQUIRED to maintain compliance?
Answer: Ensuring PHI is encrypted at rest and in transit, access is logged, and unnecessary data is not retained beyond processing needs
HIPAA requires administrative, physical, and technical safeguards including encryption, access controls, and audit logging for all systems handling Protected Health Information.