2026 Actual GIAC GPYC Dumps, Updated Exam Questions for Guaranteed Pass

GIAC Python Coder - Free Practice Questions with Explanations, Exam Dumps, and Complete Practice Pack from DumpsProvider.

Exam Information

VendorGIAC
Exam codeGPYC
Exam nameGIAC Python Coder
Questions in pack75
Last updatedNovember 22, 2026
Related certificationsGIAC Penetration Testing

Free practice questions with explanations

GIAC GPYC Practice Questions

Answer a question to see the correct answer and the explanation, or click Show answer. Newest questions first.

Questions
12
Answered
0
Correct
0
Score
-
  1. 1 Question 1 Single choice Control Structures and Iteration

    A penetration tester is writing a Python script to triage a list of open TCP ports returned by a scan. Ports 22 and 3389 must be reported as remote-access findings, ports 80 and 443 as web findings, and every other port must be logged as unclassified without stopping the loop. The list may contain ports that are already marked as closed by the scanner, which must be skipped entirely. The tester wants the most readable and correct structure. Which approach meets all requirements?

  2. 2 Question 2 Single choice Creation of Executables

    A red team operator must deliver a Python-based post-exploitation agent to a Windows 10 workstation in a client environment. The client requires that the delivered binary not open a visible console window when run by the user, and that the build pipeline be reproducible on a Linux build host. The operator considers packaging the script with PyInstaller. Which configuration best satisfies the requirements?

  3. 3 Question 3 Single choice Data Structures

    A penetration tester intercepts a binary protocol message in which a 2-byte big-endian length field is followed by a payload encoded in Latin-1. The tester needs to recover the payload as text and also modify a single byte in place before replaying the message. Which Python approach is correct for both tasks?

  4. 4 Question 4 Dropdown Database Interaction

    A tester is auditing a web application's login feature against a local SQLite copy of the user table provided for testing. The script must use parameterized queries so that the test payloads are passed as data rather than concatenated into the SQL string. Complete the code by selecting the correct value for each blank.

    Choose the correct value for each blank.

    import sqlite3
    conn = sqlite3.connect('test_users.db')
    cur = conn.cursor()
    cur.('SELECT id FROM users WHERE name = ? AND pwd = ?', (user, pwd))
    row = cur.()
    conn.()
  5. 5 Question 5 Single choice Exception Handling

    A tester's script repeatedly connects to a list of target hosts to check whether a service responds. Some hosts refuse connections, some time out, and some fail DNS resolution with socket.gaierror. The script must record each failure, continue scanning remaining hosts, and never swallow unexpected programming errors such as a NameError inside the loop. Which exception handling structure best meets the requirements?

  6. 6 Question 6 Multiple choice Functions, Classes, and Objects

    A tester is building a reusable Python module for a team that manages many scanner plugins. Each plugin must share a common run() interface and identical logging behaviour, and the team wants to avoid duplicating the logging code while keeping plugin-specific state isolated between instances. Which TWO design choices best satisfy these requirements? (Choose two.)

  7. 7 Question 7 Drag and drop Network Interfaces

    A tester is writing a Python TCP client to probe an internal service that sometimes accepts connections slowly and is protected by a host firewall that silently drops packets. The client must not hang indefinitely, must send a banner-grab request, and must read the response in a loop until the server closes the connection. Match each requirement to the socket feature that satisfies it.

    Drag each item onto its matching target. On a phone: tap an item, then tap a target.

    Establish the TCP connection to the remote host and port
    Prevent the client from blocking forever when the firewall drops packets
    Read the response until the server closes the connection
    recv in a loop until an empty bytes result
    setsockopt with SO_REUSEADDR
    connect with an address tuple
    settimeout on the socket
    bind to a local ephemeral port
  8. 8 Question 8 Single choice Packet Analysis with Python

    A tester has captured a PCAP of a suspected DNS tunnel and needs to find hosts sending unusually long DNS query names, which often indicate data exfiltration. The capture has about 2 million packets, and the analyst must avoid loading the whole capture into memory. Using Scapy, which approach is most appropriate?

  9. 9 Question 9 Single choice Regular Expressions

    A tester must extract hostnames from a web application's exported log lines, where each line has the form 'GET https://api.example.com:8443/v1/users HTTP/1.1' and the host may be followed by an optional port. The regex must capture only the hostname, not the scheme, port, or path, and must not match an IP address with a trailing dot. Which pattern best satisfies these requirements?

  10. 10 Question 10 Dropdown Website Interaction

    A tester is automating a login flow against a staging web application using the requests library. The session must persist the authentication cookie across subsequent requests, and the tester must verify the cookie that the server set during login. Complete the code by selecting the correct value for each blank.

    Choose the correct value for each blank.

    import requests
    s = requests.()
    resp = s.('https://staging.example.test/login', data=creds)
    print(s..get_dict())
  11. 11 Question 11 Single choice Website Interaction

    An external penetration test requires that a Python crawler authenticate to a web portal that uses CSRF tokens embedded in each form. The crawler must submit a login form that includes a hidden token value that changes on every page load. The tester wants a reliable, repeatable method. What is the correct sequence of actions within a single session?

  12. 12 Question 12 Single choice Python Basics

    A tester writes a script that reads a customer-supplied wordlist file, which is encoded in UTF-8 and may contain a byte order mark. The script must read lines reliably, skip blank lines, and handle a missing file without crashing with an unhandled traceback. Which code approach best meets these requirements?

These are 12 of the 75 questions in the full GPYC pack.

Get All 75 Questions

Get all 75 questions & answers

744 Satisfied customers
95.1% Pass rate feedback
84.7% Said questions matched
92% Found material helpful

Full access options for GIAC GPYC

Self-study

PDF Version

$40.00 $20.00
  • 75 actual exam questions
  • Compatible with all devices
  • Printable PDF format
  • No download limits
  • 90 days free updates
  • 24/7 customer support

Exam simulation

Online Practice Test

$50.00 $25.00
  • 75 actual exam questions
  • Actual exam environment
  • 90 days free updates
  • Browser-based software
  • 24/7 customer support

100% Money Back Guarantee

Your success comes first

At DumpsProvider, we give you a 100% money back guarantee on all of our exam dumps. For us, your success is the #1 priority and we are more than confident that our exam material will help you pass the GPYC Exam (GIAC Python Coder) on your very first attempt.

In a rare case, if you fail your exam, we will refund your amount without asking a single question.

100%

Security & Privacy

10000+

Satisfied Customers

24/7

Committed Service

100%

Money Back Guranteed