OpsWorks is being used by a developer to setup a short term project.
Basically, this project is about an independent component that needs to talk with other domains that are owned by other teams.
One of them is a RDS MySQL database that records some important information such as user states.
This database is owned and maintained by the operation team.
Click on the arrows to vote for the correct answer
A. B. C. D.Correct Answer-A.
First, You can associate an Amazon RDS database server with an app when you create the app or later by editing the app.
Secondly, When you deploy an app, for Linux stacks, AWS OpsWorks Stacks creates a file on each of the built-in application server instances containing the connection data.
An application can use the connection information from the instance's deploy attributes to connect to a database.
However, applications cannot access that information directly-only recipes can access the deploy attributes.
You can address this issue by implementing a custom recipe that extracts the connection information from the deploy attributes and puts it in a file that can be read by the application.
Details please refer to.
https://docs.aws.amazon.com/opsworks/latest/userguide/workingapps-connectdb.html.Option? ?B ?is? ?incorrect:? Because you can associate the database by editing the app after the app is created.
Option? C is? ?incorrect:? ?Because it is not the lifecycle of Configure.
When the app is deployed, the connection data is recorded under the file with deploy attributes.
Option? D is? ?incorrect:? ?Because application still needs to get the credentials to connect to the MySQL database.
It won't connect without knowing the login details.
The correct answer is A: Associate the Amazon RDS database server when the developer creates the app or later by editing the app. When the app is deployed, AWS OpsWorks Stacks creates a file on each of the built-in application server instances containing the connection data. Then a custom recipe can be used to extract the connection information from the deploy attributes and put it in a file that can be read by the application.
Explanation:
AWS OpsWorks is a configuration management service that uses Chef, an automation platform, to automate infrastructure tasks. OpsWorks Stacks is a service that enables you to create and manage stacks of AWS resources, such as EC2 instances, RDS instances, and load balancers. You can use OpsWorks Stacks to manage the application lifecycle, including deployment, monitoring, and scaling.
In this scenario, a developer is using OpsWorks to set up a short-term project. The project involves an independent component that needs to communicate with other domains owned by different teams, including an RDS MySQL database that records important user information, which is managed by the operations team.
To connect the application to the RDS MySQL database, the developer can associate the database with the app when creating it or later by editing the app. When the app is deployed, AWS OpsWorks Stacks creates a file on each of the built-in application server instances containing the connection data. This file can be accessed by the application using a custom recipe that extracts the connection information from the deploy attributes and puts it in a file that can be read by the application.
Option B is incorrect because the developer can associate the RDS database with the app later, without rebuilding the entire stack.
Option C is incorrect because the connection data is stored in a file created during deployment, not during the configuration stage.
Option D is incorrect because after associating the RDS database with the app, the EC2 instances need to be configured to use the proper roles to connect to the database. This is not mentioned in the answer choice.