Professional Cloud Security Engineer free question 6 / 10 · Domain 3: Ensuring data protection
With an asymmetric signing key in Cloud KMS, you signed data with version 1 and then added version 2. What do you prepare to verify the existing signature offline?
- The TLS public key of the Cloud KMS API endpoint that served the signing request
- The public key of the latest key version, which is version 2 of the signing key
- The public key of the service account that requested the signature from Cloud KMS
- The public key of version 1, the key version that was used to create the signature
Show the answer and explanation
Answer: D
Why this is correct
The Cloud KMS documentation on creating and validating digital signatures says that a digital signature is created with the private key part of an asymmetric key and verified with the public key part of the same key. Signing is done with a specific key version, and the "Get the public key" step of the page also takes a key version, so a signature made with version 1 is verified with the public key of version 1. Adding version 2 does not change which version made the earlier signature.
Why the other options are wrong
"The TLS public key of the Cloud KMS API endpoint that served the signing request" … The public key in a TLS certificate authenticates the server you connect to. It is not the key that verifies a data signature that Cloud KMS generated.
"The public key of the service account that requested the signature from Cloud KMS" … The key of the service account that authenticates the requester is separate from the Cloud KMS key that was used to sign the data.
"The public key of the latest key version, which is version 2 of the signing key" … A public key is retrieved for a specific key version, and version 2 did not create this signature. The page has you verify with the public key portion of the key that created it, which here is version 1.
Key point
Keep information that identifies the key version used together with each signature. In an operation that rotates keys, also design how long the public keys needed to verify old signatures are kept.