OPA
OPA (Open Policy Agent) is an open-source project that uses a single policy language and a policy engine that can be used to resolve policy issues and authorization problems at the layer of cloud-native stack. It is a way of declaratively writing policies as code and then using those policies in the decision-making process.
It uses a purpose-built declarative language, Rego, to express complex logic over complex hierarchical data structures. OPA has over 50 integrations and can enforce policies in Terraform, microservices, Kubernetes and many more.
Take this assessment to know how good you are with Open Policy Agent (OPA).
Click the Rewards tab for eligibility requirements.
Read FAQs tab carefully for Instructions before beginning the assessment.
NYXPoints are used to generate the Leaderboard (coming soon). They are awarded for achieving a certain score.
- 200 nyxpoints for a passing score of 80% or more
- 300 nyxpoints for a perfect score of 100%
- Didn’t pass? You still get 30 nyxpoints for attempting the assesment
IMPORTANT instructions for taking the Assessment
- The timer starts when you click Start Assessment
- DO NOT refresh/reload the page or use the back button to navigate away from the page.
- Navigating away from the assessment page DOES NOT stop/pause the timer and the will restart the assessment when you come back to it. The answers are NOT saved.
General
- There are NO pre-requisites to take this assessment. Take this assessment even if you are completely new to Linux.
- The assessment is completely FREE.
- Preferably take it in a closed book mode.
- DO NOT copy/paste, share or upload questions elsewhere.
Eligible Rewards
300 NyxCoins*
* NyxCoins vary on score
Assessment Summary
0 of 30 Questions completed
Questions:
Information
You have already completed the assessment before. Hence you can not start it again.
Assessment is loading…
You must sign in or sign up to start the assessment.
You must first complete the following:
Results
Results
0 of 30 Questions answered correctly
Your time:
Time has elapsed
You have reached 0 of 0 point(s), (0)
Earned Point(s): 0 of 0, (0)
0 Essay(s) Pending (Possible Point(s): 0)
Average score |
|
Your score |
|
Categories
- Not categorized 0%
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- 24
- 25
- 26
- 27
- 28
- 29
- 30
- Current
- Review
- Answered
- Correct
- Incorrect
-
Question 1 of 30
1. Question
Which of the following language is used to write a policy in OPA?
CorrectIncorrect -
Question 2 of 30
2. Question
In which of the following format OPA considers the input data while writing the policy using Rego language?
CorrectIncorrect -
Question 3 of 30
3. Question
Which of the following are the benefits of using OPA over other platforms?
CorrectIncorrect -
Question 4 of 30
4. Question
Which of the following brackets are used to refer array elements in OPA?
CorrectIncorrect -
Question 5 of 30
5. Question
How will you create user attributes stored in LDAP/AD available to OPA for making decisions?
CorrectIncorrect -
Question 6 of 30
6. Question
Which Equality Operators are available to use in OPA? (Multiple choice)
CorrectIncorrect -
Question 7 of 30
7. Question
How many types of Equality Operators are supported in Rego?
CorrectIncorrect -
Question 8 of 30
8. Question
Which of the below command is used to set permissions on the OPA executable?
CorrectIncorrect -
Question 9 of 30
9. Question
Which of the below command you will use to check the version of OPA?
CorrectIncorrect -
Question 10 of 30
10. Question
Which of the following command is used to Evaluate a policy in OPA?
CorrectIncorrect -
Question 11 of 30
11. Question
Which of the following command is used to Start OPA in interactive or server mode?
CorrectIncorrect -
Question 12 of 30
12. Question
Which of the following command is used to Execute Rego test cases?
CorrectIncorrect -
Question 13 of 30
13. Question
Where are the OPA policies stored?
CorrectIncorrect -
Question 14 of 30
14. Question
OPA is compiled to Node.js on the server and ________ on the client.
CorrectIncorrect -
Question 15 of 30
15. Question
What is OPA gatekeeper?
CorrectIncorrect -
Question 16 of 30
16. Question
A _____ allows decoupling policy decisions.
CorrectIncorrect -
Question 17 of 30
17. Question
The_______ offers an interactive environment for learning and developing Rego policies entirely in the web browser.
CorrectIncorrect -
Question 18 of 30
18. Question
What is the correct output of below mentioned policy input?
Policy.rego
package play
import future.keywords.if
default hello := false
hello if input.message == “world”
input.json
{
“message”: “world”
}
CorrectIncorrect -
Question 19 of 30
19. Question
Which of the following command is used to execute Benchmark for Rego query?
CorrectIncorrect -
Question 20 of 30
20. Question
Which command is used to build an OPA bundle?
CorrectIncorrect -
Question 21 of 30
21. Question
Which command is used to show the capabilities of OPA?
CorrectIncorrect -
Question 22 of 30
22. Question
Which of the following command is used to check Rego source files for parse and compilation errors?
CorrectIncorrect -
Question 23 of 30
23. Question
Does OPA provide a high-level declarative language?
CorrectIncorrect -
Question 24 of 30
24. Question
What is Open Policy Agent (OPA)?
CorrectIncorrect -
Question 25 of 30
25. Question
For which of the following purposes OPA can be used?
CorrectIncorrect -
Question 26 of 30
26. Question
Which of the following statements are correct for Rego language? (Multiple Choice)
CorrectIncorrect -
Question 27 of 30
27. Question
What is the correct order to integrate OPA with Terraform?
CorrectIncorrect -
Question 28 of 30
28. Question
Which of the following is not involved into the decision-making process in OPA?
CorrectIncorrect -
Question 29 of 30
29. Question
Which of the following are the advantages of Rego that helps you to define policies for your infrastructure?
CorrectIncorrect -
Question 30 of 30
30. Question
When you write a policy, which of the below refers to OPA?
CorrectIncorrect