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 questions
Answer options
A: Systems Manager Correct answer
B: OpsWorks
C: Launch Wizard
D: Config Correct answer
Correct Answer:
A. Systems Manager; D. Config
Explanation

This 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.

Why Incorrect

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.

References

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.

Scroll to Top