Automation & Scripting Flashcards
7 cards from real GMI 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
In GMI automation, what is the role of a 'hot folder' watcher script?
Answer: It monitors a designated directory and triggers automated actions when new files are deposited
A hot folder watcher continuously monitors a directory and initiates predefined workflows when new files are detected.
When writing a GMI automation script in Bash, which construct correctly loops over all PDF files in a directory?
Answer: for file in *.pdf; do process "$file"; done
The Bash for-in loop with glob pattern *.pdf correctly iterates over each matching file in the current directory.
A GMI script needs to ensure an output directory exists before writing files. Which approach handles both creation and existing-directory scenarios safely?
Answer: mkdir -p output_dir (creates directory and parents, no error if exists)
The -p flag makes mkdir create all necessary parent directories and suppresses errors if the directory already exists.
In scripted GMI preflight automation, what does checking a PDF's 'overprint settings' help prevent?
Answer: Unexpected color knockout or fill behavior on press that differs from screen preview
Verifying overprint settings ensures that overlapping inks behave as intended on press, preventing unexpected color knockout artifacts.
Which API authentication method is most appropriate for a GMI automation script making server-to-server requests to an internal workflow API?
Answer: Bearer token or API key passed in the Authorization header
Bearer tokens or API keys transmitted via the Authorization header are the standard secure method for server-to-server API authentication.
When automating imposition in a GMI workflow via script, which parameter most directly determines how many pages fit on a press sheet?
Answer: N-up value defining rows and columns of pages per sheet
The N-up value (e.g., 2-up, 4-up) specifies how many document pages are arranged on a single press sheet.
A GMI automation script outputs a report file, then emails it. Which design pattern correctly separates these concerns?
Answer: Use separate functions or modules for report generation and notification, called sequentially
Separating report generation and notification into discrete functions improves testability, reusability, and maintainability.