Curated

Security Engineering 2 (3.3–3.4)

0 votes

Questions64

  1. Question 51

    Security Engineering

    Servers boot in legacy BIOS mode with the compatibility support module enabled. Policy now requires that only signed bootloaders can run. What must the administrator do?

    Show the answer

    Correct answerD. Boot in UEFI mode with Secure Boot enabled

    AWhy not this: Blocking removable media limits boot sources, but an unsigned bootloader on the internal disk would still run.

    BWhy not this: Drive encryption protects data at rest and does not verify that the bootloader is signed by a trusted key.

    CWhy not this: A password protects firmware settings from change but legacy BIOS still runs any boot code without verifying a signature.

    DWhy this is right: UEFI native mode supports Secure Boot, which checks bootloader signatures against trusted keys before running them.

    Signature checking of bootloaders is a UEFI feature (Secure Boot); legacy BIOS boot loads the first boot sector without verifying it. A supervisor password only protects settings and does not validate what boots.

    Open this question
  2. Question 52

    Security Engineering

    Since a load balancer's certificate was reissued with a 4096-bit RSA key, its CPU hits 100% during login surges. New TLS handshakes time out, established sessions work, and bandwidth use is low. What is the BEST fix?

    Show the answer

    Correct answerD. Move to an ECDSA P-256 key and enable TLS session resumption

    AWhy not this: Bandwidth is low and the surge is legitimate logins, so volumetric scrubbing does not address the cause.

    BWhy not this: A full connection table is not the symptom; CPU is exhausted and established sessions still work.

    CWhy not this: A missing intermediate causes validation errors for clients, not CPU exhaustion on the load balancer.

    DWhy this is right: Cheaper signing operations and fewer full handshakes relieve the CPU bottleneck that is blocking new handshakes.

    Each full handshake with a large RSA key consumes heavy CPU on the private-key operation, so surges exhaust the CPU. A cheaper ECDSA key and session resumption cut the number and cost of full handshakes. Scrubbing addresses saturated links, which the low bandwidth rules out.

    Open this question
  3. Question 53

    Security Engineering

    A Linux web service crashes every few days with "too many open files" while CPU and memory stay low and there is no unusual external traffic. What is the MOST likely cause?

    Show the answer

    Correct answerA. An application leaking file descriptors it never closes

    AWhy this is right: Unclosed handles accumulate until the per-process descriptor limit is reached, causing the crash.

    BWhy not this: A cipher mismatch fails individual handshakes and does not exhaust file descriptors.

    CWhy not this: A DDoS would show abnormal inbound traffic; the stem says there is none.

    DWhy not this: An expired certificate causes TLS validation failures, not descriptor-limit errors.

    A "too many open files" error means the process hit its file descriptor limit. A gradual build-up over days with normal traffic points to handles that are opened and never released. A DDoS would show abnormal traffic, which the stem rules out.

    Open this question
  4. Question 54

    Security Engineering

    A web server's 1 Gbps uplink is saturated by large unsolicited UDP packets with source port 53 arriving from thousands of open resolvers. Server CPU and connection table are normal. What is the BEST mitigation?

    Show the answer

    Correct answerB. Request upstream scrubbing from the ISP or a DDoS mitigation provider

    AWhy not this: SYN cookies defend against SYN floods that fill the connection table; this attack is UDP and the table is normal.

    BWhy this is right: Upstream scrubbing drops the reflected traffic before it crosses the saturated link, which the server cannot do itself.

    CWhy not this: A WAF rate limit works at Layer 7 on HTTP requests; this traffic is UDP and never forms web requests.

    DWhy not this: More threads and connection limits add server capacity, but the bottleneck is the uplink, not the server.

    Large unsolicited UDP responses from open resolvers are a reflection/amplification volumetric DDoS. The link fills before traffic reaches the server, so filtering must happen upstream. SYN cookies only protect the TCP handshake state and would not relieve a saturated link.

    Open this question
  5. Question 55

    Security Engineering

    A new entry permitting TCP 443 to web server 10.20.0.15 was appended to an inbound router ACL, yet connections still fail and the new entry's hit counter stays at zero. An earlier entry denies all traffic to 10.20.0.0/24. What is the BEST fix?

    Show the answer

    Correct answerB. Move the new permit above the broader deny that matches the same traffic

    AWhy not this: The implicit deny already exists at the end; an explicit one would not make the permit reachable.

    BWhy this is right: First-match processing means the permit must precede the broader deny for it to take effect.

    CWhy not this: A certificate chain problem causes TLS errors after connecting, not blocked packets with a zero-hit permit.

    DWhy not this: The zero hit counter shows inbound requests never match the permit, so return traffic is not the issue.

    ACLs are processed top-down and the first match wins. The earlier deny matches the traffic first, so the later permit is never reached, which the zero hit counter confirms. Return-traffic rules would matter only if the permit were being hit.

    Open this question
  6. Question 56

    Security Engineering

    A TLS gateway saturates its processor running software AES for bulk traffic. The team must speed up encryption on the existing CPU, with no added hardware module and no change to key custody. Which feature should they use?

    Show the answer

    Correct answerC. The CPU's AES instruction set extension

    AWhy not this: An HSM protects keys but is added hardware, which the scenario rules out.

    BWhy not this: An enclave isolates code and data from the host; it is not built to speed up bulk ciphers.

    CWhy this is right: it adds AES instructions to the processor, so bulk encryption runs faster with no extra hardware.

    DWhy not this: A TPM stores keys and measurements; it is too slow and not designed for bulk traffic encryption.

    AES-NI is a CPU security extension that runs AES rounds in processor hardware, so bulk encryption speeds up on the existing CPU. A secure enclave isolates code and data but does not accelerate ciphers, so it would not solve the throughput problem.

    Open this question
  7. Question 57

    Security Engineering

    example.com publishes a DMARC policy of p=reject. A marketing platform sends mail with a From address at example.com, using its own bounce domain as the envelope sender and a DKIM signature with d=platform.net. Receivers show SPF pass and DKIM pass but still reject the mail. What should the engineer do?

    Show the answer

    Correct answerC. Have the platform sign with a DKIM key whose d= domain is example.com

    AWhy not this: Where the key is published does not change the d= domain in the signature, so alignment still fails.

    BWhy not this: SPF is checked against the bounce domain, so listing IPs in example.com's record leaves SPF unaligned.

    CWhy this is right: An aligned d=example.com signature gives DKIM pass in the From domain, which satisfies DMARC.

    DWhy not this: Relaxing to none delivers the mail but gives up enforcement instead of fixing the alignment failure.

    DMARC passes only when SPF or DKIM passes and the authenticated domain aligns with the From domain. Here both checks pass for platform.net, so neither aligns. A DKIM signature with d=example.com gives an aligned pass. Adding IPs to the example.com SPF record does not help, because SPF is evaluated against the platform's bounce domain.

    Open this question
  8. Question 58

    Security Engineering

    An analyst finds a custom compatibility database registered on several Windows hosts. It redirects a trusted application's API calls to an unknown DLL each time the application starts. Which technique is this?

    Show the answer

    Correct answerD. Shimming

    AWhy not this: USB keystroke injection uses a device posing as a keyboard to type commands and does not alter how a trusted application behaves.

    BWhy not this: Firmware tampering alters code stored on a device chip and persists below the OS, not through a registered application database.

    CWhy not this: A cold boot attack recovers secrets from RAM remanence after a reboot or power loss and does not redirect application calls.

    DWhy this is right: Shimming inserts an intermediary layer that intercepts and redirects an application's calls, so attacker code runs whenever the app starts.

    Shimming places a layer between an application and the operating system, so calls are intercepted and redirected to attacker code. A compatibility database that redirects API calls does exactly this. Firmware tampering alters code below the OS and does not redirect application calls.

    Open this question
  9. Question 59

    Security Engineering

    In an authorized test, session tokens from an application are predicted after the tester observes a few of them. The tokens come from a pseudorandom generator seeded with the current time in seconds. What is the weakness?

    Show the answer

    Correct answerB. Low-entropy seeding of the random number generator

    AWhy not this: A cipher mismatch causes handshake failure; it does not make generated tokens predictable.

    BWhy this is right: A guessable seed such as the time in seconds lets an attacker reproduce the generator's output.

    CWhy not this: Certificate key size relates to server authentication, not how session tokens are generated.

    DWhy not this: Revocation checking decides whether a certificate is still trusted and has no bearing on token randomness.

    A generator seeded with a guessable value such as the clock produces a small, predictable output space, so tokens can be reproduced. A short certificate key is wrong because it affects authentication of the server, not the unpredictability of application-generated tokens.

    Open this question
  10. Question 60

    Security Engineering

    In an authorized test, an AXFR request from an external host to a company's authoritative DNS server returns the entire zone, including internal hostnames. Which two actions BEST prevent this exposure? (Choose two.)

    Choose 2 answers

    Show the answer

    Correct answersD. Authenticate transfers between primary and secondaries with TSIGF. Limit AXFR to the IP addresses of the authorized secondary servers

    AWhy not this: Sinkholing redirects lookups for malicious domains; it does not control transfers from your own server.

    BWhy not this: Recursion governs resolving names for clients and has no effect on AXFR requests to the zone.

    CWhy not this: DNSSEC signs records for integrity; the signed zone can still be transferred by anyone allowed to ask.

    DWhy this is right: TSIG requires a shared-key signature, so only legitimate secondaries can complete a transfer.

    EWhy not this: TTL controls caching duration and does not decide who may download the zone.

    FWhy this is right: An allow-transfer list refuses AXFR from any address that is not a listed secondary.

    An allow-transfer ACL limits who may request AXFR, and TSIG makes secondaries prove identity with a shared key, so an unauthorized host gets refused. DNSSEC is wrong because it proves record authenticity and does not hide or restrict zone contents.

    Open this question
  11. Question 61

    Security Engineering

    An off-path attacker poisons a resolver's cache by racing forged answers and guessing the 16-bit transaction ID. The resolver sends every query from the same fixed UDP source port. Which change MOST directly makes forged answers harder to land?

    Show the answer

    Correct answerA. Randomize the resolver's query source ports

    AWhy this is right: Adding source port entropy forces the attacker to guess both ID and port, greatly reducing spoofing success.

    BWhy not this: A longer TTL keeps any poisoned record cached longer and does not hinder forged responses.

    CWhy not this: Zone transfer limits protect zone data on authoritative servers and do not affect resolver cache spoofing.

    DWhy not this: Sinkholing redirects a domain to a controlled address and does not validate responses to resolver queries.

    A forged response must match the query's transaction ID and source port; randomizing the port multiplies the values an attacker must guess. Raising the TTL is wrong because it only keeps a poisoned entry cached longer and does nothing to stop the forgery.

    Open this question
  12. Question 62

    Security Engineering

    An IPS blocks a partner's legitimate file uploads, and a week later a confirmed malware download crosses the same sensor without an alert. How should the two events be classified?

    Show the answer

    Correct answerA. Blocked uploads are false positives; the missed download is a false negative

    AWhy this is right: Benign traffic flagged is a false positive; real malware that raised no alert is a false negative.

    BWhy not this: Blocking benign uploads is not a true positive, and missing real malware is not a true negative.

    CWhy not this: The missed download raised no alert, so it is a false negative; only the blocked uploads are false positives.

    DWhy not this: This swaps the terms: benign traffic that is blocked is a false positive, not a false negative.

    Blocking benign traffic is a false positive; failing to alert on real malicious activity is a false negative. Reversing them is tempting, but the label follows whether the alert state matched the traffic's true nature, not which event feels worse.

    Open this question
  13. Question 63

    Security Engineering

    After VLAN 30 is added on two access switches joined by an 802.1Q trunk, hosts in VLAN 30 reach each other on the same switch but not across the trunk, while VLANs 10 and 20 work across it. Both switches have VLAN 30 defined and ports assigned. What is the MOST likely cause?

    Show the answer

    Correct answerD. VLAN 30 is missing from the trunk's allowed VLAN list

    AWhy not this: Same-VLAN traffic is switched, not routed, so a missing route would not stop hosts in one VLAN reaching each other.

    BWhy not this: Port security violations would hit individual access ports, including local traffic, not only the cross-trunk path.

    CWhy not this: A gateway ACL filters routed traffic; hosts in the same VLAN never pass through the gateway interface.

    DWhy this is right: Frames for a VLAN not on the trunk's allowed list are dropped, which breaks only that VLAN between switches.

    A trunk carries only the VLANs on its allowed list, so omitting VLAN 30 stops its frames crossing the uplink while other VLANs still pass. A routing or gateway ACL problem is wrong because same-VLAN traffic is switched at Layer 2 and never reaches the gateway.

    Open this question
  14. Question 64

    Security Engineering

    A service encrypts records with AES-128-GCM under a static key and uses a message counter as the nonce. After a restart the counter resets to zero, so stored records now share nonces. What is the BEST remediation?

    Show the answer

    Correct answerD. Guarantee a unique nonce per message under each key

    AWhy not this: A fixed IV in CBC repeats the same weakness, leaking matching plaintext prefixes, and loses GCM's authentication.

    BWhy not this: A 256-bit key is no stronger against nonce reuse, because the keystream repeats whatever the key length.

    CWhy not this: A plaintext hash adds no protection against keystream reuse and can itself reveal whether plaintexts match.

    DWhy this is right: Unique nonces per key restore GCM's confidentiality and authentication guarantees, which nonce reuse breaks.

    GCM is only secure if each nonce is used once per key. Reusing one leaks the XOR of plaintexts and lets attackers forge tags, so nonces must be unique, for example a persisted counter or a key rotated at restart. A longer key does not help, because the flaw is in how the mode is used, not in key strength.

    Open this question