Flask API Lesson 4

Flask API Lesson 4

Professional Development

10 Qs

quiz-placeholder

Similar activities

Daisy Kickoff Quiz

Daisy Kickoff Quiz

Professional Development

13 Qs

CS Assessment #1

CS Assessment #1

Professional Development

10 Qs

Jazz Prepaid 4

Jazz Prepaid 4

Professional Development

10 Qs

Agile

Agile

Professional Development

15 Qs

Practical Guide to CMMI for Development V2.0  - Assessment

Practical Guide to CMMI for Development V2.0 - Assessment

Professional Development

12 Qs

SCTS 4.0

SCTS 4.0

Professional Development

9 Qs

PF 1

PF 1

Professional Development

10 Qs

All TechEd Up

All TechEd Up

Professional Development

10 Qs

Flask API Lesson 4

Flask API Lesson 4

Assessment

Quiz

Professional Development

Professional Development

Practice Problem

Hard

Created by

Yusuf Rizal

Used 1+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

10 sec • 5 pts

Manakah pernyataan dibawah ini yang salah mengenai JWT?

JWT dilewatkan diantara user dan server untuk autentikasi

JWT adalah singkatan dari JSON Web Token

JWT dibagi menjadi 3 bagian yang dipisahkan dengan tanda titik diantaranya

JWT adalah teknologi untuk enkripsi

2.

MULTIPLE CHOICE QUESTION

10 sec • 5 pts

Jika sebuah username atau password dinyatakan salah ketika proses login, maka kode status HTTP manakah yang muncul?

404 NOT FOUND

401 UNAUTHORIZED

403 FORBIDDEN

400 BAD REQUEST

3.

MULTIPLE CHOICE QUESTION

10 sec • 7 pts

Manakah dibawah ini merupakan kode untuk membentuk suatu access token?

create_access_token(password)=user.password

create_token(identity=user.id)

create_jwt_token(password=user.password)

create_access_token(identity=user.id)

4.

MULTIPLE CHOICE QUESTION

10 sec • 5 pts

Metode manakah yang digunakan untuk mengambil identity dari token?

get_jwt_identity()

get_jwt_id()

jwt_get_identity()

identity pada token bersifat encrypted, sehingga tidak dapat diakses

5.

MULTIPLE CHOICE QUESTION

10 sec • 5 pts

Kode manakah yang digunakan pada header authorization untuk menjalankan autentikasi?

Digest

Basic

Bearer

HOBA

6.

MULTIPLE CHOICE QUESTION

10 sec • 7 pts

Manakah metode yang digunakan untuk membatasi akses endpoint terhadap user yang telah login?

@jwt_required()

@jwt_optional

get_jwt_identity()

get_jwt()

7.

MULTIPLE CHOICE QUESTION

10 sec • 5 pts

Manakah metode untuk membuat refresh token?

create_refresh_token(password=user.password)

create_refresh_access_token(identity=user.id)

create_refresh_token(identity=user.id)

create_access_token(identity=current_user, fresh=True)

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?