Infrastructure as Code and Configuration Management
Master CloudFormation beyond the basics, scale it across accounts with StackSets, build with CDK and SAM, and manage fleets with Systems Manager.
Chapter quiz
Infrastructure as Code and Configuration Management · 10 questions
1.A company wants to run a runbook that restarts application services on 2,000 instances across multiple accounts and Regions. A mistake could cause an outage, so only a small portion of the fleet should be affected if the runbook fails. Which configuration is best?
2.A remediation workflow must isolate a compromised instance, snapshot its volumes, wait for a security engineer to approve termination, and handle failures with retries. Which service should orchestrate this?
3.The security team wants every EC2 instance, including those launched in the future, to run the CloudWatch agent with a standard configuration and to report whether instances comply. Which solution requires the least ongoing effort?
4.A team needs to analyse installed software across 80 accounts to find instances running a vulnerable agent version, using SQL. Which approach is most appropriate?
5.Development instances should stop at 19:00 and start at 07:00 on weekdays in a specific time zone across several accounts, with retries if the API is throttled. Which design is most operationally efficient?
6.A CloudFormation update will modify the instance type of an RDS DB instance and change the DB subnet group. The team wants to know in advance whether any resource will be replaced. What should they do?
7.A stack that contains a Lambda-backed custom resource stays in DELETE_IN_PROGRESS for about an hour and then fails. What is the MOST likely cause?
8.A company with 200 accounts in AWS Organizations needs a security IAM role and AWS Config recorder deployed in every current and future account in the Workloads OU, in two Regions, with minimal administration. What is the BEST solution?
9.A DevOps engineer needs a CDK pipeline in a tooling account to deploy stacks into a production account. The deployment fails with a permissions error assuming roles. What is the likely missing step?
10.Operations staff currently SSH to EC2 instances through a bastion host to run maintenance commands. Security requires removing inbound SSH, keeping a record of every session and restricting who can connect using IAM. What should be implemented?
0 of 10 answered

