Curated

Operational Excellence and Automation (5.1–5.4)

0 votes

Questions60

  1. Question 1

    Operational Excellence and Automation

    A team wants to define infrastructure with TypeScript loops and reusable classes while retaining CloudFormation change sets and rollback. Which approach meets these requirements?

    Show the answer

    Correct answerD. Use AWS CDK to synthesize CloudFormation templates.

    AWhy not this: Direct SDK calls perform API operations but do not automatically place those operations under CloudFormation lifecycle management.

    BWhy not this: StackSets deploy CloudFormation templates across accounts and Regions; they do not execute TypeScript source files.

    CWhy not this: Aspects inspect or modify constructs during synthesis; they are not an API-based provisioning engine.

    DWhy this is right: CDK supports TypeScript abstractions and synthesizes templates that CloudFormation deploys and manages.

    AWS CDK supports general-purpose programming languages and synthesizes declarative CloudFormation templates, retaining CloudFormation deployment features. Direct AWS SDK calls do not automatically provide CloudFormation change sets or rollback.

    Open this question
  2. Question 2

    Operational Excellence and Automation

    A CloudFormation stack must manage an external service configuration that has no native CloudFormation resource type. Its API operations must run during stack creation, update, and deletion, rather than during template synthesis. Which implementation is most appropriate?

    Show the answer

    Correct answerD. Use a Lambda-backed CloudFormation custom resource.

    AWhy not this: CDK aspects run during synthesis and do not receive CloudFormation create, update, or delete requests.

    BWhy not this: Synthesis-time calls run while generating the template, not in response to CloudFormation stack lifecycle requests.

    CWhy not this: A post-creation script does not integrate the configuration's update and deletion operations with the stack lifecycle.

    DWhy this is right: A custom resource provider handles create, update, and delete requests from CloudFormation and can invoke external APIs.

    A Lambda-backed custom resource receives CloudFormation create, update, and delete requests, allowing external API operations to follow the stack lifecycle. Calling the API during CDK synthesis runs too early and does not connect those operations to stack lifecycle events.

    Open this question
  3. Question 3

    Operational Excellence and Automation

    Which mechanism can reject noncompliant resources before CloudFormation provisions them, including deployments from hand-written templates?

    Show the answer

    Correct answerC. A CloudFormation Hook configured to fail

    AWhy not this: CDK aspects operate on CDK construct trees and do not validate hand-written templates deployed directly through CloudFormation.

    BWhy not this: Periodic Config evaluation assesses resource compliance after provisioning rather than blocking CloudFormation provisioning.

    CWhy this is right: A Hook can validate resource properties before provisioning and block the operation when configured to fail.

    DWhy not this: Drift detection identifies differences between deployed resources and stack definitions; it does not enforce pre-provisioning policy.

    A CloudFormation Hook configured to fail can block provisioning when resource properties violate policy. CDK aspects validate CDK construct trees during synthesis and do not cover deployments from hand-written templates.

    Open this question
  4. Question 4

    Operational Excellence and Automation

    Within one CodePipeline stage, a packaging action must finish before independent integration and performance tests start; deployment must wait for both tests to succeed. Which run-order assignment provides the shortest execution time without custom coordination?

    Show the answer

    Correct answerD. Packaging: 1; integration: 2; performance: 2; deployment: 3.

    AWhy not this: The tests can start alongside packaging, before their required package is ready.

    BWhy not this: Serializing independent tests enforces dependencies but takes longer than running them concurrently.

    CWhy not this: Deployment can start alongside the performance test rather than waiting for its success.

    DWhy this is right: Both tests run concurrently after packaging succeeds, and deployment waits for both tests to succeed.

    Actions with the same run order execute in parallel, and higher run orders wait for lower ones to succeed. Giving both tests run order 2 runs them concurrently after packaging; serializing the tests also enforces dependencies but unnecessarily increases execution time.

    Open this question
  5. Question 5

    Operational Excellence and Automation

    A CodePipeline pipeline must deploy every submitted release in arrival order, retain each execution's source revision, and prevent overlapping executions while reviewers approve releases. Which configuration meets these requirements with the least custom orchestration?

    Show the answer

    Correct answerA. Use QUEUED mode with a manual approval action before deployment.

    AWhy this is right: QUEUED mode serializes executions in arrival order, retaining each execution's revision while approval blocks progress.

    BWhy not this: SUPERSEDED mode can replace waiting executions with newer ones rather than deploy every release.

    CWhy not this: PARALLEL mode permits overlapping executions; approval does not establish release ordering.

    DWhy not this: Disabling a stage transition blocks progress but does not make parallel executions run in arrival order.

    QUEUED mode processes executions in order without overlapping them, and manual approval gates deployment within each execution. SUPERSEDED mode can replace waiting executions, so it does not preserve deployment of every submitted release.

    Open this question
  6. Question 6

    Operational Excellence and Automation

    Which Amazon ECR scanning option uses Amazon Inspector to identify operating system and programming language package vulnerabilities in container images?

    Show the answer

    Correct answerC. Enhanced scanning

    AWhy not this: Basic scanning assesses operating system vulnerabilities without Inspector's programming language package coverage.

    BWhy not this: Image signing establishes artifact authenticity and integrity rather than identifying vulnerable packages.

    CWhy this is right: Enhanced scanning integrates with Inspector to assess operating system and programming language package vulnerabilities.

    DWhy not this: Tag immutability prevents existing image tags from being overwritten; it does not scan image contents.

    Amazon ECR enhanced scanning integrates with Amazon Inspector to assess operating system and programming language packages. Basic scanning focuses on operating system vulnerabilities rather than providing Inspector's broader package coverage.

    Open this question
  7. Question 7

    Operational Excellence and Automation

    A CodePipeline build stage must compile code with a proprietary toolchain packaged as a container image, download dependencies from a package repository reachable only inside a VPC, and run for up to 25 minutes. The team must not maintain build servers or expose the repository to the internet. Which build action meets these requirements?

    Show the answer

    Correct answerD. An AWS CodeBuild action whose project uses the VPC's private subnets and a custom build image stored in Amazon ECR.

    AWhy not this: Lambda functions stop after 15 minutes, so a 25-minute build cannot finish.

    BWhy not this: A public load balancer exposes the repository to the internet, and a managed image lacks the proprietary toolchain.

    CWhy not this: CodeDeploy deploys revisions; running builds in its hooks means keeping a build instance running and patched.

    DWhy this is right: CodeBuild runs managed builds inside the VPC to reach private resources and can use a custom image from Amazon ECR.

    A CodeBuild project can run in a VPC's private subnets with a security group, so builds reach resources that exist only in the VPC, and it can use a custom build image from Amazon ECR that carries the toolchain. In private subnets it reaches the internet and AWS services through a NAT gateway or VPC endpoints. Lambda's 15-minute limit rules it out for a 25-minute build.

    Open this question
  8. Question 8

    Operational Excellence and Automation

    Two services export OpenTelemetry spans to the same collector, but each downstream HTTP call appears as a separate trace. The custom HTTP client does not forward tracing headers; what should the architect change?

    Show the answer

    Correct answerB. Inject and extract trace context across the HTTP boundary.

    AWhy not this: Retention changes how long traces remain available, not whether downstream spans belong to the same trace.

    BWhy this is right: Injecting and extracting trace context lets downstream spans continue the originating request's trace.

    CWhy not this: Batch size changes export efficiency, not the parent-child relationships between spans.

    DWhy not this: A shared service name does not join traces and would obscure the distinction between the services.

    Trace context propagation carries the trace identifier and parent relationship across service boundaries. A shared collector or service name does not establish those relationships; resource attributes identify services rather than connect individual requests.

    Open this question
  9. Question 9

    Operational Excellence and Automation

    An Amazon ECS service on AWS Fargate has Container Insights enabled, but its application stdout and stderr are missing from CloudWatch Logs. What should the architect configure to collect these streams directly?

    Show the answer

    Correct answerD. An awslogs log configuration in the task definition

    AWhy not this: A CPU alarm evaluates resource metrics and does not configure application log collection.

    BWhy not this: Subscription filters forward events already in CloudWatch Logs; they do not collect container output.

    CWhy not this: Metric filters extract metrics from existing logs rather than deliver missing application streams.

    DWhy this is right: The awslogs log driver routes container stdout and stderr to the configured CloudWatch Logs destination.

    The awslogs log driver sends container stdout and stderr to CloudWatch Logs when configured in the task definition with appropriate permissions. Container Insights performance collection does not replace application log routing, and subscription filters only forward logs already ingested.

    Open this question
  10. Question 10

    Operational Excellence and Automation

    An OpenTelemetry-instrumented application must retain every failed request trace while reducing storage for successful traces, with sampling decisions based on completed requests. Which changes meet these requirements? (Choose two.)

    Choose 2 answers

    Show the answer

    Correct answersC. Send all request spans to a collector before making sampling decisions.D. Apply collector tail sampling that retains errors and samples successful traces.

    AWhy not this: Metric filters produce error counts, not retained distributed traces.

    BWhy not this: Head sampling decides before the outcome is known and can discard requests that later fail.

    CWhy this is right: Upstream sampling could discard a request before its failure is known, preventing the collector from retaining its complete trace.

    DWhy this is right: Tail sampling can evaluate completed trace outcomes and use different retention policies for errors and successes.

    Tail sampling evaluates collected spans, allowing error traces to be retained while successful traces are sampled. All request spans must reach the sampling layer; head sampling can discard requests before their eventual failure is known.

    Open this question
  11. Question 11

    Operational Excellence and Automation

    Which CloudWatch capability collects and visualizes infrastructure performance metrics for Amazon EKS clusters, nodes, pods, and containers?

    Show the answer

    Correct answerD. CloudWatch Container Insights

    AWhy not this: Synthetics runs scripted checks of endpoints and user journeys rather than collecting container infrastructure metrics.

    BWhy not this: Application Signals focuses on application services, operations, and dependencies rather than container infrastructure.

    CWhy not this: RUM collects browser-based user experience telemetry rather than Kubernetes infrastructure metrics.

    DWhy this is right: Container Insights collects and visualizes performance telemetry at Kubernetes infrastructure levels.

    Container Insights provides container infrastructure metrics and dashboards for Amazon EKS. Application Signals focuses on application service health and dependencies rather than cluster, node, pod, and container infrastructure monitoring.

    Open this question
  12. Question 12

    Operational Excellence and Automation

    An application writes structured JSON logs to CloudWatch Logs. Developers want to embed custom metric definitions in those events so CloudWatch extracts metrics without separate PutMetricData calls. What should they use?

    Show the answer

    Correct answerD. CloudWatch embedded metric format

    AWhy not this: Trace annotations support filtering traces, not extracting CloudWatch metrics from JSON log events.

    BWhy not this: Subscription filters route log events to destinations; they do not define embedded custom metrics.

    CWhy not this: Metric filters use log-group extraction rules rather than metric definitions embedded in events.

    DWhy this is right: Embedded metric format lets CloudWatch extract custom metrics from structured log events containing metric metadata.

    CloudWatch embedded metric format embeds metric definitions and values in structured log events for automatic extraction. Metric filters instead define matching and extraction rules on a log group rather than embedding metric definitions in each event.

    Open this question
  13. Question 13

    Operational Excellence and Automation

    A company runs about 2,000 Amazon EC2 instances across 30 accounts, launched from many different AMIs. It must alarm before any instance exhausts operating system memory, and a change to the collected metrics must reach every existing and new instance without rebuilding images. Which approach meets these requirements with the LEAST operational effort?

    Show the answer

    Correct answerC. Use State Manager to install the CloudWatch agent with a configuration from Parameter Store, then alarm on memory.

    AWhy not this: Detailed monitoring sends hypervisor metrics every minute; EC2 publishes no guest memory metric without an agent.

    BWhy not this: Baked configuration needs new images for every change and misses instances launched from other AMIs.

    CWhy this is right: State Manager keeps the agent installed and configured on existing and new managed instances, and reapplies the stored configuration when it changes.

    DWhy not this: Enhanced infrastructure metrics lengthen Compute Optimizer's lookback for recommendations; they do not collect memory or drive alarms.

    Guest memory is visible only through the CloudWatch agent. At fleet scale, Systems Manager State Manager associations install and configure the agent on every managed instance, including new ones, and a configuration kept in Parameter Store can be changed once and reapplied without rebuilding images. CloudWatch alarms then evaluate the agent's memory metric.

    Open this question
  14. Question 14

    Operational Excellence and Automation

    Which pattern temporarily blocks calls to a repeatedly failing dependency, then permits trial requests to determine whether it has recovered?

    Show the answer

    Correct answerD. Circuit breaker

    AWhy not this: Exponential backoff increases delays between retries rather than explicitly opening and probing a circuit.

    BWhy not this: Rate limiting caps request volume rather than testing whether a failing dependency has recovered.

    CWhy not this: Bulkhead isolation separates resource pools to contain failures between workloads or dependencies.

    DWhy this is right: A circuit breaker blocks calls while open and permits trial requests while half-open.

    A circuit breaker opens after failures and later allows trial requests in a half-open state to test recovery. Exponential backoff spaces retries farther apart but does not itself implement open and half-open states.

    Open this question
  15. Question 15

    Operational Excellence and Automation

    An application uses a regional service quota that supports CloudWatch usage metrics and the SERVICE_QUOTA function. Operations must detect utilization above 80% of the applied quota and automatically start an existing Systems Manager Automation runbook; which components should the architect configure? (Choose three.)

    Choose 3 answers

    Show the answer

    Correct answersA. An EventBridge rule targeting the runbook when the alarm enters ALARMD. A metric math expression calculating usage as a percentage of SERVICE_QUOTAF. A CloudWatch alarm evaluating the utilization expression against 80%

    AWhy this is right: EventBridge can match a CloudWatch alarm state change and invoke a Systems Manager Automation runbook.

    BWhy not this: Maintenance windows use schedules, not metric thresholds, to initiate operational tasks.

    CWhy not this: Scheduled actions run at specified times and do not request quota increases based on utilization.

    DWhy this is right: SERVICE_QUOTA supplies the applied quota value, allowing the expression to track utilization as the quota changes.

    EWhy not this: Target tracking changes supported resource capacity rather than managing utilization of a service quota.

    FWhy this is right: The alarm evaluates the calculated utilization and changes state when its threshold conditions are met.

    Metric math calculates utilization against the applied quota, a CloudWatch alarm detects the threshold breach, and EventBridge starts the runbook on the state change. Target tracking adjusts supported scalable resources; it does not maintain service quota utilization.

    Open this question
  16. Question 16

    Operational Excellence and Automation

    A composite alarm pages operators when application latency and error alarms are both in ALARM. During deployments, a separate maintenance alarm enters ALARM; how should the architect suppress paging until five minutes after maintenance clears while preserving the composite alarm's state evaluation?

    Show the answer

    Correct answerC. Use the maintenance alarm as an actions suppressor with a 300-second extension period.

    AWhy not this: Including maintenance in the rule changes composite state evaluation rather than independently suppressing actions.

    BWhy not this: Longer evaluation periods delay detection and do not provide suppression tied to maintenance ending.

    CWhy this is right: The suppressor blocks actions during maintenance, and the extension period preserves suppression for another 300 seconds.

    DWhy not this: Disabling metric alarms interrupts monitoring instead of preserving continuous state evaluation.

    A composite alarm actions suppressor blocks actions without changing alarm evaluation. Its extension period continues suppression after the suppressor leaves ALARM. Adding maintenance to the alarm rule changes the composite state instead of only suppressing paging.

    Open this question
  17. Question 17

    Operational Excellence and Automation

    An automated remediation service handles several applications using one shared worker pool. Slow remediation for one application consumes every worker; which change BEST preserves remediation capacity for the other applications?

    Show the answer

    Correct answerD. Assign separate worker pools with concurrency limits to each application.

    AWhy not this: Backoff reduces retry pressure but does not isolate workers already occupied by slow tasks.

    BWhy not this: Longer timeouts can keep workers occupied longer and do not isolate application capacity.

    CWhy not this: A global admission limit does not prevent one application from consuming all admitted worker capacity.

    DWhy this is right: Separate pools prevent one application's slow tasks from consuming workers reserved for other applications.

    Separate, concurrency-limited worker pools implement bulkhead isolation, containing resource exhaustion within one application. A global rate limit constrains total arrivals but does not reserve workers for individual applications.

    Open this question
  18. Question 18

    Operational Excellence and Automation

    A CloudFormation stack sets a Lambda environment variable using a Secrets Manager dynamic reference, but the function continues using an old password after secret rotation. The function must obtain current credentials without stack updates; which change should the architect make?

    Show the answer

    Correct answerC. Retrieve the secret at runtime with a rotation-aware cache and scoped IAM permissions.

    AWhy not this: NoEcho masks parameter display; it does not refresh an environment variable after the underlying credential changes.

    BWhy not this: Deployment-time resolution still leaves a stored value that does not refresh automatically when credentials rotate.

    CWhy this is right: Runtime retrieval and cache refresh obtain current credentials independently of CloudFormation updates.

    DWhy not this: An unversioned reference selects the current version during resolution, but rotation does not trigger another CloudFormation resolution.

    Runtime retrieval with an appropriately refreshed cache lets the function obtain rotated credentials without a deployment. An unversioned dynamic reference selects the current secret when CloudFormation resolves it, but rotation alone does not update an existing environment variable.

    Open this question
  19. Question 19

    Operational Excellence and Automation

    A company needs policy checks during CDK synthesis and organization-level restrictions on member-account principals, including actions outside deployment pipelines. Which mechanisms address these needs? (Choose two.)

    Choose 2 answers

    Show the answer

    Correct answersA. Service control policies attached to organizational unitsB. CDK aspects that validate constructs

    AWhy this is right: SCPs set permission limits for affected member-account principals regardless of whether they use a deployment pipeline.

    BWhy this is right: Aspects traverse the construct tree during synthesis and can report policy validation errors.

    CWhy not this: Change sets preview stack changes but do not validate CDK constructs or constrain actions outside CloudFormation.

    DWhy not this: Service-managed StackSets distributes stacks across accounts but does not restrict principals' independent API actions.

    CDK aspects can validate constructs during synthesis, while SCPs limit available permissions for principals in member accounts. StackSets distributes infrastructure but does not establish an organization-level permissions boundary.

    Open this question
  20. Question 20

    Operational Excellence and Automation

    A reusable CloudFormation template must create a different database password for each stack without accepting or embedding plaintext passwords. Which approach meets this requirement?

    Show the answer

    Correct answerD. Create an AWS::SecretsManager::Secret resource with GenerateSecretString.

    AWhy not this: Importing one shared password does not create a different password for each stack and exposes it through stack outputs.

    BWhy not this: A shared default reuses the password and remains visible in the template despite NoEcho.

    CWhy not this: Base64 is reversible encoding, not secret protection, and the embedded password would be reused.

    DWhy this is right: Secrets Manager generates a password for each secret resource without requiring plaintext password input.

    GenerateSecretString creates a secret value for each newly created secret resource without embedding the password in the template. NoEcho masks parameter values in certain displays but does not generate passwords or protect a plaintext default in the template.

    Open this question
  21. Question 21

    Operational Excellence and Automation

    A company must detect S3 bucket policy violations introduced outside CloudFormation and automatically restore approved settings, without overwriting changes that have already restored compliance. Which design meets these requirements?

    Show the answer

    Correct answerA. Use an AWS Config rule with automatic remediation that rechecks current settings before making changes.

    AWhy this is right: AWS Config detects out-of-band violations, and a current-state check prevents unnecessary changes based on stale evaluations.

    BWhy not this: StackSets drift detection reports differences; automatic redeployment is not a built-in consequence of detecting drift.

    CWhy not this: CDK aspects inspect constructs during synthesis; synthesis alone neither inspects live settings nor reapplies configuration.

    DWhy not this: CloudFormation Hooks run during supported CloudFormation operations, not when someone independently changes a bucket.

    AWS Config can detect configuration changes outside CloudFormation and invoke remediation; checking current state avoids acting on stale compliance results. StackSets drift detection reports drift but does not automatically redeploy stack instances.

    Open this question
  22. Question 22

    Operational Excellence and Automation

    A pipeline scans a Lambda deployment package for vulnerabilities. The security team also requires deployment-time verification that the package came from an approved publisher and was not modified. What should the architect add?

    Show the answer

    Correct answerC. An AWS Signer signing step and Lambda code signing configuration

    AWhy not this: Vulnerability scanning identifies security flaws but does not verify the package's publisher or enforce signature checks.

    BWhy not this: Encryption protects package confidentiality, not verification of an approved publisher at deployment.

    CWhy this is right: AWS Signer supplies the signature, and Lambda code signing enforces integrity and approved-publisher verification.

    DWhy not this: Reviewing findings does not cryptographically verify the package that Lambda receives.

    AWS Signer signs the package, and Lambda code signing can enforce verification of its integrity and approved publisher. Encryption protects confidentiality but does not provide deployment-time publisher verification.

    Open this question
  23. Question 23

    Operational Excellence and Automation

    A pipeline pushes an image to an Amazon ECR repository with scan-on-push enabled, then immediately deploys when a findings query returns no critical vulnerabilities. Some deployments occur before scanning finishes. Which change closes this gap?

    Show the answer

    Correct answerA. Wait for scan completion for the image digest, then evaluate findings

    AWhy this is right: Checking completion and findings for the exact digest ties the release decision to a fully assessed image.

    BWhy not this: Signing establishes artifact authenticity and integrity, not scan completion or vulnerability acceptability.

    CWhy not this: Approval alone does not establish that the scan completed or that its findings meet the release policy.

    DWhy not this: A fixed delay can expire before completion, and the tag can move to another image.

    The gate must distinguish a completed scan with acceptable findings from a scan that has not finished, using the exact image digest. A fixed delay does not establish completion, and a mutable tag may identify a different image.

    Open this question
  24. Question 24

    Operational Excellence and Automation

    A release pipeline tests an ECR image in a staging account, then promotes it to production accounts in two Regions. Auditors require proof that production receives the exact tested image, even if release tags move. Which promotion design meets this requirement?

    Show the answer

    Correct answerC. Copy the tested image and deploy using its verified image digest

    AWhy not this: A movable tag can resolve to different images during different regional deployments.

    BWhy not this: Identical source revisions do not guarantee identical image contents when dependencies or build inputs differ.

    CWhy this is right: Digest verification binds each production deployment to the exact image that passed staging tests.

    DWhy not this: Approval of separate builds does not establish that their contents match the staging-tested image.

    Promoting the tested image and verifying its content-addressed digest preserves artifact identity across accounts and Regions. Rebuilding the same source revision can produce different image contents because dependencies or build inputs can change.

    Open this question
  25. Question 25

    Operational Excellence and Automation

    A CodePipeline pipeline in account A builds an artifact in account B and must deploy it through an action in account C in another Region. The team has configured regional artifact stores, customer managed KMS keys, and deployment roles, but cannot pass the B-produced artifact directly to C. Which redesign preserves one pipeline and avoids rebuilding?

    Show the answer

    Correct answerA. Run the build in account A and pass its artifact to account C

    AWhy this is right: Producing the artifact in the pipeline account allows the deployment action in account C to consume it.

    BWhy not this: S3 permissions do not remove CodePipeline's restriction on artifact passing between two non-pipeline accounts.

    CWhy not this: Approval does not change the artifact's producing account or its eligibility for cross-account consumption.

    DWhy not this: Changing key ownership does not make this cross-account artifact flow supported.

    Cross-account artifact passing supports artifacts produced in the pipeline account and consumed in another account. An artifact cannot pass directly between two accounts that are both different from the pipeline account; broader S3 or KMS permissions do not remove that restriction.

    Open this question
  26. Question 26

    Operational Excellence and Automation

    A CodePipeline service role in a tooling account must assume a deployment action role in a production account. Which IAM configuration enables this delegation?

    Show the answer

    Correct answerC. Allow AssumeRole in tooling and trust that role in production

    AWhy not this: iam:PassRole is not the permission used to assume a role across accounts.

    BWhy not this: The production role must trust the tooling role; reversing that trust does not authorize the required assumption.

    CWhy this is right: The caller's AssumeRole permission and the target role's trust policy jointly authorize delegation.

    DWhy not this: An identity policy alone does not establish trust or authorize assumption of the production role.

    Cross-account role assumption requires permission for the tooling role to call sts:AssumeRole and a production role trust policy that accepts the tooling role. iam:PassRole delegates a role to a service; it does not authorize cross-account role assumption.

    Open this question
  27. Question 27

    Operational Excellence and Automation

    An Amazon ECS service runs a queue-processing application with a desired count of three tasks and no load balancer. Sometimes the application process hangs while its container keeps running, so the task stays RUNNING and ECS never replaces it. Which change makes ECS replace hung tasks automatically?

    Show the answer

    Correct answerB. Add a container health check to the task definition that tests whether the application is processing.

    AWhy not this: Extra tasks add capacity, but the hung tasks keep running and are never replaced.

    BWhy this is right: When an essential container reports unhealthy, the ECS service scheduler stops the task and launches a replacement.

    CWhy not this: The circuit breaker watches deployments for failures; it does not act on tasks that hang between deployments.

    DWhy not this: The grace period only delays when ECS acts on health check results; with no health check, nothing reports the hung task.

    An ECS service keeps its desired count by replacing tasks that stop or that report unhealthy. A task whose process hangs but whose container keeps running looks healthy until a container health check tests the application itself; then the service scheduler stops the unhealthy task and starts a replacement. The deployment circuit breaker only judges deployments.

    Open this question
  28. Question 28

    Operational Excellence and Automation

    An Auto Scaling group has repeatable daily demand, occasional unforecast spikes, and a 12-minute application startup time. Which configuration provides capacity before predicted demand, reacts to unexpected demand, and removes excess capacity afterward without daily schedule maintenance?

    Show the answer

    Correct answerD. Use predictive scaling in forecast-and-scale mode, a 15-minute scheduling buffer, and CPU target tracking.

    AWhy not this: Instance warmup influences scaling decisions after launch; it does not launch instances ahead of expected demand.

    BWhy not this: Forecast-only mode generates predictions but does not launch capacity before the predicted increase.

    CWhy not this: Predictive scaling does not provide reactive scaling for unexpected spikes or automatically scale in.

    DWhy this is right: Predictive scaling prepares capacity early, while target tracking responds to deviations and removes excess capacity.

    Predictive scaling in forecast-and-scale mode launches capacity ahead of demand; the scheduling buffer allows startup time. Target tracking handles unexpected demand and scale-in, whereas predictive scaling alone does not scale in.

    Open this question
  29. Question 29

    Operational Excellence and Automation

    An Auto Scaling group processes an Amazon SQS queue, taking an average of 0.2 seconds per message per instance, with a minimum capacity of one instance. Workers need 180 seconds to initialize, and the acceptable backlog processing time is 120 seconds; which settings support an appropriate target tracking policy? (Choose three.)

    Choose 3 answers

    Show the answer

    Correct answersB. Configure the default instance warmup as 180 seconds.C. Use visible queue messages divided by the number of InService instances as the scaling metric.E. Set the backlog-per-instance target to 600 messages.

    AWhy not this: Multiplying processing time by acceptable latency does not calculate the allowable backlog per instance.

    BWhy this is right: Warmup accounts for the period before newly launched workers can contribute useful processing capacity.

    CWhy this is right: Backlog per instance falls as capacity increases, making it suitable for target tracking.

    DWhy not this: Total queue depth is not normalized by capacity and does not fall proportionally when instances are added.

    EWhy this is right: Dividing 120 seconds by 0.2 seconds per message gives a target of 600 messages per instance.

    FWhy not this: Target tracking uses instance warmup rather than the default cooldown to account for initializing instances.

    Backlog per instance normalizes demand by capacity, and the target is 120 / 0.2 = 600 messages. A 180-second warmup accounts for initialization; default cooldown is not a substitute for target tracking instance warmup.

    Open this question
  30. Question 30

    Operational Excellence and Automation

    Hundreds of remediation workers receive throttling errors from the same AWS API and retry simultaneously, prolonging the throttling. Transient failures should recover automatically without creating unlimited retry traffic; which change BEST meets these requirements?

    Show the answer

    Correct answerD. Use capped exponential backoff with jitter and a retry limit.

    AWhy not this: Worker isolation limits resource contention but does not reduce synchronized traffic to the shared API.

    BWhy not this: Fixed intervals can keep workers synchronized, and more attempts can prolong throttling.

    CWhy not this: Longer timeouts do not address throttling responses or the immediate retries that amplify request traffic.

    DWhy this is right: Increasing delays reduce retry pressure, jitter desynchronizes workers, and a retry limit bounds total attempts.

    Capped exponential backoff with jitter spreads retries over time, while a retry limit bounds the work. Separate worker pools isolate applications but do not prevent synchronized retries against a shared API.

    Open this question
  31. Question 31

    Operational Excellence and Automation

    A company announces a one-time sale beginning at 10:00 tomorrow, and its EC2 instances need 10 minutes to initialize. Which approach should provide additional capacity before the sale begins?

    Show the answer

    Correct answerB. Create a scheduled action to raise minimum and desired capacity at 09:45.

    AWhy not this: A lower CPU target can increase headroom but does not ensure a capacity increase at the required time.

    BWhy this is right: The scheduled action launches the required capacity early enough for initialization before the sale.

    CWhy not this: Historical demand does not establish the timing or magnitude of this unprecedented event.

    DWhy not this: A latency-triggered policy reacts after demand affects the application rather than preparing capacity beforehand.

    A scheduled action raises capacity before a known event and allows time for initialization. Predictive scaling uses historical patterns, so it is not the appropriate mechanism for an unprecedented one-time sale.

    Open this question
  32. Question 32

    Operational Excellence and Automation

    An Amazon ECS service has intermittent memory pressure that service-level averages conceal. Operations needs individual container memory metrics and drill-down dashboards without changing application code; what should the architect configure?

    Show the answer

    Correct answerA. Container Insights with enhanced observability for Amazon ECS

    AWhy this is right: Enhanced observability supplies granular ECS metrics and dashboards that expose individual container resource pressure.

    BWhy not this: Canaries test application behavior externally rather than measure container resource consumption.

    CWhy not this: Request traces show request execution paths and timing rather than individual container memory utilization.

    DWhy not this: Application Signals provides application health indicators, not the required individual container memory visibility.

    Container Insights with enhanced observability provides granular ECS telemetry, including container-level metrics and drill-down views. Application Signals focuses on application service health rather than individual container resource consumption.

    Open this question
  33. Question 33

    Operational Excellence and Automation

    A centralized Amazon S3 log archive retains large log objects for seven years. After 90 days, access is extremely rare and restores can take up to 48 hours; which lifecycle transition minimizes ongoing storage cost?

    Show the answer

    Correct answerC. Transition to S3 Glacier Deep Archive after 90 days.

    AWhy not this: Standard-IA supports immediate access but costs more to store data than Deep Archive.

    BWhy not this: Glacier Instant Retrieval charges for immediate access that these rarely accessed logs do not require.

    CWhy this is right: Deep Archive provides the lowest storage cost for this access pattern and supports restores within the allowed window.

    DWhy not this: Glacier Flexible Retrieval offers faster retrieval choices, but Deep Archive better minimizes long-term storage cost.

    S3 Glacier Deep Archive is suited to rarely accessed, long-term archives whose retrieval requirements allow hours of delay. S3 Glacier Flexible Retrieval supports faster retrieval choices but has higher storage costs.

    Open this question
  34. Question 34

    Operational Excellence and Automation

    An organization must stream existing and newly created log groups to a central archive with minimal per-group administration. The central account also runs a delivery-processing Lambda function whose logs must remain local to prevent recursive ingestion; which design meets these requirements?

    Show the answer

    Correct answerB. Deploy account-level subscription policies and exclude the processing function's log group from the central account's policy.

    AWhy not this: Account-level coverage meets automation needs, but including processor logs risks recursive ingestion.

    BWhy this is right: Account-level policies automate coverage, while the central exclusion prevents processor logs from reentering delivery.

    CWhy not this: Cross-account observability enables shared investigation but does not deliver log events to centralized archival storage.

    DWhy not this: Individual filters require additional provisioning for new groups, and forwarding processor logs can create recursive ingestion.

    Account-level subscription policies cover existing and newly created log groups without per-group filter management. Excluding the processor's log group prevents recursive delivery; cross-account observability shares visibility but does not stream logs into an archive.

    Open this question
  35. Question 35

    Operational Excellence and Automation

    A security account has a CloudWatch Logs logical destination backed by a Kinesis data stream, with its delivery role already configured. A source-account administrator must attach a log-group subscription to this destination; which authorization settings are required? (Choose two.)

    Choose 2 answers

    Show the answer

    Correct answersB. A destination access policy allowing the source account to use logs:PutSubscriptionFilter.E. An IAM policy allowing the source administrator to call logs:PutSubscriptionFilter on the relevant resources.

    AWhy not this: S3 write permission does not authorize creation of a CloudWatch Logs subscription to a logical destination.

    BWhy this is right: The destination access policy authorizes the source account to establish subscriptions to the cross-account destination.

    CWhy not this: CloudWatch Logs uses the configured delivery role; the administrator does not directly publish the log events to Kinesis.

    DWhy not this: An observability link shares telemetry visibility but does not authorize a cross-account subscription filter.

    EWhy this is right: The caller needs identity-based permission to create the subscription, including authorization for the cross-account destination.

    Cross-account subscriptions require destination-side permission and sender-side IAM permission to create the subscription. The source administrator does not need direct Kinesis write permission because CloudWatch Logs delivers events through the destination's configured role.

    Open this question
  36. Question 36

    Operational Excellence and Automation

    Which CloudWatch alarm type can notify operators only when both an existing CPU alarm and an existing latency alarm are in the ALARM state?

    Show the answer

    Correct answerD. A composite alarm using an AND rule

    AWhy not this: Percentile evaluation assesses a metric's distribution rather than combining existing alarm states.

    BWhy not this: A static-threshold alarm evaluates a metric against a threshold rather than combining existing alarm states.

    CWhy not this: Anomaly detection evaluates metric behavior against an expected range rather than combining existing alarm states.

    DWhy this is right: A composite alarm can use AND to enter ALARM only when both referenced alarms are in ALARM.

    A composite alarm evaluates the states of other alarms using logical rules such as AND. An anomaly detection alarm evaluates whether a metric departs from its expected range, not whether existing alarms are simultaneously in ALARM.

    Open this question
  37. Question 37

    Operational Excellence and Automation

    A CloudFormation execution role references a cross-account Secrets Manager secret by full ARN; the role and secret policies allow retrieval, but the secret uses the AWS managed aws/secretsmanager key. Which change enables the dynamic reference without copying the secret?

    Show the answer

    Correct answerD. Use a customer managed KMS key and authorize the execution role to decrypt.

    AWhy not this: The AWS managed aws/secretsmanager key cannot be configured to permit cross-account secret retrieval.

    BWhy not this: CloudFormation uses the execution role to resolve the reference; permissions for the deployment initiator do not replace its permissions.

    CWhy not this: NoEcho masks parameter display but does not change the KMS permissions needed to retrieve the secret.

    DWhy this is right: A customer managed key can authorize cross-account decryption through its key policy and the execution role's permissions.

    Cross-account secret retrieval requires a customer managed KMS key with permissions allowing the execution role to decrypt. The AWS managed aws/secretsmanager key cannot support this cross-account access, and its key policy cannot be edited.

    Open this question
  38. Question 38

    Operational Excellence and Automation

    A StackSet update must initially run in up to 10 accounts concurrently per Region and process Regions sequentially. After the first account failure, no new accounts should start, but in-flight deployments may finish; which operation preferences meet these requirements?

    Show the answer

    Correct answerC. Soft failure tolerance; tolerance 0; maximum concurrency 10; sequential Regions

    AWhy not this: Strict failure tolerance limits concurrency to failure tolerance plus one, so tolerance 0 permits only one concurrent account.

    BWhy not this: Tolerance 9 permits additional failures before stopping new account deployments.

    CWhy this is right: Soft mode permits 10 concurrent accounts, tolerance 0 stops new scheduling after a failure, and sequential mode orders Regions.

    DWhy not this: Parallel Region processing violates the requirement to process Regions sequentially.

    Soft failure tolerance decouples concurrency from failure tolerance, permitting 10 concurrent accounts while tolerance 0 stops scheduling after the first failure. Strict failure tolerance with tolerance 0 limits actual concurrency to one account; sequential processing prevents simultaneous Region deployments.

    Open this question
  39. Question 39

    Operational Excellence and Automation

    A company must deploy a baseline stack into two Regions whenever an account joins a designated AWS Organizations organizational unit. Which configuration meets this requirement with the least ongoing administration?

    Show the answer

    Correct answerC. A service-managed StackSet targeting the OU with automatic deployments enabled

    AWhy not this: Maintaining account IDs requires updating deployment targets when accounts join the OU.

    BWhy not this: Execution roles enable deployment permissions but do not automatically initiate deployments when accounts join an OU.

    CWhy this is right: Service-managed permissions and automatic deployments support deploying into new accounts in the targeted OU.

    DWhy not this: Existing OU accounts can be targeted, but newly added accounts will not receive automatic deployments.

    Service-managed StackSets can automatically deploy stack instances when accounts join a targeted OU. Targeting an OU without enabling automatic deployments does not automatically extend the baseline to newly added accounts.

    Open this question
  40. Question 40

    Operational Excellence and Automation

    A service-managed CloudFormation StackSet with automatic deployment targets the Workloads OU and deploys a logging baseline to each account in it. When an account moves out of that OU, the baseline stack must remain in the account instead of being deleted. Which setting meets this requirement?

    Show the answer

    Correct answerA. Set the automatic deployment's account removal behavior to retain stacks.

    AWhy this is right: With retain stacks, CloudFormation removes the stack instance from the StackSet but leaves the stack and its resources in the account.

    BWhy not this: The resources survive, but the stack itself is still deleted, leaving unmanaged resources rather than a stack.

    CWhy not this: Self-managed permissions do not support automatic deployment to OUs at all.

    DWhy not this: Failure tolerance limits how many account failures stop an operation; it does not keep stacks from being deleted.

    Automatic deployment in a service-managed StackSet adds stack instances to accounts that join a target OU and, by default, deletes them from accounts that leave it. Setting the account removal behavior to retain stacks removes the stack instance from the StackSet but keeps the stack and its resources in the account. DeletionPolicy: Retain keeps resources but not the stack.

    Open this question
  41. Question 41

    Operational Excellence and Automation

    An application uses blue/green deployment with a shared database; a release replaces a column that the previous version requires. Writes must continue, both versions must coexist during validation, and traffic rollback must preserve new transactions. Which release plan meets these requirements?

    Show the answer

    Correct answerB. Add a compatible column, synchronize both representations, and defer removal until the rollback window closes.

    AWhy not this: Keeping the old application does not help when the shared schema no longer supports it.

    BWhy this is right: Compatible schema expansion and synchronized representations support coexistence and rollback without losing new writes.

    CWhy not this: Snapshot restoration can discard transactions committed after the snapshot and disrupt continued writes.

    DWhy not this: The old representation becomes stale, so the previous application cannot correctly process newly written data.

    An expand-and-contract migration keeps both application versions compatible while synchronized data preserves ongoing writes. Retaining the old environment alone cannot make its code compatible with a destructive schema change.

    Open this question
  42. Question 42

    Operational Excellence and Automation

    A retrieval-augmented generation application retrieves relevant passages, but a new model adds plausible claims unsupported by those passages. The pipeline must isolate this regression without changing retrieval results. Which evaluation design is BEST?

    Show the answer

    Correct answerA. Compare answer faithfulness using identical prompts and retrieved passages.

    AWhy this is right: Fixed inputs isolate the model change, while faithfulness measures support from the supplied evidence.

    BWhy not this: Rebuilding indexes changes retrieval and does not isolate unsupported claims introduced during generation.

    CWhy not this: A claim can match a reference answer while lacking support in the retrieved passages.

    DWhy not this: Completeness measures coverage, and independently retrieved passages introduce a confounding variable.

    Faithfulness evaluates whether answers are supported by the supplied context; fixing prompts and passages isolates generation changes. Answer correctness alone can accept factually correct claims that the retrieved evidence does not support.

    Open this question
  43. Question 43

    Operational Excellence and Automation

    Which deployment strategy switches traffic between two complete environments while retaining the previous environment for rapid rollback?

    Show the answer

    Correct answerD. Blue/green deployment

    AWhy not this: Rolling deployment replaces instances incrementally instead of switching between two complete environments.

    BWhy not this: In-place deployment updates the existing environment rather than retaining a separate previous environment.

    CWhy not this: Recreate deployment removes the old deployment before bringing up its replacement.

    DWhy this is right: Separate environments allow traffic to move to the new release and return to the retained environment.

    Blue/green deployment maintains separate environments and switches traffic between them, allowing rapid reversal. Rolling deployment replaces instances incrementally rather than retaining two complete environments.

    Open this question
  44. Question 44

    Operational Excellence and Automation

    A team deploys a Lambda function through AWS CodeDeploy and must expose 10% of requests to the new version for 10 minutes before full promotion. Elevated errors must automatically return traffic to the previous version. Which configuration meets these requirements?

    Show the answer

    Correct answerB. Canary traffic shifting with a CloudWatch alarm and alarm-triggered rollback

    AWhy not this: All-at-once shifting exposes all requests immediately instead of limiting initial exposure to 10%.

    BWhy this is right: A 10%-for-10-minutes canary plus alarm-triggered rollback provides the required exposure and automatic recovery.

    CWhy not this: Manual approval before deployment does not automatically reverse traffic when runtime errors increase.

    DWhy not this: Linear shifting repeatedly increases traffic and does not provide the required single 10% observation period.

    A canary configuration can send 10% of traffic to the new version for 10 minutes, while a CloudWatch alarm triggers automatic rollback. Linear shifting increases traffic repeatedly rather than holding a single initial percentage.

    Open this question
  45. Question 45

    Operational Excellence and Automation

    A team must compare Amazon Bedrock model responses for empathy and adherence to its customer-service tone guide. Domain specialists must determine the ratings. Which evaluation approach should the team use?

    Show the answer

    Correct answerD. Human evaluation using a custom rating rubric

    AWhy not this: Reference-answer accuracy does not capture the required specialist judgments about empathy and tone.

    BWhy not this: Response latency measures performance rather than empathy or adherence to a tone guide.

    CWhy not this: Container vulnerability findings assess software security, not the quality of model responses.

    DWhy this is right: A custom human-evaluation rubric lets specialists rate responses against the organization's criteria.

    Human evaluation with a custom rubric lets domain specialists judge empathy and organization-specific tone. Reference-answer accuracy measures agreement with expected answers, not the specialists' subjective assessment.

    Open this question
  46. Question 46

    Operational Excellence and Automation

    An Amazon SageMaker AI fraud endpoint has stable input distributions and latency, but fraud recall may be declining; confirmed outcomes arrive seven days later, and fraud represents 0.2% of requests. Which monitoring design best detects missed fraud without evaluating predictions whose outcomes are still pending?

    Show the answer

    Correct answerD. Join captured predictions to outcomes by inference identifier, evaluate matured cohorts, and alert on declining fraud recall.

    AWhy not this: Overall accuracy is dominated by legitimate requests and can conceal declining recall for the rare fraud class.

    BWhy not this: Prediction frequency lacks ground truth and cannot distinguish missed fraud from a change in actual fraud prevalence.

    CWhy not this: Input drift can identify distribution changes but cannot establish whether confirmed fraud is being missed.

    DWhy this is right: Matched outcomes and matured cohorts support valid recall measurement without treating pending outcomes as known negatives.

    Joining predictions with delayed ground truth and evaluating matured cohorts supports valid fraud-recall measurement. Overall accuracy can remain high when nearly all requests are legitimate, even if the model misses substantial fraud.

    Open this question
  47. Question 47

    Operational Excellence and Automation

    An application publishes a CloudWatch metric only when a processing error occurs. An alarm must notify an Amazon SNS topic when errors exceed the threshold, without treating quiet periods as failures; how should missing data be configured?

    Show the answer

    Correct answerC. Treat missing data as not breaching.

    AWhy not this: Missing can produce INSUFFICIENT_DATA rather than representing quiet periods as healthy.

    BWhy not this: Breaching treats absent error samples as failures and can trigger unwanted notifications during quiet periods.

    CWhy this is right: Not breaching treats absent error samples as healthy periods, matching the metric's publication behavior.

    DWhy not this: Ignoring missing data retains the current state, which can leave an earlier error alarm active during quiet periods.

    Treating missing data as not breaching fits an error-only metric because absent samples represent no reported errors. Ignoring missing data preserves the current state and can leave the alarm in ALARM after errors stop.

    Open this question
  48. Question 48

    Operational Excellence and Automation

    A service publishes latency every minute, and operations wants an alert when any three of the latest five one-minute periods breach the threshold. Healthy periods between breaches must not reset the evaluation; which CloudWatch alarm configuration meets this requirement?

    Show the answer

    Correct answerB. Period: 60 seconds; evaluation periods: 5; datapoints to alarm: 3.

    AWhy not this: A five-minute period evaluates an aggregated datapoint rather than counting individual one-minute breaches.

    BWhy this is right: Three out of five counts nonconsecutive breaches within the latest five one-minute periods.

    CWhy not this: Five out of five requires every period in the window to breach, making the alarm less sensitive than required.

    DWhy not this: Three out of three requires the latest three one-minute periods to breach, excluding separated breaches within five minutes.

    An M-out-of-N alarm with three datapoints to alarm and five evaluation periods detects three breaches within the rolling five-period window, even when they are not consecutive. Three out of three requires all three latest periods to breach.

    Open this question
  49. Question 49

    Operational Excellence and Automation

    An AI agent's tool calls return successful HTTP responses and its inference latency meets targets, but users report that completed sessions often fail to accomplish their requests. Which additional metric should drive an alert for this problem?

    Show the answer

    Correct answerB. Percentage of evaluated sessions meeting task-specific success criteria

    AWhy not this: An agent can finish without an exception while producing an incorrect result or leaving the task incomplete.

    BWhy this is right: Task-specific evaluation detects unsuccessful user outcomes even when tool calls and model requests operate normally.

    CWhy not this: Inference latency measures responsiveness, which already meets targets and does not measure task correctness.

    DWhy not this: Successful HTTP responses show tool availability but do not establish that the agent selected or used tools correctly.

    Task-level success evaluation measures whether the agent accomplished the user's goal, including semantic failures despite healthy infrastructure. Successful tool responses and exception-free execution show operational health, not successful task completion.

    Open this question
  50. Question 50

    Operational Excellence and Automation

    An Amazon SageMaker AI real-time endpoint has increasing response times. An architect needs to isolate the time spent processing requests inside the model container from SageMaker AI service overhead; which CloudWatch metric should the architect examine?

    Show the answer

    Correct answerB. ModelLatency

    AWhy not this: OverheadLatency measures service overhead outside model response processing rather than the container response interval.

    BWhy this is right: ModelLatency captures model response time as observed by SageMaker AI, including local container communication.

    CWhy not this: ModelInvocation4XXErrors counts requests resulting in model-side 4XX errors rather than measuring processing duration.

    DWhy not this: InvocationsPerInstance measures request volume per instance, not time spent processing a request.

    ModelLatency measures the time the model takes to respond as observed by SageMaker AI, including local communication with the container. OverheadLatency measures SageMaker AI overhead outside that model-response interval.

    Open this question