Dapr provides portable building blocks for distributed applications. These exercises cover Dapr's pub/sub messaging, virtual actor model, service invocation, and secrets management — the core abstractions for building cloud-native microservices with Dapr.
0 / 5 completed
1 / 5
At standup, a colleague asks what Pub/Sub components in Dapr do. What is the correct answer?
Dapr Pub/Sub components provide a portable messaging API. Your application publishes messages to a topic via the Dapr sidecar HTTP/gRPC API, and subscribes by declaring topic subscriptions. The actual message broker — Kafka, Redis, RabbitMQ, Azure Service Bus, etc. — is configured as a component YAML and can be swapped without changing application code. This portability is a core Dapr value proposition.
2 / 5
During a PR review, a teammate asks what actor state in Dapr provides. Which answer is correct?
Dapr actor state gives each actor instance its own isolated key-value store. State operations go through the Dapr sidecar, which persists them to the configured state store component (Redis, Azure CosmosDB, PostgreSQL, etc.). Because Dapr manages state serialisation and persistence, actors can be deactivated and reactivated transparently — their state is restored from the store when the actor is next invoked.
3 / 5
In a design review, the team discusses actor reminders in Dapr. A junior engineer asks how they differ from actor timers. What is correct?
The key difference is durability. Dapr actor reminders are persisted to the state store and survive actor deactivation, host restarts, and crashes — they will fire even if the actor was dormant. Timers are in-memory and are lost if the actor is deactivated or the host restarts. For production scheduled tasks (payment retries, scheduled notifications), always use reminders. Use timers only for transient in-session scheduling.
4 / 5
An incident report shows a service failing to call another service by hostname. A senior engineer asks how service invocation works in Dapr. What is correct?
Dapr service invocation routes calls through the local Dapr sidecar using the app ID as the address. The call goes to http://localhost:{dapr-port}/v1.0/invoke/{app-id}/method/{method}, and the Dapr sidecar performs service discovery (via Dapr's name resolution component), adds mTLS encryption, automatic retries, distributed tracing, and load balancing. You never need to know the target service's actual hostname or port.
5 / 5
During a code review, a senior engineer asks what the Secrets API in Dapr provides. What is accurate?
Dapr's Secrets API provides a portable secret retrieval interface. Your application calls http://localhost:{dapr-port}/v1.0/secrets/{store-name}/{secret-name}, and the Dapr sidecar fetches the secret from the configured backend — whether that is AWS Secrets Manager, Azure Key Vault, HashiCorp Vault, or Kubernetes Secrets. Switching the secret store only requires changing the component configuration, not application code.
What does the "Dapr Pub/Sub and Actors Vocabulary" vocabulary exercise cover?
This exercise tests real IT vocabulary related to dapr pub/sub and actors vocabulary through 5 multiple-choice questions, each built from realistic workplace sentences rather than abstract definitions.
Is this vocabulary exercise free to use?
Yes. Every exercise on CoderSlingo, including this one, is completely free — no account, sign-up, or payment required.
How many questions does this exercise have?
This exercise has 5 questions. Each one shows a real-world sentence or scenario with multiple-choice options and an explanation once you answer.
What happens after I answer a question?
You'll see immediate feedback showing whether your answer was correct, along with a short explanation of why — then a button to move to the next question, and a full results screen at the end.
Can I retry the exercise if I get questions wrong?
Yes. Once you reach the results screen, click "Try again" to reset your answers and go through the exercise from the start as many times as you like.
Do I need to create an account to take this exercise?
No account is needed. Your answers are scored in your browser during the session — nothing is saved to a server, so you can jump straight in.
Is my progress saved if I leave the page?
No — progress within an exercise resets if you navigate away or reload. Each exercise is short enough to complete in a few minutes in one sitting.
Are these vocabulary exercises connected to other topics?
Yes — this module shares real-world context with 17 other vocabulary modules. See "Related vocabulary" below to keep building a connected skill set.
How is this different from reading a glossary or blog article?
Exercises like this one are active recall drills — you have to choose the correct term or phrasing yourself, which builds retention faster than passively reading a definition.
Where can I find more vocabulary exercises?
Browse the full Vocabulary exercises hub for hundreds of modules covering Agile, DevOps, security, databases, architecture, and more — organised by IT role and skill.