
GIAC Python Coder
Domain 3Objective 2
Website Interaction GPYC Practice Questions (Page 4)
Part of the Network and Web Interaction domain, which makes up ~25% of our current practice bank. GIAC (SANS) does not publish an official question count, but from its 120-minute exam (~50–80 total, ~13–20 in this domain), expect 4–7 from this objective — we provide 47 practice questions to prepare you well beyond it. (estimate)
47questions here
10free pages
12concepts
Questions 16–20
- 16
Which of the following is a common web vulnerability that involves injecting malicious code into a website's output?
Select an answer first - 17
A Python script uses the requests library to call an API that sometimes returns a 302 redirect to a login page when the session expires. The script currently follows redirects automatically and then fails because the final response is an HTML login page instead of JSON. The team needs to detect the redirect and re-authenticate. Which approach is most robust?
Select an answer first - 18
What is a primary defense against SQL injection when interacting with databases in Python?
Select an answer first - 19
Which Python library is commonly used to implement WebSocket clients?
Select an answer first - 20
In the requests library, which parameter is used to provide credentials for Basic Authentication?
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.