Google Cloud Professional Cloud Security Engineer — Question 157

You are developing a new application that uses exclusively Compute Engine VMs. Once a day, this application will execute five different batch jobs. Each of the batch jobs requires a dedicated set of permissions on Google Cloud resources outside of your application. You need to design a secure access concept for the batch jobs that adheres to the least-privilege principle.

What should you do?

Answer options

Correct answer: D

Explanation

Option D is correct as it ensures that each batch job runs with the least privilege by using dedicated service accounts with only the required permissions. It also allows the general service account to obtain short-lived tokens, enhancing security. Options A and B provide broader permissions than necessary, violating the least-privilege principle, while option C, while complex, does not utilize the Service Account Token Creator role effectively for secure access.