
GIAC Python Coder
Domain 3Objective 2
Website Interaction GPYC Practice Questions (Page 1)
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 1–5
- 1
A Python script scrapes a website and needs to extract all links from a page. The HTML contains <a> tags with href attributes. Which BeautifulSoup code correctly extracts the href values?
Select an answer first - 2
A Python script uses the requests library to download a file from a URL that may redirect to a different domain. The script must follow redirects but also detect if the final URL is not the expected domain and abort. Which approach is correct?
Select an answer first - 3
A Python application needs to receive real-time updates from a server, such as live stock prices, and must maintain a persistent connection. Which approach is most appropriate?
Select an answer first - 4
A Python script integrates with a third-party API that uses OAuth 2.0 and enforces a rate limit of 100 requests per minute. The script needs to process a large batch of records, each requiring an API call. The team wants to maximize throughput while avoiding 429 errors. Which strategy is most effective?
Select an answer first - 5
A Python script receives JSON data from an untrusted API and uses it to construct a database query. The script must prevent SQL injection. Which approach is most secure?
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.