← All GMI Flashcard Decks

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
  1. In a GMI scripting context, which approach best handles a situation where an external preflight API call times out?

    Answer: Implement a retry mechanism with exponential backoff before logging failure

    Exponential backoff retries give the external service time to recover while avoiding request flooding before logging a definitive failure.

  2. When a GMI automation script needs to compare two versions of a PDF for content differences, which technique is most appropriate?

    Answer: Compute and compare cryptographic hashes (e.g., MD5 or SHA-256) of the files

    Cryptographic hashes provide a reliable binary comparison; identical hashes confirm files are byte-for-byte identical.

  3. Which environment variable management practice is most secure for storing GMI API credentials used by automation scripts?

    Answer: Store credentials in a .env file excluded from version control and loaded at runtime

    A .env file kept out of version control isolates secrets from code and allows per-environment configuration without exposure.

  4. A GMI script generates a daily production summary. To ensure the report filename is unique and sortable by date, which naming convention is best?

    Answer: report_YYYY-MM-DD.pdf using ISO 8601 date format

    ISO 8601 date stamps (YYYY-MM-DD) in filenames are both unique per day and naturally sort chronologically.

  5. In a GMI automation workflow, what is the purpose of a 'job ticket' callback URL?

    Answer: To notify an upstream system via HTTP when the job completes or fails, enabling downstream automation

    A callback URL receives an HTTP POST from the automation system when job status changes, enabling event-driven downstream processing.

  6. When scripting GMI ink coverage analysis across a batch of files, storing results in a relational database rather than flat CSV files provides which key advantage?

    Answer: Structured querying, filtering, and joining of results across jobs and date ranges

    A relational database enables SQL queries to filter, aggregate, and join ink coverage data across thousands of jobs efficiently.

  7. A GMI script must convert RGB images to CMYK using a specific ICC profile. Which sequence of operations is correct?

    Answer: Read source file → apply ICC-based color transform → embed destination CMYK profile → write output

    The correct sequence reads the source, applies the ICC color transform to convert color space, embeds the destination profile, then writes the output.