Question 78 of 510
Security EngineeringeasyMultiple ChoiceObjective-mapped

Quick Answer

The correct approach is to use a hardware security module (HSM) to generate and store the private keys, performing TLS termination on the HSM. This works because an HSM is a dedicated, tamper-resistant cryptographic appliance that keeps private keys isolated in hardware, never exposing them to the web server’s memory or filesystem. Even if the application server is fully compromised, the attacker cannot extract the keys, as TLS handshakes occur inside the HSM itself. On the CompTIA SecurityX CAS-004 exam, this scenario tests your understanding of cryptographic key isolation and secure TLS termination, often appearing as a distractor against software-based key stores or TLS offloading on the same server. A common trap is assuming that storing keys in an encrypted file or using a separate software process offers equivalent protection—it does not, because those keys remain in system memory. Remember the mnemonic: “HSM keeps keys in the box, not in the OS.”

CAS-004 Security Engineering Practice Question

This CAS-004 practice question tests your understanding of security engineering. The scenario asks you to isolate a root cause — eliminate options that address a different problem before choosing. After answering, compare your reasoning against the explanation and wrong-answer breakdown below. Once you have made your selection, read the full explanation to reinforce the concept and understand why each distractor is designed to mislead on exam day.

A security architect is designing a web application that handles sensitive customer data. The application must ensure that if one server is compromised, the attacker cannot access the private keys used for TLS termination. Which of the following approaches best meets this requirement?

Clue words in this question

Noticing these words before you look at the options changes how you read each choice.

  • Clue: "best"

    Why it matters: Signals that multiple options may be partially correct. Choose the option that most directly solves the exact problem described, not the one that sounds most complete.

Question 1easymultiple choice
Read the full NAT/PAT explanation →

Answer choices

Why each option matters

Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.

Correct answer & explanation

Use a hardware security module (HSM) to generate and store the private keys, performing TLS termination on the HSM.

Option C is correct because a Hardware Security Module (HSM) provides a dedicated, tamper-resistant cryptographic processor that generates, stores, and manages private keys in hardware, never exposing them to the application server's memory or filesystem. By performing TLS termination directly on the HSM, the private keys remain isolated even if the web server is compromised, meeting the requirement for key confidentiality.

Key principle: Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • Store the private keys in an encrypted database on a separate database server.

    Why it's wrong here

    The database server could be compromised, and the encryption key would need to be stored somewhere accessible.

  • Use a software-based key vault that runs on the same operating system as the web server.

    Why it's wrong here

    A software vault on the same OS is still vulnerable to OS-level compromise.

  • Use a hardware security module (HSM) to generate and store the private keys, performing TLS termination on the HSM.

    Why this is correct

    HSM provides tamper-resistant storage and performs cryptographic operations without exposing keys.

    Clue confirmation

    The clue word "best" in the question point toward this answer.

    Related concept

    Read the scenario before looking for a memorised answer.

  • Store the private keys in a local file with restricted permissions on the application server.

    Why it's wrong here

    Storing keys on the server allows an attacker who gains access to the server to read them.

Common exam traps

Common exam trap: answer the scenario, not the keyword

The trap here is that candidates often assume encrypting keys at rest (Option A) or using OS-level permissions (Option D) is sufficient, but the CAS-004 exam emphasizes that any software-based storage, even if encrypted, still exposes the key during runtime operations like TLS termination.

Detailed technical explanation

How to think about this question

HSMs are FIPS 140-2 Level 3 or 4 validated devices that perform RSA/ECDSA private key operations (e.g., TLS handshake signing) entirely within the hardware boundary, using a secure key hierarchy where the master key never leaves the HSM. In practice, the web server sends the TLS ClientHello and the HSM returns the signed ServerKeyExchange, ensuring the private key is never present in the server's RAM or disk, even during active connections.

KKey Concepts to Remember

  • Read the scenario before looking for a memorised answer.
  • Find the constraint that changes the correct option.
  • Eliminate answers that are true in general but not in this case.

TExam Day Tips

  • Watch for words such as best, first, most likely and least administrative effort.
  • Review why wrong options are wrong, not only why the correct option is correct.

Key takeaway

Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option.

Real-world example

How this comes up in practice

A small business has 20 workstations on the 192.168.1.0/24 network and one public IP from its ISP. The router uses PAT (NAT overload) so all 20 devices share one public address using different source ports. NAT questions test whether you understand the four address terms and which direction each translation applies.

What to study next

Got this wrong? Here's your next step.

Identify which exam domain this question belongs to, review the core concept, then practise similar questions from the same domain.

Related practice questions

Related CAS-004 practice-question pages

Use these pages to review the topic behind this question. This is how one missed question becomes focused revision.

Practice this exam

Start a free CAS-004 practice session

Short sessions build daily habit. Longer sessions build exam-day stamina. Try a timed session to simulate real conditions.

FAQ

Questions learners often ask

What does this CAS-004 question test?

Security Engineering — This question tests Security Engineering — Read the scenario before looking for a memorised answer..

What is the correct answer to this question?

The correct answer is: Use a hardware security module (HSM) to generate and store the private keys, performing TLS termination on the HSM. — Option C is correct because a Hardware Security Module (HSM) provides a dedicated, tamper-resistant cryptographic processor that generates, stores, and manages private keys in hardware, never exposing them to the application server's memory or filesystem. By performing TLS termination directly on the HSM, the private keys remain isolated even if the web server is compromised, meeting the requirement for key confidentiality.

What should I do if I get this CAS-004 question wrong?

Identify which exam domain this question belongs to, review the core concept, then practise similar questions from the same domain.

Are there clue words in this question I should notice?

Yes — watch for: "best". Signals that multiple options may be partially correct. Choose the option that most directly solves the exact problem described, not the one that sounds most complete.

What is the key concept behind this question?

Read the scenario before looking for a memorised answer.

About these practice questions

Courseiva creates original exam-style practice questions with explanations and wrong-answer analysis. It does not publish real exam questions, exam dumps, or protected exam content. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

Keep practising

More CAS-004 practice questions

Last reviewed: Jun 11, 2026

Question Discussion

Share a tip, memory trick, or ask about the reasoning behind this question. Do not post real exam questions, leaked content, braindumps, or copyrighted exam material. Comments are moderated and may be removed without notice.

Loading comments…

Sign in to join the discussion.

This CAS-004 practice question is part of Courseiva's free CompTIA certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the CAS-004 exam.