The Complete Strapi™ Course with Plugins and Deployment - Policies

The Complete Strapi™ Course with Plugins and Deployment - Policies

Assessment

Interactive Video

Information Technology (IT), Architecture

University

Hard

Created by

Quizizz Content

FREE Resource

The video tutorial explains the concept of policies in Strappy, detailing their function, scope, and how they are associated with routes. It covers the three types of policies: global, plugin, and API-specific, and how they are structured and referenced. The tutorial demonstrates creating a custom policy using the CLI, attaching it to a route, and testing it. It also explores the policy context, configuration, and how to reuse policies with different configurations. The session concludes with a brief mention of the Strappy object, setting the stage for the next lesson.

Read more

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the primary purpose of policies in Strappy?

To define API endpoints

To manage database connections

To execute functions before a request reaches a route

To handle user authentication

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is NOT a scope of policies in Strappy?

User policies

API policies

Plugin policies

Global policies

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Where are global policies located in a Strappy application?

Inside the source policies folder

Inside the API folder

Inside the plugins folder

Inside the config folder

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How are plugin policies referenced in Strappy?

plugin:identifier

plugin::identifier

plugin-identifier

plugin.identifier

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the first step in creating a custom policy in Strappy?

Editing the configuration file

Creating a new file in the policies subfolder

Running the Strappy server

Modifying the database schema

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What happens if a custom route points to a non-existing controller?

The application will crash

The application will not run

The route will be automatically created

The route will be ignored

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the policy context include?

Database schema

API endpoints

Request and user information

Server configuration

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?