Design secure access to AWS resources

Concepts covered in Design secure access to AWS resources
Granular Authorization and Cross-Account Access
Global Attempts: 0Correct: 0 |  Incorrect: 0
Accuracy: 0%
Identity Federation and IAM Identity Center
Global Attempts: 0Correct: 0 |  Incorrect: 0
Accuracy: 0%
Multi-Account Security and Governance
Global Attempts: 0Correct: 0 |  Incorrect: 0
Accuracy: 0%
Root User and Credential Best Practices
Global Attempts: 0Correct: 0 |  Incorrect: 0
Accuracy: 0%

Practice, Analyze & Improve

Dont just read—test your knowledge! Unlock the Student Workspace to take chapter tests and get instant performance insights.

Deep Analytics

Peer Comparison

Track Progress

Claim Free Account100% Free • No credit card required
Do you belong in the Top 10%?

Our analytics show that most students struggle with specific concepts in Design secure access to AWS resources. Take a free diagnostic test to generate your personal Learning DNA profile.

Practice Test – MCQs, True/False

Top

Multiple Choice Questions

A.

Enable Amazon Macie at the organization level and configure an automated response using Amazon EventBridge and AWS Lambda to revert public access changes.

B.

Configure an AWS Config managed rule (s3-account-level-public-access-blocks) across all accounts and enable AWS Systems Manager automated remediation.

C.

Enable the Amazon S3 policy type in AWS Organizations and attach an S3 policy with public_access_block_configuration set to 'all' to every member-account OU, leaving the management account outside the policy scope.

D.

Create an IAM Permissions Boundary that denies 's3:PutAccountPublicAccessBlock' and globally attach it to all IAM roles across the organization using AWS CloudFormation StackSets.
Correct Answer: C

Solution:

Option C is correct because Amazon S3 policies in AWS Organizations can centrally enforce all four S3 Block Public Access settings across accounts in an organization. When attached to the member-account OUs, the organization-level policy overrides account-level settings, so local administrators cannot disable the effective Block Public Access configuration. Scoping the policy to the member-account OUs leaves the management account unaffected. Option A is incorrect because Macie is not the mechanism for enforcing S3 Block Public Access and the proposed remediation is reactive. Option B is incorrect because AWS Config is detective and remediation occurs after a noncompliant state exists. Option D is incorrect because permissions boundaries are IAM controls that must be applied to identities and do not provide organization-level S3 configuration enforcement.

Chapter Concept:

Multi-Account Security and Governance

A.

Activate the strongly recommended AWS Control Tower detective control that checks whether attached EBS volumes are encrypted and use its compliance status to enforce the setting.

B.

Enable the AWS Config rule ec2-ebs-encryption-by-default as a detective control and attach an AWS Systems Manager remediation runbook.

C.

Attach a Service Control Policy (SCP) to the organization root that explicitly denies the 'ec2:DisableEbsEncryptionByDefault' action for member accounts.

D.

Use AWS Systems Manager State Manager to continually enforce the EBS encryption configuration on a scheduled polling interval across all target accounts.
Correct Answer: C

Solution:

Option C is correct because the scenario states that EBS encryption by default is already enabled as part of the account baseline and asks specifically how to prevent administrators from disabling it. The EC2 DisableEbsEncryptionByDefault API action can be explicitly denied by an SCP, providing preventive organization-level enforcement that local IAM administrators and member-account root users cannot bypass. Option A is incorrect because the relevant Control Tower control for EBS encryption of attached volumes is a detective control and does not enforce the account-level EBS encryption-by-default setting. Option B is incorrect because AWS Config is detective and remediation is reactive. Option D is incorrect because scheduled State Manager enforcement leaves a period during which the setting could be disabled.

Chapter Concept:

Multi-Account Security and Governance

A.

Deploy an AWS Config rule via AWS CloudFormation StackSets to evaluate region compliance and automatically delete non-compliant resources using AWS Systems Manager.

B.

Create a globally applied IAM Permissions Boundary that allows actions only if 'aws:RequestedRegion' matches the two approved Regions, and attach it to all developer roles.

C.

Use AWS CloudTrail and Amazon EventBridge to monitor resource 'Create' events globally, triggering an AWS Lambda function to automatically terminate resources outside the approved Regions.

D.

Attach a Service Control Policy (SCP) to the organization root with a 'Deny' statement for all actions where the 'aws:RequestedRegion' condition string does not equal eu-central-1 or eu-west-1, while including an explicit exception list (NotAction) for required global-service API actions.
Correct Answer: D

Solution:

Option D is correct because an SCP with an explicit Deny and a StringNotEquals condition for aws:RequestedRegion provides preventive organization-level enforcement of approved Regions. The SCP should use NotAction to exempt required global-service APIs that do not operate through the approved Regional endpoints. Option A and Option C are incorrect because they are reactive remediation workflows that allow out-of-Region resources to be created before remediation occurs. Option B is incorrect because permissions boundaries must be consistently attached to identities and do not provide the same organization-level preventive enforcement as an SCP.

Chapter Concept:

Multi-Account Security and Governance

A.

Create an AWS Lambda function triggered by AWS Organizations CreateAccount events to deploy a CloudTrail trail in the new account via AWS CloudFormation.

B.

Deploy an AWS Control Tower landing zone to automate account provisioning, which natively establishes centralized CloudTrail logging and applies preventive controls against tampering.

C.

Use AWS Systems Manager Quick Setup to configure Organization-wide centralized logging, and apply IAM resource policies to restrict local admins from modifying the trails.

D.

Enable AWS Config multi-account, multi-region data aggregation and use a custom remediation rule to recreate CloudTrail trails if they are deleted.
Correct Answer: B

Solution:

Option B is correct because AWS Control Tower provides a managed multi-account landing zone with centralized logging through an organization-level CloudTrail trail and a dedicated Log Archive account. Control Tower also provides preventive controls that restrict member-account administrators from modifying the Control Tower-managed CloudTrail configuration. Option A is incorrect because a custom event-driven framework introduces additional development and maintenance overhead. Option C is incorrect because IAM policies alone do not provide the same organization-level preventive enforcement against privileged member-account administrators. Option D is incorrect because recreating trails after deletion is reactive and can result in an audit-log gap.

Chapter Concept:

Multi-Account Security and Governance

A.

Deploy an IAM policy across the Marketing and Sales OUs that denies 'sagemaker:' actions, and use AWS CloudTrail to monitor for any policy modifications.

B.

Configure AWS Budgets in the Marketing and Sales accounts to send an Amazon SNS notification when SageMaker costs exceed $0, and trigger an AWS Lambda function to terminate the resources.

C.

Attach a Service Control Policy (SCP) to the Marketing and Sales OUs containing an explicit 'Deny' statement for all 'sagemaker:' actions.

D.

Use AWS Config to track the deployment of SageMaker resources globally and implement an AWS Systems Manager Automation document to quarantine the resources in unauthorized OUs.
Correct Answer: C

Solution:

Option C is correct because Service Control Policies define the maximum available permissions for member accounts in an organization or OU. By attaching an explicit Deny for sagemaker:* to the Marketing and Sales OUs, SageMaker API calls in those accounts are prevented at the organization level. The explicit Deny overrides local IAM Allow policies, including permissions held by local administrators. Option A is incorrect because IAM policies are account-level identity controls and do not provide equivalent OU-level organization enforcement. Options B and D are incorrect because they are reactive controls that allow resources to be launched and potentially incur costs before remediation.

Chapter Concept:

Multi-Account Security and Governance

A.

Build a custom multi-account framework using AWS Organizations APIs and automate the baseline configurations using a CI/CD pipeline integrated with AWS Systems Manager.

B.

Use AWS Resource Access Manager (AWS RAM) to share central logging and security resources across newly created accounts within AWS Organizations.

C.

Utilize AWS CloudFormation StackSets deployed from the management account to manually provision the required baseline accounts and identity architecture.

D.

Implement AWS Control Tower to automatically provision a secure landing zone, which natively establishes the required organizational structure, centralized logging, IAM Identity Center integration, and configurable network baselines.
Correct Answer: D

Solution:

Option D is correct because AWS Control Tower provides a managed multi-account landing zone with Account Factory, IAM Identity Center integration, centralized logging, governance controls, and configurable network settings. Account Factory can provision standardized account and VPC configurations, while Account Factory Customizations can add organization-specific baseline resources when required. Option A is incorrect because building a custom framework introduces substantial development and maintenance overhead. Option B is incorrect because AWS RAM shares supported resources but does not provision and govern complete AWS accounts. Option C is incorrect because StackSets alone do not provide the integrated account-vending, governance, identity, and landing-zone capabilities provided by Control Tower.

Chapter Concept:

Multi-Account Security and Governance

A.

Apply a Service Control Policy (SCP) at the organization root that explicitly denies the 'guardduty:DeleteDetector' action for all member accounts.

B.

Use AWS Control Tower to deploy a detective control that monitors GuardDuty status and triggers a remediation Lambda if an administrator disables it.

C.

Create an IAM Permissions Boundary that denies the 'guardduty:DeleteDetector' action and mandate its use for all administrators via company policy.

D.

Configure an Amazon EventBridge rule in each member account to detect GuardDuty disablement events and route them to a central SNS topic for immediate manual intervention.
Correct Answer: A

Solution:

Option A is correct because GuardDuty is already enabled in the scenario, so the required control is to prevent member-account administrators from deleting the detector and thereby disabling GuardDuty. An explicit SCP Deny for guardduty:DeleteDetector applies to member accounts and cannot be overridden by an IAM Allow, including permissions held by the member-account root user. Option B is incorrect because detective monitoring and remediation allow a period in which GuardDuty could be disabled. Option C is incorrect because an IAM permissions boundary is an identity-level control that is not inherently enforced on every future privileged identity in a member account. Option D is incorrect because event monitoring and manual intervention are reactive rather than preventive.

Chapter Concept:

Multi-Account Security and Governance

A.

Set up AWS Service Catalog in a central account to provision AWS CloudFormation templates that call the AWS Organizations CreateAccount API.

B.

Deploy AWS Control Tower and utilize Account Factory, with Account Factory Customization where required, to automate the provisioning of new accounts with pre-configured network baselines and governance controls.

C.

Create an AWS Lambda function triggered by Amazon EventBridge when a new account is added to AWS Organizations, which subsequently runs AWS Systems Manager Automation documents.

D.

Use AWS OpsWorks to orchestrate Chef recipes that initialize the required compliance configurations every time a new account is detected.
Correct Answer: B

Solution:

Option B is correct because AWS Control Tower Account Factory provides a managed account-vending capability for standardized AWS accounts. Account Factory supports predefined network configurations, governance controls, and account customization through blueprints when additional IAM roles or AWS Config resources are required. Option A is incorrect because it requires custom account-vending engineering around Service Catalog and the Organizations API. Option C is incorrect because Lambda and Systems Manager introduce a custom automation framework that the managed Account Factory capability avoids. Option D is incorrect because AWS OpsWorks is intended primarily for configuration management of workloads rather than organization-level account provisioning and governance.

Chapter Concept:

Multi-Account Security and Governance

A.

Create a centralized Amazon S3 bucket in the Organizations Management account, configure all member accounts to write their CloudTrail logs to this bucket, and use S3 Object Lock for immutability.

B.

Configure AWS Systems Manager to collect logs from member accounts and export them to an Amazon DynamoDB table located in a centralized auditing account.

C.

Implement AWS Control Tower to automatically provision a dedicated Log Archive account, which natively centralizes and secures CloudTrail and Config logs into an access-restricted S3 bucket with preventive controls.

D.

Use Amazon Kinesis Data Firehose in each member account to stream logs to a central Amazon Redshift cluster for immutable storage and querying.
Correct Answer: C

Solution:

Option C is correct because AWS Control Tower implements the multi-account logging pattern with a dedicated Log Archive account and centralized Amazon S3 storage for CloudTrail and AWS Config logs. Control Tower also provides preventive controls that protect the logging configuration and Log Archive resources from unauthorized modification or deletion by member-account administrators. Option A is incorrect because the requirement explicitly calls for an isolated logging account, and placing the log repository in the Organizations Management account violates that separation-of-duties requirement. Option B and Option D are incorrect because they introduce custom logging pipelines and use storage architectures that are not the native AWS multi-account logging pattern for this requirement.

Chapter Concept:

Multi-Account Security and Governance

A.

Implement AWS Config Rules with aggressive polling intervals and automated AWS Systems Manager remediation runbooks.

B.

Deploy an IAM Resource Policy on all KMS keys and an identity-based policy for EC2 that explicitly denies deletion actions.

C.

Use AWS Trusted Advisor organizational view to continuously monitor for KMS key deletion and VPC Flow Log suspension events.

D.

Attach a Service Control Policy (SCP) to the organization root with explicit 'Deny' statements for 'kms:ScheduleKeyDeletion' and 'ec2:DeleteFlowLogs'.
Correct Answer: D

Solution:

Option D is correct because Service Control Policies provide centralized preventive authorization controls for member accounts. An explicit Deny for kms:ScheduleKeyDeletion prevents member-account principals, including the member-account root user, from scheduling customer managed KMS keys for deletion, while an explicit Deny for ec2:DeleteFlowLogs prevents deletion of VPC Flow Logs. SCPs cannot be overridden by local IAM Allow policies. The management account is not affected by SCPs, so the requirement is explicitly scoped to member accounts. Option A is incorrect because AWS Config and Systems Manager remediation are detective and reactive controls. Option B is incorrect because local IAM and KMS resource policies can be modified by sufficiently privileged account administrators and do not provide organization-level preventive enforcement. Option C is incorrect because Trusted Advisor is a monitoring and recommendation service, not a preventive authorization control.

Chapter Concept:

Multi-Account Security and Governance

A.

Deploy AWS Directory Service Simple AD in the organization management account, and configure a scheduled AWS Lambda function to synchronize users from the on-premises directory.

B.

Create an IAM SAML 2.0 identity provider and corresponding IAM roles individually in each of the 200 member accounts, and configure Active Directory Federation Services (AD FS) claim rules.

C.

Deploy AWS Managed Microsoft AD in a centralized shared services account, establish a one-way forest trust with the on-premises AD, and provision local IAM users in each member account.

D.

Deploy an AWS Directory Service AD Connector in the AWS Organizations management account, establish private network connectivity to the on-premises Active Directory over AWS Direct Connect or AWS Site-to-Site VPN, and configure AWS IAM Identity Center to use AD Connector as its identity source.
Correct Answer: D

Solution:

Option D is correct because AD Connector acts as a directory gateway that redirects authentication requests to the existing on-premises Active Directory without replicating the directory data into AWS. IAM Identity Center can use AD Connector as its identity source, providing centralized workforce access to multiple AWS accounts through the AWS access portal and supporting AWS CLI access. This avoids deploying domain controllers in AWS and minimizes operational overhead. Option A is incorrect because Simple AD is an independent directory and is not a proxy for an existing on-premises AD environment. Option B is technically possible but requires managing SAML providers and IAM roles across 200 accounts, creating substantially more operational overhead than IAM Identity Center. Option C is incorrect because AWS Managed Microsoft AD requires directory infrastructure in AWS and provisioning IAM users in individual accounts defeats centralized identity management. When AD Connector is used as the IAM Identity Center identity source, the connector must reside in the Organizations management account or, where applicable, the IAM Identity Center delegated administrator account.

Chapter Concept:

Identity Federation and IAM Identity Center

Unlock the Detailed Solution
Sign in to view options, correct answers, and step-by-step logic.

A.

Use Amazon Cognito Identity Pools (Federated Identities) to exchange the mobile identity provider tokens for temporary, scoped AWS credentials using AWS STS AssumeRoleWithWebIdentity.

B.

Configure AWS IAM Identity Center with social identity provider integration and generate long-term IAM access keys for the mobile application to retrieve S3 objects.

C.

Deploy an AWS Lambda function behind Amazon API Gateway that validates the user token and invokes AWS STS GetSessionToken using hardcoded administrator IAM access keys.

D.

Configure AWS Directory Service Simple AD to register mobile app users and issue temporary IAM session credentials upon successful login.
Correct Answer: A

Solution:

Option A is correct because Amazon Cognito Identity Pools can exchange authenticated identities from supported public identity providers for temporary, scoped AWS credentials. Those credentials can be used by the mobile application to access private S3 objects directly, avoiding an intermediate application server and eliminating long-term AWS credentials from the mobile binary. Option B is incorrect because IAM Identity Center is designed primarily for workforce identity and AWS account access, not public consumer application authentication, and long-term credentials must never be embedded in a mobile application. Option C is incorrect because hardcoded administrator credentials create a severe security vulnerability and GetSessionToken is not the mechanism for exchanging a web identity token. Option D is incorrect because Simple AD is an enterprise directory service and is not a consumer identity federation mechanism for mobile applications.

Chapter Concept:

Identity Federation and IAM Identity Center

Unlock the Detailed Solution
Sign in to view options, correct answers, and step-by-step logic.

A.

Use AWS Control Tower to deploy AWS CloudFormation StackSets containing custom IAM roles, trust policies, and permissions boundaries into each analytical account.

B.

Configure an IAM SAML 2.0 identity provider in each target account, write custom trust policies on local IAM roles, and configure SCIM synchronization via an Amazon EventBridge rule.

C.

Enable AWS IAM Identity Center as an organization instance, configure the external identity provider with SCIM provisioning, and assign multi-account Permission Sets to the DataEngineering group for the analytical accounts.

D.

Create cross-account IAM roles in each member account that trust a central security account, and use AWS Systems Manager Automation to synchronize group memberships across accounts.
Correct Answer: C

Solution:

Option C is correct because AWS IAM Identity Center provides centralized workforce access management across AWS accounts. External identity providers can provision users and groups through SCIM, while Permission Sets define the permissions centrally and are provisioned as IAM roles in the target accounts. Assigning the DataEngineering group to the appropriate analytical accounts and Permission Set eliminates the need to manually maintain IAM roles in each account. Option A requires maintaining custom IAM-role templates and does not provide the same native identity lifecycle integration. Option B requires configuring federation independently in each account and the proposed EventBridge-based SCIM synchronization is not a native SCIM mechanism. Option D introduces unnecessary cross-account role and synchronization complexity.

Chapter Concept:

Identity Federation and IAM Identity Center

Unlock the Detailed Solution
Sign in to view options, correct answers, and step-by-step logic.

A.

Configure System for Cross-domain Identity Management (SCIM) protocol synchronization between the external identity provider and AWS IAM Identity Center.

B.

Set up an AWS Lambda function triggered by Amazon EventBridge to poll the external identity provider's graph API every hour and invoke the IAM CreateUser and DeleteUser APIs.

C.

Configure an AWS Directory Service AD Connector between the external identity provider and all individual AWS member accounts.

D.

Deploy AWS Systems Manager State Manager across all accounts to reconcile IAM role trust policies against the corporate directory daily.
Correct Answer: A

Solution:

Option A is correct because SCIM provides automated provisioning, updating, and deprovisioning of users and groups between supported external identity providers and IAM Identity Center. This removes the need for administrators to manually maintain the IAM Identity Center identity store for lifecycle changes. Option B is incorrect because it introduces custom polling and attempts to manage IAM users rather than the IAM Identity Center identity store. Option C is incorrect because AD Connector is designed to connect AWS services to Microsoft Active Directory and is not a generic connector for cloud-based SAML/SCIM identity providers. Option D is incorrect because Systems Manager State Manager manages configuration state and does not provide identity lifecycle synchronization.

Chapter Concept:

Identity Federation and IAM Identity Center

Unlock the Detailed Solution
Sign in to view options, correct answers, and step-by-step logic.

A.

Create distinct IAM roles in every account for every unique combination of department and project, and assign users statically using IAM Identity Center groups.

B.

Configure 'Department' and 'Project' as IAM Identity Center access control attributes sourced from the external identity provider, pass those attributes as session tags, and configure IAM Identity Center permission set policies using the 'aws:PrincipalTag' condition key to require matching EC2 resource tags.

C.

Configure an Amazon EventBridge rule that intercepts EC2 API calls, queries the external IdP via an AWS Lambda function, and terminates any instance accessed by an unauthorized user.

D.

Attach a Service Control Policy (SCP) to all organizational units that explicitly denies all EC2 actions unless the user's IAM username matches the instance tag value.
Correct Answer: B

Solution:

Option B is correct because IAM Identity Center supports ABAC by configuring access control attributes and passing those attributes into IAM as session tags. Permission Set policies can then use the aws:PrincipalTag condition key to compare the authenticated user's attributes with EC2 resource tags. This allows the same permission set to serve many users and projects without creating a separate role for every department/project combination. Option A creates role and assignment proliferation. Option C is reactive and does not prevent the unauthorized API call. Option D is not an appropriate fine-grained authorization mechanism for this use case and matching IAM usernames to project or department resource tags would not provide scalable attribute-based access control.

Chapter Concept:

Identity Federation and IAM Identity Center

Unlock the Detailed Solution
Sign in to view options, correct answers, and step-by-step logic.
Experience the StudyTunnel Method

We do not just give you mock tests. We guide you through a gamified, AI-driven learning path designed to guarantee mastery.

Step 1: Practicing the Concepts

Design secure access to AWS resources

Step 2: Master Boss Exam
Locked • Full Phase Assessment
Step 3: Redemption Arena
Locked • AI Weakness Tracker