CLOUD-DEPLOYMENT-AND-OPERATIONS practice question 14 of 15
(A company is developing an application with the following requirements: • Amazon EC2 instances must be restricted to Free Tier-eligible types. • Instances of unapproved types must be terminated automatically. Which two services should be used? Choose 2 answers.)
Full set: 67 questionsThis scenario requires a two-part solution: first, a service to detect non-compliant resources, and second, a service to perform an automated remediation action. AWS Config is the ideal service for detection. It can be used to create a rule (specifically, the desired-instance-type managed rule or a custom rule) that continuously monitors EC2 instances. This rule checks if the instance type matches the list of approved Free Tier-eligible types. When AWS Config identifies an instance that violates this rule (i.e., is non-compliant), it can be configured to trigger an automated remediation action. AWS Systems Manager Automation provides the mechanism to perform this action. A Systems Manager Automation document, such as AWS-TerminateEC2Instance, can be specified as the remediation action to automatically terminate the non-compliant instance.
B. OpsWorks: This is a configuration management service for automating application deployment and server configuration, not for enforcing infrastructure compliance rules like instance types.
C. Launch Wizard: This service provides a guided deployment experience for specific enterprise workloads (e.g., SQL Server), not a general-purpose compliance and remediation function.
1. AWS Config Developer Guide: In the section on remediation, the documentation states, "For remediation, you can choose from a pre-defined list of automation documents in Systems Manager Automation... AWS Config provides a set of managed automation documents to help you remediate noncompliant resources." This directly links AWS Config (for detection) with Systems Manager (for remediation).
Source: AWS Config Developer Guide, "Remediating Noncompliant AWS Resources by AWS Config Rules," Section: "Choosing a Remediation Action."
2. AWS Systems Manager User Guide: The guide explains the integration between the services: "You can use AWS Systems Manager Automation to simplify common maintenance and deployment tasks... You can also use Automation with AWS Config to remediate noncompliant resources that are evaluated by AWS Config rules."
Source: AWS Systems Manager User Guide, "Working with automations," Section: "AWS Config integration with Automation."
3. AWS Config Developer Guide (Managed Rules): The documentation for the desired-instance-type managed rule explicitly describes its function: "Checks whether your EC2 instances are of a specified type... For example, you can check whether your instances are t2.micro or t2.medium." This confirms Config's capability for the detection requirement.
Source: AWS Config Developer Guide, "List of AWS Config Managed Rules," Rule Identifier: DESIREDINSTANCETYPE.
Keep practicing
Take the free CLOUD-DEPLOYMENT-AND-OPERATIONS practice test
Ten exam-style questions with answers and explanations, plus the exam facts and study guides.
More questions
Other CLOUD-DEPLOYMENT-AND-OPERATIONS practice questions
- Question 1(What is the role of AWS Trusted Advisor?)
- Question 2(Which action must be used to create a metric filter in the Amazon CloudWatch console?)
- Question 3(Which CloudWatch metric filter includes log events with the word ERROR but excludes log …
- Question 4(Media files are stored in an S3 bucket in region A. Demand for the files from region B h…
- Question 5(A company is using Route 53 for Domain Name System (DNS) hosting. The company requires a…
- Question 6(A company configures the CloudFront caching TTL to the following settings: Min: 0, Max: …
