View Full CompTIA PT0-003 Exam Dumps and Practice Test Dumps.
Question 321
Which technique is used to determine whether a system can be reached through IPv6 when only IPv4 addresses were initially identified?
- IPv6 reconnaissance
- Password spraying
- Cookie analysis
- File fuzzing
Correct Answer: 1
Explanation
IPv6 reconnaissance helps identify IPv6-enabled hosts, addresses, services, and network exposure that may not be obvious from an IPv4-focused assessment. Organizations sometimes deploy IPv6 without applying security controls equivalent to those used for IPv4. During an authorized penetration test, identifying IPv6 exposure can therefore reveal an overlooked portion of the attack surface. Password spraying targets authentication, cookie analysis evaluates web sessions, and file fuzzing searches for application resources. Testers should verify discovered IPv6 assets against the engagement scope before active testing.
Question 322
A tester discovers that an organization’s public DNS server provides information about internal systems through an unnecessary record set. What should the tester assess next?
- DNS information exposure
- Wireless encryption strength
- Password complexity
- Session token entropy
Correct Answer: 1
Explanation
Unnecessary DNS information can reveal internal hostnames, addressing schemes, infrastructure roles, or other details useful to an attacker. During an authorized assessment, the tester should determine whether the records are intentionally public and whether exposing them creates meaningful risk. DNS information should be reviewed in context because some records are required for normal services. Wireless encryption, password complexity, and session-token entropy address different security controls. The goal is to distinguish legitimate public DNS information from records that unnecessarily disclose internal infrastructure.
Question 323
Which vulnerability occurs when an application includes a remote resource based on attacker-controlled input without sufficient validation?
- Remote file inclusion
- NTP misconfiguration
- VLAN hopping
- Account enumeration
Correct Answer: 1
Explanation
Remote File Inclusion occurs when an application dynamically includes or processes a remote resource based on insufficiently validated user-controlled input. Depending on the application technology and configuration, this can potentially allow unintended external content to influence application behavior. During authorized testing, the tester should determine whether remote inclusion is actually supported and whether input validation prevents unauthorized resource locations. NTP misconfiguration affects time synchronization, VLAN hopping concerns network segmentation, and account enumeration exposes information about valid users.
Question 324
A web application accepts user-controlled input in a database query without using appropriate parameterization. Which defensive control should the tester expect to find?
- Prepared statements
- DNSSEC
- VLAN tagging
- NTP synchronization
Correct Answer: 1
Explanation
Prepared statements, also called parameterized queries, separate SQL instructions from user-supplied data and are a primary defense against SQL injection. They prevent input from being interpreted as part of the SQL command structure when implemented correctly. During an authorized assessment, testers can review application behavior and source or configuration evidence where available to determine whether parameterization is consistently used. DNSSEC protects DNS integrity, VLAN tagging supports network separation, and NTP synchronizes system clocks. Input handling should be reinforced with appropriate validation and database permissions.
Question 325
Which web vulnerability can occur when an application reflects user-controlled input into an HTTP response without proper output encoding?
- Reflected XSS
- VLAN hopping
- DNS poisoning
- Password spraying
Correct Answer: 1
Explanation
Reflected cross-site scripting occurs when user-controlled input is immediately returned in a web response and is interpreted by the browser as executable content because appropriate output encoding or contextual handling is missing. Unlike stored XSS, the malicious input is generally included in the request rather than persistently stored by the application. During authorized testing, testers should determine whether the affected context safely encodes output. VLAN hopping and DNS poisoning affect networks, while password spraying targets authentication systems.
Question 326
A tester is reviewing a web application that embeds user-supplied content inside HTML attributes. Which defense is especially important?
- Context-appropriate output encoding
- DNS recursion restrictions
- NTP synchronization
- Wireless channel selection
Correct Answer: 1
Explanation
Output encoding must match the context in which untrusted data is inserted. HTML attributes can require different handling from ordinary HTML text, JavaScript, CSS, or URL contexts. Context-appropriate encoding helps prevent user-controlled content from being interpreted as executable markup or code. During an authorized assessment, testers should review how the application handles untrusted values at each output location. DNS recursion, NTP synchronization, and wireless channel selection do not directly protect browser output from injection-based attacks.
Question 327
Which browser security control can reduce the ability of an injected script to access cookies marked appropriately?
- HttpOnly
- MX
- PTR
- AAAA
Correct Answer: 1
Explanation
The HttpOnly cookie attribute prevents client-side scripts from directly accessing the associated cookie through standard browser scripting interfaces. This can reduce the risk of cookie theft in certain cross-site scripting scenarios, although it does not prevent XSS itself or protect against every form of session abuse. MX, PTR, and AAAA are DNS record types serving different purposes. During web application testing, testers should review cookie attributes alongside session management, transport security, and application authorization controls.
Question 328
A tester discovers that an application does not properly restrict which domains can embed its pages in frames. Which attack should be considered?
- Clickjacking
- DNS tunneling
- Password spraying
- Kerberoasting
Correct Answer: 1
Explanation
Clickjacking involves misleading users into interacting with an application through a hidden or deceptive frame. If a sensitive application can be embedded by untrusted websites without appropriate restrictions, an attacker may attempt to manipulate the user’s visual context and actions. Controls such as suitable frame-ancestors policies in CSP or other appropriate browser protections can reduce this risk. DNS tunneling concerns communication through DNS, password spraying targets authentication, and Kerberoasting involves Kerberos service accounts.
Question 329
Which HTTP response header can help control whether a browser permits a page to be displayed within a frame?
- X-Frame-Options
- MX
- ETag
- Accept-Encoding
Correct Answer: 1
Explanation
X-Frame-Options is an HTTP response header that can instruct compatible browsers whether a page may be rendered inside a frame. It has traditionally been used as a defense against clickjacking. Modern applications can also use the frame-ancestors directive in Content-Security-Policy for more flexible framing control. MX is a DNS record, ETag supports cache validation, and Accept-Encoding indicates supported content encodings. During a penetration test, testers should review framing behavior for sensitive pages and confirm that protections match the application’s requirements.
Question 330
A web application exposes a sensitive API endpoint through an HTTP GET request even though the operation changes account information. Which design concern should be reviewed?
- Unsafe use of HTTP methods
- DNS zone transfer
- Password hash format
- Wireless authentication
Correct Answer: 1
Explanation
HTTP methods communicate the intended semantics of web requests. Using GET for a state-changing operation can create security and reliability concerns because GET requests are generally expected to be safe and retrievable rather than modify server state. Such requests may also be triggered unintentionally by links, crawlers, or browser behavior. During an authorized assessment, testers should review whether state-changing operations use suitable methods and appropriate protections. DNS transfers, password hashes, and wireless authentication do not address HTTP method semantics.
Question 331
A tester finds that an API accepts requests without checking whether the token was issued for the intended application or service. Which token property should be examined?
- Audience
- File extension
- DNS TTL
- MAC address
Correct Answer: 1
Explanation
The audience claim in a token identifies the intended recipient or service for which the token was issued. If an API accepts a token without validating that claim, a token intended for another service may potentially be accepted where it should not be. During authorized API testing, testers should review token validation requirements, including issuer, audience, signature, expiration, and other relevant claims. File extensions, DNS TTL values, and MAC addresses do not determine whether an authentication token is intended for a particular service.
Question 332
Which API security issue occurs when an application exposes excessive fields in a response that the client does not need?
- Excessive data exposure
- VLAN hopping
- NTP drift
- DNS poisoning
Correct Answer: 1
Explanation
Excessive data exposure occurs when an API returns more information than the client or user actually requires. Sensitive fields may then become visible through browser developer tools, mobile applications, or other clients even if the interface does not display them directly. During an authorized assessment, testers should compare API responses with the application’s intended data requirements and identify unnecessary sensitive fields. VLAN hopping, NTP drift, and DNS poisoning concern network or infrastructure security rather than API response design.
Question 333
A tester notices that an API allows a user to submit a request containing a large number of object fields that were not intended to be controlled by that user. Which weakness should be investigated?
- Mass assignment
- DNS enumeration
- Wireless deauthentication
- Port scanning
Correct Answer: 1
Explanation
Mass assignment can occur when an application automatically binds client-provided fields to internal object properties without adequately restricting which attributes users are permitted to modify. If sensitive properties such as roles or account states can be influenced through unexpected fields, authorization boundaries may be weakened. During authorized testing, testers should determine which fields are intended to be writable and whether server-side allowlists or equivalent controls are enforced. DNS enumeration, wireless deauthentication, and port scanning address different assessment activities.
Question 334
A tester discovers that an API reveals whether a resource exists even when the requester lacks permission to access it. Which security concern should be evaluated?
- Resource existence disclosure
- NTP synchronization
- VLAN tagging
- Certificate renewal
Correct Answer: 1
Explanation
Resource existence disclosure occurs when an application reveals information about protected resources even though the requester is not authorized to access their contents. Differences in status codes, error messages, response timing, or metadata may allow users to determine whether a particular object exists. During authorized testing, the tester should examine whether responses unnecessarily distinguish protected and nonexistent resources. NTP synchronization, VLAN tagging, and certificate renewal are unrelated controls. Consistent access-control responses can help reduce unnecessary information leakage.
Question 335
Which mobile application security control helps ensure that only necessary device capabilities and information are accessible to the application?
- Least-privilege permissions
- DNS recursion
- HTTP redirection
- VLAN trunking
Correct Answer: 1
Explanation
Least-privilege permissions limit a mobile application to the device capabilities and information it actually needs. Excessive permissions can increase privacy and security exposure if the application or its data is compromised. During an authorized mobile assessment, testers can review requested permissions against the application’s documented functionality and determine whether unnecessary access is granted. DNS recursion, HTTP redirection, and VLAN trunking serve different technical purposes. Applying least privilege at the mobile platform level helps reduce the potential impact of application compromise.
Question 336
A tester discovers that a mobile application communicates with an API endpoint that is not documented in the application’s normal interface. What should the tester do first?
- Determine whether the endpoint is within scope and assess its intended function
- Immediately attempt destructive requests
- Publish the endpoint publicly
- Delete the application
Correct Answer: 1
Explanation
Undocumented API endpoints may represent legacy functionality, internal services, testing interfaces, or legitimate application operations. The tester should first establish whether the endpoint belongs to the authorized application and engagement scope, then understand its intended function before performing security tests. Immediately conducting destructive activity could disrupt services or violate the rules of engagement. Publishing the endpoint or deleting the application is inappropriate. Controlled endpoint discovery allows testers to expand assessment coverage without exceeding authorization or causing unnecessary impact.
Question 337
Which cloud security control can limit communication between workloads based on defined network rules?
- Security group
- Password blocklist
- Certificate transparency
- Web archive
Correct Answer: 1
Explanation
A cloud security group can act as a virtual network access-control mechanism, allowing or denying traffic according to defined rules. Depending on the cloud platform, these rules may apply to inbound, outbound, or workload-specific communication. During an authorized assessment, testers can determine whether security groups expose services more broadly than intended and whether administrative interfaces are appropriately restricted. Password blocklists protect account credentials, certificate transparency supports certificate visibility, and web archives preserve historical content. Proper cloud network controls help reduce unnecessary workload exposure.
Question 338
A tester discovers that a cloud storage resource containing sensitive information is publicly accessible without authentication. What should be assessed first?
- Access permissions and intended exposure
- Browser font configuration
- DNS TTL values
- Wireless channel width
Correct Answer: 1
Explanation
Publicly accessible cloud storage should be reviewed to determine whether the exposure is intentional and whether the permissions are broader than required. The tester should identify what data is accessible, while minimizing unnecessary access to sensitive information, and document the relevant configuration. Appropriate cloud storage permissions should restrict access according to business requirements. Browser fonts, DNS TTL values, and wireless channel width do not determine whether a cloud storage resource is publicly exposed.
Question 339
Which security weakness can occur when a container process has unnecessary access to the host operating system?
- Excessive container privileges
- DNS MX misconfiguration
- Session timeout
- Password spraying
Correct Answer: 1
Explanation
Containers should operate with only the privileges and host access required for their intended functions. Excessive privileges, unnecessary host mounts, or powerful capabilities can increase the potential impact of a compromised container and may weaken isolation between the workload and host system. During an authorized assessment, testers should review container permissions and runtime configuration against operational requirements. DNS MX configuration concerns email routing, session timeout affects application authentication, and password spraying targets accounts. Restricting container privileges is an important cloud-native security practice.
Question 340
A security team wants to identify known vulnerabilities in packages installed inside container images before deployment. Which process is most appropriate?
- Container image vulnerability scanning
- DNS enumeration
- Wireless channel analysis
- Password spraying
Correct Answer: 1
Explanation
Container image vulnerability scanning analyzes software packages and dependencies contained within an image against known vulnerability information. Performing this assessment before deployment can help organizations identify outdated or vulnerable components and rebuild images using maintained versions. The process can be integrated into development and deployment pipelines so that vulnerable images are identified earlier. DNS enumeration gathers infrastructure information, wireless analysis examines wireless networks, and password spraying evaluates authentication weaknesses. Image scanning should be combined with timely patching and controlled image lifecycle management.