nerdexam
CompTIA

SY0-501 · Question #100

A software developer wants to ensure that the application is verifying that a key is valid before establishing SSL connections with random remote hosts on the Internet. Which of the following should…

The correct answer is B. SSL symmetric encryption key E. OCSP. To verify SSL key validity before establishing connections, the application must use the SSL session's symmetric encryption key and check certificate revocation status via OCSP. These two mechanisms together ensure both the encryption channel and the certificate's current…

Submitted by yousef_jo· Mar 4, 2026Security architecture

Question

A software developer wants to ensure that the application is verifying that a key is valid before establishing SSL connections with random remote hosts on the Internet. Which of the following should be used in the code? (Select TWO.)

Options

  • AEscrowed keys
  • BSSL symmetric encryption key
  • CSoftware code private key
  • DRemote server public key
  • EOCSP

How the community answered

(38 responses)
  • A
    3% (1)
  • B
    79% (30)
  • C
    13% (5)
  • D
    5% (2)

Why each option

To verify SSL key validity before establishing connections, the application must use the SSL session's symmetric encryption key and check certificate revocation status via OCSP. These two mechanisms together ensure both the encryption channel and the certificate's current validity are confirmed.

AEscrowed keys

Escrowed keys are copies of cryptographic keys held by a third party for recovery purposes and are not involved in runtime SSL connection validation or certificate verification.

BSSL symmetric encryption keyCorrect

During an SSL/TLS handshake, a symmetric session key is negotiated and used to encrypt the actual data channel; the application code must handle and validate this SSL symmetric encryption key to properly establish and verify the secure connection.

CSoftware code private key

A software code private key is used for code signing to verify software integrity and authenticity, not for validating SSL certificates of remote hosts during network connections.

DRemote server public key

While a remote server's public key is part of its certificate, simply having the public key does not provide a mechanism to verify whether that key/certificate is still valid or has been revoked; OCSP fills that role.

EOCSPCorrect

OCSP (Online Certificate Status Protocol) allows the application to query a certificate authority in real time to determine whether a remote server's certificate has been revoked, ensuring the key/certificate being presented is still valid before trusting the connection.

Concept tested: SSL certificate validation and revocation checking in code

Source: https://learn.microsoft.com/en-us/dotnet/framework/network-programming/certificate-selection-and-validation

Topics

#OCSP#certificate validation#SSL/TLS#key verification

Community Discussion

No community discussion yet for this question.

Full SY0-501 Practice