300-910 · Question #54
Refer to the exhibit. A distributed application contains data services that connect to databases via JDBC and to other remote services via HTTP. The overall response time is too long, and AppDynamics
The correct answer is D. Verify if the Docker container running MySQL is limiting CPU utilization. When a data service running in Docker exhibits long response times due to slow JDBC calls, a critical first step is to verify if the Docker container running the database (e.g., MySQL) is being throttled by CPU utilization limits.
Question
Options
- AChange from a JDBC call to a HTTP call to retrieve data faster
- BRun the AccountProfileMySQL service in Kubernetes
- CExplore the JDBC queries looking for optimization opportunities
- DVerify if the Docker container running MySQL is limiting CPU utilization
How the community answered
(46 responses)- A4% (2)
- B4% (2)
- C11% (5)
- D80% (37)
Why each option
When a data service running in Docker exhibits long response times due to slow JDBC calls, a critical first step is to verify if the Docker container running the database (e.g., MySQL) is being throttled by CPU utilization limits.
Changing from JDBC to HTTP calls is an architectural redesign, not a direct performance optimization, and HTTP might introduce more overhead unless the API is highly optimized for the specific use case.
Migrating a service from Docker to Kubernetes is a change in orchestration platform and does not inherently resolve underlying performance bottlenecks like slow queries or resource starvation if those issues persist in the new environment.
Exploring JDBC queries for optimization is a valid step, but if the underlying database container is resource-starved (e.g., CPU-limited), even optimized queries will perform poorly; checking container resources often takes precedence as an initial diagnostic.
If the Docker container hosting the MySQL database has insufficient CPU limits, it will struggle to process queries efficiently, leading to slow JDBC calls and extended response times for the dependent data service. Checking and adjusting these resource limits is a fundamental troubleshooting step for performance issues in containerized environments.
Concept tested: Docker container resource troubleshooting
Source: https://docs.docker.com/config/containers/resource_constraints/
Topics
Community Discussion
No community discussion yet for this question.