Salesforce certification · Exam Salesforce-Slack-Developer

Salesforce-Slack-Developer Mock Exam

Salesforce Slack Developer - Slack-Dev-201

Free Salesforce-Slack-Developer questions on Design the Interactive Flow of Your App, each with the answer and an explanation.

20 questions · 30 minutes · free, no sign-up

Design the Interactive Flow of Your App questions

1–5 of 5 free
Question 1 Choose 1
Which element type would you use inside a block to collect free-text input in a modal?
Show answerHide answer

Correct answer: B plain_text_input

Explanation

Explanation:

The question asks which Block Kit element type should be used inside a block to collect free-text input in a modal. In Slack's Block Kit framework, modals are built using input blocks, and the element placed inside an input block determines what kind of data the user can provide.

Correct Answer: B. plain_text_input – plain_text_input is the Block Kit element designed specifically for collecting free-form text from users. It is used inside an input block and supports features like multiline, min_length, max_length, placeholder, and dispatch_action. When the user submits the modal, the entered text is returned in the view_submission payload. This makes it the only element among the options capable of capturing unrestricted, user-typed text.

Why Other Options Are Incorrect:

A. button
– A button is an interactive element that triggers an action when clicked. It does not collect any text input from the user. Buttons are valid only inside section or actions blocks, not as data-entry elements.

C. static_select
– A static_select is a dropdown menu that lets users choose from a predefined list of options. It cannot accept arbitrary or free-text input, so it fails the requirement of collecting open-ended user text.

D. overflow – An overflow element is a compact menu (typically shown as a "⋮" icon) that presents a short list of actions or choices. Like static_select, it only allows selection from fixed options and provides no free-text entry capability.

Only plain_text_input satisfies the requirement of capturing unrestricted text typed by the user inside a modal.

📚 References

Slack API – plain_text_input element
Question 2 Choose 1
What is a 'modal' in Block Kit terms?
Show answerHide answer

Correct answer: B A focused pop-up view layered over the Slack UI

Explanation

Explanation

In Slack's Block Kit framework, surfaces represent the visual areas where apps interact with users. A modal is a focused pop-up window that overlays the Slack client interface. Modals are primarily designed to collect structured inputs, display detailed context, or guide users through interactive workflows without requiring users to leave their current channel or conversation. They are UI surfaces, not background processes or authentication mechanisms.

Why the other options are incorrect

A. Background scheduled job
– A background scheduled job refers to asynchronous server-side processing or scheduled tasks. It is unrelated to Block Kit's front-end UI surfaces and does not represent a visual interface for users.

C. A type of OAuth token
– OAuth tokens, such as bot or user tokens, are used for authentication and API authorization. They control access to Slack APIs and resources rather than defining visual user interface elements.

D. Workspace-wide announcement banners
– Announcement banners are administrative or messaging features used to communicate information across a workspace. They are different from Block Kit modals, which are interactive UI surfaces that apps can invoke dynamically.

Official References

Slack API Surfaces - Modals – Official Slack documentation describing modals as focused views for interactive forms and structured content above the main Slack interface.

Block Kit Overview – Official Slack documentation describing Block Kit as a UI framework for building Slack app surfaces such as Messages, Home Tabs, and Modals.
Question 3 Choose 1
You are building an app that allows users to request changes to the Slack workspace through a modal. A user can launch the modal by selecting "Request Changes" from the global shortcuts.
After a user clicks the shortcut, what important piece of data should your app use from the shortcut invocation or interactive action payload to open the modal?
Show answerHide answer

Correct answer: D trigger_id

Explanation

Explanation

When a user interacts with a Slack shortcut, slash command, or interactive UI component such as a button or menu, Slack sends a payload to the app containing a temporary trigger ID called trigger_id. To open a modal, the app calls the views.open API method and provides this trigger_id. The trigger_id authorizes the modal-opening action and is short-lived, so it must be used within 3 seconds of receipt. Therefore, trigger_id is the required value for opening a modal.

Why the other options are incorrect

A. token
– The token parameter is associated with request verification and older Slack authentication mechanisms. It is not the value required by views.open to open a modal. Slack's current request verification approach uses signing secrets and signature headers.

B. response_url
– The response_url is a temporary webhook URL used to send responses or follow-up messages associated with an interaction. It does not provide the authorization context required to open a modal with views.open.

C. callback_id
– The callback_id is a developer-defined identifier used to associate an interaction or view with application logic. It identifies context but does not authorize or initiate the opening of a modal.

Official References

Slack API - views.open Method – Official Slack documentation explaining that views.open requires a trigger_id generated by a user interaction.

Slack API Surfaces - Modals – Official documentation describing how applications open interactive modal views using a trigger ID.
Question 4 Choose 1
What are 'slash commands' used for?
Show answerHide answer

Correct answer: B Letting users trigger app functionality by typing a command starting with '/'

Explanation

Explanation:

The question asks about the purpose of slash commands in Slack. Slash commands are an interactivity feature that lets users invoke an app's functionality directly from the message input box by typing `/` followed by a command name, such as `/remind`, `/poll`, or `/ticket`. When a user sends a slash command, Slack sends an HTTP POST request to the URL configured by the app developer. The request includes information such as the command name, arguments, user, team, channel, and response URL. The app can then process the request and respond with a message, initiate a workflow, or use the interaction context to perform another supported action. Therefore, slash commands are a standard way for users to trigger app functionality on demand.

Why Other Options Are Incorrect:

A. Encrypting messages
– Slash commands are not an encryption mechanism. Encryption protects the confidentiality of data, while slash commands provide a way for users to invoke application functionality.

C. Changing a workspace's theme
– Workspace themes are managed through Slack's user interface and preferences. Slash commands are designed to trigger application functionality, not manage workspace appearance.

D. Deleting channels
– Slash commands do not inherently delete channels. Channel administration and deletion are controlled through Slack's administrative features and appropriate API permissions.

Reference:

Slack API Documentation – Slash Commands – Official Slack documentation explains that slash commands allow users to invoke app functionality by typing a command beginning with `/` and describes the request payload and response mechanisms.
Question 5 Choose 1
Which of these best describes 'message shortcuts'?
Show answerHide answer

Correct answer: A Actions available from the context menu on an individual message

Explanation

Explanation:

The question asks about the purpose of message shortcuts in Slack. Message shortcuts are a type of interactivity feature that lets users invoke an app's functionality on a specific message, rather than on a channel or globally. They appear in the context menu (the "More actions" three-dot menu) that appears when a user hovers over or opens the menu on an individual message. A developer registers a message shortcut in the app configuration, and when a user selects it, Slack sends a payload to the app's request URL containing details such as the `callback_id`, `user`, `team`, `channel`, and the `message` object itself (including its `ts`, `text`, and `user`). This makes message shortcuts ideal for actions like "Create a task from this message," "Save this to my notes," "Translate this message," or "Report this message."

Message shortcuts are one of three shortcut types in Slack, alongside global shortcuts (invoked from the composer or search, not tied to a message) and action shortcuts (invoked from within a message or from a message action). Message shortcuts can respond by opening a modal via `trigger_id`, posting an ephemeral message, or updating the message. They require no special scope beyond the app being installed and the shortcut being registered, and they are user-initiated, so the app does not need to listen to every message in a channel.

❌ Why Other Options Are Incorrect:

B. Keyboard shortcuts for scrolling
– These are client-level UI shortcuts like `Ctrl/Cmd + K` for search or arrow keys for navigation. They are built into the Slack client and have no relation to app message shortcuts.

C. A way to schedule recurring messages
– Scheduled messages are handled through Slack's built-in "Schedule for later" feature in the composer, or programmatically via `chat.scheduleMessage`. Message shortcuts do not schedule messages; they trigger an app action on an existing message.

D. Admin-only commands
– Message shortcuts are available to any user who can see the message and has the app installed. They are not restricted to admins, and admin commands are configured separately through workspace settings.

📚 References:

Slack API documentation on Shortcuts – Defines message shortcuts as actions invoked from a message's context menu and distinguishes them from global shortcuts.

That's the last free question in Design the Interactive Flow of Your App

You've seen the free 30% (5 of 17 questions). Full access unlocks every question and full-length Salesforce-Slack-Developer mock exams (60 questions, 90 minutes), a different mock on every attempt.

Unlock full mock exam
Full mock exam

Sit the Salesforce-Slack-Developer exam before exam day

Full-length mocks with the same number of questions and the same time limit as the real Salesforce-Slack-Developer exam. Every attempt draws a new set of questions from the full bank, so you can keep going until you pass comfortably.

Get full Salesforce-Slack-Developer mock exam
  • 60questions per mock
  • 90 mintime limit
  • 134questions in the bank
  • Newmock on every attempt