A SysOps Administrator manages an infrastructure stack deployed via AWS CloudFormation. The stack contains an Amazon EC2 instance and an Amazon RDS DB instance. Due to an emergency performance issue, a database administrator manually modified the RDS DB instance parameter group via the RDS console. Similarly, a systems engineer manually changed the EC2 instance type from t3.medium to m5.large via the EC2 console. The SysOps Administrator needs to update the stack to add a new Amazon S3 bucket. The administrator prepares a new CloudFormation template that includes the S3 bucket resource. The template definitions for the EC2 instance (specifying t3.medium) and the RDS DB instance remain identical to the original template. After the administrator successfully completes the stack update using the new template, what will be the configuration of the EC2 instance type and the RDS DB instance parameter group?
- The EC2 instance type remains m5.large and the RDS DB instance retains the manually modified parameter group.Answer
- BThe EC2 instance type is reverted to t3.medium and the RDS DB instance is reverted to the original parameter group.
- CThe stack update fails and triggers a rollback because CloudFormation detects the resource drift before applying the changes.
- DThe EC2 instance type is reverted to t3.medium but the RDS DB instance retains the manually modified parameter group.