SaveMyCert
Log in
5 of 5 free questions left today·for 10 a day
SAP-C03 · Domain 5

Operational Excellence and Automation practice questions

Operational Excellence and Automation is worth 20% of the SAP-C03 exam — the 3rd-heaviest of the 5 domains. Running architectures at scale: infrastructure and policy as code, multi-account deployments, CI/CD and DevSecOps pipelines, AI output evaluation, observability and SLOs, and operational automation with safe remediation, scaling and self-healing. Official weighting 20%. 6 fully worked examples are further down this page, answers included.

Exam weight
20%
the 3rd-heaviest of the 5 domains
Questions
175
across 4 topics
Free, no account
5/day
a free account allows 10 a day
Explanations
Every option
right and wrong

Build a practice session

5 free questions left today.

Domains

How many?

Mode

Ready when you are

10 fresh questions drawn across 1 of 5 domains, in Learn mode.

Review what you missed

Every question you answer incorrectly, and every question you flag while practising, is saved here automatically. Finish a session and you can come back to re-drill just those.

6 sample Operational Excellence and Automation questions, fully explained

Questions from the SAP-C03 bank mapped to domain 5, with the answer key and the reasoning behind every option. None of them repeat the examples on the main SAP-C03 practice page.

Question 1Operational Excellence and Automation

A company deploys a security baseline with a CloudFormation StackSet that uses service-managed permissions. The StackSet targets the organization root in three Regions, and the operation shows SUCCEEDED. An auditor reports that the baseline resources exist in every member account but are missing from the organization's management account. What should a solutions architect do to bring the management account into compliance?

Choose one.

  • a
    Add the management account ID to the baseline StackSet's targets with the UNION account filter type and deploy it again in the three Regions

    Account filters choose accounts within the organization's targets, but CloudFormation still skips the management account for service-managed StackSets.

  • b
    Disable and re-enable trusted access for StackSets, then deploy the baseline StackSet to the root in the three Regions

    Trusted access is already working, as the member accounts show; it does not change the rule that the management account is excluded.

  • c
    Register the management account as a delegated administrator for StackSets and deploy the baseline again from it

    A delegated administrator must be a member account, and delegation changes who can manage StackSets, not which accounts receive stacks.

  • d
    Deploy the baseline template to the management account as separate stacks, or with a self-managed StackSet, in the three Regions Correct

    Service-managed StackSets never deploy stack instances to the management account, even when the root is targeted, so it needs its own deployment.

The concept

CloudFormation does not deploy service-managed StackSet instances to the organization's management account.

Why that’s the answer

The behaviour is by design: with service-managed permissions, CloudFormation doesn't deploy stacks to the management account even if it belongs to a targeted OU or the root. The management account therefore needs its own stacks (or a self-managed StackSet whose roles you create). Account filters, re-enabling trusted access or delegated administration do not change that exclusion.

How to reason it out
  1. Note what succeeded: every member account received the stack.
  2. Recall that service-managed StackSets exclude the management account by design.
  3. Deploy the template to the management account through a mechanism that does not rely on service-managed targeting.
  4. Reject options that only change targeting filters or administration rights.

Exam tip: Service-managed StackSets skip the management account; deploy to it separately.

SAP-C03 Infrastructure as Code: CloudFormation, CDK, Policy as Code and StackSets — the lesson that teaches this.

Question 2Operational Excellence and Automation

A company uses a service-managed StackSet with automatic deployment to create an Amazon S3 audit-log bucket and its bucket policy in every account in its Workloads OU. Requirements: when an account is moved from the Workloads OU to the Suspended OU, its bucket and logs must stay in place; accounts added to the Workloads OU must keep receiving the stack automatically; and the cloud platform team must run all StackSet operations from a tooling member account rather than the management account. Which TWO actions meet these requirements? (Select TWO.)

Choose TWO.

  • a
    Turn off automatic deployment so that moving an account between OUs no longer triggers a StackSet operation

    This would keep the moved account's bucket, but accounts added to the Workloads OU would no longer receive the stack automatically.

  • b
    Create the self-managed StackSet administration role in the tooling account and the execution role in each target account

    Those roles belong to the self-managed permission model; they do not let a member account administer a service-managed StackSet.

  • c
    Set RetainStacksOnAccountRemoval to true in the StackSet's automatic deployment settings Correct

    With retain selected, an account that leaves the target OU is removed from the StackSet but its stack and resources stay in place.

  • d
    Register the tooling account as a delegated administrator for StackSets and run operations with --call-as DELEGATED_ADMIN Correct

    A delegated administrator member account can create and manage service-managed StackSets; it must pass DELEGATED_ADMIN as its CallAs value.

  • e
    Add the Suspended OU to the StackSet's targets with the DIFFERENCE account filter type so moved accounts are skipped

    Targeting the Suspended OU would deploy to it rather than protect existing stacks; account filters do not control removal behaviour.

The concept

Account removal behaviour and delegated administration are both StackSet-level settings of the service-managed model.

Why that’s the answer

Two separate needs are stated. Retaining resources when an account leaves a target OU is controlled by the automatic deployment setting RetainStacksOnAccountRemoval (Retain stacks); without it the move triggers a delete. Running operations from a member account requires registering it as a StackSets delegated administrator and calling with DELEGATED_ADMIN. Turning off automatic deployment breaks the requirement for new accounts, self-managed roles belong to the other permission model, and account filters do not govern what happens to stacks in accounts that leave.

How to reason it out
  1. Map requirement 1 (keep resources on OU move) to the account removal behaviour: retain stacks.
  2. Map requirement 2 (new accounts still covered) to keeping automatic deployment on.
  3. Map requirement 3 (operate from a member account) to a delegated administrator using CallAs DELEGATED_ADMIN.
  4. Reject options that belong to the self-managed model or that misuse account filters.

Exam tip: Service-managed StackSet knobs: auto-deployment on + RetainStacksOnAccountRemoval for safe moves; delegated admin + CallAs DELEGATED_ADMIN to operate from a member account.

SAP-C03 Infrastructure as Code: CloudFormation, CDK, Policy as Code and StackSets — the lesson that teaches this.

Question 3Operational Excellence and Automation

A platform team updates a StackSet that has 400 stack instances in each of three Regions. The update must reach us-east-1 first and finish there before any other Region starts. In each Region, the operation must stop once more than two accounts fail, although a few extra failures from deployments already in progress are acceptable. The team wants each Region to finish as quickly as possible. Which operation preferences meet these requirements?

Choose one.

  • a
    FailureToleranceCount 2, MaxConcurrentCount 40, ConcurrencyMode STRICT_FAILURE_TOLERANCE, RegionConcurrencyType SEQUENTIAL, us-east-1 first in RegionOrder

    Strict mode caps actual concurrency at failure tolerance + 1, so only three accounts deploy at a time and the update is slow.

  • b
    FailureToleranceCount 2, MaxConcurrentCount 40, ConcurrencyMode SOFT_FAILURE_TOLERANCE, RegionConcurrencyType PARALLEL, us-east-1 first in RegionOrder

    Parallel Region concurrency deploys to all three Regions at once, so us-east-1 would not finish before the others start.

  • c
    FailureTolerancePercentage 50, MaxConcurrentPercentage 10, ConcurrencyMode SOFT_FAILURE_TOLERANCE, RegionConcurrencyType SEQUENTIAL, us-east-1 first

    A 50% tolerance lets up to 200 accounts fail in a Region before the operation stops, far beyond the two allowed.

  • d
    FailureToleranceCount 2, MaxConcurrentCount 40, ConcurrencyMode SOFT_FAILURE_TOLERANCE, RegionConcurrencyType SEQUENTIAL, us-east-1 first in RegionOrder Correct

    Soft failure tolerance runs at the full 40 concurrent accounts while still stopping once failures exceed two; sequential order processes us-east-1 first.

The concept

StackSet operation preferences separate how many accounts run at once, how many failures each Region tolerates and how Regions are sequenced.

Why that’s the answer

Three facts combine. Failure tolerance is counted per Region, so FailureToleranceCount 2 stops a Region once a third account fails. In the default strict mode the actual concurrency is limited to failure tolerance + 1 (three accounts), which makes a 400-account Region slow; soft failure tolerance keeps the configured concurrency of 40 and only lets in-flight deployments finish after the threshold, which the stem accepts. Sequential Region concurrency with a Region order processes us-east-1 completely before the next Region, while parallel does all Regions at once.

How to reason it out
  1. Translate 'stop after more than two failures per Region' into FailureToleranceCount 2.
  2. Recognise that strict concurrency mode caps concurrency at tolerance + 1, which conflicts with 'as quickly as possible'.
  3. Choose soft failure tolerance because extra in-flight failures are explicitly acceptable.
  4. Use sequential Region concurrency with us-east-1 first in the Region order.

Exam tip: Speed with a low failure tolerance needs SOFT_FAILURE_TOLERANCE; one Region at a time needs SEQUENTIAL with a RegionOrder.

SAP-C03 Infrastructure as Code: CloudFormation, CDK, Policy as Code and StackSets — the lesson that teaches this.

Question 4Operational Excellence and Automation

A StackSet deploys a VPC flow log configuration to 10 accounts in each of three Regions. The update uses sequential Region concurrency with the order us-east-1, eu-west-1, ap-southeast-2, a failure tolerance count of 1, and strict failure tolerance mode. During the update, the stacks in two accounts in us-east-1 fail to update because of a service quota. What is the result of the operation?

Choose one.

  • a
    The operation fails, and CloudFormation does not start the update in eu-west-1 or ap-southeast-2 Correct

    Two failures exceed the per-Region tolerance of one, so the operation is marked FAILED and the remaining Regions are not processed.

  • b
    The operation continues in eu-west-1 and ap-southeast-2 because the failure tolerance counter resets at each Region

    Tolerance is evaluated per Region, but once a Region exceeds it the whole operation stops instead of moving on.

  • c
    The operation rolls back the accounts in us-east-1 that completed the update, then marks the operation failed

    StackSets do not roll back stack instances that already updated successfully; those stacks keep the new template.

  • d
    The operation retries the two failed accounts until the quota allows the update, then continues to eu-west-1

    StackSets do not wait for quota changes; failed instances are reported and must be fixed and redeployed.

The concept

Failure tolerance is counted per Region; exceeding it fails the operation and stops further Regions.

Why that’s the answer

With a tolerance of one, a second failure in us-east-1 exceeds the threshold for that Region. CloudFormation sets the Region and the operation to FAILED and cancels the operation in the remaining Regions, so eu-west-1 and ap-southeast-2 keep the old template. Stacks that already updated keep their new state; nothing is rolled back at the StackSet level.

How to reason it out
  1. Note the tolerance: one failure per Region is allowed.
  2. Count the failures in the first Region: two, which exceeds it.
  3. Recall that exceeding the tolerance fails the whole operation and cancels the remaining Regions.
  4. Remember that successful stack instances are not rolled back by the StackSet.

Exam tip: StackSet failure tolerance is per Region; breach it and the operation stops before the next Region.

SAP-C03 Infrastructure as Code: CloudFormation, CDK, Policy as Code and StackSets — the lesson that teaches this.

Question 5Operational Excellence and Automation

A platform team requires every infrastructure change to be deployed as a CloudFormation stack so that change sets can be reviewed and drift can be detected. A product team of TypeScript developers wants to define infrastructure with loops, unit tests and reusable higher-level components that apply secure defaults, instead of writing long YAML files. Which approach meets both teams' requirements?

Choose one.

  • a
    Use the AWS CDK with L2 and L3 constructs, which synthesize CloudFormation templates that deploy as stacks Correct

    CDK code is imperative and testable, and it synthesizes standard CloudFormation templates, so stacks, change sets and drift detection still apply.

  • b
    Write CloudFormation YAML templates and reuse common blocks across teams with nested stacks and CloudFormation modules

    This keeps stacks, but it is still declarative YAML without loops or unit-testable code, which the product team wants to avoid.

  • c
    Write TypeScript scripts with the AWS SDK that call each service API in order to create the infrastructure

    SDK scripts are imperative but create no CloudFormation stacks, so there are no change sets or drift detection.

  • d
    Use AWS SAM templates with the Globals section to apply secure defaults to each serverless resource type

    AWS SAM is still a declarative template format focused on serverless resources; it does not give the product team general-purpose code.

The concept

The AWS CDK is an imperative way to author infrastructure that still deploys through declarative CloudFormation.

Why that’s the answer

The deciding facts are that CDK apps synthesize ordinary CloudFormation templates and deploy them as stacks, and that CDK constructs give programming-language features (loops, tests, classes) plus higher-level L2/L3 components with defaults. Plain YAML with nested stacks or modules stays declarative, SDK scripts bypass CloudFormation entirely, and SAM is another template format.

How to reason it out
  1. Identify the platform constraint: deployment must be CloudFormation stacks.
  2. Identify the developer need: general-purpose code, tests and reusable abstractions.
  3. Pick the tool that is imperative to write but declarative to deploy: the AWS CDK.
  4. Reject SDK scripts (no stacks) and template-only formats (no code).

Exam tip: CDK = write in code, deploy as CloudFormation: you keep change sets and drift detection.

SAP-C03 Infrastructure as Code: CloudFormation, CDK, Policy as Code and StackSets — the lesson that teaches this.

Question 6Operational Excellence and Automation

A team refactors an AWS CDK app by moving an existing Amazon DynamoDB table into a new reusable construct. Running cdk diff shows that CloudFormation will create a new table and delete the existing one, which holds 2 TB of production data. The team wants to keep the refactored code structure and avoid any data movement or downtime. What should the team do?

Choose one.

  • a
    Set the table's removal policy to RETAIN so that CloudFormation keeps the existing table when it creates the new one

    RETAIN keeps the old table out of the stack, but a new empty table is still created and the application points to it.

  • b
    Deploy the change with cdk deploy --hotswap so that CloudFormation updates the table in place instead of replacing it

    Hotswap is a development shortcut for code assets such as Lambda functions; it does not change how CloudFormation handles a new logical ID.

  • c
    Call overrideLogicalId on the table's underlying CfnTable so that it keeps the logical ID it had before the refactor Correct

    The new construct path produces a new logical ID; restoring the old logical ID makes CloudFormation see the same resource, so nothing is replaced.

  • d
    Turn on point-in-time recovery for the table and restore the backup into the new table after the deployment completes

    This works only through a restore into a new table, which is the data movement and downtime the team wants to avoid.

The concept

In the AWS CDK, a resource's logical ID is derived from its construct path, and CloudFormation treats a changed logical ID as a different resource.

Why that’s the answer

Two facts combine. First, CDK computes logical IDs from the construct ID path, so moving a construct changes the logical ID even though the code describes the same table. Second, CloudFormation treats a new logical ID as a new resource and the old one as removed, so it creates and deletes. Overriding the logical ID back to the original keeps the resource identity stable. RETAIN only orphans the old table, hotswap does not apply to DynamoDB tables, and a backup restore is data movement. (CloudFormation stack refactoring, exposed as cdk refactor, is another way to move a resource to a new logical ID without replacement; it is not among the options.)

How to reason it out
  1. Explain the diff: the construct path changed, so the logical ID changed.
  2. Recall that CloudFormation identifies resources by logical ID within a stack.
  3. Keep the identity stable by restoring the original logical ID on the L1 resource.
  4. Reject options that leave a new empty table or rely on a restore.

Exam tip: Moving a CDK construct changes its logical ID; pin the old ID (overrideLogicalId) to avoid replacing stateful resources.

SAP-C03 Infrastructure as Code: CloudFormation, CDK, Policy as Code and StackSets — the lesson that teaches this.

What SAP-C03 domain 5 tests, topic by topic

The official exam guide breaks Operational Excellence and Automation into 4 topics. The question bank follows the same split, so a weak topic shows up as a cluster of misses you can go back and read.

Published SAP-C03 practice questions per topic in Operational Excellence and Automation
TopicWhat it coversQuestions
Design infrastructure as codeOfficial SAP-C03 Task 5.1 skills: (1) Implement infrastructure as code by using declarative and imperative approaches (for example, AWS CloudFormation, AWS CDK). (2) Design policy as code to perform proactive validation, enforcement, and drift remediation (for example, by using AWS CloudFormation Hooks, AWS CDK aspects, AWS Config rules, SCPs). (3) Manage secrets in infrastructure code (for example, by using AWS Secrets Manager, AWS Systems Manager Parameter Store). (4) Design multi-account and multi-Region infrastructure deployments (for example, by using CloudFormation StackSets).44
Design CI/CD and DevSecOps pipelinesOfficial SAP-C03 Task 5.2 skills: (1) Design CI/CD solutions to orchestrate automated build and deployment pipelines (for example, by using AWS CodePipeline, AWS CodeBuild, AWS CodeDeploy, AWS CodeCommit). (2) Implement security scanning in pipelines to assess vulnerabilities and sign artifacts (for example, by using Amazon Inspector, Amazon ECR image scanning). (3) Configure multi-account and multi-Region deployment pipelines that include features such as role delegation and artifact promotion (for example, by using CodePipeline cross-account deployments). (4) Evaluate AI/ML applications and validate outputs (for example, by using Amazon Bedrock Evaluations). (5) Implement deployment strategies that provide rollback capabilities (for example, blue/green, canary, rolling deployments).44
Design observability and monitoring solutionsOfficial SAP-C03 Task 5.3 skills: (1) Implement observability by collecting metrics, logs, and distributed tracing by using standardized instrumentation (for example, by using Amazon CloudWatch, AWS X-Ray, AWS Distro for OpenTelemetry). (2) Implement monitoring for containerized applications (for example, by using Amazon ECS, Amazon EKS with Container Insights). (3) Implement multi-account log aggregation with cross-account subscriptions and centralized archives (for example, by using Amazon CloudWatch Logs subscriptions, Amazon S3 archival storage tiers). (4) Configure alerting solutions (for example, by using CloudWatch alarms, Amazon SNS, AWS Systems Manager). (5) Monitor metrics for AI/ML workloads, including model performance, AI agent performance, inference latency, and model drift. (6) Design monitoring solutions for the user experience by using strategies such as synthetic transactions and real user monitoring (for example, by using Amazon CloudWatch Synthetics, Amazon CloudWatch RUM). (7) Design service-level objectives (SLOs) that have measurable indicators and alerts (for example, by using CloudWatch, CloudWatch Application Signals).43
Design operational automation and resilient systemsOfficial SAP-C03 Task 5.4 skills: (1) Implement health monitoring, capacity planning, and operational responses (for example, by using CloudWatch alarms, Amazon EventBridge, AWS Systems Manager, Service Quotas). (2) Configure controlled remediation solutions that have safety constraints (for example, circuit breakers, rate limits, bulkhead patterns, retry patterns with exponential backoff). (3) Configure auto scaling policies that are based on metrics and scheduled scaling policies (for example, target tracking scaling, predictive scaling for Auto Scaling groups). (4) Design automated failure recovery solutions that use health checks and replacement strategies (for example, by using Auto Scaling health checks, Amazon ECS task replacement, AWS Lambda retry policies). (5) Configure automated runbooks and incident response procedures for operational tasks such as patching, remediation, and scaling.44
Total175

Revise Operational Excellence and Automation before you drill it

Other SAP-C03 domains

Operational Excellence and Automation: your questions

Operational Excellence and Automation is domain 5 of the SAP-C03 exam guide and carries 20% of the scored content — the 3rd-heaviest of the 5 domains. On a 75-question paper that works out to roughly 15 questions, though AWS does not publish an exact per-domain count and individual exam forms vary.

Source

The domain weight and topic list on this page come from the official SAP-C03 exam guide.