Curated

Configuration Management and IaC (2.1–2.3)

0 votes

Questions51

  1. Question 1

    Configuration Management and IaC

    Which tool lets developers define infrastructure in TypeScript and synthesize AWS CloudFormation templates?

    Show the answer

    Correct answerA. AWS Cloud Development Kit (AWS CDK)

    AWhy this is right: AWS CDK supports TypeScript infrastructure definitions and synthesizes them into CloudFormation templates.

    BWhy not this: Service Catalog distributes approved infrastructure products; it does not synthesize templates from TypeScript.

    CWhy not this: StackSets deploys CloudFormation stacks across accounts and Regions rather than translating TypeScript into templates.

    DWhy not this: AWS Config records resource configurations and evaluates compliance rather than synthesizing infrastructure templates.

    AWS CDK defines infrastructure using supported programming languages and synthesizes CloudFormation templates. Service Catalog distributes governed products rather than providing a TypeScript infrastructure authoring framework.

    Open this question
  2. Question 2

    Configuration Management and IaC

    An AWS SAM template references local Lambda deployment artifacts. A pipeline must upload those artifacts to Amazon S3 and produce a template for a separate deployment stage. Which operation should it use?

    Show the answer

    Correct answerD. AWS SAM application packaging

    AWhy not this: An application build prepares code and dependencies but does not upload artifacts and produce S3 references.

    BWhy not this: Template validation checks the template; it does not upload local deployment artifacts and rewrite their references.

    CWhy not this: Drift detection compares deployed resource configurations with their expected configurations.

    DWhy this is right: Application packaging uploads local artifacts to S3 and produces a template referencing their S3 locations.

    AWS SAM packaging uploads local artifacts to S3 and produces a template that references the uploaded artifacts. An application build prepares code and dependencies locally but does not perform this upload-and-rewrite operation.

    Open this question
  3. Question 3

    Configuration Management and IaC

    A CloudFormation-managed EBS volume must remain available for inspection when an update replaces it. The current volume must be deleted when the stack is later deleted. Which resource attributes meet these requirements?

    Show the answer

    Correct answerD. UpdateReplacePolicy: Retain; DeletionPolicy: Delete

    AWhy not this: Retains the replaced volume but also retains the current volume when the stack is deleted.

    BWhy not this: Deletes the replaced volume and retains the current volume on stack deletion, reversing the required behavior.

    CWhy not this: Preserves a snapshot rather than keeping the replaced volume available for inspection.

    DWhy this is right: Retains the replaced volume for inspection and deletes the current managed volume when the stack is deleted.

    UpdateReplacePolicy: Retain preserves the old volume during replacement, while DeletionPolicy: Delete deletes the current managed volume during stack deletion. DeletionPolicy: Retain would preserve the current volume too, contrary to the requirement.

    Open this question
  4. Question 4

    Configuration Management and IaC

    A development team wants to define AWS infrastructure in TypeScript, share reusable constructs, and deploy through AWS CloudFormation. Which tool best meets these requirements?

    Show the answer

    Correct answerB. AWS Cloud Development Kit (AWS CDK)

    AWhy not this: StackSets deploys CloudFormation stacks across accounts and Regions; it does not provide TypeScript constructs.

    BWhy this is right: AWS CDK provides TypeScript constructs and synthesizes CloudFormation templates for deployment.

    CWhy not this: Infrastructure Composer visually authors infrastructure templates rather than providing a TypeScript construct framework.

    DWhy not this: Automation uses runbooks to perform operational tasks; it is not a TypeScript infrastructure construct framework.

    AWS CDK supports infrastructure definitions in TypeScript and reusable constructs, synthesizing CloudFormation templates for deployment. AWS Infrastructure Composer provides visual infrastructure authoring rather than a TypeScript construct framework.

    Open this question
  5. Question 5

    Configuration Management and IaC

    Which practice provides an attributable history of infrastructure template changes and supports peer review before deployment?

    Show the answer

    Correct answerD. Store templates in Git and require pull requests

    AWhy not this: CloudTrail records API activity but does not version templates or provide predeployment peer review.

    BWhy not this: AWS Config records deployed resource configurations rather than reviewing proposed template revisions.

    CWhy not this: Compliance scans assess managed resources against requirements rather than tracking template revision history.

    DWhy this is right: Git tracks template revisions and authors; pull requests provide a review workflow before deployment.

    Git records template revisions and authors, while pull requests support review before changes are merged and deployed. CloudTrail records API activity but does not provide template version control or a peer-review workflow.

    Open this question
  6. Question 6

    Configuration Management and IaC

    A company must deploy a baseline CloudFormation template across an AWS Organizations organizational unit and automatically provision it in accounts added later. Which approach meets these requirements without maintaining deployment roles in each target account?

    Show the answer

    Correct answerA. StackSets with service-managed permissions and automatic deployment

    AWhy this is right: Service-managed permissions handle account roles, while automatic deployment covers accounts added to targeted OUs.

    BWhy not this: Sharing a portfolio makes products available; it does not automatically provision them in each account.

    CWhy not this: Nested stacks organize related stacks but do not automatically target newly added organization accounts.

    DWhy not this: Self-managed permissions require account roles and do not support Organizations-based automatic deployment.

    Service-managed StackSets integrates with AWS Organizations, manages the required roles, and supports automatic deployment to new accounts in targeted OUs. Self-managed StackSets requires deployment roles to be configured and does not provide this Organizations-based automatic deployment.

    Open this question
  7. Question 7

    Configuration Management and IaC

    A production CloudFormation pipeline must let an engineer review whether an update will replace resources before permitting deployment. Which workflow best meets this requirement?

    Show the answer

    Correct answerD. Create a change set, obtain approval, and execute that change set

    AWhy not this: Template validation does not preview resource modifications or replacements against an existing stack.

    BWhy not this: Drift detection compares deployed resources with the current template, not with a proposed update.

    CWhy not this: Stack policies restrict updates to resources but do not provide a predeployment preview of proposed changes.

    DWhy this is right: A change set exposes proposed resource changes for review before the approved change set is executed.

    A CloudFormation change set previews proposed resource changes, including replacement information, before execution. Template validation checks template validity but does not show how an update will affect existing resources.

    Open this question
  8. Question 8

    Configuration Management and IaC

    A platform team must deploy baseline IAM roles into existing and future accounts in a Workloads OU, with automatic deployment when accounts join the OU. The team must operate from a member account without routinely accessing the management account; which approach requires the least ongoing automation?

    Show the answer

    Correct answerA. Use service-managed StackSets from a registered delegated administrator and enable automatic deployment.

    AWhy this is right: With trusted access enabled, delegated administration and automatic OU deployment satisfy both operational requirements.

    BWhy not this: Account Factory provisions accounts but does not by itself deploy arbitrary IAM roles across existing OU accounts.

    CWhy not this: Organizations policies govern accounts; they do not create IAM roles within those accounts.

    DWhy not this: Self-managed permissions require execution-role setup and additional automation to maintain account targets.

    Service-managed StackSets support OU targeting and automatic deployment to new accounts, and a registered delegated administrator can manage them from a member account after trusted access is enabled. Self-managed StackSets require role setup and do not provide this Organizations-based automatic account targeting.

    Open this question
  9. Question 9

    Configuration Management and IaC

    A company attaches an SCP that denies disabling AWS CloudTrail to its organization root, but administrators running workloads in the management account can still disable trails. Which change will make the SCP restriction apply to those workload administrators?

    Show the answer

    Correct answerD. Move the workloads and their administrators to a member account.

    AWhy not this: An SCP allow list does not remove the management account's exemption from SCP restrictions.

    BWhy not this: CloudTrail delegated administration does not change whether SCPs apply to management-account principals.

    CWhy not this: SCPs do not restrict principals in the management account, even when attached directly to that account.

    DWhy this is right: Principals in a member account are subject to applicable SCPs inherited from the organization root.

    SCPs restrict principals in member accounts but do not restrict principals in the organization's management account. Moving the workloads and administrators to a member account places them under the root SCP; attaching another SCP to the management account does not.

    Open this question
  10. Question 10

    Configuration Management and IaC

    A company has separate AWS accounts for each application environment across several business units. Production accounts require identical restrictions, while development accounts require fewer restrictions; how should the company primarily organize its OUs?

    Show the answer

    Correct answerC. By security requirements, with separate production and development OUs

    AWhy not this: Regional grouping does not reflect the stated governance requirements, and an AWS account can use multiple Regions.

    BWhy not this: Production restrictions at the organization root would also affect development member accounts.

    CWhy this is right: Grouping by shared security requirements supports consistent inherited restrictions for each environment.

    DWhy not this: Business-unit grouping scatters identical environment requirements and increases account-level policy maintenance.

    OUs should group accounts with similar security and operational requirements so policies can be applied consistently through inheritance. Mirroring business units would scatter the same production requirements across multiple branches and require more policy maintenance.

    Open this question
  11. Question 11

    Configuration Management and IaC

    A company must move acquired member accounts into its existing AWS Control Tower landing zone while preserving account IDs; the accounts belong to another organization and lack AWSControlTowerExecution. Which actions complete the migration into a registered destination OU? (Choose three.)

    Choose 3 answers

    Show the answer

    Correct answersA. Satisfy standalone-account requirements, then remove the accounts from the source organization.D. Create AWSControlTowerExecution with the required trust and permissions, then enroll the accounts.E. Invite the accounts into the destination organization and accept those invitations.

    AWhy this is right: An account must meet standalone-account requirements and leave its current organization before joining another.

    BWhy not this: Account IDs cannot be transferred to replacement accounts; the existing accounts must be migrated.

    CWhy not this: Destination management credentials do not permit enrollment of accounts that still belong to another organization.

    DWhy this is right: Existing accounts need the execution role with destination management-account trust and required permissions for enrollment.

    EWhy this is right: Inviting and accepting moves existing accounts into the destination organization while preserving their IDs.

    Accounts must leave their original organization before joining another, and invitations must be accepted. Existing accounts need the required AWSControlTowerExecution role for enrollment; Control Tower cannot enroll accounts that remain in a different organization.

    Open this question
  12. Question 12

    Configuration Management and IaC

    An account-vending workflow calls AWS Organizations CreateAccount and immediately deploys baseline resources, causing intermittent failures because account creation is still underway. How should the workflow determine when to proceed?

    Show the answer

    Correct answerA. Poll DescribeCreateAccountStatus until the request state is SUCCEEDED.

    AWhy this is right: The status API reports whether the specific account-creation request has completed successfully.

    BWhy not this: The initial API event records submission of the asynchronous request, not successful account creation.

    CWhy not this: Account names are not unique, and a listing is not the completion signal for the specific creation request.

    DWhy not this: OU policy attachments do not indicate whether an asynchronous account-creation request has completed.

    CreateAccount is asynchronous. Use its request ID with DescribeCreateAccountStatus and wait for SUCCEEDED before continuing; a CloudTrail record of the initial API request confirms submission, not completion.

    Open this question
  13. Question 13

    Configuration Management and IaC

    A company must deploy the same CloudFormation networking template in two Regions whenever an account joins its development OU. Which solution meets this requirement with the least operational overhead?

    Show the answer

    Correct answerC. Configure a service-managed StackSet with automatic deployment targeting the OU.

    AWhy not this: Product sharing grants access to a product but does not automatically launch it in new accounts.

    BWhy not this: SCPs constrain permissions; they cannot require missing networking resources to be created.

    CWhy this is right: Automatic deployment creates stack instances in targeted Regions for accounts added to the OU.

    DWhy not this: An aggregator centralizes configuration data but does not deploy CloudFormation templates.

    A service-managed StackSet with automatic deployment provisions stack instances in specified Regions when accounts join the targeted OU. Sharing a Service Catalog product makes it available but does not automatically provision it.

    Open this question
  14. Question 14

    Configuration Management and IaC

    Which AWS Control Tower capability provisions new accounts with standardized baseline configurations?

    Show the answer

    Correct answerC. Account Factory

    AWhy not this: An aggregator collects configuration and compliance information from existing accounts and Regions.

    BWhy not this: A service control policy limits available permissions; it does not create or configure accounts.

    CWhy this is right: Account Factory provisions accounts using standardized AWS Control Tower account configurations.

    DWhy not this: IAM Identity Center manages workforce access to accounts and applications, not account provisioning.

    Account Factory standardizes provisioning of accounts with AWS Control Tower baseline configurations. An AWS Config aggregator collects configuration and compliance data; it does not provision accounts.

    Open this question
  15. Question 15

    Configuration Management and IaC

    An engineer needs to review how an EC2 security group's inbound rules changed during the past week. AWS Config was recording the security group throughout that period. Which feature should the engineer use?

    Show the answer

    Correct answerD. AWS Config resource configuration timeline

    AWhy not this: Association execution history records configuration task executions, not security group configuration versions.

    BWhy not this: Rule compliance history tracks evaluation status rather than the complete resource configuration.

    CWhy not this: Inventory collects managed-node metadata, not historical security group rules.

    DWhy this is right: The resource configuration timeline exposes recorded security group configurations over time.

    The AWS Config resource configuration timeline provides recorded configurations and changes to the security group. A rule compliance timeline shows evaluation results, not the full history of inbound rule configurations.

    Open this question
  16. Question 16

    Configuration Management and IaC

    A Step Functions Task state invokes a Lambda function that calls a partner API. The function sometimes fails with RateLimitExceeded, which is transient, and sometimes with InvalidInput, which is permanent. Transient errors must be retried up to five times with increasing delays, and permanent errors must go straight to a notification state. Which configuration meets these requirements?

    Show the answer

    Correct answerA. A Retry for RateLimitExceeded with IntervalSeconds, BackoffRate 2, and MaxAttempts 5, plus a Catch for InvalidInput that goes to the notification state

    AWhy this is right: The Retry applies backoff only to the transient error, and the Catch routes the permanent error to notification immediately.

    BWhy not this: Step Functions calls the function synchronously, so asynchronous retry settings and destinations are never used; asynchronous retries are also capped at two.

    CWhy not this: Retrying States.ALL also retries InvalidInput five times before it reaches the notification state.

    DWhy not this: A queue redrive retries without increasing delays and takes the failure handling out of the workflow.

    A Retry scoped to the transient error name retries with exponential backoff, and a Catch for the permanent error sends it to the notification state without retrying. Step Functions invokes Lambda synchronously, so the function's asynchronous retry settings do not apply.

    Open this question
  17. Question 17

    Configuration Management and IaC

    A fleet is patched in two waves within 24 hours using Systems Manager Run Command and AWS-RunPatchBaseline; both waves must use the same approved patch set even if baseline approvals change between waves. What should the engineer do?

    Show the answer

    Correct answerD. Supply the same unique Snapshot-ID value for both waves.

    AWhy not this: Fresh scans evaluate patch compliance but do not freeze the approved patch set across waves.

    BWhy not this: A patch group selects a baseline, but separate snapshots can reflect different approvals.

    CWhy not this: Reusing a maintenance window task does not preserve the resolved baseline snapshot.

    DWhy this is right: Reusing the snapshot identifier preserves the resolved approved patch set across the two waves.

    A shared Snapshot-ID lets both waves use the same resolved patch baseline snapshot rather than reevaluating changing approvals. A patch group selects a baseline, but does not freeze its approved patch set.

    Open this question
  18. Question 18

    Configuration Management and IaC

    Systems Manager Inventory already collects installed application versions from managed nodes across several accounts and Regions. An engineer needs centralized SQL queries over these records without building a custom collection pipeline; which solution best meets this requirement?

    Show the answer

    Correct answerD. Configure Inventory resource data syncs to central Amazon S3 storage and query with Amazon Athena.

    AWhy not this: Compliance summaries and conformance pack reports show rule compliance status, not installed application versions.

    BWhy not this: Patch compliance reports describe patch status, not a complete installed-application inventory.

    CWhy not this: Association execution results describe task execution rather than the collected application inventory.

    DWhy this is right: Resource data sync centralizes existing Inventory records in S3 for SQL analysis with Athena.

    Inventory resource data sync sends collected inventory to Amazon S3, where Athena can query consolidated application records. Inventory resource data sync is the built-in way to consolidate full inventory records for SQL analysis; Patch Manager compliance reports and State Manager association results don't contain installed-application inventory.

    Open this question
  19. Question 19

    Configuration Management and IaC

    An inventory application makes one AWS SDK call to DescribeAutoScalingGroups and records only part of a large fleet. The response includes a NextToken value. What should the developer do to collect the complete inventory?

    Show the answer

    Correct answerD. Use an SDK paginator to iterate through the result pages.

    AWhy not this: Client-side filtering changes which retrieved results are retained, not which pages are fetched.

    BWhy not this: Retries repeat a request after failures; they do not advance to the next page of a successful response.

    CWhy not this: A waiter checks a resource condition rather than retrieving additional result pages.

    DWhy this is right: A paginator follows continuation tokens and exposes successive pages of results.

    A NextToken indicates that more result pages are available. An SDK paginator retrieves successive pages so the application can process the complete inventory. A waiter polls for a resource condition; it does not traverse a paginated collection.

    Open this question
  20. Question 20

    Configuration Management and IaC

    Which AWS tool provides Python libraries for calling AWS service APIs from an application?

    Show the answer

    Correct answerC. AWS SDK for Python (Boto3)

    AWhy not this: CloudShell provides a browser-based shell environment rather than a Python service library.

    BWhy not this: CloudFormation provisions resources from infrastructure templates rather than serving as a Python API library.

    CWhy this is right: Boto3 provides Python clients and other interfaces for interacting with AWS services.

    DWhy not this: The AWS CLI provides a command-line interface, not the Python library used within application code.

    Boto3 is the AWS SDK for Python and provides programmatic access to AWS service APIs. The AWS CLI exposes service operations through shell commands rather than a Python application library.

    Open this question
  21. Question 21

    Configuration Management and IaC

    A central operations account must run an AWS Systems Manager Automation runbook across accounts and Regions, limiting simultaneous executions and stopping new executions when failures exceed a threshold. Which configuration actions meet these requirements? (Choose three.)

    Choose 3 answers

    Show the answer

    Correct answersA. Set an error threshold for the target executions.B. Set a maximum concurrency value for the target executions.C. Configure an Automation administration role and execution roles in target accounts.

    AWhy this is right: The error threshold stops scheduling additional executions after the allowed failure threshold is exceeded.

    BWhy this is right: Maximum concurrency limits the target executions that Automation runs simultaneously.

    CWhy this is right: The administration role coordinates Automation, and target execution roles authorize actions in the target accounts.

    DWhy not this: Run Command concurrency controls command targets, not the multi-account Automation rollout itself.

    EWhy not this: A timeout limits execution duration rather than the number or percentage of failed target executions.

    Multi-account, multi-Region Automation uses administration and execution roles, with concurrency and error controls for rollout safety. Run Command concurrency governs command invocations, not the parent Automation rollout; an execution timeout does not count failed target executions.

    Open this question
  22. Question 22

    Configuration Management and IaC

    A deployment workflow must pause for an external approval that can take several hours, then resume with its execution history preserved. Which solution requires the least custom orchestration?

    Show the answer

    Correct answerC. An AWS Step Functions Standard Workflow with a callback task

    AWhy not this: Lambda has a 15-minute execution limit, so a single invocation cannot wait several hours.

    BWhy not this: EventBridge rules route events; they do not store and coordinate durable workflow execution progress.

    CWhy this is right: Standard Workflows can durably wait for an external system to return a task token and then resume.

    DWhy not this: Express Workflows do not support callback tasks and have a five-minute execution limit.

    Step Functions Standard Workflows support durable, long-running executions and callback tasks that wait for a task token. Express Workflows have a five-minute maximum duration and do not support the callback integration pattern.

    Open this question
  23. Question 23

    Configuration Management and IaC

    A provisioning worker calls Amazon EC2 RunInstances but sometimes times out after EC2 accepts the request; workers can restart and receive the same job again. Which approach prevents duplicate launches while tolerating transient failures and throttling?

    Show the answer

    Correct answerA. Persist the job's client token and request parameters; retry with them using exponential backoff and jitter.

    AWhy this is right: A persisted token and unchanged parameters make retries idempotent; backoff with jitter handles transient retry pressure.

    BWhy not this: Eventually consistent instance discovery can miss a successful launch, allowing a new token to create duplicates.

    CWhy not this: A new client token identifies a separate request, so a timed-out successful launch can be duplicated.

    DWhy not this: RunInstances has zonal idempotency behavior; changing Availability Zones can permit another launch with the same token.

    RunInstances supports idempotency through a client token. Reusing the token and unchanged parameters preserves the request's identity across retries and restarts, while backoff with jitter reduces retry pressure. A fresh token represents a new request and can launch duplicate instances.

    Open this question
  24. Question 24

    Configuration Management and IaC

    An existing EC2 fleet uses cfn-init to install application configuration from AWS::CloudFormation::Init metadata. Stack updates change that metadata without replacing instances, but the configuration files remain unchanged. Which approach best applies future metadata changes without replacing the instances?

    Show the answer

    Correct answerB. Configure cfn-hup with a metadata-change hook that invokes cfn-init.

    AWhy not this: A CreationPolicy waits for creation signals; it does not run configuration after metadata updates.

    BWhy this is right: cfn-hup monitors metadata and invokes a configured hook to reapply the changed configuration.

    CWhy not this: cfn-signal reports completion status; it does not detect metadata changes or apply configuration.

    DWhy not this: User data normally runs at first launch, so changing metadata does not cause it to execute again.

    cfn-hup detects resource metadata changes and can invoke cfn-init through a hook to reapply configuration. Updating metadata alone does not rerun cfn-init, and user data does not normally rerun on existing instances.

    Open this question
  25. Question 25

    Configuration Management and IaC

    An application on EC2 reads feature settings at runtime. Changes to the settings must be validated against a JSON schema before release, rolled out gradually over 30 minutes without redeploying the application, and rolled back automatically if a CloudWatch error alarm enters the ALARM state. Which approach meets these requirements?

    Show the answer

    Correct answerC. Use an AWS AppConfig configuration profile with a JSON Schema validator, a 30-minute deployment strategy, and the alarm as a monitor.

    AWhy not this: Parameter policies handle expiration and notification; Parameter Store provides no schema validation, gradual rollout, or alarm-based rollback.

    BWhy not this: Rate control limits how many nodes run an association at once; it does not validate a schema or roll back the configuration when an alarm fires.

    CWhy this is right: AppConfig validates the data, deploys it over the strategy's duration, and rolls back automatically when the monitored alarm enters ALARM.

    DWhy not this: Packaging the settings with the application means every change is an application redeployment, which the requirement rules out.

    AWS AppConfig validates configuration data with JSON Schema or Lambda validators, deploys it gradually according to a deployment strategy, and rolls back when a configured CloudWatch alarm goes into ALARM. CodeDeploy can roll back on alarms, but it requires redeploying the application revision.

    Open this question
  26. Question 26

    Configuration Management and IaC

    A production CloudFormation stack has a stack policy that denies updates to its database resource. An approved release must modify that resource while preserving the existing protection for subsequent updates. Which approach best meets this requirement?

    Show the answer

    Correct answerC. Supply a temporary stack policy override for the approved update.

    AWhy not this: Termination protection prevents stack deletion; it does not override stack policy restrictions on updates.

    BWhy not this: Removing the policy leaves subsequent updates unprotected unless a separate action restores it.

    CWhy this is right: An update-specific override permits the approved change while retaining the permanent stack policy afterward.

    DWhy not this: UpdateReplacePolicy controls retention of replaced resources, not permission to update protected resources.

    A temporary stack policy override permits the approved update without replacing the stack's permanent policy. Removing the policy also removes protection for subsequent updates unless it is restored.

    Open this question
  27. Question 27

    Configuration Management and IaC

    A service must reject application configurations that violate either a JSON schema or a business rule requiring an external lookup. Configuration releases must reach users gradually and automatically roll back when an Amazon CloudWatch alarm activates. Which solution best meets these requirements?

    Show the answer

    Correct answerB. Use AWS AppConfig schema and Lambda validators, a gradual deployment strategy, and alarm monitoring.

    AWhy not this: Parameter policies address expiration and change notifications, not semantic validation, gradual delivery, or deployment rollback.

    BWhy this is right: Schema validation handles structure, Lambda handles external checks, and deployment controls support gradual release and alarm rollback.

    CWhy not this: CloudFormation constraints and rollback triggers do not provide gradual application configuration delivery or external-lookup validation.

    DWhy not this: AWS Config evaluates resource compliance rather than validating and progressively releasing application configuration.

    AWS AppConfig supports JSON Schema and Lambda validators, gradual deployments, and alarm-triggered rollback. Parameter Store stores configuration values, but its parameter policies do not provide these validation and deployment controls.

    Open this question
  28. Question 28

    Configuration Management and IaC

    A stack set defines a LogRetentionDays parameter with a default of 30, but selected stack instances explicitly override it to 90. After the engineer updates the stack set default to 60 and updates all instances, those instances still use 90. What should the engineer do to make them inherit the stack set value?

    Show the answer

    Correct answerD. Reset the selected instances to the stack set value

    AWhy not this: Repeating the stack set update does not remove existing stack instance parameter overrides.

    BWhy not this: An explicit value of 60 remains an override and will not inherit future changes to the stack set value.

    CWhy not this: Drift detection does not remove configured parameter overrides or change parameter inheritance.

    DWhy this is right: Resetting the override restores use of the stack set parameter value for the selected instances.

    Stack instance parameter overrides persist through stack set updates. Resetting an override to the stack set value restores inheritance; explicitly overriding it to 60 matches the current value but prevents inheritance of later changes.

    Open this question
  29. Question 29

    Configuration Management and IaC

    An application must receive runtime configuration changes gradually without a code deployment. The rollout must automatically revert if an Amazon CloudWatch alarm indicates increased errors. Which service best meets these requirements?

    Show the answer

    Correct answerA. AWS AppConfig

    AWhy this is right: AWS AppConfig deploys runtime configuration gradually and can automatically roll back when configured CloudWatch alarms trigger.

    BWhy not this: State Manager maintains desired configuration on managed nodes rather than providing this application rollout mechanism.

    CWhy not this: AWS Config records resource configurations and evaluates compliance rather than progressively deploying runtime configuration.

    DWhy not this: CloudFormation provisions infrastructure; it is not the service for gradual runtime configuration delivery with alarm-based rollback.

    AWS AppConfig supports gradual application configuration deployments and automatic rollback based on CloudWatch alarms. State Manager maintains desired node configuration rather than managing monitored application configuration rollouts.

    Open this question
  30. Question 30

    Configuration Management and IaC

    A StackSets rollout must process Regions sequentially and stop submitting work in a Region after its third account failure. With maximum concurrent accounts set to 10, the initial account concurrency must be three and decrease as failures accumulate. Which operation preferences meet these requirements?

    Show the answer

    Correct answerA. Sequential Regions, strict failure tolerance, failure tolerance count of 2

    AWhy this is right: Strict mode starts with three concurrent accounts, reduces concurrency after failures, and processes Regions sequentially.

    BWhy not this: A tolerance of three permits an initial concurrency of four and stops submissions after the fourth failure.

    CWhy not this: Soft mode can start with 10 concurrent accounts and does not reduce concurrency as failures accumulate.

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

    Strict failure tolerance initially limits concurrency to the failure tolerance plus one and reduces concurrency as failures occur. A tolerance of two stops further submissions after the third failure; sequential processing prevents overlapping Regions. Soft failure tolerance decouples concurrency from failures.

    Open this question
  31. Question 31

    Configuration Management and IaC

    A service-managed stack set automatically deploys logging resources to accounts in an organizational unit. The resources must remain when an account leaves that organizational unit. Which automatic deployment setting should the engineer configure?

    Show the answer

    Correct answerD. Enable Retain stacks on account removal

    AWhy not this: Disabling automatic deployments prevents automatic deployment to new accounts instead of configuring stack retention on removal.

    BWhy not this: Drift detection identifies configuration differences; it does not control what happens when an account leaves an organizational unit.

    CWhy not this: Managed execution schedules nonconflicting stack set operations; it does not configure retention on account removal.

    DWhy this is right: This setting preserves stacks and their resources when accounts leave the targeted organizational unit.

    Retain stacks on account removal preserves the deployed stacks when accounts leave a targeted organizational unit. Disabling automatic deployments also prevents automatic deployment to new accounts and does not express the required removal behavior.

    Open this question
  32. Question 32

    Configuration Management and IaC

    A parent OU's SCP explicitly denies ec2:RunInstances, but a child OU's SCP allows it. A role in a child OU member account has AdministratorAccess; what change permits the role to launch instances without moving the account?

    Show the answer

    Correct answerC. Remove or narrow the parent SCP's applicable deny.

    AWhy not this: FullAWSAccess cannot override an explicit deny inherited from a parent OU.

    BWhy not this: A permissions boundary limits identity permissions and cannot override an SCP deny.

    CWhy this is right: The inherited explicit deny must stop applying before the role's existing permissions can authorize the action.

    DWhy not this: A trust policy controls who can assume a role; it cannot override an SCP deny on EC2 actions.

    An explicit deny in an inherited SCP overrides allows in child SCPs and IAM policies. Attaching FullAWSAccess to the account cannot override the parent's explicit deny.

    Open this question
  33. Question 33

    Configuration Management and IaC

    An organization using consolidated billing features has both invited accounts and accounts created within the organization. Before enabling SCPs, which approval process must the management account complete to enable all features?

    Show the answer

    Correct answerA. Obtain approval from invited member accounts, then finalize the upgrade.

    AWhy this is right: Invited member accounts must approve the change before the management account finalizes it.

    BWhy not this: Upgrade approval is requested from invited accounts, not from administrators assigned to organizational units.

    CWhy not this: Organization-created accounts do not approve the upgrade; invited accounts do.

    DWhy not this: Accounts created within the organization do not need to approve the all-features upgrade.

    Enabling all features requires approval from invited member accounts, followed by finalization in the management account. Accounts created within the organization do not need to approve the change.

    Open this question
  34. Question 34

    Configuration Management and IaC

    Which AWS STS operation lets an authorized principal obtain temporary credentials for an IAM role in another account?

    Show the answer

    Correct answerC. AssumeRole

    AWhy not this: GetSessionToken provides temporary credentials for an IAM user, not for a target cross-account role.

    BWhy not this: GetFederationToken issues federated-user credentials rather than assuming a target IAM role.

    CWhy this is right: AssumeRole returns temporary credentials for an authorized IAM role, including a role in another account.

    DWhy not this: GetCallerIdentity returns information about the caller and does not issue credentials.

    AssumeRole returns temporary security credentials for a role the caller is authorized to assume. GetSessionToken provides temporary credentials associated with the calling IAM user rather than assuming a target role.

    Open this question
  35. Question 35

    Configuration Management and IaC

    A company has independently managed AWS accounts and wants one consolidated bill while preserving account ownership of resources. Which approach meets these requirements?

    Show the answer

    Correct answerD. Invite the accounts into one AWS organization.

    AWhy not this: An AWS Config aggregator centralizes configuration and compliance data, not account billing.

    BWhy not this: Sharing a portfolio distributes approved products but does not combine account bills.

    CWhy not this: Cross-account IAM roles grant access to resources but do not establish consolidated billing.

    DWhy this is right: Accepted invitations make the accounts organization members, bringing their charges under consolidated billing.

    AWS Organizations provides consolidated billing for its member accounts without moving their resources. Cross-account IAM roles provide access between accounts but do not consolidate billing.

    Open this question
  36. Question 36

    Configuration Management and IaC

    A Step Functions Standard Workflow must process an S3 JSON dataset larger than 256 KiB, using one Lambda task per child execution. The workflow must allow at most 40 concurrent child executions and save aggregated results larger than 256 KiB without returning them in the parent payload; which configurations meet these requirements? (Choose three.)

    Choose 3 answers

    Show the answer

    Correct answersA. Configure ResultWriter to export results to S3.B. Use a Distributed Map with an S3 ItemReader.C. Set the Map state's MaxConcurrency to 40.

    AWhy this is right: ResultWriter exports child workflow results to S3 instead of accumulating their full contents in the parent payload.

    BWhy this is right: Distributed Map supports an S3 ItemReader and processes items in separate child workflow executions.

    CWhy this is right: MaxConcurrency limits the number of child workflow executions that run concurrently.

    DWhy not this: Inline Map processes an in-memory array and does not support an S3 ItemReader.

    EWhy not this: ResultPath controls where results appear in state data but does not increase the payload size limit.

    Distributed Map can read a large dataset directly from S3, MaxConcurrency limits concurrent child executions, and ResultWriter exports results to S3. Moving results into a nested field with ResultPath does not bypass the state payload size limit.

    Open this question
  37. Question 37

    Configuration Management and IaC

    An engineer is creating a Systems Manager State Manager association for production nodes using approved command document version 7. The association must remain on that version when newer versions are published and must first run at the next Sunday maintenance time, not when created; which configuration meets these requirements?

    Show the answer

    Correct answerC. Version 7; Sunday cron schedule; ApplyOnlyAtCronInterval enabled.

    AWhy not this: Without ApplyOnlyAtCronInterval, a newly created association normally runs immediately as well as on its schedule.

    BWhy not this: $LATEST follows newer versions, and a rate schedule does not express a fixed Sunday maintenance time.

    CWhy this is right: The explicit version prevents automatic version changes, and the enabled setting defers execution until the Sunday cron time.

    DWhy not this: $DEFAULT can point to a different document version later, so it does not pin the approved version.

    An explicit document version pins the association to the approved content. ApplyOnlyAtCronInterval suppresses the initial execution so the association first runs at the cron time; $DEFAULT is a movable reference rather than a version pin.

    Open this question
  38. Question 38

    Configuration Management and IaC

    A Lambda function processes Amazon SQS messages in batches, but one failed message causes successfully processed messages to be retried. What should an engineer implement to retry only the failed messages?

    Show the answer

    Correct answerA. Enable partial batch responses and return failed message identifiers.

    AWhy this is right: Partial batch responses identify failed messages so successfully processed messages do not need to be retried.

    BWhy not this: Asynchronous invocation destinations do not handle failures from an SQS event source mapping.

    CWhy not this: Returning success acknowledges the batch; a dead-letter queue does not independently identify failed messages.

    DWhy not this: Raising a batch exception fails the entire batch, and a shorter visibility timeout does not isolate failed messages.

    With ReportBatchItemFailures enabled, Lambda can retry only the messages identified as failed in the function response. A dead-letter queue handles messages after repeated unsuccessful receives; it does not identify individual failures within a successful batch response.

    Open this question
  39. Question 39

    Configuration Management and IaC

    A scheduled State Manager association enforces an application's logging configuration, but its command document appends another logging entry on every run. How should an engineer change the document to maintain the desired state safely?

    Show the answer

    Correct answerA. Compare the existing setting and update it only when different.

    AWhy this is right: Checking the current value and changing it only when necessary makes repeated executions converge on the desired state.

    BWhy not this: Checking whether the process is running does not prevent duplicate entries on subsequent executions.

    CWhy not this: Restarting the application does not remove existing entries or prevent another duplicate from being appended.

    DWhy not this: Inventory records configuration information but does not make an append operation idempotent.

    An idempotent document converges on the required configuration without adding changes when the configuration already matches. Inventory collection can record the existing state but does not prevent duplicate modifications.

    Open this question
  40. Question 40

    Configuration Management and IaC

    A platform team wants a versioned, reusable group of resources with standardized security settings that authors can reference as a registered type in CloudFormation templates. The resources must expand into the consuming stack rather than create a separate child stack. What should the team use?

    Show the answer

    Correct answerA. CloudFormation modules

    AWhy this is right: Modules provide versioned, registered resource patterns that expand into the consuming stack.

    BWhy not this: Portfolios organize and control access to Service Catalog products rather than expand registered resource groups.

    CWhy not this: Nested stacks reuse templates by creating child stacks, contrary to the required stack structure.

    DWhy not this: StackSets deploy stacks across accounts and Regions rather than package reusable resource groups as registered types.

    CloudFormation modules package reusable resource configurations as registered types and expand their resources into the consuming template. Nested stacks also support reuse, but create separate child stacks.

    Open this question
  41. Question 41

    Configuration Management and IaC

    Developers must provision an approved CloudFormation product through AWS Service Catalog without receiving permission to create its underlying resources, and only approved instance sizes may be selected. Which configuration enforces these requirements while allowing the platform team to maintain the provisioning permissions independently of the template?

    Show the answer

    Correct answerB. Apply a launch constraint with a provisioning role and a template constraint for instance sizes.

    AWhy not this: The provisioning role addresses permissions, but unrestricted parameters do not enforce approved instance sizes.

    BWhy this is right: The launch role separates provisioning privileges, and the template constraint restricts instance-size selections.

    CWhy not this: Granting developers resource-creation permissions violates the required separation of provisioning privileges.

    DWhy not this: A stack policy protects resources during updates; it does not supply provisioning permissions.

    A launch constraint supplies an IAM role that Service Catalog assumes to provision resources, while a template constraint restricts allowed parameter values. A template constraint alone does not provide the permissions needed to launch the product.

    Open this question
  42. Question 42

    Configuration Management and IaC

    Which AWS Systems Manager capability collects installed application names and versions from managed nodes?

    Show the answer

    Correct answerA. Inventory

    AWhy this is right: Inventory collects managed-node metadata, including installed application names and versions.

    BWhy not this: Session Manager provides interactive access to managed nodes rather than collecting software inventory.

    CWhy not this: Patch Manager assesses patch compliance and installs patches, rather than collecting general application inventory.

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

    Systems Manager Inventory collects metadata such as installed applications and their versions from managed nodes. Patch Manager assesses and installs patches rather than serving as a general software inventory.

    Open this question
  43. Question 43

    Configuration Management and IaC

    A company must retain configuration history for security groups and automatically remove unrestricted SSH ingress when a group becomes noncompliant. Which solution best meets both requirements?

    Show the answer

    Correct answerB. Use AWS Config recording and a rule with automatic Systems Manager Automation remediation.

    AWhy not this: AppConfig validates and deploys application configuration rather than evaluating security group rules.

    BWhy this is right: AWS Config provides configuration history and compliance evaluation, with Automation runbooks performing remediation.

    CWhy not this: State Manager maintains managed-node state rather than recording security group configuration history.

    DWhy not this: Drift detection does not provide continuous configuration history, and stack updates do not inherently remediate detected drift.

    AWS Config records resource configuration history, evaluates compliance, and can trigger Systems Manager Automation remediation. State Manager maintains managed-node configuration; its compliance reports do not provide security group configuration history.

    Open this question
  44. Question 44

    Configuration Management and IaC

    A company wants AWS Control Tower to identify existing resources that violate a supported configuration requirement in a registered OU. Which control behavior should it use?

    Show the answer

    Correct answerA. Detective control

    AWhy this is right: Detective controls identify configuration violations in resources that are already deployed.

    BWhy not this: Proactive controls check supported CloudFormation resource configurations before provisioning.

    CWhy not this: Preventive controls restrict prohibited actions rather than assess existing resource configurations.

    DWhy not this: Account Factory customization configures provisioned accounts rather than continuously detecting resource noncompliance.

    Detective controls evaluate deployed resources and report noncompliance. Proactive controls evaluate supported resources before CloudFormation provisions them, so they do not provide the requested assessment of existing resources.

    Open this question
  45. Question 45

    Configuration Management and IaC

    A consulting provider uses one AWS account to assume customer audit roles, and each customer grants its provider role permission to assume their audit role. What should each customer's trust policy require to prevent another customer from tricking the provider into accessing that customer's account?

    Show the answer

    Correct answerC. An sts:ExternalId condition containing a provider-assigned customer identifier

    AWhy not this: SourceAccount addresses supported service-to-service requests, not customer separation for a provider assuming IAM roles.

    BWhy not this: Restricting the requested Region does not identify which customer authorized the provider's request.

    CWhy this is right: The provider supplies the customer's unique external ID when assuming the role, preventing cross-customer confused deputy access.

    DWhy not this: The provider's role belongs to the provider's organization; organizational membership does not distinguish its customers.

    A unique, provider-assigned external ID binds each assumption request to the intended customer and mitigates the confused deputy problem. PrincipalOrgID checks organizational membership, not which customer caused the provider to make a request.

    Open this question
  46. Question 46

    Configuration Management and IaC

    An organization wants one security account to administer Amazon GuardDuty in two enabled AWS Regions and automatically cover existing and future member accounts. Which actions establish this configuration without per-account invitations? (Choose two.)

    Choose 2 answers

    Show the answer

    Correct answersA. Designate the security account as GuardDuty delegated administrator in each target Region.C. Configure GuardDuty organization auto-enable as ALL in each target Region.

    AWhy this is right: Regional designation gives the security account authority to manage organization members in both target Regions.

    BWhy not this: A Config aggregator centralizes configuration and compliance data but does not administer or enable GuardDuty.

    CWhy this is right: ALL automatically enables GuardDuty for existing and future organization members in the configured Region.

    DWhy not this: NEW enables GuardDuty for subsequently joining accounts, not existing member accounts that lack GuardDuty.

    GuardDuty delegated administration and organization auto-enable settings are Regional. Designating the administrator in both Regions and selecting ALL covers existing and future member accounts; NEW covers only accounts that subsequently join.

    Open this question
  47. Question 47

    Configuration Management and IaC

    An organization uses AWS Config automatic remediation across accounts, but delayed compliance snapshots sometimes start remediation after a resource has become compliant. Security requires unattended correction of actual violations without changing resources that are already compliant or repeatedly retrying persistent failures; which design meets these requirements?

    Show the answer

    Correct answerA. Recheck live configuration in the remediation runbook and bound automatic retry attempts.

    AWhy this is right: Live-state validation avoids unnecessary changes, and bounded retries prevent persistent failures from repeating indefinitely.

    BWhy not this: Packaging the rule in a conformance pack does not remove stale evaluations or add live-state checks to remediation.

    CWhy not this: An aggregator collects configuration and compliance data; it does not validate live state or gate remediation execution.

    DWhy not this: More frequent execution does not eliminate stale snapshots, and additional attempts can repeat unsuccessful remediation.

    AWS Config automatic remediation can act on stale compliance snapshots. The runbook should verify current resource configuration before making changes, while retry limits bound repeated failures; an aggregator collects evaluation data but does not make it a live precondition.

    Open this question
  48. Question 48

    Configuration Management and IaC

    An Auto Scaling fleet must have its application configuration reapplied hourly, and newly launched instances must receive it automatically. Which solution meets these requirements without maintaining instance ID lists?

    Show the answer

    Correct answerB. Create an hourly State Manager association targeting the fleet's shared tag.

    AWhy not this: Inventory collects metadata; it does not enforce the application's configuration.

    BWhy this is right: Tag targeting includes new matching managed nodes, and the association reapplies configuration on its schedule.

    CWhy not this: A fixed instance ID list excludes newly launched instances unless another process updates it.

    DWhy not this: A maintenance window with fixed instance targets does not automatically include replacement instances.

    A tag-targeted State Manager association maintains configuration on a schedule and automatically includes managed nodes that acquire the target tag. Run Command against a fixed instance list does not automatically include replacement instances.

    Open this question
  49. Question 49

    Configuration Management and IaC

    Which Systems Manager capability provides a consolidated view of patch compliance and State Manager association compliance for managed nodes?

    Show the answer

    Correct answerA. Systems Manager Compliance

    AWhy this is right: Compliance provides patch and association compliance status for managed nodes.

    BWhy not this: Automation runs operational workflows rather than serving as the consolidated compliance view.

    CWhy not this: Session Manager provides interactive node access rather than consolidated compliance reporting.

    DWhy not this: Inventory collects metadata such as installed applications rather than providing the consolidated compliance view.

    Systems Manager Compliance consolidates patch and association compliance information for managed nodes. Inventory collects application and system metadata but is not the consolidated compliance view.

    Open this question
  50. Question 50

    Configuration Management and IaC

    A company has a custom scanner that evaluates whether licensed applications on Systems Manager managed nodes meet internal policy. How should an engineer publish these results alongside native Systems Manager compliance data?

    Show the answer

    Correct answerC. Call PutComplianceItems with a custom compliance type and the scanner's results.

    AWhy not this: AWS Config configuration items do not publish custom results into Systems Manager Compliance.

    BWhy not this: Patch baselines define patch approval rules, not arbitrary application licensing evaluation results.

    CWhy this is right: PutComplianceItems supports reporting custom compliance results associated with managed nodes.

    DWhy not this: Custom Inventory records store metadata but do not publish Systems Manager compliance items.

    PutComplianceItems can publish custom compliance items for managed nodes using a custom compliance type. Inventory can store custom metadata, but storing pass/fail values there does not make them Systems Manager compliance items.

    Open this question