Try a sample question
This is an original sample question written by itmoshi based on the exam objectives.
A company is reviewing how it protects the private key used to sign its software releases. There are three requirements: (1) no one, including administrators, can extract the private key; (2) every signing operation is logged; (3) multiple build servers can sign. Which option best meets these requirements?
- AGenerate the key as non-exportable inside an HSM and have the build servers call the HSM's signing API
- BStore the key encrypted in a secrets management service, retrieve it at build time to sign, and rotate it regularly
- CStore the key in each build server's TPM so that signing is possible only on that server
- DConfigure certificate pinning for connections to the distribution server to prevent tampering with signed files
Show answer and explanation
Answer:A Of these options, only the HSM lets the key stay inside the device while servers simply request signatures.
Why it is correct
A key generated as non-exportable inside an HSM (hardware security module) cannot be extracted, even with administrator rights (requirement 1). The build servers never receive the key; they only ask the HSM to sign a hash, so every signing operation can be logged centrally on the HSM side (requirement 2). Because the signing API is reachable over the network, multiple build servers can use it (requirement 3).
The other options
- ✗ B Even if the key is encrypted at rest, its contents are handed to the server at build time, so anyone or anything with the right permissions can extract it (fails requirement 1). This fits secrets such as API keys and passwords, where the consumer needs the actual value.
- ✗ C A TPM can also keep a key non-extractable, but the key is bound to that single server, so several build servers cannot share it (fails requirement 3). It fits keys that should be tied to one device, such as device certificates or disk encryption keys.
- ✗ D Certificate pinning protects against impersonation of the other end of a connection and has nothing to do with how the signing key is stored. Use it when a client must talk only to a specific server.
Key takeaway
For key management questions, ask who ends up holding the key material. Hand out the value → secrets management. Bind it to one device → TPM. Keep it inside and only request operations, with central control and auditing → HSM (Cloud HSM or KMS in the cloud).
Try 41 questions like this for free
itmoshi is an unofficial study service and is not affiliated with CompTIA or any exam provider.