exam questions

Exam AWS Certified Database - Specialty All Questions

View all questions & answers for the AWS Certified Database - Specialty exam

Exam AWS Certified Database - Specialty topic 1 question 167 discussion

Exam question from Amazon's AWS Certified Database - Specialty
Question #: 167
Topic #: 1
[All AWS Certified Database - Specialty Questions]

A database specialist needs to configure an Amazon RDS for MySQL DB instance to close non-interactive connections that are inactive after 900 seconds.
What should the database specialist do to accomplish this task?

  • A. Create a custom DB parameter group and set the wait_timeout parameter value to 900. Associate the DB instance with the custom parameter group.
  • B. Connect to the MySQL database and run the SET SESSION wait_timeout=900 command.
  • C. Edit the my.cnf file and set the wait_timeout parameter value to 900. Restart the DB instance.
  • D. Modify the default DB parameter group and set the wait_timeout parameter value to 900.
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️

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
novice_expert
3 years, 1 month ago
Selected Answer: A
A. Create a custom DB parameter group and set the wait_timeout parameter value to 900. Associate the DB instance with the custom parameter group. wait_timeout: The number of seconds the server waits for activity on a non-interactive TCP/IP or UNIX File connection before closing it.
upvoted 3 times
...
AriraAWS
3 years, 4 months ago
Selected Answer: A
A is the right answer, done that many times....
upvoted 4 times
...
Shunpin
3 years, 5 months ago
Selected Answer: A
Managed RDS needs parameter grou. wait_timeout: The number of seconds the server waits for activity on a non-interactive TCP/IP or UNIX File connection before closing it.
upvoted 3 times
...
odba2014
3 years, 5 months ago
A is answer
upvoted 1 times
...
MBO80
3 years, 5 months ago
For me, answer is A https://aws.amazon.com/fr/blogs/database/best-practices-for-configuring-parameters-for-amazon-rds-for-mysql-part-3-parameters-related-to-security-operational-manageability-and-connectivity-timeout/
upvoted 3 times
grekh001
3 years, 5 months ago
Yes, the correct answer is A From part one of that blog series: "You can set parameters globally using a parameter group. Alternatively, you can set them for a particular session using the SET command." https://aws.amazon.com/blogs/database/best-practices-for-configuring-parameters-for-amazon-rds-for-mysql-part-1-parameters-related-to-performance/ You can't edit files directly on the RDS servers, must use SET command or Parameter Group
upvoted 1 times
...
...
cynthiacy
3 years, 6 months ago
C. the answer is wrong, but the link is right!
upvoted 2 times
jove
3 years, 5 months ago
This is an Amazon managed service, you cannot edit my.cnf file yourself. The correct answer is A
upvoted 2 times
...
...
Sp230
3 years, 6 months ago
Answer should be B
upvoted 1 times
...
johnconnor
3 years, 6 months ago
Actually, I think all the answers could be wrong because you are not supposed to edit the .cnf file in RDS, but you could set the parameter globally with SET GLOBAL wait_timeout = xxxx; there should be an option for that
upvoted 1 times
...
johnconnor
3 years, 6 months ago
It should be C!
upvoted 1 times
...
johnconnor
3 years, 6 months ago
Answer is wrong, we should open the my.cnf file in /etc/mysql and then restart the server with service mysql restart
upvoted 1 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 ...