Test - up1/workshop-springboot-nodejs-go GitHub Wiki

1. What is the main purpose of a REST API?

  • A. Create desktop applications
  • B. Provide secure user authentication
  • C. Allow communication between client and server over HTTP
  • D. Store data in memory

2. Which of the following is a REST constraint?

  • A. Multi-threading
  • B. Statelessness
  • C. XML only format
  • D. Persistent connection

3. In REST API design, which HTTP method is typically used to update a resource?

  • A. GET
  • B. POST
  • C. PUT
  • D. DELETE

4. What is a good practice for designing RESTful URIs?

  • A. Use verbs like /createUser
  • B. Use nouns like /users
  • C. Include session IDs
  • D. Use uppercase letters

5. Which layer in Spring Boot is responsible for business logic?

  • A. Controller
  • B. Repository
  • C. Gateway
  • D. Service

6. What tool can be used to test REST APIs manually?

  • A. JMeter
  • B. Postman
  • C. Gradle
  • D. Jenkins

7. Which library is used in Node.js to build REST APIs?

  • A. Flask
  • B. Express
  • C. Spring MVC
  • D. Angular

8. In Node.js, which tool is used for writing unit tests?

  • A. JUnit
  • B. Testify
  • C. Jest
  • D. Mocha

9. What does the Repository layer do in a RESTful backend?

  • A. Handles client requests
  • B. Manages data access
  • C. Routes URLs
  • D. Displays HTML

10. In Go, what is the purpose of the struct type?

  • A. Define an API endpoint
  • B. Represent a collection of functions
  • C. Represent complex data types
  • D. Replace all primitive types

11. Which library is not used for routing in a Go web API?

  • A. Gorilla Mux
  • B. Echo
  • C. Gin
  • D. React Router

12. What is Redis commonly used for in backend systems?

  • A. UI rendering
  • B. Long-term storage
  • C. Caching and in-memory data storage
  • D. Schema management

13. Which tool is used for logging in Spring Boot applications?

  • A. Prometheus
  • B. Zipkin
  • C. SLF4J / Logback
  • D. JConsole

14. In observability, which of the following helps in tracking the flow of a request across services?

  • A. Metrics
  • B. Tracing
  • C. Logging
  • D. Monitoring