Computer Knowledge · General Awareness
Information Security
4,143 Questions
Information security involves protecting computer systems and data from unauthorized access, cyber threats, and damage. It is a core part of the computer knowledge section in various banking and government exams. Practicing these concepts helps in understanding digital signatures, network security, and access control effectively.
Cybersecurity threatsAccess controlCryptography basicsSecurity risk managementDatabase protection
Information Security Questions
-
In Page directive set EnableViewStateMac="true"
-
In Register directive set EnableViewStateMac="true"
-
In web config set Protectviewstate="true"
-
In IIS set Viewstate protection.
A
Correct answer
Explanation
View state can be tampered with when passed over unencrypted channels. Setting EnableViewStateMac="true" in the Page directive enables message authentication codes (MAC) that detect tampering. Option A is correct. Option B references a non-existent directive, Option C has incorrect syntax (should be EnableViewStateMac), and Option D is not a standard configuration.
-
In Page directive set EnableViewStateMac="true"
-
In Register directive set EnableViewStateMac="true"
-
In web config set Protectviewstate="true"
-
In IIS set Viewstate protection.
A
Correct answer
Explanation
ViewStateMAC (Message Authentication Code) adds a cryptographic hash to view state data, detecting tampering when the data往返s over unencrypted channels. Setting EnableViewStateMac="true" in the Page directive enables this protection. The Register directive is for user controls (not page-level settings), web.config uses different attributes, and IIS doesn't have ViewState-specific protection.
-
Modifer Pattern
-
Facade pattern
-
Specialization pattern
-
Intercepting Filter
-
None of the above
D
Correct answer
Explanation
The Intercepting Filter pattern can intercept and modify authentication data in requests before they reach the authentication mechanism. Filters can transform, encode, or process credentials without the user's awareness, which is exactly what this scenario requires. Facade simplifies interfaces, Specialization isn't relevant, and Modifer isn't a standard pattern.
-
doGet
-
doPost
-
Both
-
None of the above
-
All of the above
B
Correct answer
Explanation
doPost should be used when sending confidential data because POST requests place parameters in the request body rather than the URL. This prevents sensitive information from appearing in browser history, server logs, or URL bookmarks. GET requests expose data in the URL query string, which is less secure for confidential information.
-
secret credential
-
active credential
-
passive credential
-
silent credential
B
Correct answer
Explanation
An active credential performs a login on behalf of a client without exposing the secret to the client's code or application. This pattern enhances security by keeping credentials server-side while still allowing authentication. The term 'active' refers to the credential actively performing the login action transparently.
-
System.Web.Security
-
System.Net.Security
-
System.Data
-
System.IO
A
Correct answer
Explanation
The FormsAuthentication class, which manages forms-authentication services for Web applications, resides in the System.Web.Security namespace. Namespaces like System.Net.Security, System.Data, and System.IO serve network, data access, and input/output purposes respectively.
-
Data Hiding
-
Reentrancy
-
Encapsulation
-
None of the above
B
Correct answer
Explanation
In TPF (Transaction Processing Facility), data isolation is achieved through reentrancy - the ability for code to be interrupted and re-entered safely without affecting data integrity. Reentrant routines don't modify their own code, allowing multiple executions without interference. Data hiding and encapsulation are broader programming concepts not specific to TPF's isolation mechanism.
-
Cookies
-
URL- rewriting
-
sessions
-
SSL sessions
A,B,D
Correct answer
Explanation
Common session tracking mechanisms in web applications include Cookies (storing session IDs), URL rewriting (appending session IDs to URLs), and SSL sessions (using SSL session IDs). The option 'sessions' is not a mechanism but rather the concept being tracked.
-
It is the auditing of the use of normal system privileges with regard to specifically named objects
-
It is the auditing of the use of powerful system privileges without regard to specifically named objects
-
It is the auditing of the use of powerful system privileges with regard to specifically named objects
-
None of these
B
Correct answer
Explanation
Privilege auditing is the tracking of powerful system privileges (such as CREATE TABLE or SELECT ANY TABLE) when used by users, without being restricted to specific schema objects. Object auditing tracks actions on named schema objects, while auditing privileges with respect to specific objects is not privilege auditing.
-
They are not related to each other in any way
-
High Security generally results in high performance
-
High performance is a pre-requisite for secure systems
-
Security and Performance are inversely proportional
-
Low performance systems cannot be secure
D
Correct answer
Explanation
Security measures (encryption, SSL, authentication) add computational overhead, causing encryption/decryption delays, additional network round-trips for handshakes, and CPU resources for cryptographic operations. This creates an inverse relationship - increasing security generally decreases performance. High security doesn't improve performance, performance isn't a prerequisite for security, and low-performance systems can still be secure (just slower).
A
Correct answer
Explanation
CRM Application Security does provide field-level security, allowing administrators to control access to specific fields within the system. This enables fine-grained access control where different users or roles can have view/edit permissions on particular data fields.
-
Execute OS commands
-
Steal user sessions
-
Execute scripts on the webserver
-
Manipulate the data in the database
B
Correct answer
Explanation
XSS vulnerabilities enable attackers to inject malicious scripts into web pages viewed by other users. The primary impact is session hijacking - by stealing cookies or session tokens through injected JavaScript, attackers can impersonate legitimate users and gain unauthorized access to their accounts.
-
/transfer.asp?fromacct=”account1”&toaccount=”account2”&amount=200.45&trnsactToken=”121431ersw”
-
/email.jsp&to=”[email protected]”&subject=”hi”
-
Use https for all secured pages
-
Use encryption for session cookies
A
Correct answer
Explanation
CSRF attacks are prevented by validating unique, unpredictable, and user-specific tokens (like trnsactToken) associated with the current session. HTTPS only encrypts communication to prevent eavesdropping, and encrypting session cookies does not prevent the browser from automatically sending them in CSRF scenarios.
-
Display “Welcome, user!” on the home page
-
Display only “Welcome” on the home page
-
Invalidate and destroy the session when user logs out
-
Use persistent cookies for session management
C
Correct answer
Explanation
Secure session management requires completely invalidating and destroying sessions on logout, not just displaying generic messages. This prevents session fixation attacks where an attacker could reuse a valid session identifier after logout. Persistent cookies create additional security risks by extending the attack window.
-
Send 403 return code
-
Send 302 return code and redirect the user to the home page
-
Send 404 return code
-
Send 200 return code
C
Correct answer
Explanation
Returning a 404 Not Found response instead of 403 Forbidden prevents information disclosure about directory existence. Attackers probing for sensitive folders learn nothing from 404 responses, whereas 403 responses confirm that something exists but is restricted, providing valuable reconnaissance information.