19 questions for “HTTP Client & Interceptors”

Found in 1 field. Select a question to see its full answer.

Information Technology

19 questions in 1 technology

#QuestionTechnologyTopicLevel
1How do you make a basic GET request to a server using Angular's HttpClient? Angular › HTTP Client & InterceptorsAngularHTTP Client & InterceptorsBeginner
2How do you send data to a server using a POST request with Angular's HttpClient? Angular › HTTP Client & InterceptorsAngularHTTP Client & InterceptorsBeginner
3What is an HTTP interceptor in Angular, and what is it commonly used for? Angular › HTTP Client & InterceptorsAngularHTTP Client & InterceptorsIntermediate
4How would you handle errors from an HTTP request in Angular, showing a friendly message to the user? Angular › HTTP Client & InterceptorsAngularHTTP Client & InterceptorsIntermediate
5How would you use an interceptor to automatically retry a failed HTTP request a few times before giving up? Angular › HTTP Client & InterceptorsAngularHTTP Client & InterceptorsAdvanced
6How would you test an Angular service that makes HTTP requests, without making real network calls during the test? Angular › Testing with Jasmine & KarmaAngularTesting with Jasmine & KarmaAdvanced
7Why should you avoid storing sensitive information, like an authentication token, directly in an Angular app's local storage? Angular › Angular Security (XSS, Sanitization & CSP)AngularAngular Security (XSS, Sanitization & CSP)Beginner
8What is an observable in RxJS, and how is it different from a promise? Angular › RxJS & ObservablesAngularRxJS & ObservablesBeginner
9What is a Content Security Policy, often shortened to CSP, and how does it add another layer of protection to an Angular app? Angular › Angular Security (XSS, Sanitization & CSP)AngularAngular Security (XSS, Sanitization & CSP)Intermediate
10How do environment files work in Angular, and how do you use different values for development and production? Angular › Build, Environments & DeploymentAngularBuild, Environments & DeploymentIntermediate