After an infrastructure-as-code cloud migration to an laaS environment, the cloud engineer discovers that configurations on DB servers have drifted from the corporate standard baselines. Which of the following should the cloud engineer do to best ensure configurations are restored to the baselines?
Correct Answer: A
A template is a file that defines the desired state and configuration of a cloud resource, such as a server, a network, or a database. Infrastructure as code (IaC) is the practice of using templates to automate and manage cloud resources, rather than manually configuring them. IaC can help prevent configuration drift, which is the deviation of the actual state of a resource from the desired state defined by the template. In this scenario, the cloud engineer discovers that configurations on DB servers have drifted from the corporate standard baselines after an IaC cloud migration to an IaaS environment. The best way to ensure configurations are restored to the baselines is to utilize a template to automate and update the DB configuration. This way, the cloud engineer can apply the same template to all the DB servers, and ensure they are consistent and compliant with the corporate standards. Creating an image of the DB, deleting the previous DB server, and restoring from the image is not a good solution, as it may cause data loss, downtime, and additional costs. Manually logging in to the DB servers and updating the configurations is not a good solution, as it is time-consuming, error-prone, and not scalable. Renaming and changing the IP of the old DB server and rebuilding a new DB server is not a good solution, as it may cause compatibility issues, network disruptions, and security risks. References: CompTIA Cloud+ CV0-003 Certification Study Guide, Chapter 23, Infrastructure as Code and Configuration Management, page 3691.