Final answer:
User A needs to encrypt the message with User B's public key to ensure that only User B can decrypt and read it using their private key. This method uses asymmetric cryptography to secure the communication.
Step-by-step explanation:
In order for User A to send User B an encrypted message that only User B can read, User A must encrypt the message with User B's public key. The process of encryption and decryption in this context is based on public key cryptography, also known as asymmetric cryptography. This means that there are two keys: a public key that can be shared openly and a private key that must be kept secret. When User A encrypts the message with User B's public key only User B's corresponding private key can decrypt it.
This ensures that only User B who possesses the private key can read the message. Encrypting with User A's keys would not achieve the goal of only User B being able to read the message. Therefore the correct answer is D) Only User B's public key.