Google Cloud Professional Cloud Architect — Question 20

You are designing a mobile chat application. You want to ensure people cannot spoof chat messages, by providing a message were sent by a specific user.
What should you do?

Answer options

Correct answer: C

Explanation

The correct answer is C because using public key infrastructure (PKI) and encrypting the message with the originating user's private key ensures that only that user could have sent the message, preventing spoofing. Option A does not provide sufficient security as client-side tagging can be easily manipulated. Option B, while it encrypts the message, does not authenticate the sender. Option D is focused on secure communication but does not address message authenticity.