Which workflow will meet these requirements in an automated manner?
Add a Patch Group tag with a value of Windows Servers to all existing EC2 instances. Ensure that all Windows EC2 instances are assigned this tag. Associate the AWS-DefaultPatchBaseline to the Windows Servers patch group. Define an AWS Systems Manager maintenance window, conduct patching within it, and associate it with the Windows Servers patch group. Register instances with the maintenance window using associated subnet IDs. Assign the AWS- RunPatchBaseline document as a task within each maintenance window.
Add a Patch Group tag with a value of Windows Servers to all existing EC2 instances. Ensure that all Windows EC2 instances are assigned this tag. Associate the AWS-WindowsPatchBaseline to the Windows Servers patch group. Create an Amazon CloudWatch Events rule configured to use a cron expression to schedule the execution of patching using the AWS Systems Manager run command. Assign the AWS-RunWindowsPatchBaseline document as a task associated with the Windows Servers patch group. Create an AWS Systems Manager State Manager document to define commands to be executed during patch execution.
Add a Patch Group tag with a value of either Windows Servers1 or Windows Servers2 to all existing EC2 instances. Ensure that all Windows EC2 instances are assigned this tag. Associate the AWS-DefaultPatchBaseline with both Windows Servers patch groups. Define two non-overlapping AWS Systems Manager maintenance windows, conduct patching within them, and associate each with a different patch group. Register targets with specific maintenance windows using the Patch Group tags. Assign the AWS-RunPatchBaseline document as a task within each maintenance window.
Add a Patch Group tag with a value of either Windows Servers1 or Windows Server2 to all existing EC2 instances. Ensure that all Windows EC2 instances are assigned this tag. Associate the AWS-WindowsPatchBaseline with both Windows Servers patch groups. Define two non-overlapping AWS Systems Manager maintenance windows, conduct patching within them, and associate each with a different patch group. Assign the AWS-RunWindowsPatchBaseline document as a task within each maintenance window. Create an AWS Systems Manager State Manager document to define commands to be executed during patch execution.
Explanations:
While this option uses the AWS-DefaultPatchBaseline, it does not specify that it is suitable for Windows workloads. Furthermore, it lacks a strategy to stagger reboots since it does not split instances into separate maintenance windows.
This option uses a cron job for patching which may not provide the necessary control to stagger reboots for uptime requirements. The AWS-WindowsPatchBaseline is appropriate, but the scheduling method does not ensure that instances are patched in a controlled manner.
This option correctly utilizes two non-overlapping maintenance windows, allowing for staggered patching of Windows instances. By using different Patch Groups, it ensures that reboots do not happen simultaneously, thus meeting uptime requirements.
Although it also proposes two non-overlapping maintenance windows, it incorrectly uses the AWS-WindowsPatchBaseline without an appropriate differentiation in patching strategy. The use of State Manager is unnecessary in this context for the outlined requirements.