exam questions

Exam AWS Certified Developer Associate All Questions

View all questions & answers for the AWS Certified Developer Associate exam

Exam AWS Certified Developer Associate topic 1 question 353 discussion

Exam question from Amazon's AWS Certified Developer Associate
Question #: 353
Topic #: 1
[All AWS Certified Developer Associate Questions]

A developer is writing a new web application that will be deployed and managed with AWS Elastic Beanstalk. The application will include an Amazon RDS DB instance.

What steps should the developer take to access the RDS DB instance from the code? (Choose two.)

  • A. Modify the endpoint name using either the AWS Management Console or AWS CLI.
  • B. Upload the driver to Amazon S3 and reference it in the code.
  • C. Download the appropriate database driver and include it with the application.
  • D. Construct a connection string using the Elastic Beanstalk environment variables.
  • E. Create a CNAME record referencing database instances ALIAS.
Show Suggested Answer Hide Answer
Suggested Answer: CD 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
clarksu
2 years, 1 month ago
Selected Answer: CD
C, D is correct. Not only java, but also python, node.js would require the appropriate driver package being included / installed in the environment.
upvoted 3 times
...
Drey
2 years, 3 months ago
Selected Answer: CD
It's CD, A doesn't impact the ability to access the DB.
upvoted 2 times
...
tieyua
2 years, 3 months ago
Selected Answer: CD
Not sure what "endpoint" A is referring to, but you do need driver and connection string to access database, even though in most cases, you don't have to manually "download and include"
upvoted 1 times
...
Phinx
2 years, 3 months ago
Selected Answer: AD
https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/AWSHowTo.RDS.html
upvoted 2 times
tieyua
2 years, 3 months ago
What is "Modify the endpoint name" in A refer to?
upvoted 2 times
...
...
landc
2 years, 4 months ago
Selected Answer: CD
To connect to the database, add the appropriate driver JAR file to your application, load the driver class in your code, and create a connection object with the environment properties provided by Elastic Beanstalk. https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/java-rds.html
upvoted 2 times
Phinx
2 years, 3 months ago
The link you provided is applicable to Java. The question didn't mention specifically for Java. Therefore irrelevant. I think it's AD. https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/AWSHowTo.RDS.html
upvoted 2 times
clarksu
2 years, 1 month ago
C, D is correct. Not only java, but also python, node.js would require the appropriate driver package being included / installed in the environment.
upvoted 1 times
...
...
...
Mark1000
2 years, 4 months ago
C y D As SBoksh link show: "To connect to the database, add the appropriate driver JAR file to your application, load the driver class in your code, and create a connection object with the environment properties provided by Elastic Beanstalk."
upvoted 2 times
...
SBoksh
2 years, 5 months ago
Selected Answer: CD
https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/java-rds.html#java-rds-drivers
upvoted 3 times
hamimelon
2 years, 5 months ago
https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/using-features.managing.db.html "Elastic Beanstalk provides integration with Amazon Relational Database Service (Amazon RDS). You can use Elastic Beanstalk to add a MySQL, PostgreSQL, Oracle, or SQL Server database to an existing environment or a new one when you create it. When you add a database instance, Elastic Beanstalk provides the connection information to your application. It does this by setting the environment properties for the database hostname, port, user name, password, and database name."
upvoted 3 times
...
...
k1kavi1
2 years, 5 months ago
Selected Answer: AD
Going with A&D
upvoted 3 times
...
michaldavid
2 years, 5 months ago
Selected Answer: AD
A and D
upvoted 2 times
...
DrCloud
2 years, 5 months ago
Ans: A, D https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/AWSHowTo.RDS.html After you launch your database instance and configure security groups, you can pass the connection information, such as the endpoint and password, to your application by using environment properties. This is the same mechanism that Elastic Beanstalk uses in the background when you run a database instance in your environment.
upvoted 2 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago