Free AWS Solutions Architect Professional sample questions (SAP-C03)

Try these SAP-C03 questions, then open each answer to see why it’s right and why every other option is wrong. They cover all 5 exam domains in roughly the same proportions as the real exam.

Original questions written from the official SAP-C03 exam guide and AWS documentation. Not real exam questions or dumps. Last reviewed Dec 3, 2026.

Architecture Design and Implementation Built for the CloudQuestion 1

A European insurer runs a claims-summarization application in eu-central-1 that calls an Anthropic Claude model on Amazon Bedrock. During month-end peaks, the application receives ThrottlingException errors. Regulations require that prompts and completions are processed only in AWS Regions inside the EU. The company's organization uses a Region-deny SCP that blocks all actions outside eu-central-1 and eu-west-1. The company wants to absorb the peaks without long-term capacity commitments and without opening additional Regions to other AWS services. What should a solutions architect do?

Choose one.

  1. ASwitch the application to the global cross-Region inference profile for the model, which routes requests to any commercial Region that has available capacity at a lower price.
  2. BPurchase Provisioned Throughput with a 1-month commitment for the model in eu-central-1, size it for the month-end peak, and send all of the application's requests to the Provisioned Throughput.
  3. CDeploy a second copy of the application in eu-west-1, use Amazon Route 53 weighted routing to split traffic between the two Regions, and have each copy invoke the model in its own Region so that both Regional on-demand quotas are used.
  4. DInvoke the model through the EU geographic cross-Region inference profile, and add a Region-deny SCP exception for Amazon Bedrock requests whose bedrock:InferenceProfileArn matches that EU profile.
Show answer

Answer: D

A geographic (EU) cross-Region inference profile spreads requests across EU Regions only, and AWS documents using bedrock:InferenceProfileArn in a Region-deny SCP to permit that routing without opening other Regions to other services.

The correct answer is "Invoke the model through the EU geographic cross-Region inference profile, and add a Region-deny SCP exception for Amazon Bedrock requests whose bedrock:InferenceProfileArn matches that EU profile". Geographic cross-Region inference keeps processing inside the named geography and lets Amazon Bedrock use capacity in several EU Regions to absorb bursts, with no extra routing charge and no commitment. Because Bedrock evaluates authorization for the foundation model in each destination Region, a Region-deny SCP would block routing to EU Regions outside the allowlist; an exception keyed on bedrock:InferenceProfileArn allows only that cross-Region routing while the SCP keeps blocking everything else. The global cross-Region inference profile can route to any supported commercial Region worldwide, which violates the EU-only processing requirement. Provisioned Throughput with a 1-month term is a capacity commitment, which the company wants to avoid. A second deployment in eu-west-1 roughly doubles the application footprint and operational work, and it only adds one Region's capacity instead of letting Bedrock route across the EU geography.

Architecture Design and Implementation Built for the CloudQuestion 2

A SaaS company is adding a RAG-based assistant to its document management product by using Amazon Bedrock Knowledge Bases with an Amazon S3 data source and an Amazon OpenSearch Serverless vector store. About 400 small tenants share the product, and each tenant must only ever receive answers grounded in its own documents. The backend authenticates users with Amazon Cognito, and the tenant ID is a claim in each user's validated token. The company wants to minimize the number of resources it must operate as tenants are added. Which solution meets these requirements?

Choose one.

  1. AAdd a fileName.extension.metadata.json file with a tenant_id attribute for each document, and have the backend apply an equals filter on tenant_id, taken from the validated token, to every Retrieve and RetrieveAndGenerate call.
  2. BUse a single knowledge base without metadata, and add an instruction to the knowledge base prompt template that tells the model to use only the documents that belong to the tenant named in the user's question.
  3. CCreate a separate knowledge base, S3 bucket, and OpenSearch Serverless collection for each tenant, automate their creation with AWS CloudFormation, and route each request to the tenant's knowledge base.
  4. DCreate an Amazon Bedrock guardrail for each tenant with denied topics that describe the other tenants' business areas, and attach the tenant's guardrail to each RetrieveAndGenerate request that the backend sends.
Show answer

Answer: A

Metadata files attach a tenant attribute to every chunk during ingestion, and a server-side metadata filter derived from the authenticated token restricts retrieval to that tenant's chunks in one shared knowledge base.

The correct answer is "Add a fileName.extension.metadata.json file with a tenant_id attribute for each document, and have the backend apply an equals filter on tenant_id, taken from the validated token, to every Retrieve and RetrieveAndGenerate call". For S3 data sources, a fileName.extension.metadata.json file supplies attributes that are stored with each chunk, and Retrieve and RetrieveAndGenerate accept a filter such as equals on tenant_id. Because the backend sets the filter from the validated token rather than from user input, a user cannot widen the search to other tenants, and onboarding a tenant only means adding documents and syncing. A prompt instruction does not restrict what is retrieved; other tenants' chunks still reach the model, and the tenant named in a question is user-controlled input. A separate knowledge base, bucket, and collection per tenant gives strong isolation but multiplies the resources to deploy, sync, and pay for across 400 tenants, which conflicts with the goal. Guardrail denied topics filter content categories; they cannot reliably tell one tenant's documents from another's and do nothing to scope retrieval.

Architecture Design and Implementation Built for the CloudQuestion 3

A company has 40 microservices that are owned by different teams. Each microservice runs in its own AWS account and VPC on AWS Lambda, Amazon ECS on AWS Fargate, or Amazon EC2 Auto Scaling groups, and the services communicate over HTTPS. Most VPCs were created from a template and use the same 10.0.0.0/16 CIDR block. The security team requires that each service call be authorized based on the caller's IAM identity, for example, only the billing service's role may send POST requests to the payments service. The network team does not want to manage route tables, peering connections, or load balancers for each new service. Which solution meets these requirements?

Choose one.

  1. AAttach all the VPCs to a transit gateway that is shared through AWS RAM, and use security groups and network ACLs to restrict calls between services.
  2. BCreate a VPC Lattice service network in a networking account, and share it through AWS RAM. Have each team create a VPC Lattice service with target groups for its Lambda functions, ECS tasks, or instances. Associate the services and client VPCs with the service network, and attach IAM auth policies that clients satisfy by signing requests with SigV4.
  3. CCreate a VPC endpoint service behind a Network Load Balancer for each microservice, and create interface endpoints in every VPC that calls it.
  4. DPeer each VPC with every VPC that it calls, and use Amazon API Gateway private APIs with resource policies for authorization.
Show answer

Answer: B

VPC Lattice connects services across accounts and VPCs, including VPCs with overlapping CIDRs, supports Lambda, ECS, and EC2 targets directly, and uses IAM auth policies with SigV4-signed requests for per-caller authorization.

The correct answer is "Create a VPC Lattice service network in a networking account, and share it through AWS RAM. Have each team create a VPC Lattice service with target groups for its Lambda functions, ECS tasks, or instances. Associate the services and client VPCs with the service network, and attach IAM auth policies that clients satisfy by signing requests with SigV4". VPC Lattice service networks can be shared across accounts with AWS RAM, and VPC Lattice supports overlapping CIDR blocks because clients reach services through VPC Lattice rather than through routed VPC-to-VPC paths. Target groups support Lambda functions, ECS tasks, EC2 instances, IP addresses, Application Load Balancers, and Kubernetes pods, so no per-service load balancer is needed. With the AWS_IAM auth type, requests must be signed with SigV4, and auth policies on the service network and service can allow a specific role and condition on keys such as vpc-lattice-svcs:RequestMethod. A transit gateway can't route between VPCs with identical CIDRs, and security groups can't authorize by IAM identity. An endpoint service per microservice requires a Network Load Balancer for each service and endpoints in every consumer VPC, and it doesn't authorize individual requests by IAM identity. VPC peering isn't possible between VPCs with overlapping CIDR blocks.

Architecture Design and Implementation Built for the CloudQuestion 4

A company operates in eight AWS Regions with about 300 VPCs across many accounts. Today each Region has a transit gateway with separate route tables for production, development, and shared services. The transit gateways are connected with inter-Region peering attachments and static routes that the network team updates by hand. The company wants production and development isolated from each other globally, both able to reach shared services, new VPCs placed into the correct routing domain automatically based on a tag, and all of this defined in a single declarative policy. Which solution meets these requirements with the LEAST operational overhead?

Choose one.

  1. AAdd transit gateway route tables in each Region, and use an Amazon EventBridge rule and an AWS Lambda function to associate new attachments and update static routes across the peering attachments.
  2. BReplace the transit gateways with Amazon VPC Lattice service networks for production, development, and shared services in each Region.
  3. CCreate an AWS Cloud WAN core network whose policy defines core network edges in the eight Regions; production, development, and shared-services segments; attachment policies that map VPC attachments to segments by tag; and segment actions that share the shared-services segment with the other two segments. Share the core network with the organization by using AWS RAM.
  4. DPublish the shared services through AWS PrivateLink endpoint services, and remove all transit gateway attachments between production and development VPCs.
Show answer

Answer: C

Cloud WAN uses one core network policy to define Regions, globally consistent segments, tag-based attachment policies, and route sharing between segments, and it builds the inter-Region mesh automatically.

The correct answer is "Create an AWS Cloud WAN core network whose policy defines core network edges in the eight Regions; production, development, and shared-services segments; attachment policies that map VPC attachments to segments by tag; and segment actions that share the shared-services segment with the other two segments. Share the core network with the organization by using AWS RAM". In AWS Cloud WAN, a single core network policy defines the Regions where core network edges run, segments that act as isolated global routing domains, attachment policies that place attachments into segments based on tags, and segment actions that share routes, such as sharing shared services with production and development. Core network edges peer with each other automatically, which removes the hand-maintained inter-Region peering and static routes, and the core network can be shared across the organization with AWS RAM. More route tables plus EventBridge and Lambda automation keep the manual design and add custom code to maintain. VPC Lattice connects application services, not general IP routing between VPCs. PrivateLink exposes individual services in one direction and doesn't provide routing domains or inter-Region connectivity for the rest of the traffic.

Architecture Design and Implementation Built for the CloudQuestion 5

A data team hosts an Amazon RDS for PostgreSQL database in a private subnet of a VPC (10.0.0.0/16) in a provider account. Analytics teams in five other AWS accounts need private TCP access to that database from their own VPCs, which also use 10.0.0.0/16. The consumers must not gain network access to anything else in the provider VPC, and the data team does not want to run load balancers or maintain a list of IP targets for the database. Which solution meets these requirements?

Choose one.

  1. ACreate a transit gateway, attach all six VPCs, and use transit gateway route tables to allow traffic only to the database subnet.
  2. BCreate a Network Load Balancer with the database's current IP address as a target, publish it as a VPC endpoint service, and have each consumer create an interface endpoint.
  3. CPeer each consumer VPC with the provider VPC, and restrict access with the database's security group.
  4. DCreate a VPC Lattice resource gateway in the provider VPC and an ARN-type resource configuration for the RDS database. Share the resource configuration with the consumer accounts through AWS RAM, and have each consumer create a resource VPC endpoint.
Show answer

Answer: D

A resource configuration of type ARN identifies the RDS database itself, a resource gateway provides ingress without a load balancer, and resource endpoints give consumers unidirectional private access that works with overlapping CIDRs.

The correct answer is "Create a VPC Lattice resource gateway in the provider VPC and an ARN-type resource configuration for the RDS database. Share the resource configuration with the consumer accounts through AWS RAM, and have each consumer create a resource VPC endpoint". VPC Lattice resource configurations make a single resource in a VPC privately reachable from other VPCs and accounts. The ARN type identifies an Amazon RDS database by its ARN, so the data team doesn't maintain IP targets, and the resource gateway is the ingress point, so no load balancer is needed. After the resource configuration is shared through AWS RAM, each consumer creates a resource VPC endpoint (powered by AWS PrivateLink) that reaches only that database, and the database sees traffic from the resource gateway's addresses in the provider VPC, so overlapping CIDRs don't matter. A transit gateway can't route between VPCs with identical CIDR blocks, and VPC peering can't be created between VPCs with overlapping CIDRs. A Network Load Balancer with IP targets is the load balancer the team wants to avoid, and its targets would have to be updated whenever the database's IP address changes.

Security, Compliance, and GovernanceQuestion 6

A company has more than 120 AWS accounts in AWS Organizations, and dozens of teams build applications that call Amazon Bedrock models directly. A new responsible AI policy requires a standard set of content filters, denied topics, and PII filters to be applied to every Amazon Bedrock model invocation in all workload accounts, including invocations from applications that do not specify any guardrail. Teams must not be able to modify or bypass the standard controls, but they may add their own application-specific guardrails. The company wants the least ongoing effort and no application code changes. What should a solutions architect do?

Choose one.

  1. AAttach an SCP that denies Amazon Bedrock inference actions unless the bedrock:GuardrailIdentifier condition key matches the standard guardrail's ARN and version, and ask every team to add that guardrail ID and version to its requests.
  2. BDeploy the guardrail to every member account with AWS CloudFormation StackSets, create an AWS Config custom rule that flags applications whose requests do not include the guardrail, and remediate flagged applications through a ticketing workflow.
  3. CIn the management account, create the guardrail and a numeric version, share it with the organization through a resource-based policy, enable the Amazon Bedrock policy type in AWS Organizations, and attach a Bedrock policy that names the guardrail to the workload OUs.
  4. DRoute all Amazon Bedrock traffic through a central Amazon API Gateway and AWS Lambda proxy in a shared account that calls ApplyGuardrail before and after each model invocation, and use SCPs to deny direct Amazon Bedrock invocation from the workload accounts.
Show answer

Answer: C

Amazon Bedrock Guardrails enforcements use AWS Organizations Amazon Bedrock policies to apply a guardrail automatically to all model invocations in targeted accounts and OUs, layered with any application-level guardrails.

The correct answer is "In the management account, create the guardrail and a numeric version, share it with the organization through a resource-based policy, enable the Amazon Bedrock policy type in AWS Organizations, and attach a Bedrock policy that names the guardrail to the workload OUs". With organization-level enforcement, the guardrail named in the Amazon Bedrock policy is applied to the inputs and outputs of every InvokeModel, InvokeModelWithResponseStream, Converse, and ConverseStream call in the targeted accounts, even when the caller passes no guardrail. Using a numeric version keeps the configuration immutable for member accounts, and when a request also includes an application guardrail, both are enforced, with the most restrictive control taking precedence. Member-account roles also need bedrock:ApplyGuardrail permission on the shared guardrail. The bedrock:GuardrailIdentifier condition key can force callers to include a guardrail, but every team would have to change its code, and requiring the one standard guardrail in the request would stop teams from passing their own guardrails. AWS Config evaluates resource configurations, not individual API requests, so it cannot enforce or reliably detect per-request guardrail use. A central proxy can work, but it requires every application to change endpoints and adds a component that the company must build, scale, and operate.

Security, Compliance, and GovernanceQuestion 7

A company is building an employee productivity agent hosted on Amazon Bedrock AgentCore Runtime. Employees sign in through the company's Microsoft Entra ID tenant. The agent must read and update each employee's own Salesforce records and calendar entries with that employee's delegated permissions after the employee consents once, and it must not be able to reach other employees' data. The security team prohibits storing long-lived third-party credentials in agent code or environment variables. Which solution meets these requirements?

Choose one.

  1. ACreate a Salesforce integration user that can access all records, store its password in AWS Secrets Manager with automatic rotation, and have the agent filter records and calendar entries by the signed-in employee's email address.
  2. BValidate Entra ID tokens with the AgentCore Runtime inbound JWT authorizer, and configure AgentCore Identity OAuth 2.0 credential providers for Salesforce and the calendar that use the user-delegated authorization code flow and keep tokens in the token vault.
  3. CUse an Amazon Cognito identity pool federated with Entra ID to give the agent temporary AWS credentials scoped to each employee, and use those credentials to sign the agent's calls to the Salesforce and calendar APIs.
  4. DConfigure OAuth 2.0 client credentials (machine-to-machine) grants for Salesforce and the calendar service, store the client secrets in the AgentCore Runtime environment variables, and scope each call by the employee's ID.
Show answer

Answer: B

AgentCore Identity validates inbound users through the corporate IdP and uses OAuth 2.0 authorization code (3LO) flows with a token vault, so the agent acts with each user's consented, delegated permissions and no secrets live in code.

The correct answer is "Validate Entra ID tokens with the AgentCore Runtime inbound JWT authorizer, and configure AgentCore Identity OAuth 2.0 credential providers for Salesforce and the calendar that use the user-delegated authorization code flow and keep tokens in the token vault". AgentCore Runtime can authenticate end users with tokens from existing identity providers such as Microsoft Entra ID. For outbound access, AgentCore Identity supports the OAuth 2.0 authorization code grant for user-delegated access with explicit consent, stores tokens encrypted with AWS KMS in its token vault, and releases them only to authorized agents that present proof of workload identity. Each call uses the employee's own scopes, so the agent cannot read other employees' data through that token. A shared integration user gives the agent access to every record and relies on the agent's own filtering, which breaks least privilege and per-user authorization. A Cognito identity pool issues AWS credentials, which Salesforce and third-party calendar APIs do not accept. The client credentials grant is machine-to-machine access with the application's own permissions rather than each user's, and putting client secrets in environment variables breaks the security requirement.

Security, Compliance, and GovernanceQuestion 8

A company runs nightly batch jobs on Linux servers in its data center and on virtual machines hosted by another cloud provider. The jobs write results to Amazon S3 and read secrets from AWS Secrets Manager by using IAM user access keys that are stored in configuration files. A security review requires the company to remove all long-term AWS credentials from these workloads. The company already operates an internal, non-public certificate authority (CA) that issues an X.509 certificate with a unique subject common name (CN) to every server. Which solution meets these requirements with the LEAST operational overhead?

Choose one.

  1. ARegister the internal CA as an IAM Roles Anywhere trust anchor. Create an IAM role that trusts rolesanywhere.amazonaws.com with conditions on the trust anchor ARN and the certificate subject, create a profile for the role, and run the credential helper on each server to obtain temporary credentials.
  2. BStore the access keys in Secrets Manager with automatic rotation, and have each job retrieve the current access key when it starts.
  3. CConnect the servers to AWS IAM Identity Center by creating a user for each server and assigning a permission set to each user.
  4. DCreate an Amazon Cognito identity pool with unauthenticated access enabled, and grant the unauthenticated role permissions for Amazon S3 and Secrets Manager.
Show answer

Answer: A

IAM Roles Anywhere exchanges X.509 certificates issued by a registered CA for temporary IAM role credentials, so workloads outside AWS no longer need access keys.

The correct answer is "Register the internal CA as an IAM Roles Anywhere trust anchor. Create an IAM role that trusts rolesanywhere.amazonaws.com with conditions on the trust anchor ARN and the certificate subject, create a profile for the role, and run the credential helper on each server to obtain temporary credentials". IAM Roles Anywhere lets workloads that run outside AWS obtain temporary security credentials by authenticating with X.509 certificates from a CA that you register as a trust anchor, either AWS Private CA or an external CA certificate bundle. The role's trust policy trusts the rolesanywhere.amazonaws.com service principal, and conditions on the trust anchor ARN and certificate attributes such as the subject CN limit which certificates can assume it. A profile specifies the roles and optional session policies, and the credential helper returns the temporary credentials to the AWS SDK and CLI. Rotating access keys in Secrets Manager still relies on long-term keys, and each job would need credentials just to read the secret. IAM Identity Center is designed for workforce users signing in, not for unattended server workloads. Unauthenticated Cognito identities would give anyone who can reach the identity pool access to these resources.

Security, Compliance, and GovernanceQuestion 9

A platform team manages an AWS account in which application developers deploy AWS Lambda functions. Developers often wait for the platform team to create execution roles. The platform team wants developers to create and manage their own IAM roles, but no role that a developer creates may ever exceed the permissions in a customer managed policy named WorkloadBoundary, and developers must not be able to escalate their own privileges. Which combination of statements should be added to the developers' IAM policy? (Select TWO.)

Choose two.

  1. AAllow iam:CreateRole without conditions, and attach WorkloadBoundary as the permissions boundary of the developers' own role.
  2. BAllow iam:CreateRole, iam:PutRolePolicy, iam:AttachRolePolicy, and iam:PutRolePermissionsBoundary only when the iam:PermissionsBoundary condition key equals the ARN of WorkloadBoundary.
  3. CAllow iam:CreateRole only when the aws:RequestTag/Owner condition key matches ${aws:PrincipalTag/Owner}.
  4. DDeny all IAM actions with an SCP on the account, and use IAM Access Analyzer policy generation to create roles for developers.
  5. EDeny iam:CreatePolicyVersion, iam:DeletePolicy, iam:DeletePolicyVersion, and iam:SetDefaultPolicyVersion on WorkloadBoundary, and deny iam:DeleteRolePermissionsBoundary.
Show answer

Answer: B, E

Conditioning role creation and policy changes on iam:PermissionsBoundary forces every new role to carry WorkloadBoundary, and denying edits to the boundary policy and boundary removal stops developers from loosening it.

The correct answers are "Allow iam:CreateRole, iam:PutRolePolicy, iam:AttachRolePolicy, and iam:PutRolePermissionsBoundary only when the iam:PermissionsBoundary condition key equals the ARN of WorkloadBoundary" and "Deny iam:CreatePolicyVersion, iam:DeletePolicy, iam:DeletePolicyVersion, and iam:SetDefaultPolicyVersion on WorkloadBoundary, and deny iam:DeleteRolePermissionsBoundary". A permissions boundary sets the maximum permissions that identity-based policies can grant to a role. Allowing role creation and permission changes only when iam:PermissionsBoundary equals the WorkloadBoundary ARN means developers can't create or modify a role unless it carries that boundary, which is the delegation pattern in the IAM documentation. Developers could still escape the limit by editing the boundary policy or removing it from a role, so the policy must also deny creating or changing versions of WorkloadBoundary, deleting it, and deleting role permissions boundaries. A boundary on the developers' own role doesn't limit the roles they create, so they could create an administrator role and pass it to a Lambda function. A tag condition controls who owns a role, not what the role can do. Denying all IAM actions with an SCP blocks the self-service that the team wants, and Access Analyzer policy generation doesn't prevent anything.

Security, Compliance, and GovernanceQuestion 10

A healthcare company has 120 AWS accounts in AWS Organizations and must show auditors that its AWS resource configurations continuously align with its HIPAA security control mappings. Auditors want a single compliance percentage for each account that the company can track over time. Simple deviations, such as an S3 bucket without a public access block, must be remediated automatically. Administrators of member accounts must not be able to modify or delete the checks, and accounts that join the organization later must be covered automatically. Which solution meets these requirements?

Choose one.

  1. ADownload the AWS HIPAA-related compliance reports from AWS Artifact, and give them to the auditors each quarter.
  2. BFrom the AWS Config delegated administrator account, deploy an organization conformance pack based on the Operational Best Practices for HIPAA Security sample template, and add remediation actions that use AWS Systems Manager Automation documents. Track the conformance pack compliance score in each account.
  3. CUse AWS CloudFormation StackSets with self-managed permissions to deploy individual AWS Config rules to each account, and build a dashboard that counts compliant rules.
  4. DEnable Amazon GuardDuty for the organization, and export the findings to an S3 bucket that the auditors can access.
Show answer

Answer: B

An organization conformance pack deploys Config rules and remediation actions as one unit to all member accounts, including new ones, and member accounts can't modify them. Each pack reports a compliance score.

The correct answer is "From the AWS Config delegated administrator account, deploy an organization conformance pack based on the Operational Best Practices for HIPAA Security sample template, and add remediation actions that use AWS Systems Manager Automation documents. Track the conformance pack compliance score in each account". A conformance pack is a collection of AWS Config rules and remediation actions deployed as a single entity, and the Operational Best Practices for HIPAA Security sample template is a starting point that maps rules to HIPAA controls (AWS notes that templates don't by themselves guarantee compliance). Organization conformance packs deploy from the management or delegated administrator account, are deployed automatically to accounts that join the organization, and can't be modified by member accounts. Each conformance pack shows a compliance score, the percentage of compliant rule-resource combinations, with a timeline for tracking progress. AWS Artifact provides AWS's own audit reports, not evidence about the company's resources. StackSets with self-managed permissions don't deploy to new accounts automatically, and member account administrators could change the deployed rules. GuardDuty detects threats and doesn't assess configuration compliance.

Operational Excellence and AutomationQuestion 11

A company uses AWS CDK Pipelines (the CodePipeline construct in aws-cdk-lib/pipelines) in a shared tooling account to deploy an application to separate staging and production accounts. The pipeline stack deployed successfully because the tooling account was bootstrapped, but the stages that deploy to the staging and production accounts fail. Nothing has been done yet to prepare the target accounts. The security team requires that CloudFormation in the target accounts deploys with a scoped IAM policy instead of AdministratorAccess. Which combination of steps should a solutions architect take to enable the cross-account deployments? (Select TWO.)

Choose two.

  1. ABootstrap the staging and production environments with cdk bootstrap, passing --trust with the tooling account ID and --cloudformation-execution-policies with the ARN of the scoped policy.
  2. BCreate IAM users with access keys in the staging and production accounts, and store the keys in AWS Secrets Manager in the tooling account for the pipeline to use.
  3. CSet selfMutation to false on the pipeline so that the pipeline stops changing its own definition during cross-account deployments.
  4. DSet crossAccountKeys to true on the CodePipeline construct so that the artifact bucket is encrypted with an AWS KMS key that the target accounts can be granted access to.
  5. ERun cdk deploy once from a developer workstation into each target account so that CloudFormation registers the tooling account as a trusted deployer.
Show answer

Answer: A, D

Target accounts must be bootstrapped to trust the pipeline account, with the execution policy set at bootstrap time, and CDK Pipelines needs crossAccountKeys enabled so the artifact bucket is KMS-encrypted for cross-account use.

The correct answers are "Bootstrap the staging and production environments with cdk bootstrap, passing --trust with the tooling account ID and --cloudformation-execution-policies with the ARN of the scoped policy" and "Set crossAccountKeys to true on the CodePipeline construct so that the artifact bucket is encrypted with an AWS KMS key that the target accounts can be granted access to". Each environment a CDK pipeline deploys to must be bootstrapped. The --trust option names the pipeline's account as allowed to deploy into the environment, and --cloudformation-execution-policies sets the policy attached to the CloudFormation execution role, which is where the scoped policy belongs. The crossAccountKeys property defaults to false, and the CDK documentation states that the artifact buckets must be encrypted to deploy CDK apps to another account, so it must be set to true. Long-term IAM user keys are not how CDK Pipelines deploys; it assumes the bootstrap roles in the target account, and stored keys add a credential-management risk. selfMutation controls whether the pipeline updates itself and has nothing to do with cross-account access; AWS recommends keeping it true. Running cdk deploy from a workstation does not create the trust relationship; the trust comes from the bootstrap roles.

Operational Excellence and AutomationQuestion 12

A company's AWS CodeBuild projects run in a shared CI/CD account. The builds need an API token for a third-party artifact repository. The security team owns the token as a secret in AWS Secrets Manager in a separate security account, where a rotation function rotates it every 30 days. The token must not be copied into the CI/CD account, must not appear in the CodeBuild console or project configuration, and builds must always receive the current version. Which combination of steps will meet these requirements? (Select TWO.)

Choose two.

  1. AUse ReplicateSecretToRegions to replicate the secret into the CI/CD account, and reference the replica by name in the buildspec.
  2. BStore the token as a plaintext environment variable on the CodeBuild project and encrypt the project with a customer managed AWS KMS key.
  3. CEncrypt the secret with a customer managed AWS KMS key in the security account, and add a key policy statement that allows the CodeBuild service role to use kms:Decrypt.
  4. DCreate a scheduled AWS Lambda function that copies the token into a Parameter Store SecureString parameter in the CI/CD account after each rotation.
  5. EAttach a resource policy to the secret that allows the CodeBuild service role to call secretsmanager:GetSecretValue, grant the same access in the role's identity policy, and reference the secret by its full ARN in the env secrets-manager section of the buildspec.
Show answer

Answer: C, E

Cross-account secret access needs both a resource policy on the secret and permission on a customer managed KMS key, because the AWS managed aws/secretsmanager key cannot be used across accounts.

The correct answers are "Encrypt the secret with a customer managed AWS KMS key in the security account, and add a key policy statement that allows the CodeBuild service role to use kms:Decrypt" and "Attach a resource policy to the secret that allows the CodeBuild service role to call secretsmanager:GetSecretValue, grant the same access in the role's identity policy, and reference the secret by its full ARN in the env secrets-manager section of the buildspec". To read a secret from another account, access must be allowed in the secret's resource policy and in the caller's identity policy, and the caller must be able to use the KMS key that encrypts the secret. Secrets Manager states that the AWS managed key (aws/secretsmanager) cannot be used for cross-account access, so the secret must use a customer managed key whose key policy grants kms:Decrypt to the CodeBuild role. In the buildspec, a secret in another account is referenced by its ARN, CodeBuild retrieves the AWSCURRENT version by default so rotation is picked up automatically, and values from Secrets Manager are masked in build logs. ReplicateSecretToRegions creates replicas in other Regions, not other accounts, and copying the token is not allowed anyway. A plaintext environment variable is visible in the console and CLI. A Lambda copy job duplicates the token into the CI/CD account and adds custom code.

Operational Excellence and AutomationQuestion 13

A company must keep a copy of every CloudWatch Logs log event from the 150 accounts in its organization for 7 years in a central log archive account. The archive must be stored in Amazon S3 so that it can move to S3 Glacier Deep Archive and be queried with Amazon Athena. Application teams create new log groups frequently, and new log groups must be included without any per-log-group configuration. Which solution meets these requirements with the LEAST operational overhead?

Choose one.

  1. AIn the log archive account, create a CloudWatch Logs destination backed by an Amazon Data Firehose stream that writes to an S3 bucket with lifecycle rules, and allow the organization in the destination access policy. Use a service-managed StackSet to create an account-level subscription filter policy in every member account and Region in use.
  2. BCreate a CloudWatch Logs centralization rule for the organization that copies all log groups to the log archive account, and set the retention of the central log groups to 7 years.
  3. CDeploy an EventBridge rule in every account that invokes a Lambda function on CreateLogGroup to add a subscription filter that streams to a Kinesis data stream in the log archive account.
  4. DRun a scheduled Lambda function in every account that calls CreateExportTask for each log group every hour to export the logs to an S3 bucket in the log archive account.
Show answer

Answer: A

An account-level subscription filter policy covers every log group in the account, including new ones, and a cross-account destination backed by Firehose lands the data in S3, where lifecycle rules handle archival tiers.

The correct answer is "In the log archive account, create a CloudWatch Logs destination backed by an Amazon Data Firehose stream that writes to an S3 bucket with lifecycle rules, and allow the organization in the destination access policy. Use a service-managed StackSet to create an account-level subscription filter policy in every member account and Region in use". An account-level subscription filter policy applies to all log groups in an account and Region, except any you exclude with selection criteria, so new log groups are covered with no per-group work. CloudWatch Logs supports cross-account account-level subscriptions to a destination in a recipient account, the destination access policy can allow the whole organization, and Firehose writes the data to S3, where lifecycle rules can move it to S3 Glacier Deep Archive and Athena can query it. Each account can have one account-level subscription filter per Region, and the policies are Region-specific, so a StackSet is a simple way to deploy them. CloudWatch Logs centralization copies log events into log groups in the central account, not into S3, so the S3 archive and Athena requirements are not met. Lambda functions that add per-group filters or call CreateExportTask are custom code that someone must maintain in every account.

Operational Excellence and AutomationQuestion 14

A company runs stateful, EBS-backed Amazon EC2 instances that are managed by AWS Systems Manager. AWS occasionally schedules these instances for retirement. The operations team wants to stop and start a retiring instance automatically so that it moves to healthy hardware. For instances tagged Environment=prod, an on-call engineer must approve the restart, and approvers must be notified when approval is needed. The team wants to avoid writing and maintaining custom code. Which solution meets these requirements?

Choose one.

  1. AUse the AWS Health organizational view and send the on-call engineer a weekly email that lists scheduled retirements to handle manually.
  2. BCreate an Amazon EventBridge rule for the EC2 instance state-change notification event with the state stopped that invokes the AWS-StartEC2Instance runbook.
  3. CCreate an Amazon EventBridge rule that matches the AWS Health AWS_EC2_PERSISTENT_INSTANCE_RETIREMENT_SCHEDULED event and targets a Systems Manager Automation runbook that uses aws:branch on the instance's Environment tag, runs an aws:approve step with an SNS notification for production instances, and then stops and starts the instance.
  4. DPut each instance in its own Auto Scaling group with a lifecycle hook so that retiring instances are replaced automatically.
Show answer

Answer: C

AWS Health sends scheduled retirement events to EventBridge, which can start a Systems Manager Automation runbook directly, and the aws:approve action pauses the runbook until an approver responds, with SNS notification.

The correct answer is "Create an Amazon EventBridge rule that matches the AWS Health AWS_EC2_PERSISTENT_INSTANCE_RETIREMENT_SCHEDULED event and targets a Systems Manager Automation runbook that uses aws:branch on the instance's Environment tag, runs an aws:approve step with an SNS notification for production instances, and then stops and starts the instance". AWS Health emits AWS_EC2_PERSISTENT_INSTANCE_RETIREMENT_SCHEDULED for EBS-backed instances, and AWS documents an EventBridge rule on that event that targets Systems Manager Automation to stop and start the instance; the instances must be managed by Systems Manager. Automation is a native EventBridge target, so no Lambda function is needed. In the runbook, aws:branch can route production instances to an aws:approve step, which pauses the automation until the required number of approvers approve or reject and notifies them through an SNS topic whose name must begin with Automation. A weekly email is a manual process that can miss a retirement date. A rule on the stopped state reacts after an instance stops, not to the retirement notice, and has no approval gate. Replacing stateful instances through Auto Scaling would lose their local state, and lifecycle hooks are not triggered by retirement notices.

Cost-Optimized Architecture DesignQuestion 15

A company runs 30 workload accounts that belong to four business units (BUs), plus one shared networking account that hosts AWS Transit Gateway, NAT gateways, and AWS Direct Connect. Finance wants a monthly showback report in which each BU's total includes a share of the networking account's costs in proportion to that BU's own spend. Finance will download the report as a CSV file each month, and the FinOps team wants to avoid building a custom data pipeline. Which solution meets these requirements?

Choose one.

  1. AApply a BusinessUnit tag to each shared networking resource with all four BU names as tag values, activate the tag, and group Cost Explorer by BusinessUnit.
  2. BCreate a cost category whose rules map the workload accounts to BU values and map the networking account to a Shared value. Add a split charge rule that uses Shared as the source, the four BU values as targets, and the proportional allocation method. Download the allocated costs from the cost category details page.
  3. CCreate the same cost category with an even split charge rule, and then group Cost Explorer by the cost category to view each BU's allocated share of networking costs.
  4. DMove the transit gateway, NAT gateways, and Direct Connect connections into each BU's accounts so that every BU pays for its own networking directly.
Show answer

Answer: B

Cost category split charge rules allocate a shared cost category value across target values, and the proportional method weights the split by each target's own cost. The allocated results are shown, and downloadable as CSV, on the cost category details page.

The correct answer is "Create a cost category whose rules map the workload accounts to BU values and map the networking account to a Shared value. Add a split charge rule that uses Shared as the source, the four BU values as targets, and the proportional allocation method. Download the allocated costs from the cost category details page". Cost categories can group costs by account, and a split charge rule reallocates the costs of a source value (Shared) across target values (the BUs). The proportional method allocates according to each target's weighted cost, which matches finance's requirement, and the cost category details page shows costs before and after the split and lets you download a CSV report. A resource can have only one value for a given tag key, so a single tag can't assign a shared resource to four BUs. The even split method divides costs equally rather than in proportion to spend, and split charge results don't appear in Cost Explorer or the Cost and Usage Report, only on the cost category details page. Duplicating the networking stack in every BU would raise costs and operational effort.

Cost-Optimized Architecture DesignQuestion 16

A platform team runs a shared Amazon EKS cluster on Amazon EC2 instances in a production account that belongs to an organization in AWS Organizations with all features enabled. Dozens of product teams deploy pods into their own namespaces, and every pod carries a cost-center Kubernetes label. Finance wants a monthly chargeback that allocates the cluster's EC2 costs to cost centers at the pod level. Teams that set low CPU and memory requests must still be charged for what their pods actually use. Which solution meets these requirements with the LEAST operational overhead?

Choose one.

  1. AIn each member account, opt in to split cost allocation data for Amazon EKS with the Resource requests option, and group Cost Explorer by the aws:eks:namespace tag.
  2. BDeploy an open source cost-monitoring tool in the cluster, export its pod-level data to Amazon S3, and join it with the Cost and Usage Report by instance ID in Amazon Athena.
  3. CCreate a separate EC2 managed node group for each cost center, apply a cost-center tag to each node group's instances, and activate the tag as a cost allocation tag.
  4. DFrom the management account, opt in to split cost allocation data for Amazon EKS with the Amazon Managed Service for Prometheus option, activate the imported cost-center label as a cost allocation tag, and include split cost allocation data in a CUR 2.0 export.
Show answer

Answer: D

Split cost allocation data for EKS allocates EC2 costs to individual pods in the CUR, and the Amazon Managed Service for Prometheus option charges the higher of requests and actual usage. Imported Kubernetes labels become cost allocation tags after activation.

The correct answer is "From the management account, opt in to split cost allocation data for Amazon EKS with the Amazon Managed Service for Prometheus option, activate the imported cost-center label as a cost allocation tag, and include split cost allocation data in a CUR 2.0 export". Split cost allocation data adds pod-level line items to the Cost and Usage Report based on the amortized instance cost. With the Amazon Managed Service for Prometheus option, EC2 costs are allocated by the higher of each pod's CPU and memory requests and its actual utilization, so teams that under-request still pay for what they use. Kubernetes pod labels are imported automatically as user-defined cost allocation tags and must be activated at the management account level, and the data appears in legacy CUR or CUR 2.0 when split cost allocation data is included in the export. Only the management account can opt in, the Resource requests option charges only for requests, and split cost allocation data isn't available in Cost Explorer. A self-managed tool and custom Athena joins add the operational overhead that the managed feature avoids. Dedicated node groups per cost center fragment capacity, lower utilization, and still don't reflect pod-level usage.

Cost-Optimized Architecture DesignQuestion 17

A company's FinOps policy requires every new Amazon EC2 instance and Amazon EBS volume to carry a CostCenter tag when it is created, and the tag value must be one of 40 approved codes with exact capitalization. Engineers create resources through the AWS Management Console, the AWS CLI, scripts that call the AWS SDKs, and AWS CloudFormation. Requests that omit the tag must fail regardless of the tool used. Which combination of controls should a solutions architect implement? (Select TWO.)

Choose two.

  1. AAttach a tag policy that lists CostCenter under report_required_tag_for, and activate the AWS::TagPolicies::TaggingComplianceValidator CloudFormation hook in Fail mode.
  2. BAttach a tag policy that defines the CostCenter key with the approved values and enforces compliance for the ec2:instance and ec2:volume resource types.
  3. CDeploy the AWS Config required-tags managed rule with an automatic remediation that terminates noncompliant instances.
  4. DAttach a service control policy (SCP) that denies ec2:RunInstances and ec2:CreateVolume on instance and volume resources when the aws:RequestTag/CostCenter condition key is null.
  5. EActivate CostCenter as a cost allocation tag so that resources without the tag are rejected at creation.
Show answer

Answer: B, D

An enforced tag policy blocks noncompliant tag values but can't require the key, so an SCP with a Null condition on aws:RequestTag/CostCenter is needed to reject untagged create requests from every tool.

The correct answers are "Attach a tag policy that defines the CostCenter key with the approved values and enforces compliance for the ec2:instance and ec2:volume resource types" and "Attach a service control policy (SCP) that denies ec2:RunInstances and ec2:CreateVolume on instance and volume resources when the aws:RequestTag/CostCenter condition key is null". A tag policy with enforcement prevents tagging operations, including resource creation, that use a CostCenter value or capitalization outside the policy. AWS documentation states that enforcement can't ensure that a required tag key is present. An SCP that denies ec2:RunInstances and ec2:CreateVolume on instance and volume ARNs when aws:RequestTag/CostCenter is null fills that gap for console, CLI, SDK, and CloudFormation requests alike. The report_required_tag_for setting with the CloudFormation hook validates only IaC deployments, so console, CLI, and SDK requests would not be checked. An AWS Config rule is detective and acts only after the resource exists, and terminating instances is disruptive. Activating a cost allocation tag only affects billing reports and never blocks resource creation.

Resilience, Migration, and Business ContinuityQuestion 18

A company is planning a large-scale migration of about 3,000 on-premises servers to AWS. Before choosing a migration strategy for each application (for example, rehost, replatform, or refactor), the company wants to build a data-driven business case and understand which servers and processes depend on each other. Which combination of actions should the company take? (Select TWO.)

Choose two.

  1. ADeploy AWS Application Discovery Service agents or the agentless collector on-premises to capture server specifications, utilization data, and process and network dependencies.
  2. BUse AWS Migration Evaluator to build a directional business case that compares current on-premises costs against projected AWS costs.
  3. CImmediately begin refactoring every application into serverless architectures before any dependency assessment is performed.
  4. DInterview each application owner one time only and skip the use of any automated discovery tooling.
  5. EMigrate all 3,000 servers with AWS Application Migration Service immediately, with no discovery or assessment phase, to save time.
Show answer

Answer: A, B

Application Discovery Service captures server utilization and dependency data, and Migration Evaluator builds a cost-based business case; together they support a data-driven assessment before a migration strategy is chosen for each workload.

The correct answers are "Deploy AWS Application Discovery Service agents or the agentless collector on-premises to capture server specifications, utilization data, and process and network dependencies" and "Use AWS Migration Evaluator to build a directional business case that compares current on-premises costs against projected AWS costs". Application Discovery Service, through the Discovery Agent or the Agentless Collector for VMware environments, gathers server configuration and utilization data, and the agents also capture process and network connection data used to map dependencies and group applications into migration waves. Migration Evaluator builds a business case by comparing current on-premises costs with right-sized AWS costs. Refactoring every application first wastes effort and ignores dependency and cost data. One-time interviews without tooling are incomplete and error prone at the scale of 3,000 servers. Migrating everything immediately with Application Migration Service skips the assessment phase and risks breaking dependencies.

Resilience, Migration, and Business ContinuityQuestion 19

A company runs its primary production workload in us-east-1 on Amazon EC2 and Amazon RDS. The business requires a recovery time objective (RTO) of about 30 minutes and a recovery point objective (RPO) of about 5 minutes in the event of a full Regional outage. The company wants to keep standby infrastructure costs as low as reasonably possible by using a pilot light approach instead of a full active-active deployment. Which combination of design elements should the company implement? (Select THREE.)

Choose three.

  1. AConfigure a cross-Region read replica for the RDS database in us-west-2 that can be promoted to a standalone writable primary during a failover.
  2. BContinuously replicate current AMIs and launch templates to us-west-2 so that minimal-capacity or stopped resources can be scaled up quickly during a failover.
  3. CConfigure Amazon Route 53 health checks with a failover routing policy to redirect traffic to us-west-2 once the standby environment has been promoted and scaled.
  4. DKeep the us-west-2 environment scaled to full production capacity at all times, identical to us-east-1, running active-active.
  5. ERely solely on manual daily AMI exports with no automation, restoring servers by hand only after an outage has been confirmed.
Show answer

Answer: A, B, C

A pilot light keeps data continuously replicated to a promotable cross-Region read replica, keeps AMIs and launch templates ready to scale out quickly, and uses Route 53 failover routing to redirect users after promotion.

The correct answers are "Configure a cross-Region read replica for the RDS database in us-west-2 that can be promoted to a standalone writable primary during a failover", "Continuously replicate current AMIs and launch templates to us-west-2 so that minimal-capacity or stopped resources can be scaled up quickly during a failover", and "Configure Amazon Route 53 health checks with a failover routing policy to redirect traffic to us-west-2 once the standby environment has been promoted and scaled". A pilot light keeps the data layer live in the recovery Region and everything else minimal. The cross-Region read replica lags by seconds, meeting the 5-minute RPO, and promotes within minutes. Replicated AMIs and launch templates let Auto Scaling groups scale out quickly within the 30-minute RTO, and Route 53 failover routing then redirects users. Full capacity in both Regions is a costly multi-site strategy, and manual daily AMI exports give a 24-hour RPO and slow recovery.

Resilience, Migration, and Business ContinuityQuestion 20

A company runs a commercial Oracle database on premises and wants to migrate it to Amazon Aurora PostgreSQL-Compatible Edition to reduce licensing costs. The company requires a minimal-downtime cutover. The company must first convert schema objects that are incompatible between the two database engines, such as stored procedures and custom data types, and then migrate the data with ongoing replication until cutover. Which combination of actions should the company take? (Select TWO.)

Choose two.

  1. AUse the AWS Schema Conversion Tool (AWS SCT) to assess and convert the Oracle schema, including procedural code, to a PostgreSQL-compatible schema, and flag objects that require manual conversion.
  2. BUse AWS Database Migration Service (AWS DMS) with full load plus change data capture (CDC) to migrate existing data and continuously replicate ongoing changes until cutover.
  3. CExport the Oracle database only by using Oracle Data Pump, since its output is natively compatible with Aurora PostgreSQL.
  4. DUse AWS Application Migration Service to lift and shift the database server's operating system, preserving the Oracle engine unchanged.
  5. ESkip schema conversion and rely on AWS DMS to convert the stored procedures and custom data types during the full load.
  6. FUse AWS Snowball Edge to physically ship the entire database with no ongoing replication, then perform cutover weeks after the device arrives.
Show answer

Answer: A, B

AWS SCT converts the Oracle schema and procedural code to PostgreSQL, and AWS DMS full load plus CDC migrates the data and replicates ongoing changes so cutover takes minimal downtime.

The correct answers are "Use the AWS Schema Conversion Tool (AWS SCT) to assess and convert the Oracle schema, including procedural code, to a PostgreSQL-compatible schema, and flag objects that require manual conversion" and "Use AWS Database Migration Service (AWS DMS) with full load plus change data capture (CDC) to migrate existing data and continuously replicate ongoing changes until cutover". AWS SCT, or the managed DMS Schema Conversion feature, converts the Oracle schema, procedural code, and data types to PostgreSQL and reports objects that need manual work. AWS DMS then performs a full load of existing data and uses change data capture to replicate ongoing changes, so the source stays online until a short cutover. Oracle Data Pump files are Oracle specific and cannot be imported into PostgreSQL. Application Migration Service would keep the Oracle engine and license. AWS DMS does not convert procedural code or custom types, so schema conversion cannot be skipped. Snowball Edge without ongoing replication cannot give a minimal-downtime cutover.

Ready for more?

Practice the full SAP-C03 question set one at a time, weighted like the real exam, with every answer explained.