Question 40
An application encrypts stored payment data with a symmetric key and needs integrity protection of ciphertext. Which mode supplies authenticated encryption?
- AES-GCM with correctly managed nonces
- Bare AES-CBC without a MAC
- AES-ECB
- A checksum appended without a secret
Explanation
Correct Answer
A:GCM protects confidentiality and detects ciphertext or associated-data tampering when each nonce is used safely with its key.
Incorrect Answers
B:CBC can conceal plaintext but lacks built-in integrity; modified ciphertext may pass unless a separate robust authentication mechanism is used.
C:ECB exposes repeating plaintext block patterns and provides no authentication tag to detect tampering.
D:An unkeyed checksum catches accidental corruption but can be recomputed by an adversary who changes the ciphertext.
Question 41
A firmware distributor wants receivers to verify that an update came from the authorized publisher and was not changed. Which cryptographic operation is appropriate?
- Compute an ordinary CRC alone
- Publish an unsigned package hash on the same unauthenticated download server
- Verify a digital signature with the trusted publisher public key
- Encrypt the file with a public, hard-coded password
Explanation
Correct Answer
C:Signature verification binds package integrity to the corresponding signing identity, assuming trustworthy key distribution and protection.
Incorrect Answers
A:CRCs detect accidental transmission changes but an adversary can modify both file and CRC without access to a signing key.
B:An attacker controlling the distribution endpoint can alter both the package and an unsigned checksum; it cannot substitute for signature-based origin assurance.
D:A shared exposed password provides no strong provenance because an attacker can use the same value to create altered packages.
Question 42
An API server and client want forward secrecy so a future compromise of the server's long-term certificate key does not decrypt recorded sessions. Which key agreement property is important?
- Ephemeral Diffie–Hellman key exchange
- A static encryption key reused indefinitely
- An unsigned hash of the handshake
- Password reuse across both endpoints
Explanation
Correct Answer
A:Fresh ephemeral key material limits retrospective decryption because the long-term authentication key alone cannot reconstruct past session secrets.
Incorrect Answers
B:Long-lived session keys magnify compromise impact because recorded traffic can be decrypted if the reused secret is later exposed.
C:Hashing can summarize content, but without authenticated ephemeral key agreement it does not confer forward secrecy.
D:Shared human passwords weaken identity assurance and do not create fresh independent session keys for each connection.
Question 43
An integrity-checking service and its verifier share a secret and need to detect altered messages without public-key signing. Which primitive should they use?
- HMAC with an approved hash function
- A plain SHA-256 checksum
- An unprotected timestamp field
- Data compression before transport
Explanation
Correct Answer
A:A keyed message authentication code verifies integrity and shared-secret authenticity, unlike an unkeyed digest anyone can recompute.
Incorrect Answers
B:A hash detects accidental changes but an attacker can replace a message and calculate a matching new digest.
C:A timestamp can support freshness checks but can itself be altered unless authenticated with the message.
D:Compression may reduce size; it does not supply an integrity proof based on a secret known to the verifier.
Question 44
A security appliance needs centralized authentication and accounting for remote-access VPN users. Which protocol is commonly integrated with the VPN gateway for this purpose?
- Local VPN credentials independently configured on each gateway
- SAML web sign-in without VPN gateway integration
- LDAP bind authentication without network-access session accounting
- RADIUS
Explanation
Correct Answer
D:A VPN network access server can send authentication and accounting exchanges to RADIUS, enforcing centralized access decisions.
Incorrect Answers
A:Local authentication can permit access but lacks the centralized cross-gateway identity and accounting service required.
B:SAML may work with supported federated VPN solutions, but generic browser assertion exchange is not the specified conventional VPN AAA transport.
C:LDAP can validate users or supply directory attributes, but a VPN gateway normally requires a dedicated AAA exchange for access and accounting.
Question 45
Network engineers must monitor switches remotely without exposing SNMP community strings or management responses in plaintext. What should be deployed?
- SNMPv1 with a complex read-write community string
- Unauthenticated TFTP configuration downloads
- Telnet on a high-numbered TCP port
- SNMPv3 with authentication and privacy enabled
Explanation
Correct Answer
D:SNMPv3 can provide authenticated, encrypted management messages, unlike traditional community-string configurations sent without encryption.
Incorrect Answers
A:Complexity does not fix the cleartext management protocol and a read-write community expands management risk if exposed.
B:TFTP lacks built-in cryptographic authentication and encryption, potentially exposing configurations and sensitive settings.
C:Moving Telnet to another port does not encrypt credentials or management data transported over its session.
Question 46
A new server segment should permit only explicitly approved business flows and reject unreviewed inbound traffic. Which firewall policy pattern best matches?
- Any-to-any allow followed by a logging rule
- Block only the protocols seen in last week's attack
- Disable state inspection for every application
- Default deny with narrowly scoped allow rules
Explanation
Correct Answer
D:Starting from deny-all and approving specific sources, destinations, and services minimizes unintended reachability and simplifies review.
Incorrect Answers
A:Logging after a broad allow does not prevent undesired flows and can make the supposed restrictions ineffective.
B:A denylist limited to known prior events leaves unexpected ports and new attack paths open.
C:Eliminating state tracking is not required to enforce an allowlist and may complicate safe return-traffic handling.
Question 47
A remote client initiates HTTPS to an internal portal; the firewall automatically permits only the matching return packets. What capability is most relevant?
- A purely stateless ACL with one permit direction
- Network address translation without connection-aware security policy
- A bidirectional stateless permit rule for TCP 443
- Stateful connection inspection
Explanation
Correct Answer
D:Connection tracking recognizes reply traffic associated with a legitimate established session, avoiding unrelated inbound allowances.
Incorrect Answers
A:A stateless ACL does not inherently remember that inbound packets belong to a request initiated in the opposite direction.
B:NAT maps addresses and may track sessions for translation, but it does not itself supply the specified stateful firewall admission decision.
C:Two static permits can pass packets, but they do not track an established session to distinguish valid replies from unrelated inbound traffic.
Question 48
An organization must block outbound access to prohibited web categories and inspect application behavior beyond port 443. Which perimeter control provides the needed context?
- An inbound web application firewall protecting only the company's portal
- A DNS-category filtering gateway without application identification
- A port-only packet filter allowing HTTPS
- Next-generation firewall with application-aware controls
Explanation
Correct Answer
D:Application identification and policy can distinguish services sharing TCP 443, subject to visibility and relevant decryption decisions.
Incorrect Answers
A:A WAF inspects web requests to the protected app, whereas this task requires identifying and controlling employees' outbound applications.
B:DNS controls may block known domains, but cannot reliably classify every application operating through shared IPs and port 443.
C:Port filtering cannot reliably distinguish individual web applications that all use the same transport port.
Question 49
A sensor must actively drop packets matching a high-confidence exploit signature before they reach the protected server. Which deployment mode is necessary?
- Offline packet analysis from a daily archive
- Inline intrusion prevention
- Passive IDS on a SPAN port
- A SIEM dashboard without enforcement integrations
- A stateful perimeter firewall without an exploit-specific rule
Explanation
Correct Answer
B:An IPS in the forwarding path can block offending packets, unlike a passive monitor that only raises alerts.
Incorrect Answers
A:Retrospective analysis supplies forensic evidence but cannot block packets at the moment they traverse the link.
C:A mirrored IDS can observe and alert but cannot directly prevent a packet already being forwarded along the primary path.
D:Correlating events helps analysts detect intrusions, but the dashboard alone is not an inline dropping point.
E:State tracking governs sessions, but ordinary allowed traffic may still carry the exploit unless appropriate inspection or prevention is enabled.
Question 50
An IDS alerts whenever developers test a legitimate port scanner, wasting analyst time. What metric is the team trying to reduce?
- False positives
- Mean time to restore
- Packet fragmentation rate
- False negatives
Explanation
Correct Answer
A:These are alerts for benign activity classified as malicious, so baselining and tuning can improve alert precision.
Incorrect Answers
B:Restoration time is a service recovery metric, whereas the case is about incorrect IDS classification.
C:Fragmentation is a network property that may complicate inspection, but it is not the alarm-classification error described.
D:A false negative is malicious activity missed by detection, not a benign authorized scan that triggers an alarm.