PCSE Practice Question: Configuring Access Within a Cloud Solution Environment
A company wants to enforce that only users from a specific domain (example.com) can be granted IAM roles on any resource in their organization. Which two steps are required? (Choose two.)
Answer choices
Why each option matters
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
✓
Configure Cloud Identity or Google Workspace to manage the example.com domain.
Enforcing allowed member domains requires setting the organization policy constraint 'constraints/iam.allowedPolicyMemberDomains' to include example.com. Additionally, configuring Cloud Identity or Google Workspace with the domain is necessary for the constraint to work. IAM deny policies are not used. Custom roles are not required. Cloud Directory Sync is for syncing users, not enforcement.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
Create custom roles that only allow users from example.com.
Why it's wrong here
Custom roles do not restrict membership by domain.
- ✓
Configure Cloud Identity or Google Workspace to manage the example.com domain.
Why this is correct
The constraint requires the domain to be managed by Cloud Identity/Workspace.
- ✓
Set the organization policy constraint 'constraints/iam.allowedPolicyMemberDomains' to include example.com.
Why this is correct
This constraint restricts IAM members to specified domains.
- ✗
Create an IAM deny policy to deny access to users from other domains.
Why it's wrong here
Deny policies are not the mechanism for domain restriction.
- ✗
Use Cloud Directory Sync to sync only example.com users.
Why it's wrong here
Sync does not enforce domain restrictions on IAM.
Go deeper
Related to this question
About these practice questions
One of 960 original PCSE practice questions on Courseiva, each with a full explanation and wrong-answer analysis — not exam dumps or protected exam content. Learn why practice questions differ from exam dumps →
JA
Written by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
This PCSE practice question is part of Courseiva's free Google Cloud certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the PCSE exam.