Complete the code to create a new service account key using gcloud CLI.
gcloud iam service-accounts keys create key.json --iam-account=[1]The --iam-account flag requires the full service account email to create a key.
Complete the command to list all keys for a service account.
gcloud iam service-accounts keys list --iam-account=[1]The --iam-account flag requires the service account email to list its keys.
Fix the error in the command to delete a service account key by specifying the correct key ID.
gcloud iam service-accounts keys delete [1] --iam-account=my-service-account@example.iam.gserviceaccount.comThe keys delete command requires the key ID, not a file name or email.
Fill both blanks to create a new service account key and save it to a specific file.
gcloud iam service-accounts keys create [1] --iam-account=[2]
The first blank is the file name to save the key. The second blank is the service account email.
Fill all three blanks to list keys, filter by key type, and delete a specific key.
gcloud iam service-accounts keys list --iam-account=[1] --filter='keyType:[2]' && gcloud iam service-accounts keys delete [3] --iam-account=[1]
The service account email is used twice. The filter selects user-managed keys. The key ID is used to delete the key.