ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 252 - AZ-204 discussion

Report
Export

You develop and deploy an ASP.NET Core application that connects o an Azure Database for MySQL instance.

Connections to the database appear to drop intermittently and the application code does not handle the connection failure.

You need to handle the transient connection errors in code by implementing retries.

What are three possible ways to achieve this goal? Each correct answer presents part of the solution.

NOTE: Each correct selection is worth one point.

A.
Increase connection repeat attempts exponentially up to 120 seconds.
Answers
A.
Increase connection repeat attempts exponentially up to 120 seconds.
B.
Close the database connection and immediately report an error.
Answers
B.
Close the database connection and immediately report an error.
C.
Wait five seconds before repeating the connection attempt to the database.
Answers
C.
Wait five seconds before repeating the connection attempt to the database.
D.
Disable connection pooling and configure a second Azure Database for MySQL instance.
Answers
D.
Disable connection pooling and configure a second Azure Database for MySQL instance.
E.
Set a maximum number of connection attempts to 10 and report an error on subsequent connections.
Answers
E.
Set a maximum number of connection attempts to 10 and report an error on subsequent connections.
Suggested answer: B, C, D
asked 02/10/2024
Sam Poon
40 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first