Scenario Analysis:
The EC2 instance is inaccessible through RDP due to misconfigured Windows Firewall settings.
The boot volume is encrypted, which restricts direct modification without proper mounting and decryption tools.
The goal is to back up the instance and regain RDP connectivity.
Why Option D is Correct:
AWS provides EC2Rescue for Windows Server as a tool to resolve common connectivity and boot issues for Windows EC2 instances.
The process of detaching the boot volume and attaching it to another instance ensures that the misconfigured instance does not impede further configuration.
The working instance acts as a recovery environment where EC2Rescue can be run to modify the Windows Firewall settings and allow RDP access.
Steps to Resolve the Issue (Following Option D):
Step 1: Stop the instance.In the EC2 console, select the affected instance and stop it to ensure safe operations.
Step 2: Detach the boot volume.Navigate to the instance's storage section, identify the boot volume (usually /dev/sda1), and detach it.
Step 3: Attach the boot volume to a recovery instance.
Identify a working instance that has EC2Rescue installed.
Attach the detached boot volume to the recovery instance as a secondary volume.
Step 4: Run EC2Rescue to fix Windows Firewall settings.
Log in to the recovery instance and launch EC2Rescue.
Select the attached secondary volume and run diagnostics or select specific repairs (e.g., enabling RDP access in Windows Firewall settings).
Step 5: Detach the boot volume from the recovery instance.After applying the fix, safely detach the volume from the recovery instance.
Step 6: Reattach the boot volume to the original instance.Attach the volume back to the original instance as its boot volume.
Step 7: Start the instance and verify connectivity.Start the original instance and attempt to connect via RDP using the instance's public or private IP (depending on the network configuration).
AWS References and Best Practices:
EC2Rescue for Windows Server:Official documentation: EC2Rescue
Encrypted EBS Volumes:Ensure the proper use of the same AWS KMS key when attaching encrypted volumes to other instances. Reference: EBS Encryption
Backup Before Modifications:AWS recommends creating snapshots of EBS volumes before making changes. Reference: Creating EBS Snapshots
Why Other Options Are Incorrect:
Option A: AWS does not support disabling encryption for EBS volumes directly. Additionally, creating a new key pair does not address the firewall misconfiguration.
Option B: Amazon Inspector does not provide tools for modifying Windows Firewall settings. It is primarily used for vulnerability assessments.
Option C: Disabling encryption is not supported, and Amazon Inspector cannot fix firewall issues.