312-97 practice question 24 of 35

(Helena Luke has been working as a DevSecOps engineer in an IT company located in Denver, Colorado. To seamlessly secure source code during build…

Full set: 100 questions
(Helena Luke has been working as a DevSecOps engineer in an IT company located in Denver, Colorado. To seamlessly secure source code during build time and enhance the runtime protection functionalities to the source code, she would like to integrate Jscrambler with GitLab. Therefore, she selected a predefined template and successfully downloaded the Jscrambler configuration file. She then placed the file in the project's root folder and renamed it as .jscramblerrc. To prevent the exposure of sensitive information, she opened the Jscrambler configuration file and removed the access and secret keys from it. In which of the following formats does the Jscrambler configuration file exist?.)
Answer options
A: JSON. Correct answer
B: XML.
C: YAML.
D: HTML.
Correct Answer:
A. JSON.
Explanation

The Jscrambler configuration file, typically named jscrambler.json or .jscramblerrc, uses the JSON (JavaScript Object Notation) format. This file contains key-value pairs that define the protection settings, such as which transformations to apply, application-specific keys, and file inclusion/exclusion patterns. The scenario describes Helena removing sensitive keys from this file, which is a standard practice when using environment variables for secrets in a CI/CD pipeline, a common pattern for JSON configuration files.

Why Incorrect

B. XML is a valid data-interchange format but is not the format used for the Jscrambler configuration file.
C. YAML is commonly used for CI/CD pipeline definitions (like in GitLab) but is not the native format for the .jscramblerrc file.
D. HTML is a markup language for creating web pages and is not used for application configuration files.

References

1. Jscrambler. (n.d.). Jscrambler Configuration. Jscrambler Documentation. Retrieved from https://docs.jscrambler.com/code-integrity/documentation/client-configuration. (This official documentation explicitly shows the configuration file structure and confirms it is in JSON format).

2. Jscrambler. (n.g.). Integrating Jscrambler with GitLab CI/CD. Jscrambler Documentation. Retrieved from https://docs.jscrambler.com/code-integrity/dev-integrations/integrating-with-gitlab-ci-cd. (This guide details the use of the jscrambler.json configuration file within a GitLab pipeline).

Scroll to Top