
GIAC Python Coder
Domain 2Objective 3
Database Interaction GPYC Practice Questions (Page 4)
Part of the Scripting and Automation domain, which makes up ~23% of our current practice bank. GIAC (SANS) does not publish an official question count, but from its 120-minute exam (~50–80 total, ~12–18 in this domain), expect 4–6 from this objective — we provide 30 practice questions to prepare you well beyond it. (estimate)
30questions here
6free pages
7concepts
Questions 16–20
- 16
In Python's DB-API, which connection method permanently saves all changes made during the current transaction?
Select an answer first - 17
Which cursor method returns a single row from the result set as a tuple?
Select an answer first - 18
A security analyst is writing a Python script to update user email addresses in a PostgreSQL database. The email values are read from an external CSV file and cannot be trusted. Which approach should the analyst use to execute the UPDATE statement safely?
Select an answer first - 19
In Python's sqlite3 module, which method of a connection object is used to create a Cursor object for executing SQL statements?
Select an answer first - 20
A startup is building a multi-tenant SaaS application. They expect to support both PostgreSQL and MySQL customers, but they want to avoid vendor lock-in. The team is evaluating SQLAlchemy Core vs. writing raw SQL with a thin abstraction layer. Which consideration is most important when choosing between these approaches?
Select an answer first
Finished these 5 questions?
Review the revealed explanations, or continue through the curriculum.
Free Basic Practice is a study aid with revealable answers — not a scored exam. Examers.io is independent and not affiliated with or endorsed by GIAC (SANS). “GPYC” is a trademark of its owner, used for identification only.