QuestionQ97

VerifiedConfiguring access and security

You recently discovered that your developers are using many service account keys during their development process. While you work on a long term improvement, you need to quickly implement a process to enforce short-lived service account credentials in your company. You have the following requirements:

• All service accounts that require a key should be created in a centralized project called pj-sa.

• Service account keys should only be valid for one day.

You need a Google-recommended solution that minimizes cost. What should you do?

Explanation

Organization policy constraints enforce short-lived service account credentials at the organizational level without custom development. The constraint for key lifetime (24 hours) and the denial constraint (with pj-sa exception) directly address the requirement for all service accounts. Cloud Run jobs or Kubernetes CronJobs would require ongoing maintenance and are not the recommended approach.

Community Discussion

No comments yet. Be the first to start the discussion!