nerdexam
Linux_FoundationLinux_Foundation

LFCS · Question #404

LFCS Question #404: Real Exam Question with Answer & Explanation

The correct answer is B: gpg recvkeys UID. To fetch a public key from a public keyserver using a UID or fingerprint, the gpg recvkeys command is the correct utility.

Submitted by kwame.gh· Apr 18, 2026Essential Commands

Question

Someone who wishes to receive an encrypted file has provided a key UID and a key fingerprint for verification to the data sender. Assuming that this key is on a public keyserver, what command will fetch the public key from the server?

Options

  • Agpg findkeys UID
  • Bgpg recvkeys UID
  • Cgpg getkeys UID
  • Dgpg refreshkeys UID

Explanation

To fetch a public key from a public keyserver using a UID or fingerprint, the gpg recvkeys command is the correct utility.

Common mistakes.

  • A. gpg findkeys is not a standard GPG command for retrieving keys from a server; search-keys would be used for searching, and then recv-keys for retrieval.
  • C. gpg getkeys is not a standard GPG command for retrieving keys from a server.
  • D. gpg refreshkeys updates existing keys already present in the local keyring with potentially newer information from a key server, rather than fetching new ones.

Concept tested. GPG public key retrieval

Reference. https://gnupg.org/documentation/manuals/gnupg/Receive-Keys.html

Topics

#gpg#Public Key Cryptography#Key Management#Key Server

Community Discussion

No community discussion yet for this question.

Full LFCS PracticeBrowse All LFCS Questions