CompTIA SY0-701 Practice Test 5
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.
Question 41
A mobile payment application must sign transactions using a hardware-protected private key. Ordinary app processes must never receive the raw key bytes. Which design is suitable?
- A software credential file decrypted into every app process that signs a transaction
- A user-space cryptographic library that copies the full unwrapped signing key into a normal application heap
- A secure enclave that isolates cryptographic key operations from ordinary application processes
- A pin of the remote bank server’s public certificate without protecting the local transaction-signing key
Explanation
Correct Answer
C:A secure enclave, secure element or comparable trusted hardware service can hold the private key separately from normal app memory and perform authorized transaction signatures internally. The application submits approved data or a digest for signing and receives the resulting signature, not the raw key. The system must still verify the transaction context and protect authorization prompts; isolation alone does not prevent a tricked user from approving a malicious payment.
Incorrect Answers
A:Keeping a raw transaction-signing key in a decrypted credential file makes it available to the application process or other software with sufficient privileges. Even if the file was encrypted while stored, it becomes an ordinary secret when loaded for signing. The design specifically requires hardware protection throughout the operation, not merely encryption of a file at rest.
B:A cryptographic library can calculate a valid signature, but copying a full signing key into a normal heap exposes it to memory disclosure, debugging tools or compromised privileged code. That is a software key-management design, not a hardware-isolated non-exportable key. The required operation should be delegated through a protected hardware API while retaining secret material outside the general-purpose process.
D:Pinning the remote bank's certificate can help the mobile app recognize the correct server and resist some on-path impersonation attacks. It does not change where the phone's own signing private key is stored or who can read it. Remote-server validation and local hardware key isolation are separate controls, and the question explicitly requires the latter.
Question 42
A storage-encryption key may have been exposed through a compromised build server. Historic archives must remain readable as the organization transitions away from the suspect key. Which response protects both availability and future confidentiality?
- Rewrap the archived data using the same suspect key while keeping its existing broad access rights indefinitely
- Rotate application passwords but continue encrypting newly written records with the suspected exposed storage key
- Rotate to a fresh key with a planned re-encryption or key-wrapping migration and audited access
- Permanently destroy the suspect key before confirming that retained ciphertext can be decrypted or migrated
Explanation
Correct Answer
C:Plan a migration to fresh cryptographic material, preserving authorized access to historical ciphertext while re-encrypting data or securely rewrapping independently protected data keys. Validate recovery before retiring the old key, reduce its access rights and record every controlled use during transition. A suspected compromised key may remain necessary for limited historical decryption until migration is verified, but should not continue protecting new records.
Incorrect Answers
A:Rewrapping data under a wrapping key that remains suspect may change file packaging but leaves an attacker with the same compromised cryptographic material or broad authorization path. Effective remediation must reduce reliance on the exposed key, revoke inappropriate access, and introduce a distinct protected replacement. Retaining the old trust boundary indefinitely does not address the build-server exposure.
B:Application login passwords are identity credentials, while the suspected storage-encryption key controls the confidentiality of archived data. Rotating the former does not revoke an adversary's already acquired encryption key or prevent it from decrypting new records encrypted with that key. The key lifecycle and access policies for the affected cryptographic material require direct remediation.
D:Destroying an old key before verifying that historical ciphertext can be restored or migrated can permanently eliminate access to required archives. Key retirement should follow a tested inventory of dependent data, approved new encryption or wrapping, integrity checks and recovery validation. Destruction is appropriate only once the organization is confident no required records remain encrypted solely under that key.
Question 43
An insider hides a secret message in the low-order pixel values of an otherwise ordinary company logo file. Which TWO descriptions correctly apply? Choose TWO.
- This is symmetric encryption because the pixels are always unreadable without a shared key
- Publishing the carrier proves the hidden message is public and easy to extract
- The carrier file may still display a normal-looking logo
- This process automatically supplies an integrity-protected digital signature
- This is steganography because data is concealed inside other media
Explanation
Correct Answers
C:Changing a small portion of lower-order pixel bits can leave the overall colors and structure of the company logo apparently unchanged to human viewers. That plausible appearance is what enables the carrier to blend into normal media handling. Whether the hidden material is recoverable depends on the embedding technique and subsequent image processing, since lossy recompression can damage concealed bits.
E:Steganography hides the existence or location of a message by embedding it within other content, here a normal-looking logo image. Unlike encryption, its defining goal is concealment in the carrier rather than mathematically making the payload unreadable. The organization could investigate unusual image metadata or pixel distributions, while recognizing that a clean visual appearance is not sufficient evidence of safety.
Incorrect Answers
A:Symmetric encryption transforms plaintext using a secret key and a reversible encryption scheme. The scenario only says bits of a message were hidden in the lower-order pixel values of a logo, which is an embedding method. The secret may also be encrypted separately, but concealment in image data does not itself prove the use of symmetric encryption or a shared decryption key.
B:Making an image publicly accessible means observers can obtain the carrier file, not that they automatically recognize or decode any concealed payload. Steganographic methods exploit normal-looking media and sometimes secret embedding parameters. The insider's hidden content can remain difficult to detect without targeted analysis; visibility of the logo is therefore not equivalent to disclosure of the message.
D:A digital signature needs a cryptographic signing key, a suitable algorithm and verification against an appropriate public key or trust path. Merely embedding secret text in pixels produces no signature, origin assurance or tamper evidence. An attacker could alter both the carrier and concealed content unless a separate integrity or authenticity mechanism is applied.
Question 44
An online store should charge cards without storing or displaying customers' primary account numbers. A regulated payment vault can retain the real-number mapping. Which data technique is intended?
- Compress each card number and store the compressed string instead of any access controls
- Hash only the employee directory while leaving card details visible
- Make the original card number the public account ID for easier refunds
- Tokenize the sensitive number, returning a surrogate whose mapping stays in a protected token vault
Explanation
Correct Answer
D:Tokenization substitutes a non-sensitive reference for the actual primary account number while a protected vault or payment provider retains the mapping needed for authorized transactions. The store processes the token rather than repeatedly displaying the card number, reducing where sensitive values appear. Tokenization still needs strong vault access rules, scope restrictions and logging; the token is not permission to ignore payment security requirements.
Incorrect Answers
A:Compressing a primary account number changes how its digits are encoded or represented but does not remove their sensitivity. A decompression routine could recover the original value, and the proposed design does not restrict who can access it. The requirement is to avoid exposing the card number to the store while retaining a controlled payment reference, not simply reduce storage size.
B:Hashing a separate employee directory changes employee identity data, not the card-number field processed by the online store. The payment system would still display and retain sensitive account digits. Selecting the correct data-protection control requires identifying the actual information being minimized and the systems that may legitimately retrieve it.
C:Using the real card number as an externally visible account identifier increases its distribution in logs, browser URLs, customer records and refund workflows. This directly conflicts with the goal of not storing or displaying primary account numbers. The store should instead handle a surrogate that can be resolved only through an appropriately controlled payment service.
Question 45
A vendor publishes a SHA-256 archive digest. A software engineer retrieves the release from a third-party mirror. What comparison is meaningful only when the published reference digest is obtained authentically?
- Compute the downloaded archive’s SHA-256 value and compare it with the independently authenticated vendor reference
- Accept a SHA-256 value supplied by the same untrusted mirror as conclusive proof that the vendor signed the archive
- Rely on a TLS connection to the mirror without checking that the mirror’s copy matches the vendor’s published digest
- Verify the download’s filename and nominal size and assume the original SHA-256 is unnecessary when they match
Explanation
Correct Answer
A:A freshly computed SHA-256 digest over the entire downloaded archive can be compared with a reference obtained independently from the authentic software publisher. Matching values support byte-for-byte integrity relative to that trusted reference; differences suggest corruption or modification. The reference channel must be authenticated because a malicious mirror could replace both the file and any checksum hosted alongside it.
Incorrect Answers
B:An untrusted download mirror can compute a SHA-256 digest for its own malicious archive and present a matching number. A hash alone has no signer identity or proof that the publisher endorsed the content. Integrity comparison is meaningful only when the expected digest is bound to a trusted source, such as an authenticated publisher channel or verified signed manifest.
C:TLS protects the connection to the server whose certificate is accepted, but it does not prove that a third-party mirror is distributing the original vendor release. A compromised or malicious mirror may serve altered bytes over a correctly encrypted HTTPS session. The independently authenticated vendor digest provides a separate test of the archive's content integrity.
D:A file can retain a familiar name and approximately the same byte count after malicious modification. Neither metadata field is a collision-resistant cryptographic fingerprint. The requirement is to detect changes to the archive bytes against a trusted publisher reference, which needs a real digest or verified signature rather than appearance or size alone.
Question 46
Two employees independently set the same account password, but the authentication system stores different password hashes for each account. The system uses a unique random value for every account. Why is that useful?
- A unique salt prevents offline password guessing under every possible circumstance
- Unique salts prevent identical passwords from automatically producing identical stored hashes and impede bulk precomputation
- The server now has to disclose each employee's plaintext password to the other
- The hashes can be decrypted using the salts as symmetric decryption keys
Explanation
Correct Answer
B:An independently generated salt makes the password-hashing input different for each account even when two users pick identical passwords. Their stored results therefore differ, and attackers cannot reuse one precomputed rainbow-table mapping across all users in the same way. The verifier should also employ an appropriate costed password-hashing scheme and protect any optional server-side secret independently.
Incorrect Answers
A:A unique salt is stored with the password hash and defeats many precomputed tables shared across accounts, but an attacker who steals the database can still test password guesses against each salted hash. The salt is not secret and does not replace a slow, approved password-hashing algorithm or other controls. Claiming it prevents every offline attack misstates its purpose.
C:The verifier checks a submitted password by recomputing its salted hash and comparing it with the stored value. There is no need to expose either user's plaintext password to another user; doing so would directly violate credential confidentiality. Salt generation changes hashing inputs, not authorization to reveal secrets between accounts.
D:A salt is an additional public value mixed into a one-way password-derivation process; it is not an encryption key. Password hashes are generally verified by comparison, not decrypted to retrieve the original password. Even if the salt is known, reversing a strong password hash requires guessing or breaking the hashing assumptions rather than applying symmetric decryption.
Question 47
A group of supply-chain companies maintains a PERMISSIONED distributed ledger of shipment events. Participants validate candidate records and replicate agreed blocks; each block references the prior block cryptographically. Which THREE expectations are defensible? Choose THREE.
- Changing a previously committed block can become detectable because its hash-linked descendants and independently maintained ledger copies no longer agree
- Participating authorized validators can use defined consensus rules to agree on accepted record order and replicate the ledger history
- Every ledger value is automatically confidential to every observer without encryption, access controls or restrictions on which fields get recorded
- Any one member can invisibly rewrite the confirmed history of all other honest replicas without satisfying the network’s validation or consensus rules
- Ledger consensus independently guarantees that the physical shipment reported by a dishonest sensor really occurred outside the software system
- A distributed, hash-linked ledger can make unilateral retrospective changes harder than editing one unprotected centralized spreadsheet, provided validation and participant trust assumptions hold
Explanation
Correct Answers
A:Hash linking makes a block depend cryptographically on prior record content, so unauthorized changes can invalidate links used by later blocks. Independent replicas let validators compare histories rather than accept a silent local modification as authoritative. This gives tamper evidence and resistance under the network’s assumptions; it is not an absolute impossibility of historical rewriting.
B:A permissioned blockchain defines who can validate and how participating nodes accept candidate blocks. Consensus procedures and replicated ledgers give a shared chronology even when parties operate separate information systems. This does not automatically make every input truthful, but it can coordinate agreement on which recorded events were accepted.
F:Compared with a spreadsheet controlled by one writer, independently replicated and hash-linked transaction histories can resist undetected retroactive edits under the chosen trust and consensus model. The assurance depends on membership, validation, key management and honest participants; it should not be described as absolute mathematical immutability.
Incorrect Answers
C:Ledger storage is not inherently confidential. Authorized members may be able to see the entries, and some blockchains intentionally expose transaction details. Sensitive shipment data still requires an explicit data-minimization design, encryption or access controls consistent with the consortium’s security and legal requirements.
D:An arbitrary local member cannot necessarily force honest validators to adopt a conflicting retrospective history. Hash links and independent replicas reveal divergence, while consensus rules govern which blocks are valid. Specific network attack conditions could affect assurance, but the statement claims invisible unilateral rewriting in spite of those rules and is not supported.
E:A ledger can provide evidence of what a participant submitted and when the network accepted it; it cannot by itself validate the truth of external physical measurements. A compromised barcode scanner or dishonest logistics partner may submit false shipment events that still form cryptographically well-structured blocks. Independent input controls remain necessary.
Question 48
A TLS server wants clients to verify certificate revocation status without every client initiating a separate live OCSP request to the CA responder. It has a current responder-signed certificate-status response. Which feature can provide this?
- Disable certificate validation for all clients until the live revocation server becomes reachable again
- OCSP stapling in the TLS handshake, with clients validating the supplied signed response and freshness
- Publish the web server’s private key with the certificate so clients can derive the revocation decision locally
- Replace the certificate chain with a DNS TXT record that asserts the website is never revoked
Explanation
Correct Answer
B:OCSP stapling lets a TLS server attach a recent responder-signed status response to the handshake, reducing the need for each client to query the responder directly. Clients still verify that the OCSP response names the relevant certificate, has an authorized valid signature, and is within acceptable freshness bounds. The feature helps revocation-status distribution; it does not turn an untrusted certificate into a trusted one.
Incorrect Answers
A:Disabling certificate validation would permit attackers to impersonate TLS servers using forged or revoked credentials. Temporary OCSP responder unavailability is not a reason to accept arbitrary identities. The browser must continue to evaluate the chain and certificate identity under its security policy; stapled status can reduce responder requests without suppressing those checks.
C:The server's private key must remain secret because it can be used to authenticate the endpoint in appropriate TLS configurations. Publishing it would enable impersonation and does not encode the CA's independent revocation decision. OCSP status comes from an authorized signed responder, not by sharing sensitive server key material with browsers.
D:A DNS TXT record asserted by the website owner is not an authoritative, signed OCSP certificate-status response. It can be updated independently of CA revocation state and does not replace path validation. OCSP responses identify a particular certificate and use a responder signature with stated freshness, while ordinary DNS text has no such status semantics.
Question 49
A nine-month targeted campaign steals aerospace research and uses costly covert infrastructure. An analyst asserts that a foreign government is definitively responsible solely because the campaign is persistent and profit demands are absent. What is the most defensible assessment?
- Declare a specific nation-state sponsor proven because payment demands were absent from the observed malware traffic
- Classify the campaign as a routine authorized red-team exercise because it did not distribute ransomware
- Assign high-confidence attribution using target industry alone and exclude all other actor classes without corroboration
- Treat state-aligned espionage as a plausible hypothesis, record confidence limits and seek corroborating technical intelligence
Explanation
Correct Answer
D:A persistent, well-resourced research-theft operation can justify considering state-aligned espionage, but it is only one attribution hypothesis. Investigators should correlate victimology, infrastructure reuse, malware and command patterns, timelines and external intelligence before naming a sponsor. A defensible report describes observed facts and confidence levels, including what evidence would change the assessment; strategic motive alone is not definitive attribution.
Incorrect Answers
A:An absence of ransom demands is compatible with espionage, but it does not identify a particular government's sponsorship. Criminal, commercial or independent actors can also steal research without immediate payment requests. Technical attribution requires corroboration such as recurring infrastructure, malware provenance, operational patterns or intelligence, with confidence limits documented separately from the observed data theft.
B:A properly authorized red-team exercise should have an agreed scope, responsible sponsor, rules of engagement and limitations on sensitive-data access. Covert exfiltration of aerospace research over nine months is a suspected compromise, not evidence of permission. Failure to deploy ransomware does not convert theft into sanctioned testing, and incident response must still preserve logs and affected records.
C:Target selection can suggest intelligence collection, but it is weak proof of who directed or financed the operation. Different actor classes can target aerospace research and imitate each other's tooling or procedures. An analyst should separate observed behavior from inferred sponsorship and avoid excluding alternative hypotheses without independent confirming evidence.
Question 50
A hostile group deliberately wipes control-system configuration on several unrelated public transit systems. The messages claim that the goal is widespread disorder, with no payment demand, data theft, or stated political reform objective. Which threat-actor motivation is most directly supported?
- Intentional service disruption and chaos rather than direct financial profit
- Cyber extortion that requires a promised restoration key in exchange for money
- Authorized defensive penetration testing under a defined rules-of-engagement document
- Routine collection of anonymous operational statistics for capacity planning
Explanation
Correct Answer
A:Deliberately erasing operational configuration across several transit systems directly disrupts service and fits the group's claimed intention to create disorder. With no demand for payment or transfer of stolen data, destruction and chaos are the best-supported immediate motives. The evidence may not identify the actor's ultimate ideology, but it does distinguish observed destructive effects from financial extortion.
Incorrect Answers
B:Cyber extortion usually involves coercing payment or another concession by threatening data release, prolonged disruption or withholding recovery. The described hostile group made no payment demand, did not advertise a restoration key and did not condition repair on compensation. The organization should still investigate economic motives, but the observed facts support disruption rather than a specific ransom-for-recovery business model.
C:Authorized penetration testing is agreed in advance, conducted within explicit rules of engagement and bounded by safety and service constraints. Unauthorized destruction of public transport control configuration across unrelated organizations exceeds any assumed routine testing. An attacker cannot acquire permission merely by sending messages about their activity or by choosing operational systems as targets.
D:Capacity planning collects or analyzes operational measurements to forecast load and allocate resources; it does not require deleting essential transit control configurations. Wiping data that devices need to function creates outages rather than useful statistics. The action's destructive mechanism and public disorder messages are directly inconsistent with benign, anonymous telemetry collection.