Topic 1 Question 122
You are building an application that runs on Cloud Run. The application needs to access a third-party API by using an API key. You need to determine a secure way to store and use the API key in your application by following Google-recommended practices. What should you do?
Save the API key in Secret Manager as a secret. Reference the secret as an environment variable in the Cloud Run application.
Save the API key in Secret Manager as a secret key. Mount the secret key under the /sys/api_key directory, and decrypt the key in the Cloud Run application.
Save the API key in Cloud Key Management Service (Cloud KMS) as a key. Reference the key as an environment variable in the Cloud Run application.
Encrypt the API key by using Cloud Key Management Service (Cloud KMS), and pass the key to Cloud Run as an environment variable. Decrypt and use the key in Cloud Run.
ユーザの投票
コメント(6)
- 正解だと思う選択肢: A
It should be A
👍 2Jason_Cloud_at2023/10/26 - 正解だと思う選択肢: A
A is answer. B is wrong because: Cloud Run does not allow you to mount secrets at /dev, /proc and /sys, or on their subdirectories.
👍 2lelele20232023/11/08 A is the right answer as per my openion
👍 1PrayasMohanty2023/10/05
シャッフルモード