Curated

Deployment, Provisioning, and Automation (3.1–3.2)

0 votes

Questions66

  1. Question 1

    Deployment, Provisioning, and Automation

    Which AWS service provides managed pipelines to build, customize, and test Amazon Machine Images?

    Show the answer

    Correct answerA. EC2 Image Builder

    AWhy this is right: EC2 Image Builder automates image creation, customization, and testing through managed pipelines.

    BWhy not this: CodeDeploy deploys application revisions to compute resources rather than producing AMIs.

    CWhy not this: CloudFormation provisions infrastructure from templates rather than building and testing operating system images itself.

    DWhy not this: Amazon ECR stores and distributes container images rather than building and testing AMIs.

    EC2 Image Builder provides pipelines for creating, customizing, and testing AMIs. AWS CloudFormation provisions resources from templates but is not itself an image-building service.

    Open this question
  2. Question 2

    Deployment, Provisioning, and Automation

    A team stores release container images in an Amazon ECR private repository. Which setting should it enable to reject pushes that reuse an existing release tag?

    Show the answer

    Correct answerD. Tag immutability

    AWhy not this: Replication copies images to other registries; it does not prevent source tags from being overwritten.

    BWhy not this: Scan on push checks images for vulnerabilities rather than preventing tag replacement.

    CWhy not this: Lifecycle policies expire images according to rules; they do not reject pushes that reuse tags.

    DWhy this is right: Tag immutability rejects attempts to overwrite existing tags when no applicable exclusion permits the update.

    Tag immutability prevents an existing image tag from being overwritten by another push. An image lifecycle policy controls image expiration rather than protecting tags from replacement.

    Open this question
  3. Question 3

    Deployment, Provisioning, and Automation

    An administrator deregisters an obsolete EBS-backed AMI but retains its snapshots, which no other AMI references. Running instances launched from it must remain available; which action removes the retained image-storage charges?

    Show the answer

    Correct answerA. Delete the snapshots that backed the deregistered AMI.

    AWhy this is right: Deleting the unneeded backing snapshots removes their storage charges without deleting existing instance volumes.

    BWhy not this: Instance root volumes are separate from the retained snapshots and are needed by the running workloads.

    CWhy not this: Launch permissions govern AMI access, not storage billing for retained snapshots.

    DWhy not this: Stopping instances does not delete retained AMI snapshots or eliminate their storage charges.

    Deregistering an AMI does not remove retained backing snapshots or their storage charges. Deleting those snapshots removes their charges without affecting existing instance volumes; deleting attached root volumes would threaten the running workloads.

    Open this question
  4. Question 4

    Deployment, Provisioning, and Automation

    A team must share an EBS-backed AMI with another AWS account in the same Region without removing encryption or making the image public. Its snapshots use the AWS managed key aws/ebs; what should the team do?

    Show the answer

    Correct answerD. Copy the AMI using a customer managed KMS key, then share the copy and authorize the recipient to use that key.

    AWhy not this: The AWS managed aws/ebs key cannot be shared with another account.

    BWhy not this: AWS RAM does not share EC2 AMIs, and selecting another key at launch does not bypass source-key restrictions.

    CWhy not this: Copying with aws/ebs retains the encryption-key restriction that prevents cross-account sharing.

    DWhy this is right: A customer managed key supports cross-account authorization, allowing the encrypted AMI copy to be shared privately.

    Snapshots encrypted with the AWS managed aws/ebs key cannot be shared across accounts. Copy the AMI with a customer managed KMS key, share the copied AMI, and grant the recipient appropriate key access; permissions on aws/ebs cannot enable this sharing.

    Open this question
  5. Question 5

    Deployment, Provisioning, and Automation

    An EC2 maintenance workflow must obtain approval before stopping an instance, create an EBS snapshot before updating software, and restart the instance if the update fails. The team wants one auditable Systems Manager workflow with minimal custom orchestration; which design is BEST?

    Show the answer

    Correct answerA. Create an Automation runbook with approval, ordered actions, and a failure branch to restart.

    AWhy this is right: Automation combines approval, ordered operations, execution history, and explicit failure routing in one runbook.

    BWhy not this: Separate command invocations require additional orchestration to coordinate approval, dependencies, and failure recovery.

    CWhy not this: Separate associations enforce configurations rather than coordinate an approval-gated transactional workflow.

    DWhy not this: Task priority controls ordering but does not provide the required conditional failure-recovery workflow.

    An Automation runbook supports approval steps, ordered AWS API actions, and failure routing to recovery steps in one execution. Maintenance window task priorities provide scheduling order, not conditional recovery based on an earlier task's result.

    Open this question
  6. Question 6

    Deployment, Provisioning, and Automation

    An operations team must check hourly that a monitoring agent is installed on managed EC2 instances and reinstall it if missing. Newly tagged instances must be included automatically. What should the team configure?

    Show the answer

    Correct answerB. A State Manager association with tag targets and an hourly schedule

    AWhy not this: A single invocation does not establish recurring checks or automatically cover future matching instances.

    BWhy this is right: A tag-targeted association includes matching managed nodes and reapplies the desired configuration on schedule.

    CWhy not this: Instance state changes do not detect an agent removed from an instance that remains running.

    DWhy not this: Inventory reports installed software but does not reinstall missing software.

    A scheduled State Manager association can target instances by tag and repeatedly apply a document that ensures the agent is installed. Inventory collects software information but does not remediate a missing agent.

    Open this question
  7. Question 7

    Deployment, Provisioning, and Automation

    A team patches managed Amazon Linux instances every Sunday, but only wants security patches released at least seven days earlier to be eligible. Which configuration meets this requirement?

    Show the answer

    Correct answerB. Use a security-only baseline with seven-day auto-approval and run patch installation every Sunday.

    AWhy not this: Weekly installation controls execution timing, not the minimum age of eligible patches.

    BWhy this is right: The approval delay restricts patch eligibility, and the weekly installation applies eligible patches.

    CWhy not this: A maintenance window cutoff controls when new tasks stop starting, not patch eligibility.

    DWhy not this: The approval delay meets the age requirement, but a scan reports compliance without installing patches.

    A patch baseline's auto-approval delay controls patch eligibility based on release age; the installation schedule controls when eligible patches are installed. Weekly installation alone does not prevent installation of recently released patches.

    Open this question
  8. Question 8

    Deployment, Provisioning, and Automation

    Which AWS Systems Manager capability runs a one-time shell command across selected managed EC2 instances without requiring inbound SSH access?

    Show the answer

    Correct answerB. Run Command

    AWhy not this: Session Manager provides interactive sessions rather than fleet-wide command execution.

    BWhy this is right: Run Command executes commands remotely on selected managed nodes without inbound SSH access.

    CWhy not this: State Manager uses associations to maintain desired configurations on managed nodes.

    DWhy not this: Patch Manager automates patch scanning and installation rather than arbitrary shell commands.

    Run Command remotely executes commands on selected managed nodes without inbound SSH access. State Manager maintains a desired configuration through associations rather than primarily providing one-time command execution.

    Open this question
  9. Question 9

    Deployment, Provisioning, and Automation

    An EC2 Image Builder pipeline uses an image recipe with approved components. An administrator must add a hardening component while preserving the existing recipe for reproducible builds. What should the administrator do?

    Show the answer

    Correct answerA. Create a new image recipe version

    AWhy this is right: A new recipe version can include the hardening component while preserving the previous recipe.

    BWhy not this: An existing image recipe version is immutable; its component list cannot be edited.

    CWhy not this: Distribution configurations control image delivery and sharing, not build components.

    DWhy not this: Infrastructure configurations specify build resources and settings, not the recipe's component list.

    Image recipes are immutable; changing their components requires a new recipe version. Distribution configurations control where images are distributed, not which components build them.

    Open this question
  10. Question 10

    Deployment, Provisioning, and Automation

    An administrator is creating an EBS-backed AMI from an instance that is writing application data. A brief interruption is acceptable, and filesystem consistency is more important than uninterrupted availability. Which image creation setting should the administrator choose?

    Show the answer

    Correct answerB. Allow the default instance reboot

    AWhy not this: Detailed monitoring changes metric collection frequency, not the consistency of an AMI's snapshots.

    BWhy this is right: The default reboot allows snapshots to capture data at rest, supporting filesystem consistency.

    CWhy not this: Skipping the reboot can capture writes in progress and does not guarantee filesystem integrity.

    DWhy not this: Termination protection prevents accidental termination, not inconsistent snapshots during image creation.

    Allowing the default reboot lets Amazon EC2 snapshot the volumes while data is at rest, supporting filesystem consistency. The no-reboot option avoids interruption but does not guarantee filesystem integrity.

    Open this question
  11. Question 11

    Deployment, Provisioning, and Automation

    A team defines infrastructure with the AWS CDK. Its review process requires generating a CloudFormation template for inspection without deploying resources. Which action should the team take?

    Show the answer

    Correct answerB. Run the CDK synth operation

    AWhy not this: Drift detection compares deployed resources with their stack configuration; it does not synthesize a CDK application.

    BWhy this is right: Synthesis generates the CloudFormation template from the CDK application without deploying its resources.

    CWhy not this: Bootstrapping provisions supporting resources in an AWS environment; it does not simply generate the application's template.

    DWhy not this: Deployment creates or updates the application's resources rather than stopping at template generation.

    CDK synthesis generates CloudFormation templates from the application's constructs without deploying the defined resources. CDK deploy submits the infrastructure for deployment rather than only generating a template for review.

    Open this question
  12. Question 12

    Deployment, Provisioning, and Automation

    Which AWS service provides private repositories for storing and managing container images?

    Show the answer

    Correct answerC. Amazon Elastic Container Registry

    AWhy not this: EC2 Image Builder automates image creation and testing; it is not a container image registry.

    BWhy not this: CodeArtifact stores software packages and dependencies, not container images as a container registry.

    CWhy this is right: Amazon ECR provides managed private repositories for container images.

    DWhy not this: Amazon ECS orchestrates containers; it retrieves their images from a registry.

    Amazon Elastic Container Registry (Amazon ECR) stores and manages container images in repositories. Amazon Elastic Container Service runs and manages containers rather than serving as their image registry.

    Open this question
  13. Question 13

    Deployment, Provisioning, and Automation

    A team enables cross-Region replication for an Amazon ECR private repository that already contains release images. New pushes replicate successfully, but earlier releases are absent from the destination; what should the team do to include those releases?

    Show the answer

    Correct answerC. Push the earlier release images again after enabling replication

    AWhy not this: Recreating a replication rule does not cause existing images to be backfilled.

    BWhy not this: The source registry's replication configuration controls outbound replication; a reverse rule does not backfill source images.

    CWhy this is right: Pushing the earlier images after replication is configured makes them eligible for replication.

    DWhy not this: Successful replication of new pushes indicates that destination permissions are not the cause of the missing historical images.

    Amazon ECR replication applies to images pushed or restored after replication is configured; it does not backfill existing images. Pushing the earlier releases again triggers replication, whereas recreating the rule does not backfill them.

    Open this question
  14. Question 14

    Deployment, Provisioning, and Automation

    Which AWS Systems Manager capability collects installed application metadata from managed nodes?

    Show the answer

    Correct answerB. Systems Manager Inventory

    AWhy not this: Session Manager provides interactive access to managed nodes rather than collecting application metadata.

    BWhy this is right: Inventory collects installed application metadata and other system information from managed nodes.

    CWhy not this: Patch Manager manages patch compliance and installation, not general application inventory.

    DWhy not this: Parameter Store stores configuration values and secrets rather than discovering installed software.

    Systems Manager Inventory collects metadata such as installed applications and operating system details from managed nodes. Patch Manager scans for patch compliance and installs patches rather than collecting general application inventory.

    Open this question
  15. Question 15

    Deployment, Provisioning, and Automation

    A Systems Manager Automation runbook must patch 100 instances, and no more than two instances may fail before the rollout stops. Which rate control settings guarantee this?

    Show the answer

    Correct answerB. Concurrency 1 and error threshold 1

    AWhy not this: With 10 targets running at once, others already in progress can fail after the threshold is reached.

    BWhy this is right: One target at a time means nothing else is running, and a threshold of 1 stops new targets when the second error arrives.

    CWhy not this: A threshold of 2 stops only when the third error is received, allowing three failures.

    DWhy not this: Two percent of 100 is two, so the rollout stops on the third error, and two targets can be running at that moment.

    With an error threshold of N, Automation stops starting new targets when error N+1 is received, so a threshold of 1 stops after the second failure. Executions already running when the threshold is reached are allowed to finish and can fail too, so only a concurrency of 1 guarantees no extra failures.

    Open this question
  16. Question 16

    Deployment, Provisioning, and Automation

    An operations team must run registered maintenance tasks every Sunday within a four-hour window and stop starting new tasks during the final hour. What should the team configure?

    Show the answer

    Correct answerB. A maintenance window with a four-hour duration and one-hour cutoff

    AWhy not this: An association execution timeout does not define a maintenance window with a separate task-start cutoff.

    BWhy this is right: The duration defines the maintenance period, and the cutoff stops new tasks from starting during its final hour.

    CWhy not this: An execution timeout and delay do not establish a recurring maintenance window or its task-start cutoff.

    DWhy not this: A flexible time window spreads scheduled invocations; it does not provide maintenance task duration and cutoff controls.

    Systems Manager Maintenance Windows provides a recurring schedule, duration, and cutoff that stops new tasks from starting before the window ends. An EventBridge flexible time window controls when an invocation can occur; it does not define a maintenance execution window.

    Open this question
  17. Question 17

    Deployment, Provisioning, and Automation

    A company packages an internal monitoring agent for its managed Linux and Windows nodes. Which Systems Manager capability should it use to publish versioned packages and manage their installation?

    Show the answer

    Correct answerA. Systems Manager Distributor

    AWhy this is right: Distributor supports publishing, versioning, and installing custom software packages on managed nodes.

    BWhy not this: Inventory reports installed software metadata but does not publish software packages for installation.

    CWhy not this: Patch Manager manages supported patches rather than publishing arbitrary internal software packages.

    DWhy not this: Parameter Store holds configuration values and secrets, not installable software packages.

    Systems Manager Distributor packages and publishes software for installation on managed nodes, including custom software packages and their versions. Patch Manager manages patches for supported operating systems and applications rather than serving as a custom package distribution catalog.

    Open this question
  18. Question 18

    Deployment, Provisioning, and Automation

    A CloudFormation update will replace an EBS volume. The administrator must retain the original volume after replacement but delete the managed replacement when the stack is deleted; which configuration meets these requirements?

    Show the answer

    Correct answerA. Set DeletionPolicy to Delete and UpdateReplacePolicy to Retain.

    AWhy this is right: This retains the original during replacement and deletes the managed replacement when the stack is deleted.

    BWhy not this: This snapshots rather than retains the original volume and retains the replacement at stack deletion.

    CWhy not this: This deletes the original during replacement and snapshots the replacement when the stack is deleted.

    DWhy not this: This deletes the original during replacement and retains the replacement when the stack is deleted.

    UpdateReplacePolicy: Retain preserves the old physical resource during replacement, while DeletionPolicy: Delete deletes the managed resource with the stack. DeletionPolicy: Retain alone does not preserve a resource replaced during an update.

    Open this question
  19. Question 19

    Deployment, Provisioning, and Automation

    What is the basic building block of an AWS CDK application that represents one or more cloud resources?

    Show the answer

    Correct answerC. A construct

    AWhy not this: An image recipe defines the base image and components used for an EC2 Image Builder build.

    BWhy not this: A Git branch maintains a separate line of version-controlled development.

    CWhy this is right: A construct defines cloud resources or reusable groups of resources within a CDK application.

    DWhy not this: A Terraform provider enables Terraform to interact with a platform's APIs.

    A construct is the basic building block of an AWS CDK application and can represent individual resources or higher-level resource patterns. A Terraform provider integrates Terraform with a platform's APIs, rather than defining a CDK building block.

    Open this question
  20. Question 20

    Deployment, Provisioning, and Automation

    An administrator has modified a CloudFormation template. Before applying it, a reviewer must inspect which resources CloudFormation expects to add, modify, or remove; what should the administrator create?

    Show the answer

    Correct answerA. A CloudFormation change set

    AWhy this is right: A change set previews proposed resource additions, modifications, and removals before execution.

    BWhy not this: Drift detection compares deployed resources with their expected configuration, not a proposed template update.

    CWhy not this: Template validation checks validity, not the resource changes that a proposed stack update would make.

    DWhy not this: Stack events describe operations that have occurred rather than previewing a proposed update.

    A change set previews the resource changes CloudFormation expects from a proposed update without executing them. Template validation checks template validity but does not preview resource additions, modifications, or removals.

    Open this question
  21. Question 21

    Deployment, Provisioning, and Automation

    Which CloudFormation template section accepts deployment-specific input values, such as an EC2 instance type?

    Show the answer

    Correct answerC. Parameters

    AWhy not this: Resources declare the AWS resources that CloudFormation provisions and manages.

    BWhy not this: Mappings define lookup tables whose values are embedded in the template.

    CWhy this is right: Parameters accept input values supplied when creating or updating a stack.

    DWhy not this: Outputs expose values from a stack, such as resource identifiers.

    Parameters accept input values when a stack is created or updated. Mappings define lookup values within the template rather than accepting deployment inputs.

    Open this question
  22. Question 22

    Deployment, Provisioning, and Automation

    An administrator must import an existing S3 bucket into a CloudFormation stack without recreating it and also change a managed EC2 instance's type. The bucket must survive later stack deletion; which approach meets these requirements?

    Show the answer

    Correct answerD. Import the bucket with DeletionPolicy: Retain, then update the instance separately.

    AWhy not this: UpdateReplacePolicy governs replacement, not stack deletion, and does not satisfy the import DeletionPolicy requirement.

    BWhy not this: A resource import operation cannot also modify resources already managed by the stack.

    CWhy not this: A standard update does not adopt the existing bucket; termination protection blocks deletion of the entire stack.

    DWhy this is right: Import adopts the bucket, Retain protects it at stack deletion, and a separate update changes the instance.

    Resource import brings the existing bucket under stack management, and DeletionPolicy: Retain preserves it at stack deletion. Import cannot also modify existing resources, so the instance change requires a separate update; UpdateReplacePolicy does not govern stack deletion.

    Open this question
  23. Question 23

    Deployment, Provisioning, and Automation

    Which Amazon S3 feature can invoke a Lambda function when an object is created in a bucket?

    Show the answer

    Correct answerA. S3 Event Notifications

    AWhy this is right: Event Notifications can send object-created events directly to a Lambda function.

    BWhy not this: Replication rules copy eligible objects to destination buckets rather than invoke Lambda.

    CWhy not this: Lifecycle rules transition or expire objects according to their lifecycle configuration.

    DWhy not this: Inventory reports provide scheduled listings of objects and their metadata.

    S3 Event Notifications can invoke Lambda in response to object-created events. S3 Lifecycle rules manage object transitions and expiration rather than invoking processing functions.

    Open this question
  24. Question 24

    Deployment, Provisioning, and Automation

    An operations team must invoke a Lambda function whenever an EC2 instance enters the stopped state, without polling. What should the team configure?

    Show the answer

    Correct answerC. An EventBridge rule matching EC2 state-change events with state stopped

    AWhy not this: A scheduled association performs periodic management work rather than reacting directly to an EC2 state-change event.

    BWhy not this: Low CPU utilization does not establish that an instance has entered the stopped state.

    CWhy this is right: EC2 emits state-change events that EventBridge can filter for the stopped state and route to Lambda.

    DWhy not this: A recurring schedule is time-driven and would require polling to determine instance state.

    An EventBridge event pattern can match EC2 Instance State-change Notification events whose state is stopped. A schedule invokes on a time basis rather than in response to a state transition.

    Open this question
  25. Question 25

    Deployment, Provisioning, and Automation

    An S3-triggered Lambda function reads from incoming/ and writes results to processed/ in the same bucket. Notifications can be duplicated or processed concurrently; which design prevents output-triggered recursion and suppresses concurrent duplicate processing of the same object version?

    Show the answer

    Correct answerB. Filter notifications to incoming/; conditionally claim bucket, key, and version ID in DynamoDB before processing.

    AWhy not this: Concurrent invocations can both read an absent record and then both write it, allowing duplicate processing.

    BWhy this is right: The prefix excludes outputs, and an atomic conditional claim allows only one invocation to claim a given object version.

    CWhy not this: Execution-environment memory is not shared across concurrent Lambda environments, so separate invocations can process the same version.

    DWhy not this: Filtering to processed/ selects output objects instead of the incoming objects that require processing.

    An incoming/ prefix filter excludes output objects. A DynamoDB conditional write provides an atomic claim for each object version, suppressing concurrent duplicates; a separate read followed by an unconditional write permits a race.

    Open this question
  26. Question 26

    Deployment, Provisioning, and Automation

    An EventBridge rule's Lambda target has an SQS queue, encrypted with SQS-managed keys (SSE-SQS), as its dead-letter queue. The rule's FailedInvocations and InvocationsFailedToBeSentToDlq metrics are both rising, and the queue stays empty. What should the engineer fix?

    Show the answer

    Correct answerC. The queue's access policy, so that EventBridge may send messages to it

    AWhy not this: Visibility timeout affects consumers reading the queue, not whether EventBridge can write messages to it.

    BWhy not this: A Lambda on-failure destination captures failed executions of accepted events, not EventBridge delivery failures.

    CWhy this is right: The queue policy must allow events.amazonaws.com to call sqs:SendMessage, or failed events cannot reach the dead-letter queue.

    DWhy not this: A shorter maximum event age sends events to the dead-letter queue sooner but does not let EventBridge write to it.

    EventBridge needs permission in the queue's resource-based policy to send undelivered events to a dead-letter queue; without it, events that fail delivery cannot be written there and InvocationsFailedToBeSentToDlq rises. A Lambda on-failure destination handles events that Lambda accepted, not events EventBridge could not deliver.

    Open this question
  27. Question 27

    Deployment, Provisioning, and Automation

    An engineer is configuring an S3 event notification to invoke a Lambda function in the same account and Region. Which permission allows S3 to invoke the function?

    Show the answer

    Correct answerD. Allow the S3 service principal to invoke the function in its resource-based policy.

    AWhy not this: Bucket write permission governs object access, not invocation of a Lambda function.

    BWhy not this: Object-read permission lets function code retrieve data but does not authorize S3 to invoke the function.

    CWhy not this: The uploader creates the object, but S3 is the principal that invokes the function for the notification.

    DWhy this is right: The function's resource-based policy grants S3 permission to invoke it and can restrict the source bucket and account.

    The Lambda resource-based policy must allow the S3 service principal to invoke the function, typically restricted by source bucket and account. The execution role governs actions performed by function code, not S3's permission to invoke it.

    Open this question
  28. Question 28

    Deployment, Provisioning, and Automation

    Which EventBridge rule component selects incoming events according to values such as event source and detail type?

    Show the answer

    Correct answerD. Event pattern

    AWhy not this: A target is the destination invoked when an event matches the rule.

    BWhy not this: An input transformer reshapes matched event data before delivery to a target.

    CWhy not this: A retry policy controls delivery retries after a target invocation fails.

    DWhy this is right: An event pattern specifies the event fields and values that a rule matches.

    An event pattern matches fields in incoming events to determine whether a rule applies. An input transformer changes the data delivered to a target after matching; it does not select events.

    Open this question
  29. Question 29

    Deployment, Provisioning, and Automation

    Which destinations can receive S3 Event Notifications directly, without routing through EventBridge? (Choose three.)

    Choose 3 answers

    Show the answer

    Correct answersA. An Amazon SNS standard topicC. An AWS Lambda functionD. An Amazon SQS standard queue

    AWhy this is right: S3 can publish event notifications directly to an SNS standard topic.

    BWhy not this: A Step Functions state machine is not a supported direct S3 event notification destination.

    CWhy this is right: S3 can invoke a Lambda function directly through an event notification.

    DWhy this is right: S3 can send event notifications directly to an SQS standard queue.

    EWhy not this: An Automation runbook is not a supported direct S3 event notification destination.

    S3 Event Notifications support direct delivery to Lambda functions, SNS standard topics, and SQS standard queues. Automation runbooks and Step Functions state machines require an intermediary rather than a direct S3 notification destination.

    Open this question
  30. Question 30

    Deployment, Provisioning, and Automation

    An S3 notification invokes a Lambda function for object creation, and the function writes processed files to the same bucket. How should the engineer prevent recursive invocations while continuing to process new uploads?

    Show the answer

    Correct answerB. Filter notifications to an input prefix and write outputs elsewhere.

    AWhy not this: A longer timeout changes execution duration, not which object writes trigger the function.

    BWhy this is right: Output objects outside the notification's input prefix do not match the trigger.

    CWhy not this: Reserved concurrency limits simultaneous executions; output objects can still trigger subsequent invocations.

    DWhy not this: Versioning retains object versions but does not stop object-created notifications.

    Filtering notifications to an input prefix and writing outputs outside that prefix prevents the function's writes from triggering itself. Reserved concurrency limits simultaneous executions but does not break the notification loop.

    Open this question
  31. Question 31

    Deployment, Provisioning, and Automation

    EventBridge successfully delivers events to Lambda, but some function executions fail after Lambda accepts them asynchronously. Which configuration captures these failures after Lambda exhausts its processing attempts?

    Show the answer

    Correct answerA. An SQS on-failure destination on the Lambda function

    AWhy this is right: A Lambda on-failure destination receives records for asynchronous invocations that exhaust processing attempts.

    BWhy not this: An EventBridge target dead-letter queue captures failed deliveries, not execution failures after Lambda accepts an event.

    CWhy not this: EventBridge delivery retries do not retry function code that fails after successful asynchronous acceptance.

    DWhy not this: An archive retains matching events for replay but does not specifically capture exhausted Lambda execution failures.

    A Lambda asynchronous on-failure destination receives invocation records when processing fails after retries or the event expires. An EventBridge target dead-letter queue handles failures to deliver to Lambda, not function failures after Lambda accepts an event.

    Open this question
  32. Question 32

    Deployment, Provisioning, and Automation

    A deployment needs 12 additional private IPv4 addresses in a subnet, but its /28 CIDR block has no existing resource allocations. Which action resolves the capacity issue?

    Show the answer

    Correct answerC. Deploy into a new subnet with a /27 CIDR block.

    AWhy not this: Elastic IP addresses are public addresses and do not replace private IPv4 allocations.

    BWhy not this: A quota increase cannot add addresses to the subnet's CIDR block.

    CWhy this is right: A /27 has 32 addresses, with 27 available after AWS reservations, which meets the requirement.

    DWhy not this: Route tables control traffic routing, not the number of available subnet addresses.

    AWS reserves five IPv4 addresses per subnet, so a /28 provides only 11 usable addresses. A /27 provides 27 usable addresses; increasing a network interface quota does not increase subnet address capacity.

    Open this question
  33. Question 33

    Deployment, Provisioning, and Automation

    A team must prevent accidental stack deletion and retain an S3 bucket when it is removed from a template or replaced during an update. Which configurations meet these requirements? (Choose three.)

    Choose 3 answers

    Show the answer

    Correct answersA. Enable termination protection on the stack.C. Set the bucket's DeletionPolicy to Retain.E. Set the bucket's UpdateReplacePolicy to Retain.

    AWhy this is right: Termination protection prevents accidental deletion of the stack.

    BWhy not this: Denying Update:Delete prevents resource removal instead of allowing removal while retaining the bucket.

    CWhy this is right: DeletionPolicy Retain preserves the bucket when its resource definition is removed from the template.

    DWhy not this: Rollback triggers monitor alarms during operations; they do not provide these deletion and retention protections.

    EWhy this is right: UpdateReplacePolicy Retain preserves the old bucket when an update replaces it.

    Termination protection blocks stack deletion. DeletionPolicy retains a resource removed from a template, while UpdateReplacePolicy retains the old resource after replacement. A stack policy denying Update:Delete blocks removal rather than allowing removal while retaining the bucket.

    Open this question
  34. Question 34

    Deployment, Provisioning, and Automation

    A CloudFormation update enters UPDATE_ROLLBACK_FAILED because its service role cannot restore a resource. After correcting the role's permissions, which action should an administrator take to recover the stack without abandoning resource management?

    Show the answer

    Correct answerA. Continue the update rollback.

    AWhy this is right: Continuing rollback retries recovery after the permission problem has been resolved.

    BWhy not this: Canceling an update applies while an update is in progress, not after its rollback has failed.

    CWhy not this: Deleting the stack abandons its existing management relationship and is unnecessary after fixing the cause.

    DWhy not this: The stack must recover from UPDATE_ROLLBACK_FAILED before it can accept another update.

    After resolving the underlying failure, ContinueUpdateRollback resumes rollback toward UPDATE_ROLLBACK_COMPLETE. Retrying an update does not recover a stack in UPDATE_ROLLBACK_FAILED; rollback must first be completed.

    Open this question
  35. Question 35

    Deployment, Provisioning, and Automation

    Where should an administrator first look for the resource-level failure reason when a CloudFormation stack creation fails?

    Show the answer

    Correct answerD. The stack's Events tab

    AWhy not this: Outputs expose template-defined values rather than resource failure messages.

    BWhy not this: Parameters show input values supplied to the stack, not resource operation results.

    CWhy not this: Tags contain metadata used to organize and identify the stack.

    DWhy this is right: Events show resource status transitions and the reasons for failed operations.

    Stack events record resource operation statuses and associated failure reasons. Outputs expose values declared by the template, not resource creation diagnostics.

    Open this question
  36. Question 36

    Deployment, Provisioning, and Automation

    A developer moves an AWS CDK resource into a different construct scope without changing its properties. The change set now proposes deleting the existing resource and creating another; how should the developer preserve its CloudFormation identity?

    Show the answer

    Correct answerD. Override its logical ID with the original value.

    AWhy not this: An explicit dependency controls operation order, not resource identity.

    BWhy not this: A physical name does not preserve the logical ID and can cause a conflict when CloudFormation attempts creation.

    CWhy not this: Stack tags supply metadata and do not determine logical IDs.

    DWhy this is right: Keeping the original logical ID preserves CloudFormation's association with the existing resource.

    CDK construct paths influence generated logical IDs. Preserving the original logical ID lets CloudFormation recognize the existing resource; keeping only its physical name does not preserve template identity and can cause a naming conflict.

    Open this question
  37. Question 37

    Deployment, Provisioning, and Automation

    Where should an administrator first look for the resource-specific failure reason after a CloudFormation stack deployment fails?

    Show the answer

    Correct answerD. The stack's Events tab

    AWhy not this: Outputs expose template-defined values, not the sequence of resource failures.

    BWhy not this: Parameters show deployment input values rather than resource failure messages.

    CWhy not this: Tags provide resource metadata rather than deployment diagnostics.

    DWhy this is right: Events identify failed resources and provide their status reasons.

    Stack events show resource status transitions and status reasons, including deployment failures. Outputs expose values defined by the template rather than the resource failure history.

    Open this question
  38. Question 38

    Deployment, Provisioning, and Automation

    A network stack cannot replace an exported subnet ID because an application stack imports it. The application must migrate to a new subnet without deleting either stack; which sequence resolves the dependency?

    Show the answer

    Correct answerC. Publish a separate export, migrate the importer, then remove the unused export.

    AWhy not this: DeletionPolicy controls resource retention and does not permit changing an export that is still imported.

    BWhy not this: CloudFormation blocks changing the existing export value while the application stack imports it.

    CWhy this is right: Migrating the consumer to a separate export removes the dependency that blocks changing the original export.

    DWhy not this: Termination protection governs stack deletion, and parallel updates do not remove the import dependency.

    CloudFormation prevents changing or deleting an export while another stack imports it. A separate export allows the consumer to migrate before the old export is removed; DeletionPolicy controls resource retention, not export dependencies.

    Open this question
  39. Question 39

    Deployment, Provisioning, and Automation

    A CloudFormation template creates an IAM role with an explicit RoleName. Deployment returns InsufficientCapabilities even though the deployment identity has the required IAM permissions. What should the administrator include when submitting the stack?

    Show the answer

    Correct answerA. The CAPABILITY_NAMED_IAM acknowledgement

    AWhy this is right: An explicitly specified RoleName requires acknowledgement through CAPABILITY_NAMED_IAM.

    BWhy not this: A service role supplies execution permissions but does not replace the named-IAM acknowledgement.

    CWhy not this: iam:PassRole authorizes passing a role to a service; it does not provide the required capability acknowledgement.

    DWhy not this: CAPABILITY_IAM alone is insufficient when the template specifies a custom IAM resource name.

    CAPABILITY_NAMED_IAM acknowledges that the template creates IAM resources with custom names. CAPABILITY_IAM covers IAM resource creation without custom names and is insufficient for an explicitly named role.

    Open this question
  40. Question 40

    Deployment, Provisioning, and Automation

    An EC2 deployment fails with InsufficientFreeAddressesInSubnet. The selected subnet has no available IPv4 addresses, but another subnet in the required Availability Zone has sufficient capacity. What should the administrator do?

    Show the answer

    Correct answerD. Update the deployment to use the subnet with available addresses.

    AWhy not this: An AMI change does not increase subnet capacity; additional network interfaces can consume more addresses.

    BWhy not this: An internet gateway route changes connectivity, not the number of available subnet addresses.

    CWhy not this: An instance quota increase does not provide additional private IPv4 addresses within a subnet.

    DWhy this is right: The alternate subnet supplies the private IPv4 addresses required for the deployment.

    The error identifies exhausted subnet address capacity; selecting a subnet with available addresses resolves that constraint. Increasing the EC2 instance quota does not increase a subnet's address capacity.

    Open this question
  41. Question 41

    Deployment, Provisioning, and Automation

    A stack is in UPDATE_ROLLBACK_FAILED because its CloudFormation service role lost a permission required to restore a resource; the resource still exists and the prior configuration remains valid. The stack must return to its prior state without skipped resources or recreation; what should the administrator do?

    Show the answer

    Correct answerC. Restore the role permission and continue the update rollback.

    AWhy not this: CloudFormation uses its service role, so expanding the operator's permissions does not remove the role's denial.

    BWhy not this: The permission fix is necessary, but the failed rollback must be continued before another stack update.

    CWhy this is right: This removes the identified blocker and resumes rollback without leaving a skipped resource inconsistent.

    DWhy not this: Operator permissions do not fix the service role, and skipping violates the requirement to restore every resource.

    Restoring the service role's permission removes the rollback blocker, and continuing the rollback restores the prior state. Retrying the original update does not recover a stack in UPDATE_ROLLBACK_FAILED; skipping a resource would violate the consistency requirement.

    Open this question
  42. Question 42

    Deployment, Provisioning, and Automation

    A service-managed StackSet automatically deploys to an organizational unit. Accounts leaving that OU must keep their stacks intact, but those stacks must stop receiving StackSet updates; which configuration meets this requirement?

    Show the answer

    Correct answerC. Enable automatic deployment with RetainStacksOnAccountRemoval set to true.

    AWhy not this: DeletionPolicy controls individual resource retention, not retention of intact stacks when accounts leave a targeted OU.

    BWhy not this: Disabling automatic deployment does not provide the required automatic removal from StackSet management when accounts leave the OU.

    CWhy this is right: The stacks remain in the departing accounts but are no longer managed or updated by the StackSet.

    DWhy not this: This setting deletes the stacks when accounts leave the targeted OU rather than preserving them.

    RetainStacksOnAccountRemoval preserves stacks when accounts leave the target OU and removes them from StackSet management. DeletionPolicy: Retain preserves specified resources during stack deletion, not the intact stacks and their removal from StackSet management.

    Open this question
  43. Question 43

    Deployment, Provisioning, and Automation

    An operator is updating a StackSet across three Regions. Deployment in the primary Region must finish successfully before deployment starts in either remaining Region; which operation preferences should the operator use?

    Show the answer

    Correct answerC. Sequential Region concurrency with the primary Region listed first

    AWhy not this: Failure tolerance controls responses to deployment failures, not whether Regions start in parallel.

    BWhy not this: Parallel Region concurrency permits other Regions to start without waiting for the primary Region to finish.

    CWhy this is right: Sequential Region concurrency follows the specified Region order, completing the primary Region before proceeding.

    DWhy not this: Maximum concurrent accounts controls account-level concurrency, not the sequencing of Regions.

    Sequential Region concurrency processes Regions in the specified order, so listing the primary Region first establishes the required sequence. Account concurrency limits deployments within Regions; it does not prevent parallel deployment across Regions.

    Open this question
  44. Question 44

    Deployment, Provisioning, and Automation

    Which resource types support sharing through AWS Resource Access Manager? (Choose two.)

    Choose 2 answers

    Show the answer

    Correct answersA. Transit gatewaysE. VPC subnets

    AWhy this is right: AWS RAM supports sharing transit gateways with other accounts.

    BWhy not this: EBS volumes are not shareable through AWS RAM; sharing an EBS snapshot is a separate mechanism.

    CWhy not this: CloudFormation stacks are not shared through AWS RAM; StackSets can deploy stacks across accounts.

    DWhy not this: IAM roles use trust policies for cross-account access rather than AWS RAM sharing.

    EWhy this is right: AWS RAM supports subnet sharing with eligible accounts in the same organization.

    FWhy not this: EC2 instances are not shareable resource types in AWS RAM.

    AWS RAM supports sharing VPC subnets and transit gateways with other accounts. IAM roles support cross-account access through trust policies, not through AWS RAM resource shares.

    Open this question
  45. Question 45

    Deployment, Provisioning, and Automation

    A company must deploy a baseline CloudFormation template to all accounts in an OU, including accounts added later, without creating deployment roles manually in each account. What should it configure?

    Show the answer

    Correct answerC. A service-managed StackSet with automatic deployment to the OU

    AWhy not this: Self-managed permissions require role configuration, and a fixed account list does not automatically include new OU accounts.

    BWhy not this: A nested stack does not automatically deploy a baseline to current and future accounts in an OU.

    CWhy this is right: Service-managed permissions avoid manual per-account roles, and automatic deployment covers accounts added to the OU.

    DWhy not this: AWS RAM shares supported existing resources; it does not deploy CloudFormation templates across accounts.

    Service-managed StackSets use AWS Organizations integration to manage deployment permissions, and automatic deployment includes accounts added to the targeted OU. A self-managed StackSet requires role configuration and does not automatically target new OU accounts.

    Open this question
  46. Question 46

    Deployment, Provisioning, and Automation

    A network administrator uses AWS RAM to share a Route 53 Resolver rule with an account outside the administrator's organization. What must the recipient do before using the shared rule?

    Show the answer

    Correct answerB. Accept the resource share invitation in AWS RAM.

    AWhy not this: The resource owner creates the share; the recipient accepts its invitation rather than creating a matching share.

    BWhy this is right: Accepting the invitation gives the external account access under the resource share's permissions.

    CWhy not this: CloudFormation import is not required to access a resource shared through AWS RAM.

    DWhy not this: Organizations trusted access does not accept resource share invitations for external accounts.

    An external account must accept the AWS RAM resource share invitation before accessing the shared resource. Organizations trusted access supports sharing within an organization; it does not replace acceptance by an external account.

    Open this question
  47. Question 47

    Deployment, Provisioning, and Automation

    A StackSet update must finish in a canary Region before starting the production Region, with at most one account updating at a time. After any account failure, no additional accounts may start; which operation preferences meet these requirements?

    Show the answer

    Correct answerC. Sequential Regions, canary first; strict failure tolerance; tolerance 0; maximum concurrency 1

    AWhy not this: Concurrency of two permits simultaneous account updates, and tolerance one allows the first failure.

    BWhy not this: Parallel Region processing can start production before the canary Region finishes.

    CWhy this is right: Sequential processing enforces Region order, and zero tolerance with concurrency one stops further account starts after a failure.

    DWhy not this: A failure tolerance of one permits processing to continue after the first account failure.

    Sequential Region processing enforces the canary-first order. Strict failure tolerance with zero tolerated failures and concurrency of one prevents another account from starting after a failure; parallel Regions would allow production to start before the canary finishes.

    Open this question
  48. Question 48

    Deployment, Provisioning, and Automation

    Which service lets a network account share its existing VPC subnets with other accounts in the same AWS organization?

    Show the answer

    Correct answerC. AWS Resource Access Manager

    AWhy not this: StackSets deploys stacks across accounts and Regions; it is not the service that grants access to shared subnets.

    BWhy not this: CodeDeploy deploys application revisions rather than sharing network resources.

    CWhy this is right: AWS RAM supports sharing VPC subnets with accounts in the same AWS organization.

    DWhy not this: Automation runs operational workflows rather than providing resource-sharing relationships.

    AWS RAM shares supported existing resources, including VPC subnets, across accounts. CloudFormation StackSets deploys stacks across accounts and Regions rather than granting access to existing subnets.

    Open this question
  49. Question 49

    Deployment, Provisioning, and Automation

    An application account launches EC2 instances into a subnet shared by a network account through AWS RAM. The application team needs additional subnet capacity; which account must modify the VPC's subnet configuration?

    Show the answer

    Correct answerC. The network account, because it owns the shared VPC

    AWhy not this: Owning instances in a shared subnet does not grant permission to modify the owner's VPC or subnet configuration.

    BWhy not this: AWS RAM sharing grants supported access, not equal ownership of the shared network.

    CWhy this is right: The network account retains ownership and responsibility for managing the VPC and its subnets.

    DWhy not this: Organization membership management does not confer ownership of member accounts' VPCs.

    The VPC owner manages the VPC and its subnets. Participants can manage their own resources in shared subnets, but sharing does not transfer ownership or grant permission to modify the shared network.

    Open this question
  50. Question 50

    Deployment, Provisioning, and Automation

    A service-managed StackSet targets an organizational unit and must deploy automatically to new member accounts. When an account leaves the OU, its deployed resources must remain but no longer be managed by the StackSet; which configuration meets these requirements?

    Show the answer

    Correct answerD. Enable automatic deployment and retain stacks on account removal.

    AWhy not this: Termination protection does not enable deployment to new accounts or configure StackSet account-removal behavior.

    BWhy not this: Disabling automatic deployment prevents new OU accounts from receiving stacks automatically.

    CWhy not this: Deleting stacks on removal does not preserve the deployed resources.

    DWhy this is right: Automatic deployment handles new accounts, and retention preserves stacks outside StackSet management when accounts leave.

    Automatic deployment provisions stack instances for accounts added to the targeted OU. Retaining stacks on account removal preserves their resources while removing them from StackSet management; deleting stacks would remove the resources.

    Open this question