A company is using AWS Organizations with a multi-account architecture. The company's current security configuration for the account architecture includes SCPs, resource-based policies, identity-based policies, trust policies, and session policies.
A solutions architect needs to allow an IAM user in Account A to assume a role in Account B.
Which combination of steps must the solutions architect take to meet this requirement? (Select THREE.)
Answer : B, C, E
Resource-based policies are policies that you attach to a resource, such as an IAM role, to specify who can access the resource and what actions they can perform on it1.Identity-based policies are policies that you attach to an IAM user, group, or role to specify what actions they can perform on which resources2.Trust policies are special types of resource-based policies that define which principals (such as IAM users or roles) can assume a role3.
To allow an IAM user in Account A to assume a role in Account B, the solutions architect needs to do the following:
Configure the resource-based policy on the target role in Account B to allow the action sts:AssumeRole for the IAM user in Account A.This policy grants permission to the IAM user to assume the role4.
Configure the identity-based policy on the user in Account A to allow the action sts:AssumeRole for the target role in Account B.This policy grants permission to the user to perform the action of assuming the role5.
Configure the trust policy on the target role in Account B to allow the principal of the IAM user in Account A. This policy defines who can assume the role.
Resource-based policies
Identity-based policies
Trust policies
Granting a user permissions to switch roles
Switching roles
[Modifying a role trust policy]
A company recently deployed an application on Amazon ECS with the Fargate launch type. The company uses an AWS CloudFormation template to deploy the application. The company wants to identify over-provisioned resources and to update identified resources to optimize costs.
Which solution will meet these requirements?
Answer : A
Option A is correct because AWS Compute Optimizer provides right-sizing recommendations for Amazon ECS services on AWS Fargate, including task CPU, task memory, and container-level CPU and memory values. Since the workload is deployed through CloudFormation, the correct operational path is to update the ECS task definition in the CloudFormation template and redeploy the stack. That keeps infrastructure as code as the source of truth. Target tracking policies adjust the number of running tasks, not the CPU and memory size assigned to each Fargate task, so option B does not directly fix over-provisioned task resources. Cost Explorer Reserved Instance reports are not the right tool for Fargate task right-sizing because Fargate does not use EC2 Reserved Instances in the same way.
A company wants to migrate its on-premises application to AWS. The database for the application stores structured product data and temporary user session data. The company needs to decouple the product data from the user session data. The company also needs to implement replication in another AWS Region for disaster recovery.
Which solution will meet these requirements with the HIGHEST performance?
Answer : B
A company's inventory application stores data in an Amazon Aurora PostgreSQL DB cluster in a single AWS Region. The company wants to improve resiliency by extending the database infrastructure to a secondary Region. The company wants an RTO of 15 minutes and an RPO of 5 minutes. The solution must not run Aurora DB instances in the secondary Region when the application is operational in the primary Region. Which solution meets these requirements?
Answer : C
Creating a headless Aurora DB cluster in the secondary Region as part of an Aurora global database ensures continuous, low-latency replication without running active instances in the secondary Region.
This configuration meets the RTO and RPO requirements by allowing rapid promotion of the secondary cluster in a failover scenario.
It also reduces operational costs compared to continuously running standby instances in the secondary Region.
This aligns with AWS best practices for DR and cross-Region resiliency.
A company uses IAM Identity Center for data scientist access. Each user should be able to accessonly their own datain an S3 bucket. The company also needs to generatemonthly access reportsper user.
Options:
Answer : A, C
A: Use dynamic IAM policies with {aws:PrincipalTag/userName} to enforceprefix-level access control--- i.e., bucket/userA/*, bucket/userB/*.
C: Enable CloudTraildata eventsto capture object-level access andquery them withAthena. This is the AWS-recommended way to audit per-user object access.
Incorrect:
B doesn't provide user isolation.
D only capturesmanagement events, not object-level data access.
E is legacy, inefficient, and not structured for per-user auditing.
A company has a transit gateway that connects multiple VPCs in the same AWS Region. The company needs a centralized way to inspect network traffic and allow internet access for the workload VPCs.
Which solution meets these requirements?
Answer : D
The company needs centralized traffic inspection and centralized internet access for multiple workload VPCs connected by a transit gateway. The standard AWS hub-and-spoke pattern for centralized inspection is to use an inspection VPC that hosts network virtual appliances behind a Gateway Load Balancer, and to steer traffic from spoke VPCs through the transit gateway to the inspection VPC. Gateway Load Balancer endpoints are used to privately connect VPCs to the GWLB, allowing traffic to be transparently redirected to the appliances for inspection without changing application configurations.
To ensure symmetric routing for stateful inspection (so that return traffic traverses the same appliance path), appliance mode is enabled on the transit gateway attachment that connects to the inspection VPC. Appliance mode is specifically used with transit gateways and third-party appliances to preserve flow symmetry and avoid asymmetric routing issues.
Option D matches the centralized model: it creates a dedicated inspection VPC that contains the GWLB, endpoints, and the inspection appliance. It updates workload VPC routes to send traffic to the transit gateway and configures the transit gateway route tables to forward relevant traffic to the GWLB endpoints in the inspection VPC. Enabling appliance mode on the transit gateway is the key operational setting to maintain symmetric routing through the appliance fleet for inspected traffic.
Option A is incorrect because it places the inspection components inside an existing workload VPC rather than using a centralized inspection VPC. This increases coupling, makes the architecture harder to manage, and does not match the typical centralized inspection pattern. It also references enabling appliance mode on the GWLB, whereas appliance mode is a transit gateway attachment feature used for routing symmetry with appliances, not a setting ''on the GWLB'' itself.
Option B is incorrect because it splits the GWLB and endpoints/appliances across different workload VPCs, which complicates the design and is not the intended GWLB pattern. GWLB endpoints are created in VPCs that need to send traffic to the GWLB service; the appliances sit behind the GWLB in the provider/inspection VPC. The option also refers to enabling appliance mode on endpoints, but the appliance mode setting is associated with the transit gateway attachment.
Option C is incorrect because VPC flow logs are for logging and visibility; flow logs do not route traffic. Also, separating ''inspection VPC'' and ''internet access VPC'' with the appliances in the internet VPC does not align with the standard GWLB centralized inspection architecture and introduces unnecessary complexity.
Therefore, creating a dedicated inspection VPC with GWLB and endpoints and enabling appliance mode on the transit gateway attachment is the correct centralized approach.
A company with global offices has a single 1 Gbps AWS Direct Connect connection to a single AWS Region. The company's on-premises network uses the connection to communicate with the company's resources in the AWS Cloud. The connection has a single private virtual interface that connects to a single VPC.
A solutions architect must implement a solution that adds a redundant Direct Connect connection in the same Region. The solution also must provide connectivity to other Regions through the same pair of Direct Connect connections as the company expands into other Regions.
Which solution meets these requirements?
Answer : A
A Direct Connect gateway is a globally available resource. You can create the Direct Connect gateway in any Region and access it from all other Regions. The following describe scenarios where you can use a Direct Connect gateway.https://docs.aws.amazon.com/directconnect/latest/UserGuide/direct-connect-gateways-intro.html