nerdexam
Google

PROFESSIONAL-CLOUD-SECURITY-ENGINEER · Question #377

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…

The correct answer is A. Create two separate service accounts. Grant one service account the permissions to execute. The most secure and least-privilege approach is to assign separate service accounts to each Cloud Run service - one for service A (frontend) and one for service B (backend). You then require authentication for service B and allow only service A’s service account to invoke it…

Submitted by rohit_dlh· Apr 18, 2026Configuring access within a cloud solution environment

Question

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?

Options

  • ACreate two separate service accounts. Grant one service account the permissions to execute
  • BCreate three separate service accounts. Grant one service account the permissions to execute
  • CCreate a new service account with the permissions to run service A and service B. Require
  • DUse the Compute Engine default service account to run service A and service B. Require

How the community answered

(26 responses)
  • A
    73% (19)
  • B
    15% (4)
  • C
    4% (1)
  • D
    8% (2)

Explanation

The most secure and least-privilege approach is to assign separate service accounts to each Cloud Run service - one for service A (frontend) and one for service B (backend). You then require authentication for service B and allow only service A’s service account to invoke it. This isolates permissions, limits exposure, and enforces principle of least privilege between the two

Topics

#IAM#Service Accounts#Cloud Run#Least Privilege

Community Discussion

No community discussion yet for this question.

Full PROFESSIONAL-CLOUD-SECURITY-ENGINEER Practice