Automation & Scripting Flashcards
7 cards from real CWA 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
What can the Google Tag Manager API be used to automate?
Answer: Creating and updating tags, triggers and variables across containers
The GTM API manages container resources such as tags, triggers, variables and versions.
What must a GTM Custom JavaScript variable do to work correctly?
Answer: Be an anonymous function that returns a value
Custom JavaScript variables are written as function() { return ...; } and must return a value.
Which dataLayer push will fire a Custom Event trigger named 'form_submit'?
Answer: dataLayer.push({event:'form_submit'})
Custom Event triggers match the value of the 'event' key in a dataLayer push.
Where does a server-side GTM container typically run?
Answer: On a cloud server such as Cloud Run or App Engine
Server containers are hosted on a server environment, commonly Google Cloud Run.
Using the GTM API, what must you do before you can publish changes from a workspace?
Answer: Create a container version
Workspace changes are turned into a version, which is then published.
Which GTM trigger condition operator best matches many similar URL paths such as /blog/2024 and /blog/2025?
Answer: matches RegEx
A regular expression matches a pattern across many values with one condition.
Which GTM variable type maps input values to output values, e.g. page paths to content groups?
Answer: Lookup Table
A Lookup Table returns a defined output for each matching input value.
How this page was made: written with AI tools and published by Nathan Beja, founder of Practice Test Geeks, who is responsible for its content. Exam facts are checked against the official sources listed below. Not reviewed by a subject-matter expert. Editorial policy
Sources & references
Exam facts on this page (fees, format, dates, passing scores) are checked against these official sources; the date is our last check. Editorial policy
- wpicert.org — Eligibility, passing score, retake policy, test delivery, exam format, score validity · verified Nov 2026