Lyra
Learn
AI Learning Platform
π Midnight
π Comfort
π₯ Ember
π Paper
β Contrast
Exams
Sign in to track progress
β Back to the lesson
Module 5 Β· Quiz
Integrating a Third-Party Service
1. What is the main advantage of using IHttpClientFactory for creating HttpClient instances?
It allows multiple HttpClient instances to be created per call
It manages handler lifetimes to prevent socket exhaustion
It simplifies the authentication process for API calls
It enhances the performance of all API requests
2. How should the integration with a third-party service handle changes in their API?
Tightly map their API response directly into your domain models
Ignore all changes and handle them at the moment of failure
Use tolerant deserialization to ignore unknown fields
Automatically update your code base whenever their API changes
3. What is a critical aspect of deploying to production when integrating a third-party service?
Using the same credentials for sandbox and production environments
Recording all call payloads in logs for debugging
Ensuring separate key vaults for sandbox and production to manage secrets
Using default base URLs in the code to avoid errors
4. What is essential to monitor after the integration is live?
Only log error messages for failed requests
Establish alerts only for critical outages
Monitor API error rate and latency per operation
Ignore monitoring if the users report issues
Submit answers
Continue: AuthN vs AuthZ Under Questioning β
Review this lesson
Retake quiz