CompTIA SY0-701 Practice Test 4
Question 30
A database security update includes a schema migration that could irreversibly alter production financial records. The change ticket has a maintenance window and stakeholder notification, but no validated recovery procedure. What must be completed before deployment?
- Execute the migration without a restore plan because the service owner has already agreed to the outage window
- Prove that a consistent point-in-time backup or other supported recovery path can restore the application and data if migration fails
- Disable transaction logs and backup verification so the schema migration consumes less storage and finishes faster
- Treat a successful test of the application login screen as sufficient proof that all historical transaction data can be recovered
Explanation
Correct Answer
B:A consistent point-in-time backup, snapshot or vendor-supported database recovery method must be tested against the intended migration and the application’s recovery objectives. The test should prove that both schema and transaction data can be restored to a coherent state after failure. A usable recovery path protects against partial migrations and corruption; a scheduled outage approval alone cannot supply that assurance.
Incorrect Answers
A:An approved maintenance window and tolerance for temporary downtime do not guarantee recovery of financial records after an irreversible schema change. The key risk is data integrity and recoverability, which must be addressed separately from scheduling. Running a destructive migration without validated restoration can cause permanent business data loss.
C:Transaction logs and verified backups may be essential for recovering a consistent database state after a failed migration. Disabling them to save storage could prevent point-in-time recovery and obscure what changed. Performance concerns should be assessed and mitigated without sacrificing the only dependable restoration evidence.
D:A working login screen only demonstrates that one application path responded; it does not prove the integrity or recoverability of historical financial records. A meaningful recovery test must verify the data, schema compatibility and critical business transactions after restoration. Superficial availability evidence cannot replace a backup-and-restore validation.
Question 31
An approved firewall deny rule would close a legacy protocol port, but a manufacturing controller still depends on the protocol for safety telemetry. Before deployment, what must the technical impact assessment establish?
- That the firewall syntax validates successfully, which alone proves every production protocol dependency remains functional
- That the block rule matches an indicator of compromise, so a service owner review and rollback path are unnecessary
- The client application dependency and an approved secure migration or exception path
- That the source network uses RFC1918 addresses, so an internal service cannot be disrupted by a denylist
Explanation
Correct Answer
C:The assessment must identify exactly how the manufacturing controller uses the legacy port, what happens to safety telemetry if it is blocked, and whether a secure replacement path or time-bound exception is feasible. Business and safety owners should approve the chosen handling, with validation and rollback criteria. A technically justified deny rule still needs to account for its real operational consequences.
Incorrect Answers
A:Syntax validation confirms that a firewall understands a rule; it does not test whether an allowed or denied flow is needed by an industrial controller. The rule could be perfectly valid yet interrupt safety telemetry. Engineers need traffic and operational dependency evidence, not only a command parser accepting the configuration.
B:An indicator-of-compromise match can justify investigation or expedited control review, but it does not automatically supersede safety and service-impact decisions. The affected controller may require a compensating protection or scheduled migration. Deployment without an approved mitigation and backout plan could create a more immediate operational hazard.
D:RFC1918 addressing describes private IPv4 ranges, not freedom from internal firewall disruption. A deny rule can interrupt application traffic between private subnets just as readily as it can block traffic to public addresses. Address classification does not establish the absence of a controller dependency.
Question 32
Two months after a segmentation change, investigators must reconstruct the previously approved network diagram, the actual firewall rules at cutover, and the administrator who changed them. What evidence-management approach enables that reconstruction?
- Retain only the latest exported ACL because the final configuration is the sole authoritative record of prior changes
- Keep security-alert summaries without retaining version histories, author identities or approved implementation records
- Preserve dated diagram screenshots but discard linked change approvals and configuration revisions
- Use version-controlled configurations and diagrams linked to approved change records
Explanation
Correct Answer
D:Version-controlled firewall configurations and network diagrams preserve revisions, timing and authorship when combined with reviewed change records. Linking the deployed artifacts to approvals allows investigators to reconstruct what was expected, what was actually installed at cutover and who executed the modification. Access controls and protected audit trails help maintain the integrity of that historical evidence.
Incorrect Answers
A:Keeping only the newest ACL export proves what exists now but cannot show when an older rule was approved, applied or replaced. Investigators need a timeline and associated change decisions, not merely the final state. Discarding versions makes reconstruction of the cutover configuration and administrator actions unreliable.
B:Security alerts may reveal suspicious network events, but cannot substitute for historical configuration records and change approvals. Without author identity and timestamped revisions, the team cannot distinguish approved modifications from undocumented ones. Detection logs and configuration-management evidence serve complementary purposes.
C:Dated diagrams can help explain intended architecture, but screenshots alone do not bind an approved change to the actual rule set or the person who implemented it. Preserving linked approvals and configuration diffs is necessary to show both authorization and technical implementation over time.
Question 33
An HTTPS service presents its CA-signed certificate to clients. Its private key must remain secret on the server. Which TWO statements are accurate about this key arrangement? Choose TWO.
- The publicly distributed key must always be kept secret to maintain TLS security
- The server must protect the private key used for its signing or authentication operations
- The private key must be transmitted to every browser along with the certificate
- An issued certificate necessarily contains the CA's private signing key
- Clients can use the certified public key to verify suitable signatures associated with the server
Explanation
Correct Answers
B:The server’s private key must remain under the server’s or trusted key service’s exclusive control because possession can enable authentication signatures or other private-key operations. Clients obtain and validate the public certificate, not the private material. Compromise of the private key undermines endpoint authenticity, so storage, access permissions, rotation and revocation plans matter for the service’s security.
E:Clients validate the certificate chain and can use the certified public key to verify signatures made with the corresponding server private key where the protocol uses such signatures. This provides evidence about endpoint identity only if the certificate is valid for the intended name and trust context. A public key is designed for verification, not for secrecy.
Incorrect Answers
A:A public key is intentionally distributed through the server certificate so clients can use it to authenticate suitable cryptographic operations. Requiring public-key secrecy confuses asymmetric cryptography with protection of the private key. Exposure of the certified public key is not, by itself, a compromise of the key pair.
C:Browsers need the server certificate chain and public key to evaluate trust and perform their side of a TLS handshake. They must not receive the server’s private key. Sending it would let third parties impersonate the endpoint and could invalidate the authentication security expected from the certificate.
D:A CA signs issued certificates using the CA’s private key, but the certificate does not contain that private key. It carries the subject’s public key, identity metadata and a signature verifiable using the CA’s public certificate. Exposing the CA private key would compromise a major trust anchor and is not how certificate distribution works.
Question 34
Archive encryption keys must remain recoverable if their sole custodian leaves without notice. The organization must avoid granting staff perpetual ability to decrypt all archives. What key-recovery design fits?
- Place recoverable keys into a controlled escrow process with split duties and audited authorization
- Store the only exportable recovery key in that custodian’s personal password vault without a break-glass owner
- Issue standing archive-decryption permissions to all infrastructure administrators so any one person can recover files
- Discard all escrow options and rely entirely on the original custodian remembering the recovery phrase
Explanation
Correct Answer
A:A controlled key escrow or recovery service preserves authorized access to archive-encryption keys if an individual custodian is unavailable. Split duties, dual authorization and audit logging limit the risk that any one administrator can decrypt archives without oversight. Recovery must be tested periodically, and permissions should be scoped to the business need rather than granted perpetually to all staff.
Incorrect Answers
B:Putting the only recovery secret in one custodian’s personal password vault creates a single-person availability risk. If the employee departs, loses access or is incapacitated, the organization may be unable to decrypt archives. An authorized enterprise-controlled recovery process is needed instead of relying on an individual’s personal storage.
C:Standing archive-decryption rights for every infrastructure administrator would unnecessarily expand the number of insiders and credentials capable of accessing sensitive records. Even if availability improves, the design violates least privilege and increases the blast radius of compromised administrator accounts. Escrow access should be conditional, approved and audited.
D:Relying only on a departing custodian’s memory provides no reliable recovery mechanism, chain of custody or tested control. Human memory can fail, and the organization cannot demonstrate that business-critical archives remain recoverable. Enterprise escrow or an equivalent controlled process addresses that risk while restricting unnecessary access.
Question 35
Two services use AES-GCM with the same long-lived symmetric key. Telemetry shows one service is accidentally repeating a nonce value when encrypting different payloads. What is the correct security response?
- Increase the GCM authentication-tag length alone; nonce reuse cannot affect confidentiality when tags are longer
- Keep the same key and nonce because AES-GCM produces independent ciphertext whenever plaintext differs
- Stop reuse, rotate or replace affected keying material as appropriate, and enforce unique nonces for each encryption under the key
- Treat the nonce as a password and transmit it only through a public certificate-revocation list
Explanation
Correct Answer
C:Encryption using AES-GCM must not reuse an IV with the same key for different inputs. The organization should stop affected operations, determine exposure, rotate or replace key material when warranted and fix the nonce-generation system to guarantee uniqueness for the key lifetime. Monitoring and testing should detect accidental repetition before further ciphertext is produced; NIST SP 800-38D makes IV uniqueness an explicit security requirement.
Incorrect Answers
A:A longer GCM authentication tag changes the probability of undetected forgery under valid usage conditions, but it does not restore security lost when the same nonce is reused with a key. Reuse can compromise confidentiality and authentication. The correct mitigation addresses nonce construction and affected key material, not only tag length.
B:AES-GCM relies on using a fresh IV or nonce for each encryption operation under the same key. Repeating one with distinct plaintext can reveal relationships between data and threaten integrity protections, regardless of whether ciphertext bytes look different. Treating the nonce as reusable defeats a critical assumption of the encryption mode.
D:A nonce is a public input to an authenticated-encryption operation, not a password to be distributed or revoked through a certificate-revocation list. Revocation lists identify certificate status and do not repair repeated GCM counters. The security property that needs enforcement is uniqueness of the nonce for each encryption with a given key.
Question 36
Two services use unauthenticated ephemeral Diffie–Hellman to establish a fresh secret. An on-path adversary substitutes its own public key shares and independently negotiates with each service. What cryptographic requirement was missing?
- A longer session encryption key, which alone cryptographically proves the peer’s identity without certificates or signatures
- Authentication of the key exchange and its peer identities, for example using trusted certificates and signed handshake data
- A lower TCP retransmission timer, because faster transport will prevent any substitution of Diffie–Hellman public shares
- Using the same unauthenticated exchange again, since freshness alone proves that the remote service is genuine
Explanation
Correct Answer
B:The key exchange must be authenticated to the expected peer identities, commonly by verifying trusted certificates and signatures over the negotiated handshake transcript. Otherwise the attacker can replace the two public shares and create separate secrets with each service. Authentication binds the resulting keys to the intended endpoint; ephemeral secrecy alone only protects the key-agreement material from later disclosure in suitable protocols.
Incorrect Answers
A:Increasing symmetric key length improves resistance to brute-force guessing, but it does not authenticate the party who contributed the Diffie–Hellman public share. The adversary can establish one strong key with each victim and relay or alter traffic between them. Both sessions may use long encryption keys while still terminating at the wrong peer.
C:TCP retransmission timers only determine how transport segments are retried after loss or delay. A substituted key-agreement share can arrive reliably and quickly; the receiver still lacks proof that it came from the named peer. Changing transport performance cannot repair missing cryptographic identity binding, which is what allows the active on-path substitution.
D:Repetition with new ephemeral Diffie–Hellman exponents establishes a fresh shared secret but still leaves each unauthenticated public share replaceable. Freshness can limit reuse and support forward secrecy, but it is not evidence of peer identity. Unless the exchange is authenticated, an active attacker can mount the same two-ended interception during the next handshake.
Question 37
A VPN negotiates fresh ephemeral Diffie–Hellman secrets for each connection. An attacker later steals the gateway's long-term authentication private key. Which THREE statements about properly implemented forward secrecy are true? Choose THREE.
- The scheme eliminates the need to authenticate peers during future handshakes
- The compromise automatically reveals every prior ephemeral session key
- Future sessions can still be impersonated unless the compromised authentication key is replaced
- Forward secrecy makes weak random-number generation irrelevant
- Fresh ephemeral key-agreement values limit the impact of later long-term key disclosure on old session contents
- Old recorded sessions should remain protected if their ephemeral secrets were securely erased
Explanation
Correct Answers
C:Forward secrecy concerns exposure of previously established session content, not the authenticity of sessions negotiated after an identity key is stolen. While the compromised credential remains trusted, the attacker may sign or authenticate new handshakes as the gateway. Administrators should revoke or replace the identity credential, distribute updated trust information, and investigate its misuse before permitting normal VPN authentication.
E:In an authenticated ephemeral key agreement, each connection obtains a new transient private value rather than deriving all traffic keys solely from the server's long-term signing key. If those transient secrets are promptly erased, later theft of the signing key normally cannot recover previously recorded ciphertext. This is the forward-secrecy benefit; it does not guarantee protection against compromise during the session itself.
F:Recorded old VPN ciphertext should remain confidential against an attacker who later obtains only the long-term authentication key, provided session secrets were independent, unpredictable and securely erased. The thief cannot recompute the past key agreement from the public transcript alone under the scheme's assumptions. If the attacker had recorded actual traffic keys or exploited weak randomness, that protection would not hold.
Incorrect Answers
A:Forward secrecy protects past traffic keys against later theft of specified long-term material; it does not remove the need to authenticate future negotiations. If the VPN accepts unauthenticated or falsely authenticated public shares, an active attacker can pose as either peer. The gateway must still validate trusted identities, even when the session agreement uses fresh ephemeral contributions.
B:Stealing a long-term signing or authentication key does not by itself reconstruct securely generated, independently erased ephemeral Diffie–Hellman secrets used in completed sessions. Prior traffic keys generally depend on those transient values. This protection assumes a properly designed protocol and erasure; if session keys or random seeds were also compromised, earlier recordings could still be exposed.
D:Randomness remains essential because predictable ephemeral private exponents can let an adversary derive session secrets or repeat a compromised agreement. A fresh label is not sufficient if the random generator reuses or exposes internal state. Forward secrecy depends on unpredictability, safe key derivation, and disposal of ephemeral material in addition to authenticating peers.
Question 38
A consultant must share one sensitive spreadsheet with an approved partner. The spreadsheet must remain encrypted after download until that partner decrypts it, while the consultant’s other local files stay unchanged. Which scope meets both conditions?
- Encrypt every filesystem volume on the consultant’s laptop, then send the spreadsheet to the partner as ordinary plaintext
- Rely only on TLS during the file transfer and store the delivered copy unencrypted in a public shared folder
- Encrypt the specific file using a recipient-approved key or secure file-sharing mechanism
- Apply database transparent data encryption to the spreadsheet’s metadata index but leave the exported spreadsheet itself readable
Explanation
Correct Answer
C:File-level encryption binds protection to the spreadsheet itself: the consultant encrypts its bytes for an authorized recipient or uses a secured sharing service that maintains encryption until approved decryption. Only the partner receives the necessary decryption capability. This preserves confidentiality during storage and after download without changing the consultant's other files; recipient identity and key distribution must still be verified.
Incorrect Answers
A:Whole-disk encryption is appropriate for protecting a lost laptop or decommissioned storage device. Once the consultant exports an ordinary plaintext spreadsheet, the recipient's downloaded copy can be read outside the laptop's disk protection. The requirement follows the individual file beyond the transfer and explicitly leaves unrelated local files unchanged, so disk encryption alone does not meet it.
B:TLS encrypts traffic between network endpoints while the transport connection is in use. It does not automatically encrypt a file after the receiver or a public file repository writes the plaintext to storage. A public unencrypted destination defeats the stated post-download confidentiality requirement, even if a packet capture on the wire could not read the transfer.
D:Database transparent data encryption protects supported database files or storage structures, not arbitrary spreadsheet attachments exported for distribution. Encrypting a metadata index would leave the actual transmitted document readable. Security controls must protect the precise object whose confidentiality is required, rather than a different repository or layer that happens to mention it.
Question 39
A laptop protected by TPM-bound disk encryption unexpectedly requests its recovery key immediately after an authorized firmware update changes measured boot values. The drive has not been wiped. Which explanation is most likely?
- Any firmware signature automatically invalidates the entire disk ciphertext and permanently destroys recoverability
- Secure Boot validation necessarily guarantees every TPM platform configuration register remains byte-for-byte unchanged
- The recovery key can be safely reconstructed by anyone from published motherboard model and firmware version numbers
- The TPM’s measured platform state no longer matches the key-release policy, so recovery or approved resealing may be required
Explanation
Correct Answer
D:TPM-based disk protection can seal a release key to an approved set of PCR values that represent the measured boot environment. The firmware update may alter those measurements, causing the TPM to withhold automatic unsealing even though no data was deleted. Authorized recovery followed by policy-consistent resealing or resumption restores normal operation; administrators should confirm the change was legitimate before accepting the new state.
Incorrect Answers
A:Cryptographic hashes of firmware signatures do not transform all stored ciphertext into unrecoverable garbage after an authorized update. The disk encryption remains present; the system is asking for a recovery secret because it cannot automatically satisfy a key-release condition. With a valid protected recovery key, an administrator can unlock the data and reestablish the approved sealing baseline.
B:Secure Boot checks authorized boot-code signatures and related policy; TPM platform configuration registers reflect measured aspects of platform and boot state. A legitimate firmware or trust-database update can change PCR values while still being correctly signed. Therefore a successful Secure Boot policy does not prove that every measured value stays byte-for-byte constant, and recovery may be expected after approved servicing.
C:A BitLocker or comparable disk-recovery secret is generated or escrowed as protected keying material, not calculated from public hardware model details. Anyone able to reconstruct it from a common firmware version would circumvent disk encryption. Authorized recovery instead uses protected recovery material stored under policy, with incident or servicing checks as appropriate.
Question 40
A certificate authority requires its signing private key to remain non-exportable and to perform signing inside a tamper-resistant boundary. Which option meets that requirement?
- An operating-system keystore that decrypts and exports the CA signing key into an ordinary service process
- A protected network share containing the encrypted CA private key that is decrypted in host RAM for each certificate issue
- An HSM that performs authorized signing operations while safeguarding non-exportable key material
- A key-management API configured to export raw CA private-key bytes to each certificate-issuing web worker
Explanation
Correct Answer
C:An appropriately configured hardware security module generates or imports the CA key under controlled rules, retains the private material within its protected boundary, and exposes authorized signing operations rather than raw key bytes. This supports non-exportability and tamper-resistant operation. Operators still need dual-control policies, audit trails, backup or recovery design, and correctly scoped issuance permissions; the HSM does not replace certificate governance.
Incorrect Answers
A:A conventional operating-system keystore may encrypt a private key at rest and control which process can request it, but the proposed design exports the CA signing secret into ordinary host memory. Malware with sufficient access could copy the bytes. This violates the explicit requirement for a non-exportable key whose signing operation never leaves the tamper-resistant boundary.
B:A restricted network share can protect backup access, but decrypting the CA signing key on a standard application host exposes the live secret outside a protected cryptographic module. Encryption at rest does not imply hardware isolation during use. The certificate authority's highly privileged signing key must remain inside the specified boundary while authorized certificate signatures are produced.
D:A key-management endpoint that returns unwrapped signing secrets to every web worker spreads the CA key across ordinary hosts and process memory. Compromise of any worker could permit fraudulent certificate signing. Secure APIs should instead invoke protected signing operations on the module, with authorization and rate controls, rather than exporting the key to an uncontrolled execution environment.