Professional Cloud Security Engineer
Your company is developing a new application for your organization. The application consists of two Cloud Run services, service A and service B. Service A provides a web-based user frontend. Service B provides backend services that are called by service A. You need to set up Identity and Access Management for the application. Your solution should follow the principle of least privilege. What should you do?
- A. Create two separate service accounts. Grant one service account the permissions to execute service A, and grant the other service account the permissions to execute service B. Require authentication for service B. Permit only the service account for service A to call the backend.
- B. Create three separate service accounts. Grant one service account the permissions to execute service A. Grant the second service account the permissions to run service Grant the third service account the permissions to communicate between both services A and Require authentication for service Call the backend by authenticating with a service account key for the third service account.
- C. Create a new service account with the permissions to run service A and service B. Require authentication for service B. Permit only the new service account to call the backend.
- D. Use the Compute Engine default service account to run service A and service B. Require authentication for service B. Permit only the default service account to call the backend.