🌍 NodeJS · flashcards

NodeJS Advanced Topics Flashcards

51 question-and-answer cards covering Advanced Topics as it is examined in NodeJS. 24 of them are printed below, taken from across the deck — no signup, no paywall on the preview.

51Cards in deck
24Free preview
9Syllabus topics
~187Chars per answer
FreePrice

24 sample cards from the Advanced Topics deck

Sampled from the end of the deck, so these are different cards from the ones shown on the syllabus page.

  1. What is the difference between a GraphQL 'type' and an 'input' type?

    An object type (type) describes data returned by the API; an input type (input) is used to pass structured arguments into queries and mutations and cannot have resolvers or circular object references the same way.

  2. What is Apollo Server?

    A popular, spec-compliant open-source GraphQL server library for NodeJS that lets you define a schema and resolvers and serve them over HTTP, with support for integrations, subscriptions, and tooling.

  3. What are the two required inputs to construct an Apollo Server (or most GraphQL servers) in NodeJS?

    typeDefs (the schema written in SDL) and resolvers (the map of functions that provide data for the schema's fields).

  4. How do you start a standalone Apollo Server (v4) in NodeJS?

    Create the server with new ApolloServer({ typeDefs, resolvers }), then call startStandaloneServer(server, { listen: { port } }), which returns the URL it is listening on.

  5. What is GraphQL introspection?

    A built-in feature that lets clients query the schema itself (via __schema and __type) to discover available types, fields, and operations; it powers tools like GraphiQL and Apollo Sandbox.

  6. How are the 'context' objects typically used in a GraphQL server?

    The context is created per request and holds shared data such as the authenticated user, database connections, and dataloaders, making it available to every resolver during that request.

  7. What is the N+1 problem in GraphQL and one way to solve it?

    When resolving a list, each item triggers a separate downstream query (1 for the list + N for items), causing many redundant calls. DataLoader batches and caches these requests within a single tick to reduce them.

  8. How do you integrate Apollo Server with an existing Express application?

    Use the expressMiddleware from @apollo/server/express4: create and await server.start(), then mount app.use('/graphql', cors(), express.json(), expressMiddleware(server, { context })) on your Express app.

  9. Why would you integrate GraphQL into Express rather than run it standalone?

    To reuse existing Express middleware (auth, logging, CORS, body parsing), serve REST and GraphQL from the same server, and add custom routes alongside the /graphql endpoint.

  10. Which HTTP method and status code does a typical GraphQL-over-HTTP request use?

    Queries and mutations are usually sent as HTTP POST to a single /graphql endpoint, and even errors commonly return HTTP 200 with an 'errors' array in the JSON response body.

  11. What is serverless computing?

    A cloud execution model where the provider dynamically manages server provisioning and scaling; developers deploy functions or code that run on demand, and billing is based on actual execution rather than pre-provisioned capacity.

  12. What does 'Function as a Service' (FaaS) mean?

    A serverless model where you deploy individual functions that the cloud provider runs in response to events, automatically scaling and charging only for execution time. AWS Lambda, Azure Functions, and Google Cloud Functions are examples.

  13. Give three benefits of serverless architectures.

    No server management, automatic scaling with demand, pay-per-use billing (no cost when idle), and faster time to market for individual functions.

  14. What is a 'cold start' in serverless?

    The added latency when a function is invoked after being idle, because the platform must initialize a new execution environment (container/runtime) before running the code; subsequent 'warm' invocations reuse it and are faster.

  15. Name two common limitations of serverless functions.

    Execution time limits (e.g., AWS Lambda caps at 15 minutes), cold-start latency, statelessness (no reliable local persistence between invocations), and vendor lock-in.

  16. What is AWS Lambda?

    Amazon's serverless FaaS compute service that runs your code in response to events and automatically manages the underlying compute; you upload a function and Lambda handles scaling, availability, and execution.

  17. What is the signature of a NodeJS AWS Lambda handler function?

    exports.handler = async (event, context) => { ... }; where event carries the invocation payload/trigger data and context provides runtime info (request ID, remaining time, memory).

  18. How is an AWS Lambda function typically triggered?

    By event sources such as API Gateway (HTTP requests), S3 events, DynamoDB Streams, SNS/SQS messages, EventBridge/CloudWatch scheduled events, and direct SDK invocations.

  19. What is the maximum execution timeout for an AWS Lambda function?

    15 minutes (900 seconds); memory is configurable (from 128 MB up to 10,240 MB), and CPU scales proportionally with allocated memory.

  20. How does AWS Lambda pricing work?

    You are charged per request plus for compute measured in GB-seconds, i.e., allocated memory multiplied by execution duration; there is no charge when the function is not running (a generous free tier also applies).

  21. What is the Serverless Framework?

    An open-source, provider-agnostic CLI and framework for developing, packaging, and deploying serverless applications (functions and their infrastructure) using a declarative configuration file, most commonly with AWS Lambda.

  22. What configuration file does the Serverless Framework use, and what does it define?

    serverless.yml (or .ts/.js/.json), which declaratively defines the provider, functions, their event triggers, resources, plugins, and environment configuration for the deployment.

  23. In serverless.yml, what does the 'functions' section define versus the 'events' within it?

    The 'functions' section lists each deployable function and its handler; the 'events' under a function define the triggers (e.g., http, schedule, s3, sqs) that invoke that function.

  24. Which Serverless Framework CLI command deploys your service to the cloud, and how do you remove it?

    'serverless deploy' (or 'sls deploy') packages and provisions the service (on AWS via CloudFormation); 'serverless remove' tears down all the deployed resources.

What this deck covers

The Advanced Topics deck follows the NodeJS Advanced Topics syllabus — 3 chapters and 9 topics — so questions land on material that is genuinely examinable rather than trivia around it. That works out to roughly 17.0 cards per chapter.

Answers are written to be recallable, not just readable — averaging about 187 characters, which is long enough to carry the reasoning and short enough to say out loud.

A deck like this earns its keep on the second and third pass. Read the syllabus first so you know the shape of the subject, then use the cards to find the specific facts that have not stuck.

Advanced Topics flashcards FAQ

How many Advanced Topics flashcards are in this NodeJS deck?

51 cards. This page previews 24 of them, sampled evenly across the deck so you can judge the difficulty before installing anything.

Are these NodeJS flashcards free?

Yes. The preview here is free to read with no signup, and the full 51-card deck is free inside the Examius app.

What do the Advanced Topics cards cover?

They follow the NodeJS Advanced Topics syllabus — 3 chapters and 9 topics — so the questions track what is actually examinable.

How should I use these flashcards?

Read the syllabus first so you know the shape of the subject, then drill the deck. Examius schedules each card with spaced repetition, so cards you keep missing come back sooner and ones you know drift further apart.